@compdfkit_pdf_sdk/webviewer 2.9.2 → 2.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./browser-ponyfill-hivVjbQ8.js","./chunk-62oNxeRG.js","./RightPanelPageMode-BIjlk7Gw.js","./viewer-DpBaiFAc.js","./RightPanelPageMode-DTB63PR7.css","./StampPanel--iZcsv3K.js","./CloseA-DlNP-cuj.js","./StampPanel-B65elhuy.css","./CustomModal-Ch2Wefy4.js","./CustomModal-CgnZ25pO.css"])))=>i.map(i=>d[i]);
2
- import{i as e,n as t,r as n,t as r}from"./chunk-62oNxeRG.js";import{$ as i,B as a,Ct as o,D as s,E as c,F as l,G as u,Gt as d,H as f,I as p,J as m,K as g,L as _,M as v,N as y,O as b,P as x,Q as S,S as C,St as w,T,U as E,Ut as D,V as O,W as k,Wt as A,X as j,Y as M,_t as N,a as P,b as ee,bt as F,c as te,ct as I,d as L,dt as R,et as z,f as ne,ft as re,gt as ie,h as B,ht as ae,i as oe,j as se,k as V,l as ce,lt as le,m as H,mt as ue,n as de,nt as fe,o as pe,p as me,pt as he,q as ge,r as _e,rt as ve,s as U,st as W,t as ye,tt as be,u as xe,ut as G,v as Se,vt as Ce,w as we,wt as K,x as Te,xt as Ee,y as q,yt as J,z as Y}from"./viewer-DpBaiFAc.js";import{a as De,c as Oe,d as ke,f as Ae,i as je,l as Me,n as Ne,o as Pe,r as Fe,s as Ie,t as Le,u as Re}from"./CloseA-DlNP-cuj.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var ze=e=>typeof e==`string`,Be=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Ve=e=>e==null?``:``+e,He=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Ue=/###/g,We=e=>e&&e.indexOf(`###`)>-1?e.replace(Ue,`.`):e,Ge=e=>!e||ze(e),Ke=(e,t,n)=>{let r=ze(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(Ge(e))return{};let t=We(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Ge(e)?{}:{obj:e,k:We(r[i])}},qe=(e,t,n)=>{let{obj:r,k:i}=Ke(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Ke(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Ke(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},Je=(e,t,n,r)=>{let{obj:i,k:a}=Ke(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Ye=(e,t)=>{let{obj:n,k:r}=Ke(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Xe=(e,t,n)=>{let r=Ye(e,n);return r===void 0?Ye(t,n):r},Ze=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?ze(e[r])||e[r]instanceof String||ze(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Ze(e[r],t[r],n):e[r]=t[r]);return e},Qe=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),$e={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},et=e=>ze(e)?e.replace(/[&<>"'\/]/g,e=>$e[e]):e,tt=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},nt=[` `,`,`,`?`,`!`,`;`],rt=new tt(20),it=(e,t,n)=>{t||=``,n||=``;let r=nt.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=rt.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},at=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},ot=e=>e?.replace(`_`,`-`),st={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},ct=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||st,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(ze(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},lt=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}},ut=class extends lt{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):ze(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Ye(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!ze(n)?s:at(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),qe(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(ze(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Ye(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Ze(s,n,i):s={...s,...n},qe(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},dt={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},ft={},pt=e=>!ze(e)&&typeof e!=`boolean`&&typeof e!=`number`,mt=class e extends lt{constructor(e,t={}){super(),He([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=ct.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};return e==null?!1:this.resolve(e,n)?.res!==void 0}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!it(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:ze(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:ze(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof options==`object`&&(i={...i}),i||={},t==null)return``;Array.isArray(t)||(t=[String(t)]);let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,g=p?.usedKey||s,_=p?.exactUsedKey||s,v=[`[object Number]`,`[object Function]`,`[object RegExp]`],y=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,x=i.count!==void 0&&!ze(i.count),S=e.hasDefaultValue(i),C=x?this.pluralResolver.getSuffix(d,i.count,i):``,w=i.ordinal&&x?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,T=x&&!i.ordinal&&i.count===0,E=T&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${C}`]||i[`defaultValue${w}`]||i.defaultValue,D=m;b&&!m&&S&&(D=E);let O=pt(D),k=Object.prototype.toString.apply(D);if(b&&D&&O&&v.indexOf(k)<0&&!(ze(y)&&Array.isArray(D))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,D,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(D),t=e?[]:{},n=e?_:g;for(let e in D)if(Object.prototype.hasOwnProperty.call(D,e)){let r=`${n}${o}${e}`;S&&!m?t[e]=this.translate(r,{...i,defaultValue:pt(E)?E[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=D[e])}m=t}}else if(b&&ze(y)&&Array.isArray(m))m=m.join(y),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&S&&(e=!0,m=E),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=S&&E!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?E:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=S&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);T&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||E)})}):n(e,s,E))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=ze(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!ze(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=ze(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=dt.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return ze(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!ze(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(ze(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!ft[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(ft[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.push(c+e),t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator}${t.context}`;o.push(r),u&&(o.push(r+e),t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!ze(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},ht=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ct.create(`languageUtils`)}getScriptPartFromCode(e){if(e=ot(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=ot(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(ze(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),ze(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return ze(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):ze(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},gt={zero:0,one:1,two:2,few:3,many:4,other:5},_t={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},vt=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=ct.create(`pluralResolver`),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=ot(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(!Intl)return this.logger.error(`No Intl support, please use an Intl polyfill!`),_t;if(!e.match(/-|_/))return _t;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>gt[e]-gt[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},yt=(e,t,n,r=`.`,i=!0)=>{let a=Xe(e,t,n);return!a&&i&&ze(n)&&(a=at(e,n,r),a===void 0&&(a=at(t,n,r))),a},bt=e=>e.replace(/\$/g,`$$$$`),xt=class{constructor(e={}){this.logger=ct.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:g,maxReplaces:_,alwaysFormat:v}=e.interpolation;this.escape=t===void 0?et:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?Qe(i):a||`{{`,this.suffix=o?Qe(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?Qe(d):f||Qe(`$t(`),this.nestingSuffix=p?Qe(p):m||Qe(`)`),this.nestingOptionsSeparator=g||`,`,this.maxReplaces=_||1e3,this.alwaysFormat=v===void 0?!1:v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=yt(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(yt(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>bt(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?bt(this.escape(e)):bt(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=ze(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else !ze(a)&&!this.useRawValueToEscape&&(a=Ve(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!ze(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),s=e,c=!0}if(i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!ze(i))return i;ze(i)||(i=Ve(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),c&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},St=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Ct=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(ot(r),i),t[o]=s),s(n)}},wt=e=>(t,n,r)=>e(ot(n),r)(t),Tt=class{constructor(e={}){this.logger=ct.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Ct:wt;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Ct(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=St(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},Et=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Dt=class extends lt{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=ct.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{Je(n.loaded,[i],a),Et(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();ze(e)&&(e=this.languageUtils.toResolveHierarchy(e)),ze(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},Ot=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),ze(e[1])&&(t.defaultValue=e[1]),ze(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),kt=e=>(ze(e.ns)&&(e.ns=[e.ns]),ze(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ze(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),At=()=>{},jt=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},Mt=class e extends lt{constructor(e={},t){if(super(),this.options=kt(e),this.services={},this.logger=ct,this.modules={external:[]},jt(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(ze(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=Ot();this.options={...n,...this.options,...kt(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?ct.init(r(this.modules.logger),this.options):ct.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:Tt;let t=new ht(this.options);this.store=new ut(this.options.resources,this.options);let i=this.services;i.logger=ct,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new vt(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),e&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=r(e),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new xt(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Dt(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new mt(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=At,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=Be(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=At){let n=t,r=ze(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=Be();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=At,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&dt.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=Be();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=ze(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(ze(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o=this.options.keySeparator||`.`,s;return s=a.keyPrefix&&Array.isArray(e)?e.map(e=>`${a.keyPrefix}${o}${e}`):a.keyPrefix?`${a.keyPrefix}${o}${e}`:e,this.t(s,a)};return ze(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=Be();return this.options.ns?(ze(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=Be();ze(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new ht(Ot());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){return new e(t,n)}cloneInstance(t={},n=At){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new ut(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),a.translator=new mt(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},Nt=Mt.createInstance();Nt.createInstance=Mt.createInstance,Nt.createInstance,Nt.dir,Nt.init,Nt.loadResources,Nt.reloadResources,Nt.use,Nt.changeLanguage,Nt.getFixedT,Nt.t,Nt.exists,Nt.setDefaultNamespace,Nt.hasLoadedNamespace,Nt.loadNamespaces,Nt.loadLanguages;var Pt=Symbol();function Ft(e,{i18next:t,rerenderOn:n=[`languageChanged`,`loaded`,`added`,`removed`],slotStart:r=`{`,slotEnd:i=`}`}){let a=Ee(new Date),o=()=>E(()=>{a.value=new Date}),s=()=>a.value;n.forEach(e=>{var n;switch(e){case`added`:case`removed`:(n=t.store)==null||n.on(e,o);break;default:t.on(e,o);break}}),e.component(`i18next`,Vt);let c=()=>t.isInitialized;e.config.globalProperties.$t=Rt(t.t.bind(t),s,c);let l=new Proxy(t,{get(e,t){return s(),Reflect.get(e,t)}});e.config.globalProperties.$i18next=l,e.provide(Pt,{i18next:l,slotPattern:Bt(r,i),withAccessRecording(e,t){return Rt(e,s,t)}})}function It(e,t){let{i18next:n,withAccessRecording:r}=zt(),i;return i=t?.lng?n.getFixedT(t.lng,e,t?.keyPrefix):n.getFixedT(null,e??null,t?.keyPrefix),{i18next:n,t:r(i,Lt(n,e))}}function Lt(e,t=[]){let n;return()=>{if(n===void 0)if(e.isInitialized){let r=(typeof t==`string`?[t]:t).filter(t=>!e.hasLoadedNamespace(t));r.length?(n=!1,e.loadNamespaces(r).then(()=>n=!0)):n=!0}else return!1;return n}}function Rt(e,t,n){return new Proxy(e,{apply:function(e,r,i){return t(),n()?Reflect.apply(e,r,i):``}})}function zt(){let e=a(Pt);if(!e)throw Error(`i18next-vue: Make sure to register the i18next-vue plugin using app.use(...).`);return e}function Bt(e,t){let n=`${e}\\s*([a-z0-9\\-]+)\\s*${t}`;return new RegExp(n,`gi`)}var Vt=p({props:{translation:{type:String,required:!0}},setup(e,{slots:t}){let{slotPattern:n}=zt();return()=>{let r=e.translation,i=[],a,o=0;for(;(a=n.exec(r))!==null;){i.push(r.substring(o,a.index));let e=t[a[1]];e?i.push(...e()):i.push(a[0]),o=n.lastIndex}return i.push(r.substring(o)),i}}});function Ht(e){"@babel/helpers - typeof";return Ht=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ht(e)}var Ut=[];Ut.forEach,Ut.slice;function Wt(){return typeof XMLHttpRequest==`function`||(typeof XMLHttpRequest>`u`?`undefined`:Ht(XMLHttpRequest))===`object`}function Gt(e){return!!e&&typeof e.then==`function`}function Kt(e){return Gt(e)?e:Promise.resolve(e)}var qt=`modulepreload`,Jt=function(e,t){return new URL(e,t).href},Yt={},Xt=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Jt(t,n),t in Yt)return;Yt[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:qt,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Zt(Object(n),!0).forEach(function(t){$t(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $t(e,t,n){return(t=en(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function en(e){var t=tn(e,`string`);return nn(t)==`symbol`?t:t+``}function tn(e,t){if(nn(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(nn(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function nn(e){"@babel/helpers - typeof";return nn=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},nn(e)}var rn=typeof fetch==`function`?fetch:void 0;typeof global<`u`&&global.fetch?rn=global.fetch:typeof window<`u`&&window.fetch&&(rn=window.fetch);var an;Wt()&&(typeof global<`u`&&global.XMLHttpRequest?an=global.XMLHttpRequest:typeof window<`u`&&window.XMLHttpRequest&&(an=window.XMLHttpRequest));var on;if(typeof ActiveXObject==`function`&&(typeof global<`u`&&global.ActiveXObject?on=global.ActiveXObject:typeof window<`u`&&window.ActiveXObject&&(on=window.ActiveXObject)),typeof rn!=`function`&&(rn=void 0),!rn&&!an&&!on)try{Xt(()=>import(`./browser-ponyfill-hivVjbQ8.js`).then(t=>e(t.default,1)).then(function(e){rn=e.default}),__vite__mapDeps([0,1]),import.meta.url).catch(function(){})}catch{}var sn=function(e,t){if(t&&nn(t)===`object`){var n=``;for(var r in t)n+=`&`+encodeURIComponent(r)+`=`+encodeURIComponent(t[r]);if(!n)return e;e=e+(e.indexOf(`?`)===-1?`?`:`&`)+n.slice(1)}return e},cn=function(e,t,n,r){var i=function(e){if(!e.ok)return n(e.statusText||`Error`,{status:e.status});e.text().then(function(t){n(null,{status:e.status,data:t})}).catch(n)};if(r){var a=r(e,t);if(a instanceof Promise){a.then(i).catch(n);return}}typeof fetch==`function`?fetch(e,t).then(i).catch(n):rn(e,t).then(i).catch(n)},ln=!1,un=function(e,t,n,r){e.queryStringParams&&(t=sn(t,e.queryStringParams));var i=Qt({},typeof e.customHeaders==`function`?e.customHeaders():e.customHeaders);typeof window>`u`&&typeof global<`u`&&global.process!==void 0&&global.process.versions&&global.process.versions.node&&(i[`User-Agent`]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),n&&(i[`Content-Type`]=`application/json`);var a=typeof e.requestOptions==`function`?e.requestOptions(n):e.requestOptions,o=Qt({method:n?`POST`:`GET`,body:n?e.stringify(n):void 0,headers:i},ln?{}:a),s=typeof e.alternateFetch==`function`&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{cn(t,o,r,s)}catch(e){if(!a||Object.keys(a).length===0||!e.message||e.message.indexOf(`not implemented`)<0)return r(e);try{Object.keys(a).forEach(function(e){delete o[e]}),cn(t,o,r,s),ln=!0}catch(e){r(e)}}},dn=function(e,t,n,r){n&&nn(n)===`object`&&(n=sn(``,n).slice(1)),e.queryStringParams&&(t=sn(t,e.queryStringParams));try{var i=an?new an:new on(`MSXML2.XMLHTTP.3.0`);i.open(n?`POST`:`GET`,t,1),e.crossDomain||i.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),i.withCredentials=!!e.withCredentials,n&&i.setRequestHeader(`Content-Type`,`application/x-www-form-urlencoded`),i.overrideMimeType&&i.overrideMimeType(`application/json`);var a=e.customHeaders;if(a=typeof a==`function`?a():a,a)for(var o in a)i.setRequestHeader(o,a[o]);i.onreadystatechange=function(){i.readyState>3&&r(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(n)}catch(e){console&&console.log(e)}},fn=function(e,t,n,r){if(typeof n==`function`&&(r=n,n=void 0),r||=function(){},rn&&t.indexOf(`file:`)!==0)return un(e,t,n,r);if(Wt()||typeof ActiveXObject==`function`)return dn(e,t,n,r);r(Error(`No fetch and no xhr implementation found!`))};function pn(e){"@babel/helpers - typeof";return pn=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},pn(e)}function mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mn(Object(n),!0).forEach(function(t){yn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gn(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function _n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,bn(r.key),r)}}function vn(e,t,n){return t&&_n(e.prototype,t),n&&_n(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function yn(e,t,n){return(t=bn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bn(e){var t=xn(e,`string`);return pn(t)==`symbol`?t:t+``}function xn(e,t){if(pn(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(pn(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Sn=function(){return{loadPath:`/locales/{{lng}}/{{ns}}.json`,addPath:`/locales/add/{{lng}}/{{ns}}`,parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return yn({},t,n||``)},parseLoadPayload:function(e,t){},request:fn,reloadInterval:typeof window<`u`?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:`cors`,credentials:`same-origin`,cache:`default`}}},Cn=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};gn(this,e),this.services=t,this.options=n,this.allOptions=r,this.type=`backend`,this.init(t,n,r)}return vn(e,[{key:`init`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=e,this.options=hn(hn(hn({},Sn()),this.options||{}),n),this.allOptions=r,this.services&&this.options.reloadInterval){var i=setInterval(function(){return t.reload()},this.options.reloadInterval);pn(i)===`object`&&typeof i.unref==`function`&&i.unref()}}},{key:`readMulti`,value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:`read`,value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:`_readAny`,value:function(e,t,n,r,i){var a=this,o=this.options.loadPath;typeof this.options.loadPath==`function`&&(o=this.options.loadPath(e,n)),o=Kt(o),o.then(function(o){if(!o)return i(null,{});var s=a.services.interpolator.interpolate(o,{lng:e.join(`+`),ns:n.join(`+`)});a.loadUrl(s,i,t,r)})}},{key:`loadUrl`,value:function(e,t,n,r){var i=this,a=typeof n==`string`?[n]:n,o=typeof r==`string`?[r]:r,s=this.options.parseLoadPayload(a,o);this.options.request(this.options,e,s,function(a,o){if(o&&(o.status>=500&&o.status<600||!o.status))return t(`failed loading `+e+`; status code: `+o.status,!0);if(o&&o.status>=400&&o.status<500)return t(`failed loading `+e+`; status code: `+o.status,!1);if(!o&&a&&a.message){var s=a.message.toLowerCase();if([`failed`,`fetch`,`network`,`load`].find(function(e){return s.indexOf(e)>-1}))return t(`failed loading `+e+`: `+a.message,!0)}if(a)return t(a,!1);var c,l;try{c=typeof o.data==`string`?i.options.parse(o.data,n,r):o.data}catch{l=`failed parsing `+e+` to json`}if(l)return t(l,!1);t(null,c)})}},{key:`create`,value:function(e,t,n,r,i){var a=this;if(this.options.addPath){typeof e==`string`&&(e=[e]);var o=this.options.parsePayload(t,n,r),s=0,c=[],l=[];e.forEach(function(n){var r=a.options.addPath;typeof a.options.addPath==`function`&&(r=a.options.addPath(n,t));var u=a.services.interpolator.interpolate(r,{lng:n,ns:t});a.options.request(a.options,u,o,function(t,n){s+=1,c.push(t),l.push(n),s===e.length&&typeof i==`function`&&i(c,l)})})}}},{key:`reload`,value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,i=t.logger,a=n.language;if(!(a&&a.toLowerCase()===`cimode`)){var o=[],s=function(e){r.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};s(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(e){return s(e)}),o.forEach(function(t){e.allOptions.ns.forEach(function(e){n.read(t,e,`read`,null,null,function(r,a){r&&i.warn(`loading namespace ${e} for language ${t} failed`,r),!r&&a&&i.log(`loaded namespace ${e} for language ${t}`,a),n.loaded(`${t}|${e}`,r,a)})})})}}}])}();Cn.type=`backend`;var wn=(e,t,n,r)=>{try{let i=new XMLHttpRequest;i.open(`GET`,t,1),e.crossDomain||i.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),i.withCredentials=!!e.withCredentials,n&&i.setRequestHeader(`Content-Type`,`application/x-www-form-urlencoded`),i.overrideMimeType&&i.overrideMimeType(`application/json`);let a=e.customHeaders;if(a=typeof a==`function`?a():a,a)for(let e in a)i.setRequestHeader(e,a[e]);i.onreadystatechange=()=>{i.readyState>3&&r(i.status>=400?i.statusText:null,{status:i.status||200,data:i.responseText})},i.send(n)}catch(e){console.warn(e)}},Tn=window.localStorage.getItem(`language`)||window.localStorage.getItem(`currentLanguage`)||`en`;window.i18next=Nt;var En=Nt.use(Cn).init({load:`currentOnly`,returnObjects:!0,lng:Tn,fallbackLng:`en`,ns:[`translation`],defaultNS:`translation`,backend:{loadPath:`./locales/{{ns}}-{{lng}}.json`,request:wn}});function Dn(e){return e.use(Ft,{i18next:Nt}),e}function On(e){let t=`.`,n=`__`,r=`--`,i;if(e){let i=e.blockPrefix;i&&(t=i),i=e.elementPrefix,i&&(n=i),i=e.modifierPrefix,i&&(r=i)}let a={install(e){i=e.c;let t=e.context;t.bem={},t.bem.b=null,t.bem.els=null}};function o(e){let n,r;return{before(e){n=e.bem.b,r=e.bem.els,e.bem.els=null},after(e){e.bem.b=n,e.bem.els=r},$({context:n,props:r}){return e=typeof e==`string`?e:e({context:n,props:r}),n.bem.b=e,`${r?.bPrefix||t}${n.bem.b}`}}}function s(e){let r;return{before(e){r=e.bem.els},after(e){e.bem.els=r},$({context:r,props:i}){return e=typeof e==`string`?e:e({context:r,props:i}),r.bem.els=e.split(`,`).map(e=>e.trim()),r.bem.els.map(e=>`${i?.bPrefix||t}${r.bem.b}${n}${e}`).join(`, `)}}}function c(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=e.split(`,`).map(e=>e.trim());function s(e){return o.map(o=>`&${a?.bPrefix||t}${i.bem.b}${e===void 0?``:`${n}${e}`}${r}${o}`).join(`, `)}let c=i.bem.els;return c===null?s():s(c[0])}}}function l(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=i.bem.els;return`&:not(${a?.bPrefix||t}${i.bem.b}${o!==null&&o.length>0?`${n}${o[0]}`:``}${r}${e})`}}}return Object.assign(a,{cB:((...e)=>i(o(e[0]),e[1],e[2])),cE:((...e)=>i(s(e[0]),e[1],e[2])),cM:((...e)=>i(c(e[0]),e[1],e[2])),cNotM:((...e)=>i(l(e[0]),e[1],e[2]))}),a}function kn(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var An=/\s*,(?![^(]*\))\s*/g,jn=/\s+/g;function Mn(e,t){let n=[];return t.split(An).forEach(t=>{let r=kn(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function Nn(e,t){let n=[];return t.split(An).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function Pn(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?Mn(t,e):Nn(t,e))}),t.join(`, `).replace(jn,` `)}function Fn(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function In(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function Ln(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}function Rn(e){return e?/^\s*@(s|m)/.test(e):!1}var zn=/[A-Z]/g;function Bn(e){return e.replace(zn,e=>`-`+e.toLowerCase())}function Vn(e,t=` `){return typeof e==`object`&&e?` {
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./browser-ponyfill-hivVjbQ8.js","./chunk-62oNxeRG.js","./RightPanelPageMode-DsbFhwvX.js","./viewer-TQEBczH5.js","./RightPanelPageMode-DTB63PR7.css","./StampPanel-Df1tfRB9.js","./CloseA-D2o-Ymea.js","./StampPanel-B65elhuy.css","./CustomModal-BEMspb2m.js","./CustomModal-CgnZ25pO.css"])))=>i.map(i=>d[i]);
2
+ import{i as e,n as t,r as n,t as r}from"./chunk-62oNxeRG.js";import{$ as i,B as a,Ct as o,D as s,E as c,F as l,G as u,Gt as d,H as f,I as p,J as m,K as g,L as _,M as v,N as y,O as b,P as x,Q as S,S as C,St as w,T,U as E,Ut as D,V as O,W as k,Wt as A,X as j,Y as M,_t as N,a as P,b as ee,bt as F,c as te,ct as I,d as L,dt as R,et as z,f as ne,ft as re,gt as ie,h as B,ht as ae,i as oe,j as se,k as V,l as ce,lt as le,m as H,mt as ue,n as de,nt as fe,o as pe,p as me,pt as he,q as ge,r as _e,rt as ve,s as U,st as W,t as ye,tt as be,u as xe,ut as G,v as Se,vt as Ce,w as we,wt as K,x as Te,xt as Ee,y as q,yt as J,z as Y}from"./viewer-TQEBczH5.js";import{a as De,c as Oe,d as ke,f as Ae,i as je,l as Me,n as Ne,o as Pe,r as Fe,s as Ie,t as Le,u as Re}from"./CloseA-D2o-Ymea.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var ze=e=>typeof e==`string`,Be=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Ve=e=>e==null?``:``+e,He=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Ue=/###/g,We=e=>e&&e.indexOf(`###`)>-1?e.replace(Ue,`.`):e,Ge=e=>!e||ze(e),Ke=(e,t,n)=>{let r=ze(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(Ge(e))return{};let t=We(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Ge(e)?{}:{obj:e,k:We(r[i])}},qe=(e,t,n)=>{let{obj:r,k:i}=Ke(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Ke(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Ke(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},Je=(e,t,n,r)=>{let{obj:i,k:a}=Ke(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Ye=(e,t)=>{let{obj:n,k:r}=Ke(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Xe=(e,t,n)=>{let r=Ye(e,n);return r===void 0?Ye(t,n):r},Ze=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?ze(e[r])||e[r]instanceof String||ze(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Ze(e[r],t[r],n):e[r]=t[r]);return e},Qe=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),$e={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},et=e=>ze(e)?e.replace(/[&<>"'\/]/g,e=>$e[e]):e,tt=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},nt=[` `,`,`,`?`,`!`,`;`],rt=new tt(20),it=(e,t,n)=>{t||=``,n||=``;let r=nt.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=rt.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},at=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},ot=e=>e?.replace(`_`,`-`),st={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},ct=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||st,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(ze(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},lt=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}},ut=class extends lt{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):ze(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Ye(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!ze(n)?s:at(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),qe(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(ze(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Ye(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Ze(s,n,i):s={...s,...n},qe(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},dt={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},ft={},pt=e=>!ze(e)&&typeof e!=`boolean`&&typeof e!=`number`,mt=class e extends lt{constructor(e,t={}){super(),He([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=ct.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};return e==null?!1:this.resolve(e,n)?.res!==void 0}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!it(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:ze(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:ze(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof options==`object`&&(i={...i}),i||={},t==null)return``;Array.isArray(t)||(t=[String(t)]);let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,g=p?.usedKey||s,_=p?.exactUsedKey||s,v=[`[object Number]`,`[object Function]`,`[object RegExp]`],y=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,x=i.count!==void 0&&!ze(i.count),S=e.hasDefaultValue(i),C=x?this.pluralResolver.getSuffix(d,i.count,i):``,w=i.ordinal&&x?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,T=x&&!i.ordinal&&i.count===0,E=T&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${C}`]||i[`defaultValue${w}`]||i.defaultValue,D=m;b&&!m&&S&&(D=E);let O=pt(D),k=Object.prototype.toString.apply(D);if(b&&D&&O&&v.indexOf(k)<0&&!(ze(y)&&Array.isArray(D))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,D,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(D),t=e?[]:{},n=e?_:g;for(let e in D)if(Object.prototype.hasOwnProperty.call(D,e)){let r=`${n}${o}${e}`;S&&!m?t[e]=this.translate(r,{...i,defaultValue:pt(E)?E[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=D[e])}m=t}}else if(b&&ze(y)&&Array.isArray(m))m=m.join(y),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&S&&(e=!0,m=E),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=S&&E!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?E:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=S&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);T&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||E)})}):n(e,s,E))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=ze(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!ze(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=ze(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=dt.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return ze(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!ze(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(ze(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!ft[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(ft[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.push(c+e),t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator}${t.context}`;o.push(r),u&&(o.push(r+e),t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!ze(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},ht=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ct.create(`languageUtils`)}getScriptPartFromCode(e){if(e=ot(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=ot(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(ze(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),ze(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return ze(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):ze(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},gt={zero:0,one:1,two:2,few:3,many:4,other:5},_t={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},vt=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=ct.create(`pluralResolver`),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=ot(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(!Intl)return this.logger.error(`No Intl support, please use an Intl polyfill!`),_t;if(!e.match(/-|_/))return _t;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>gt[e]-gt[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},yt=(e,t,n,r=`.`,i=!0)=>{let a=Xe(e,t,n);return!a&&i&&ze(n)&&(a=at(e,n,r),a===void 0&&(a=at(t,n,r))),a},bt=e=>e.replace(/\$/g,`$$$$`),xt=class{constructor(e={}){this.logger=ct.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:g,maxReplaces:_,alwaysFormat:v}=e.interpolation;this.escape=t===void 0?et:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?Qe(i):a||`{{`,this.suffix=o?Qe(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?Qe(d):f||Qe(`$t(`),this.nestingSuffix=p?Qe(p):m||Qe(`)`),this.nestingOptionsSeparator=g||`,`,this.maxReplaces=_||1e3,this.alwaysFormat=v===void 0?!1:v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=yt(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(yt(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>bt(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?bt(this.escape(e)):bt(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=ze(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else !ze(a)&&!this.useRawValueToEscape&&(a=Ve(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!ze(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),s=e,c=!0}if(i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!ze(i))return i;ze(i)||(i=Ve(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),c&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},St=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Ct=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(ot(r),i),t[o]=s),s(n)}},wt=e=>(t,n,r)=>e(ot(n),r)(t),Tt=class{constructor(e={}){this.logger=ct.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Ct:wt;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Ct(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=St(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},Et=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Dt=class extends lt{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=ct.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{Je(n.loaded,[i],a),Et(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();ze(e)&&(e=this.languageUtils.toResolveHierarchy(e)),ze(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},Ot=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),ze(e[1])&&(t.defaultValue=e[1]),ze(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),kt=e=>(ze(e.ns)&&(e.ns=[e.ns]),ze(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ze(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),At=()=>{},jt=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},Mt=class e extends lt{constructor(e={},t){if(super(),this.options=kt(e),this.services={},this.logger=ct,this.modules={external:[]},jt(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(ze(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=Ot();this.options={...n,...this.options,...kt(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?ct.init(r(this.modules.logger),this.options):ct.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:Tt;let t=new ht(this.options);this.store=new ut(this.options.resources,this.options);let i=this.services;i.logger=ct,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new vt(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),e&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=r(e),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new xt(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Dt(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new mt(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=At,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=Be(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=At){let n=t,r=ze(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=Be();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=At,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&dt.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=Be();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=ze(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(ze(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o=this.options.keySeparator||`.`,s;return s=a.keyPrefix&&Array.isArray(e)?e.map(e=>`${a.keyPrefix}${o}${e}`):a.keyPrefix?`${a.keyPrefix}${o}${e}`:e,this.t(s,a)};return ze(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=Be();return this.options.ns?(ze(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=Be();ze(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new ht(Ot());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){return new e(t,n)}cloneInstance(t={},n=At){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new ut(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),a.translator=new mt(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},Nt=Mt.createInstance();Nt.createInstance=Mt.createInstance,Nt.createInstance,Nt.dir,Nt.init,Nt.loadResources,Nt.reloadResources,Nt.use,Nt.changeLanguage,Nt.getFixedT,Nt.t,Nt.exists,Nt.setDefaultNamespace,Nt.hasLoadedNamespace,Nt.loadNamespaces,Nt.loadLanguages;var Pt=Symbol();function Ft(e,{i18next:t,rerenderOn:n=[`languageChanged`,`loaded`,`added`,`removed`],slotStart:r=`{`,slotEnd:i=`}`}){let a=Ee(new Date),o=()=>E(()=>{a.value=new Date}),s=()=>a.value;n.forEach(e=>{var n;switch(e){case`added`:case`removed`:(n=t.store)==null||n.on(e,o);break;default:t.on(e,o);break}}),e.component(`i18next`,Vt);let c=()=>t.isInitialized;e.config.globalProperties.$t=Rt(t.t.bind(t),s,c);let l=new Proxy(t,{get(e,t){return s(),Reflect.get(e,t)}});e.config.globalProperties.$i18next=l,e.provide(Pt,{i18next:l,slotPattern:Bt(r,i),withAccessRecording(e,t){return Rt(e,s,t)}})}function It(e,t){let{i18next:n,withAccessRecording:r}=zt(),i;return i=t?.lng?n.getFixedT(t.lng,e,t?.keyPrefix):n.getFixedT(null,e??null,t?.keyPrefix),{i18next:n,t:r(i,Lt(n,e))}}function Lt(e,t=[]){let n;return()=>{if(n===void 0)if(e.isInitialized){let r=(typeof t==`string`?[t]:t).filter(t=>!e.hasLoadedNamespace(t));r.length?(n=!1,e.loadNamespaces(r).then(()=>n=!0)):n=!0}else return!1;return n}}function Rt(e,t,n){return new Proxy(e,{apply:function(e,r,i){return t(),n()?Reflect.apply(e,r,i):``}})}function zt(){let e=a(Pt);if(!e)throw Error(`i18next-vue: Make sure to register the i18next-vue plugin using app.use(...).`);return e}function Bt(e,t){let n=`${e}\\s*([a-z0-9\\-]+)\\s*${t}`;return new RegExp(n,`gi`)}var Vt=p({props:{translation:{type:String,required:!0}},setup(e,{slots:t}){let{slotPattern:n}=zt();return()=>{let r=e.translation,i=[],a,o=0;for(;(a=n.exec(r))!==null;){i.push(r.substring(o,a.index));let e=t[a[1]];e?i.push(...e()):i.push(a[0]),o=n.lastIndex}return i.push(r.substring(o)),i}}});function Ht(e){"@babel/helpers - typeof";return Ht=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ht(e)}var Ut=[];Ut.forEach,Ut.slice;function Wt(){return typeof XMLHttpRequest==`function`||(typeof XMLHttpRequest>`u`?`undefined`:Ht(XMLHttpRequest))===`object`}function Gt(e){return!!e&&typeof e.then==`function`}function Kt(e){return Gt(e)?e:Promise.resolve(e)}var qt=`modulepreload`,Jt=function(e,t){return new URL(e,t).href},Yt={},Xt=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Jt(t,n),t in Yt)return;Yt[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:qt,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Zt(Object(n),!0).forEach(function(t){$t(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $t(e,t,n){return(t=en(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function en(e){var t=tn(e,`string`);return nn(t)==`symbol`?t:t+``}function tn(e,t){if(nn(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(nn(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function nn(e){"@babel/helpers - typeof";return nn=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},nn(e)}var rn=typeof fetch==`function`?fetch:void 0;typeof global<`u`&&global.fetch?rn=global.fetch:typeof window<`u`&&window.fetch&&(rn=window.fetch);var an;Wt()&&(typeof global<`u`&&global.XMLHttpRequest?an=global.XMLHttpRequest:typeof window<`u`&&window.XMLHttpRequest&&(an=window.XMLHttpRequest));var on;if(typeof ActiveXObject==`function`&&(typeof global<`u`&&global.ActiveXObject?on=global.ActiveXObject:typeof window<`u`&&window.ActiveXObject&&(on=window.ActiveXObject)),typeof rn!=`function`&&(rn=void 0),!rn&&!an&&!on)try{Xt(()=>import(`./browser-ponyfill-hivVjbQ8.js`).then(t=>e(t.default,1)).then(function(e){rn=e.default}),__vite__mapDeps([0,1]),import.meta.url).catch(function(){})}catch{}var sn=function(e,t){if(t&&nn(t)===`object`){var n=``;for(var r in t)n+=`&`+encodeURIComponent(r)+`=`+encodeURIComponent(t[r]);if(!n)return e;e=e+(e.indexOf(`?`)===-1?`?`:`&`)+n.slice(1)}return e},cn=function(e,t,n,r){var i=function(e){if(!e.ok)return n(e.statusText||`Error`,{status:e.status});e.text().then(function(t){n(null,{status:e.status,data:t})}).catch(n)};if(r){var a=r(e,t);if(a instanceof Promise){a.then(i).catch(n);return}}typeof fetch==`function`?fetch(e,t).then(i).catch(n):rn(e,t).then(i).catch(n)},ln=!1,un=function(e,t,n,r){e.queryStringParams&&(t=sn(t,e.queryStringParams));var i=Qt({},typeof e.customHeaders==`function`?e.customHeaders():e.customHeaders);typeof window>`u`&&typeof global<`u`&&global.process!==void 0&&global.process.versions&&global.process.versions.node&&(i[`User-Agent`]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),n&&(i[`Content-Type`]=`application/json`);var a=typeof e.requestOptions==`function`?e.requestOptions(n):e.requestOptions,o=Qt({method:n?`POST`:`GET`,body:n?e.stringify(n):void 0,headers:i},ln?{}:a),s=typeof e.alternateFetch==`function`&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{cn(t,o,r,s)}catch(e){if(!a||Object.keys(a).length===0||!e.message||e.message.indexOf(`not implemented`)<0)return r(e);try{Object.keys(a).forEach(function(e){delete o[e]}),cn(t,o,r,s),ln=!0}catch(e){r(e)}}},dn=function(e,t,n,r){n&&nn(n)===`object`&&(n=sn(``,n).slice(1)),e.queryStringParams&&(t=sn(t,e.queryStringParams));try{var i=an?new an:new on(`MSXML2.XMLHTTP.3.0`);i.open(n?`POST`:`GET`,t,1),e.crossDomain||i.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),i.withCredentials=!!e.withCredentials,n&&i.setRequestHeader(`Content-Type`,`application/x-www-form-urlencoded`),i.overrideMimeType&&i.overrideMimeType(`application/json`);var a=e.customHeaders;if(a=typeof a==`function`?a():a,a)for(var o in a)i.setRequestHeader(o,a[o]);i.onreadystatechange=function(){i.readyState>3&&r(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(n)}catch(e){console&&console.log(e)}},fn=function(e,t,n,r){if(typeof n==`function`&&(r=n,n=void 0),r||=function(){},rn&&t.indexOf(`file:`)!==0)return un(e,t,n,r);if(Wt()||typeof ActiveXObject==`function`)return dn(e,t,n,r);r(Error(`No fetch and no xhr implementation found!`))};function pn(e){"@babel/helpers - typeof";return pn=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},pn(e)}function mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mn(Object(n),!0).forEach(function(t){yn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gn(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function _n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,bn(r.key),r)}}function vn(e,t,n){return t&&_n(e.prototype,t),n&&_n(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function yn(e,t,n){return(t=bn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bn(e){var t=xn(e,`string`);return pn(t)==`symbol`?t:t+``}function xn(e,t){if(pn(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(pn(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Sn=function(){return{loadPath:`/locales/{{lng}}/{{ns}}.json`,addPath:`/locales/add/{{lng}}/{{ns}}`,parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return yn({},t,n||``)},parseLoadPayload:function(e,t){},request:fn,reloadInterval:typeof window<`u`?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:`cors`,credentials:`same-origin`,cache:`default`}}},Cn=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};gn(this,e),this.services=t,this.options=n,this.allOptions=r,this.type=`backend`,this.init(t,n,r)}return vn(e,[{key:`init`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=e,this.options=hn(hn(hn({},Sn()),this.options||{}),n),this.allOptions=r,this.services&&this.options.reloadInterval){var i=setInterval(function(){return t.reload()},this.options.reloadInterval);pn(i)===`object`&&typeof i.unref==`function`&&i.unref()}}},{key:`readMulti`,value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:`read`,value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:`_readAny`,value:function(e,t,n,r,i){var a=this,o=this.options.loadPath;typeof this.options.loadPath==`function`&&(o=this.options.loadPath(e,n)),o=Kt(o),o.then(function(o){if(!o)return i(null,{});var s=a.services.interpolator.interpolate(o,{lng:e.join(`+`),ns:n.join(`+`)});a.loadUrl(s,i,t,r)})}},{key:`loadUrl`,value:function(e,t,n,r){var i=this,a=typeof n==`string`?[n]:n,o=typeof r==`string`?[r]:r,s=this.options.parseLoadPayload(a,o);this.options.request(this.options,e,s,function(a,o){if(o&&(o.status>=500&&o.status<600||!o.status))return t(`failed loading `+e+`; status code: `+o.status,!0);if(o&&o.status>=400&&o.status<500)return t(`failed loading `+e+`; status code: `+o.status,!1);if(!o&&a&&a.message){var s=a.message.toLowerCase();if([`failed`,`fetch`,`network`,`load`].find(function(e){return s.indexOf(e)>-1}))return t(`failed loading `+e+`: `+a.message,!0)}if(a)return t(a,!1);var c,l;try{c=typeof o.data==`string`?i.options.parse(o.data,n,r):o.data}catch{l=`failed parsing `+e+` to json`}if(l)return t(l,!1);t(null,c)})}},{key:`create`,value:function(e,t,n,r,i){var a=this;if(this.options.addPath){typeof e==`string`&&(e=[e]);var o=this.options.parsePayload(t,n,r),s=0,c=[],l=[];e.forEach(function(n){var r=a.options.addPath;typeof a.options.addPath==`function`&&(r=a.options.addPath(n,t));var u=a.services.interpolator.interpolate(r,{lng:n,ns:t});a.options.request(a.options,u,o,function(t,n){s+=1,c.push(t),l.push(n),s===e.length&&typeof i==`function`&&i(c,l)})})}}},{key:`reload`,value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,i=t.logger,a=n.language;if(!(a&&a.toLowerCase()===`cimode`)){var o=[],s=function(e){r.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};s(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(e){return s(e)}),o.forEach(function(t){e.allOptions.ns.forEach(function(e){n.read(t,e,`read`,null,null,function(r,a){r&&i.warn(`loading namespace ${e} for language ${t} failed`,r),!r&&a&&i.log(`loaded namespace ${e} for language ${t}`,a),n.loaded(`${t}|${e}`,r,a)})})})}}}])}();Cn.type=`backend`;var wn=(e,t,n,r)=>{try{let i=new XMLHttpRequest;i.open(`GET`,t,1),e.crossDomain||i.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),i.withCredentials=!!e.withCredentials,n&&i.setRequestHeader(`Content-Type`,`application/x-www-form-urlencoded`),i.overrideMimeType&&i.overrideMimeType(`application/json`);let a=e.customHeaders;if(a=typeof a==`function`?a():a,a)for(let e in a)i.setRequestHeader(e,a[e]);i.onreadystatechange=()=>{i.readyState>3&&r(i.status>=400?i.statusText:null,{status:i.status||200,data:i.responseText})},i.send(n)}catch(e){console.warn(e)}},Tn=window.localStorage.getItem(`language`)||window.localStorage.getItem(`currentLanguage`)||`en`;window.i18next=Nt;var En=Nt.use(Cn).init({load:`currentOnly`,returnObjects:!0,lng:Tn,fallbackLng:`en`,ns:[`translation`],defaultNS:`translation`,backend:{loadPath:`./locales/{{ns}}-{{lng}}.json`,request:wn}});function Dn(e){return e.use(Ft,{i18next:Nt}),e}function On(e){let t=`.`,n=`__`,r=`--`,i;if(e){let i=e.blockPrefix;i&&(t=i),i=e.elementPrefix,i&&(n=i),i=e.modifierPrefix,i&&(r=i)}let a={install(e){i=e.c;let t=e.context;t.bem={},t.bem.b=null,t.bem.els=null}};function o(e){let n,r;return{before(e){n=e.bem.b,r=e.bem.els,e.bem.els=null},after(e){e.bem.b=n,e.bem.els=r},$({context:n,props:r}){return e=typeof e==`string`?e:e({context:n,props:r}),n.bem.b=e,`${r?.bPrefix||t}${n.bem.b}`}}}function s(e){let r;return{before(e){r=e.bem.els},after(e){e.bem.els=r},$({context:r,props:i}){return e=typeof e==`string`?e:e({context:r,props:i}),r.bem.els=e.split(`,`).map(e=>e.trim()),r.bem.els.map(e=>`${i?.bPrefix||t}${r.bem.b}${n}${e}`).join(`, `)}}}function c(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=e.split(`,`).map(e=>e.trim());function s(e){return o.map(o=>`&${a?.bPrefix||t}${i.bem.b}${e===void 0?``:`${n}${e}`}${r}${o}`).join(`, `)}let c=i.bem.els;return c===null?s():s(c[0])}}}function l(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=i.bem.els;return`&:not(${a?.bPrefix||t}${i.bem.b}${o!==null&&o.length>0?`${n}${o[0]}`:``}${r}${e})`}}}return Object.assign(a,{cB:((...e)=>i(o(e[0]),e[1],e[2])),cE:((...e)=>i(s(e[0]),e[1],e[2])),cM:((...e)=>i(c(e[0]),e[1],e[2])),cNotM:((...e)=>i(l(e[0]),e[1],e[2]))}),a}function kn(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var An=/\s*,(?![^(]*\))\s*/g,jn=/\s+/g;function Mn(e,t){let n=[];return t.split(An).forEach(t=>{let r=kn(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function Nn(e,t){let n=[];return t.split(An).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function Pn(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?Mn(t,e):Nn(t,e))}),t.join(`, `).replace(jn,` `)}function Fn(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function In(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function Ln(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}function Rn(e){return e?/^\s*@(s|m)/.test(e):!1}var zn=/[A-Z]/g;function Bn(e){return e.replace(zn,e=>`-`+e.toLowerCase())}function Vn(e,t=` `){return typeof e==`object`&&e?` {
3
3
  `+Object.entries(e).map(e=>t+` ${Bn(e[0])}: ${e[1]};`).join(`
4
4
  `)+`
5
5
  `+t+`}`:`: ${e};`}function Hn(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function Un(e,t,n,r){if(!t)return``;let i=Hn(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` {
@@ -2062,7 +2062,7 @@ import{i as e,n as t,r as n,t as r}from"./chunk-62oNxeRG.js";import{$ as i,B as
2062
2062
  `)]),$(`disabled`,[Q(`rail`,`
2063
2063
  cursor: not-allowed;
2064
2064
  opacity: .5;
2065
- `)])]),Cb=Object.assign(Object.assign({},Em.props),{size:{type:String,default:`medium`},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]}),wb,Tb=p({name:`Switch`,props:Cb,slots:Object,setup(e){wb===void 0&&(wb=typeof CSS<`u`?CSS.supports===void 0?!1:CSS.supports(`width`,`max(1px)`):!0);let{mergedClsPrefixRef:t,inlineThemeDisabled:n}=rc(e),r=Em(`Switch`,`-switch`,Sb,sb,e,t),i=oc(e),{mergedSizeRef:a,mergedDisabledRef:s}=i,c=J(e.defaultValue),l=Wi(o(e,`value`),c),u=T(()=>l.value===e.checkedValue),d=J(!1),f=J(!1),p=T(()=>{let{railStyle:t}=e;if(t)return t({focused:f.value,checked:u.value})});function m(t){let{"onUpdate:value":n,onChange:r,onUpdateValue:a}=e,{nTriggerFormInput:o,nTriggerFormChange:s}=i;n&&Bs(n,t),a&&Bs(a,t),r&&Bs(r,t),c.value=t,o(),s()}function g(){let{nTriggerFormFocus:e}=i;e()}function _(){let{nTriggerFormBlur:e}=i;e()}function v(){e.loading||s.value||(l.value===e.checkedValue?m(e.uncheckedValue):m(e.checkedValue))}function y(){f.value=!0,g()}function b(){f.value=!1,_(),d.value=!1}function x(t){e.loading||s.value||t.key===` `&&(l.value===e.checkedValue?m(e.uncheckedValue):m(e.checkedValue),d.value=!1)}function S(t){e.loading||s.value||t.key===` `&&(t.preventDefault(),d.value=!0)}let C=T(()=>{let{value:e}=a,{self:{opacityDisabled:t,railColor:n,railColorActive:i,buttonBoxShadow:o,buttonColor:s,boxShadowFocus:c,loadingColor:l,textColor:u,iconColor:d,[hr(`buttonHeight`,e)]:f,[hr(`buttonWidth`,e)]:p,[hr(`buttonWidthPressed`,e)]:m,[hr(`railHeight`,e)]:g,[hr(`railWidth`,e)]:_,[hr(`railBorderRadius`,e)]:v,[hr(`buttonBorderRadius`,e)]:y},common:{cubicBezierEaseInOut:b}}=r.value,x,S,C;return wb?(x=`calc((${g} - ${f}) / 2)`,S=`max(${g}, ${f})`,C=`max(${_}, calc(${_} + ${f} - ${g}))`):(x=Cr((Sr(g)-Sr(f))/2),S=Cr(Math.max(Sr(g),Sr(f))),C=Sr(g)>Sr(f)?_:Cr(Sr(_)+Sr(f)-Sr(g))),{"--n-bezier":b,"--n-button-border-radius":y,"--n-button-box-shadow":o,"--n-button-color":s,"--n-button-width":p,"--n-button-width-pressed":m,"--n-button-height":f,"--n-height":S,"--n-offset":x,"--n-opacity-disabled":t,"--n-rail-border-radius":v,"--n-rail-color":n,"--n-rail-color-active":i,"--n-rail-height":g,"--n-rail-width":_,"--n-width":C,"--n-box-shadow-focus":c,"--n-loading-color":l,"--n-text-color":u,"--n-icon-color":d}}),w=n?ic(`switch`,T(()=>a.value[0]),C,e):void 0;return{handleClick:v,handleBlur:b,handleFocus:y,handleKeyup:x,handleKeydown:S,mergedRailStyle:p,pressed:d,mergedClsPrefix:t,mergedValue:l,checked:u,mergedDisabled:s,cssVars:n?void 0:C,themeClass:w?.themeClass,onRender:w?.onRender}},render(){let{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:r,onRender:i,$slots:a}=this;i?.();let{checked:o,unchecked:s,icon:c,"checked-icon":l,"unchecked-icon":u}=a,d=!(ec(c)&&ec(l)&&ec(u));return Y(`div`,{role:`switch`,"aria-checked":n,class:[`${e}-switch`,this.themeClass,d&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},Y(`div`,{class:`${e}-switch__rail`,"aria-hidden":`true`,style:r},$s(o,t=>$s(s,n=>t||n?Y(`div`,{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},Y(`div`,{class:`${e}-switch__rail-placeholder`},Y(`div`,{class:`${e}-switch__button-placeholder`}),t),Y(`div`,{class:`${e}-switch__rail-placeholder`},Y(`div`,{class:`${e}-switch__button-placeholder`}),n)):null)),Y(`div`,{class:`${e}-switch__button`},$s(c,t=>$s(l,n=>$s(u,r=>Y(km,null,{default:()=>this.loading?Y(eh,{key:`loading`,clsPrefix:e,strokeWidth:20}):this.checked&&(n||t)?Y(`div`,{class:`${e}-switch__button-icon`,key:n?`checked-icon`:`icon`},n||t):!this.checked&&(r||t)?Y(`div`,{class:`${e}-switch__button-icon`,key:r?`unchecked-icon`:`icon`},r||t):null})))),$s(o,t=>t&&Y(`div`,{key:`checked`,class:`${e}-switch__checked`},t)),$s(s,t=>t&&Y(`div`,{key:`unchecked`,class:`${e}-switch__unchecked`},t)))))}}),{message:Eb}=$y([`message`]);window.$message=Eb;var Db=p({});function Ob(e,t,n,r,i,a){return S(),V(`div`)}var kb=B(Db,[[`render`,Ob]]),Ab={},jb={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Mb(e,t){return S(),V(`svg`,jb,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M16.4697 3.46967L17.5304 4.53033L3.53039 18.5303L2.46973 17.4697L16.4697 3.46967Z`,fill:`currentColor`},null,-1)]])}var Nb=B(Ab,[[`render`,Mb]]),Pb={},Fb={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Ib(e,t){return S(),V(`svg`,Fb,[...t[0]||=[c(`rect`,{x:`2`,y:`4`,width:`16`,height:`12`,rx:`1`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var Lb=B(Pb,[[`render`,Ib]]),Rb={},zb={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Bb(e,t){return S(),V(`svg`,zb,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M16 4V3H3.00079V4H16ZM16 8V7H0.000976562V8H16ZM16 11V12H6.00061V11H16Z`,fill:`currentColor`},null,-1)]])}var Vb=B(Rb,[[`render`,Bb]]),Hb={},Ub={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Wb(e,t){return S(),V(`svg`,Ub,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M16 4V3H0V4H16ZM16 12V11H0V12H16ZM13 7V8H3V7H13Z`,fill:`currentColor`},null,-1)]])}var Gb=B(Hb,[[`render`,Wb]]),Kb={},qb={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Jb(e,t){return S(),V(`svg`,qb,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13 4V3H0V4H13ZM16 8V7H0V8H16ZM10 11V12H0V11H10Z`,fill:`currentColor`},null,-1)]])}var Yb=B(Kb,[[`render`,Jb]]),Xb={},Zb={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Qb(e,t){return S(),V(`svg`,Zb,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11.0596 5.90881L11.9398 6.72441L8.24969 10.707L4.55957 6.72441L5.4398 5.90881L8.24969 8.94096L11.0596 5.90881Z`,fill:`currentColor`},null,-1)]])}var $b=B(Xb,[[`render`,Qb]]),ex={},tx={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function nx(e,t){return S(),V(`svg`,tx,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.62085 9.99988C2.62085 5.92455 5.92455 2.62085 9.99988 2.62085C14.0752 2.62085 17.3789 5.92455 17.3789 9.99988C17.3789 14.0752 14.0752 17.3789 9.99988 17.3789C5.92455 17.3789 2.62085 14.0752 2.62085 9.99988ZM9.99988 1.12085C5.09613 1.12085 1.12085 5.09613 1.12085 9.99988C1.12085 14.9036 5.09613 18.8789 9.99988 18.8789C14.9036 18.8789 18.8789 14.9036 18.8789 9.99988C18.8789 5.09613 14.9036 1.12085 9.99988 1.12085ZM10.4652 4.81199V10.1907L12.8542 12.5798L11.7936 13.6404L8.96514 10.812L8.96519 10.8119V4.81199H10.4652Z`,fill:`currentColor`},null,-1)]])}var rx=B(ex,[[`render`,nx]]),ix={},ax={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function ox(e,t){return S(),V(`svg`,ax,[...t[0]||=[c(`rect`,{x:`2.75`,y:`2.75`,width:`11.5`,height:`11.5`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M19.25 12.5C19.25 15.6756 16.6756 18.25 13.5 18.25C10.3244 18.25 7.75 15.6756 7.75 12.5C7.75 9.32436 10.3244 6.75 13.5 6.75C16.6756 6.75 19.25 9.32436 19.25 12.5Z`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var sx=B(ix,[[`render`,ox]]),cx=[`disabled`,`title`],lx={__name:`Button`,props:{title:String,isActive:Boolean,disabled:Boolean||void 0,className:String,mediaQueryClassName:String,img:String,onClick:Function},setup(e){let t=e=>{e?.stopPropagation(),e?.preventDefault()},n=e.img?.trim().startsWith(`data:`);return e.img&&!n&&(!e.img.includes(`.`)||e.img.startsWith(`<svg`)),(n,r)=>(S(),V(`button`,{class:D([`button`,{active:e.isActive,disabled:e.disabled,[e.mediaQueryClassName]:e.mediaQueryClassName,[e.className]:e.className}]),onClick:r[0]||=n=>e.disabled||!e.onClick?t():e.onClick(n),onDblclick:r[1]||=r=>e.disabled?t:n.onDoubleClick,onMouseup:r[2]||=r=>e.disabled?t:n.onDoubleClick,disabled:e.disabled,title:e.title},[be(n.$slots,`default`)],42,cx))}},ux={},dx={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function fx(e,t){return S(),V(`svg`,dx,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M16.75 2.75V6H15.25V4.25H10.75V16.25H12.3337V17.75H7.66699V16.25H9.25V4.25H4.75V6H3.25V2.75H16.75Z`,fill:`currentColor`},null,-1)]])}var px=B(ux,[[`render`,fx]]);``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href;var mx={},hx={width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function gx(e,t){return S(),V(`svg`,hx,[...t[0]||=[v(`<circle cx="12" cy="12" r="11.5333" fill="white" stroke="#DADBDE" stroke-width="0.933333"></circle><mask id="mask0_5731_11399" style="mask-type:luminance;" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><circle cx="12" cy="12" r="12" fill="white"></circle></mask><g mask="url(#mask0_5731_11399)"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.61636 22.203L2.00011 20.5868L20.5869 2L22.2032 3.61624L3.61636 22.203Z" fill="#FA1E5D"></path></g>`,3)]])}var _x=B(mx,[[`render`,gx]]),vx=r(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,_={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(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+v(r,2,`0`)+`:`+v(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},b=`en`,x={};x[b]=_;var S=`$isDayjsObject`,C=function(e){return e instanceof D||!(!e||!e[S])},w=function e(t,n,r){var i;if(!t)return b;if(typeof t==`string`){var a=t.toLowerCase();x[a]&&(i=a),n&&(x[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;x[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},T=function(e,t){if(C(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new D(n)},E=y;E.l=w,E.i=C,E.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function _(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}var v=_.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return this.$d.toString()!==p},v.isSame=function(e,t){var n=T(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return T(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<T(e)},v.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!E.u(t)||t,u=E.p(e),p=function(e,t){var i=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return E.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,_=this.$M,v=this.$D,y=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,_):p(0,_+1);case c:var b=this.$locale().weekStart||0,x=(g<b?g+7:g)-b;return p(r?v-x:v+(6-x),_);case s:case f:return m(y+`Hours`,0);case o:return m(y+`Minutes`,1);case a:return m(y+`Seconds`,2);case i:return m(y+`Milliseconds`,3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,c=E.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var g=this.clone().set(f,1);g.$d[p](m),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[E.p(e)]()},v.add=function(r,u){var f,p=this;r=Number(r);var m=E.p(u),g=function(e){var t=T(p);return E.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return g(1);if(m===c)return g(7);var _=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,v=this.$d.getTime()+r*_;return E.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=E.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return E.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(g,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return E.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return E.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return E.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return E.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return E.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return E.s(t.$s,2,`0`);case`SSS`:return E.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,p){var m,g=this,_=E.p(f),v=T(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,x=function(){return E.m(g,v)};switch(_){case d:m=x()/12;break;case l:m=x();break;case u:m=x()/3;break;case c:m=(b-y)/6048e5;break;case s:m=(b-y)/864e5;break;case o:m=b/n;break;case a:m=b/t;break;case i:m=b/e;break;default:m=b}return p?m:E.a(m)},v.daysInMonth=function(){return this.endOf(l).$D},v.$locale=function(){return x[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=w(e,t,!0);return r&&(n.$L=r),n},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()},_}(),O=D.prototype;return T.prototype=O,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),T.extend=function(e,t){return e.$i||=(e(t,D,T),!0),T},T.locale=w,T.isDayjs=C,T.unix=function(e){return T(1e3*e)},T.en=x[b],T.Ls=x,T.p={},T}))})),yx=r(((e,t)=>{t.exports={}})),bx=r((e=>{var t=t||{version:`5.5.2`};if(e===void 0?typeof define==`function`&&define.amd&&define([],function(){return t}):e.fabric=t,typeof document<`u`&&typeof window<`u`)document instanceof(typeof HTMLDocument<`u`?HTMLDocument:Document)?t.document=document:t.document=document.implementation.createHTMLDocument(``),t.window=window;else{var n=new(yx()).JSDOM(`<!DOCTYPE html><html><head></head><body></body></html>`,{features:{FetchExternalResources:[`img`]},resources:`usable`}).window;t.document=n.document,t.jsdomImplForWrapper=yx().implForWrapper,t.nodeCanvas=yx().Canvas,t.window=n,DOMParser=t.window.DOMParser}t.isTouchSupported=`ontouchstart`in t.window||`ontouchstart`in t.document||t.window&&t.window.navigator&&t.window.navigator.maxTouchPoints>0,t.isLikelyNode=typeof Buffer<`u`&&typeof window>`u`,t.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`],t.DPI=96,t.reNum=`(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)`,t.commaWsp=`(?:\\s+,?\\s*|,\\s*)`,t.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/gi,t.reNonWord=/[ \n\.,;!\?\-]/,t.fontPaths={},t.iMatrix=[1,0,0,1,0,0],t.svgNS=`http://www.w3.org/2000/svg`,t.perfLimitSizeTotal=2097152,t.maxCacheSideLimit=4096,t.minCacheSideLimit=256,t.charWidthsCache={},t.textureSize=2048,t.disableStyleCopyPaste=!1,t.enableGLFiltering=!0,t.devicePixelRatio=t.window.devicePixelRatio||t.window.webkitDevicePixelRatio||t.window.mozDevicePixelRatio||1,t.browserShadowBlurConstant=1,t.arcToSegmentsCache={},t.boundsOfCurveCache={},t.cachesBoundsOfCurve=!0,t.forceGLPutImageData=!1,t.initFilterBackend=function(){if(t.enableGLFiltering&&t.isWebglSupported&&t.isWebglSupported(t.textureSize))return console.log(`max texture size: `+t.maxTextureSize),new t.WebglFilterBackend({tileSize:t.textureSize});if(t.Canvas2dFilterBackend)return new t.Canvas2dFilterBackend},typeof document<`u`&&typeof window<`u`&&(window.fabric=t),(function(){function e(e,n){if(this.__eventListeners[e]){var r=this.__eventListeners[e];n?r[r.indexOf(n)]=!1:t.util.array.fill(r,!1)}}function n(e,t){if(this.__eventListeners||={},arguments.length===1)for(var n in e)this.on(n,e[n]);else this.__eventListeners[e]||(this.__eventListeners[e]=[]),this.__eventListeners[e].push(t);return this}function r(e,t){var n=function(){t.apply(this,arguments),this.off(e,n)}.bind(this);this.on(e,n)}function i(e,t){if(arguments.length===1)for(var n in e)r.call(this,n,e[n]);else r.call(this,e,t);return this}function a(t,n){if(!this.__eventListeners)return this;if(arguments.length===0)for(t in this.__eventListeners)e.call(this,t);else if(arguments.length===1&&typeof arguments[0]==`object`)for(var r in t)e.call(this,r,t[r]);else e.call(this,t,n);return this}function o(e,t){if(!this.__eventListeners)return this;var n=this.__eventListeners[e];if(!n)return this;for(var r=0,i=n.length;r<i;r++)n[r]&&n[r].call(this,t||{});return this.__eventListeners[e]=n.filter(function(e){return e!==!1}),this}t.Observable={fire:o,on:n,once:i,off:a}})(),t.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var e=0,t=arguments.length;e<t;e++)this._onObjectAdded(arguments[e]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(e,t,n){var r=this._objects;return n?r[t]=e:r.splice(t,0,e),this._onObjectAdded&&this._onObjectAdded(e),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var e=this._objects,t,n=!1,r=0,i=arguments.length;r<i;r++)t=e.indexOf(arguments[r]),t!==-1&&(n=!0,e.splice(t,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[r]));return this.renderOnAddRemove&&n&&this.requestRenderAll(),this},forEachObject:function(e,t){for(var n=this.getObjects(),r=0,i=n.length;r<i;r++)e.call(t,n[r],r,n);return this},getObjects:function(e){return e===void 0?this._objects.concat():this._objects.filter(function(t){return t.type===e})},item:function(e){return this._objects[e]},isEmpty:function(){return this._objects.length===0},size:function(){return this._objects.length},contains:function(e,t){return this._objects.indexOf(e)>-1?!0:t?this._objects.some(function(t){return typeof t.contains==`function`&&t.contains(e,!0)}):!1},complexity:function(){return this._objects.reduce(function(e,t){return e+=t.complexity?t.complexity():0,e},0)}},t.CommonMethods={_setOptions:function(e){for(var t in e)this.set(t,e[t])},_initGradient:function(e,n){e&&e.colorStops&&!(e instanceof t.Gradient)&&this.set(n,new t.Gradient(e))},_initPattern:function(e,n,r){e&&e.source&&!(e instanceof t.Pattern)?this.set(n,new t.Pattern(e,r)):r&&r()},_setObject:function(e){for(var t in e)this._set(t,e[t])},set:function(e,t){return typeof e==`object`?this._setObject(e):this._set(e,t),this},_set:function(e,t){this[e]=t},toggle:function(e){var t=this.get(e);return typeof t==`boolean`&&this.set(e,!t),this},get:function(e){return this[e]}},(function(e){var n=Math.sqrt,r=Math.atan2,i=Math.pow,a=Math.PI/180,o=Math.PI/2;t.util={cos:function(e){if(e===0)return 1;switch(e<0&&(e=-e),e/o){case 1:case 3:return 0;case 2:return-1}return Math.cos(e)},sin:function(e){if(e===0)return 0;var t=e/o,n=1;switch(e<0&&(n=-1),t){case 1:return n;case 2:return 0;case 3:return-n}return Math.sin(e)},removeFromArray:function(e,t){var n=e.indexOf(t);return n!==-1&&e.splice(n,1),e},getRandomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e},degreesToRadians:function(e){return e*a},radiansToDegrees:function(e){return e/a},rotatePoint:function(e,n,r){var i=new t.Point(e.x-n.x,e.y-n.y),a=t.util.rotateVector(i,r);return new t.Point(a.x,a.y).addEquals(n)},rotateVector:function(e,n){var r=t.util.sin(n),i=t.util.cos(n);return{x:e.x*i-e.y*r,y:e.x*r+e.y*i}},createVector:function(e,n){return new t.Point(n.x-e.x,n.y-e.y)},calcAngleBetweenVectors:function(e,t){return Math.acos((e.x*t.x+e.y*t.y)/(Math.hypot(e.x,e.y)*Math.hypot(t.x,t.y)))},getHatVector:function(e){return new t.Point(e.x,e.y).multiply(1/Math.hypot(e.x,e.y))},getBisector:function(e,n,r){var i=t.util.createVector(e,n),a=t.util.createVector(e,r),o=t.util.calcAngleBetweenVectors(i,a),s=o*(t.util.calcAngleBetweenVectors(t.util.rotateVector(i,o),a)===0?1:-1)/2;return{vector:t.util.getHatVector(t.util.rotateVector(i,s)),angle:o}},projectStrokeOnPoints:function(e,n,r){var i=[],a=n.strokeWidth/2,o=n.strokeUniform?new t.Point(1/n.scaleX,1/n.scaleY):new t.Point(1,1),s=function(e){var n=a/Math.hypot(e.x,e.y);return new t.Point(e.x*n*o.x,e.y*n*o.y)};return e.length<=1||e.forEach(function(c,l){var u=new t.Point(c.x,c.y),d,f;l===0?(f=e[l+1],d=r?s(t.util.createVector(f,u)).addEquals(u):e[e.length-1]):l===e.length-1?(d=e[l-1],f=r?s(t.util.createVector(d,u)).addEquals(u):e[0]):(d=e[l-1],f=e[l+1]);var p=t.util.getBisector(u,d,f),m=p.vector,g=p.angle,_,v;if(n.strokeLineJoin===`miter`&&(_=-a/Math.sin(g/2),v=new t.Point(m.x*_*o.x,m.y*_*o.y),Math.hypot(v.x,v.y)/a<=n.strokeMiterLimit)){i.push(u.add(v)),i.push(u.subtract(v));return}_=-a*Math.SQRT2,v=new t.Point(m.x*_*o.x,m.y*_*o.y),i.push(u.add(v)),i.push(u.subtract(v))}),i},transformPoint:function(e,n,r){return r?new t.Point(n[0]*e.x+n[2]*e.y,n[1]*e.x+n[3]*e.y):new t.Point(n[0]*e.x+n[2]*e.y+n[4],n[1]*e.x+n[3]*e.y+n[5])},makeBoundingBoxFromPoints:function(e,n){if(n)for(var r=0;r<e.length;r++)e[r]=t.util.transformPoint(e[r],n);var i=[e[0].x,e[1].x,e[2].x,e[3].x],a=t.util.array.min(i),o=t.util.array.max(i)-a,s=[e[0].y,e[1].y,e[2].y,e[3].y],c=t.util.array.min(s);return{left:a,top:c,width:o,height:t.util.array.max(s)-c}},invertTransform:function(e){var n=1/(e[0]*e[3]-e[1]*e[2]),r=[n*e[3],-n*e[1],-n*e[2],n*e[0]],i=t.util.transformPoint({x:e[4],y:e[5]},r,!0);return r[4]=-i.x,r[5]=-i.y,r},toFixed:function(e,t){return parseFloat(Number(e).toFixed(t))},parseUnit:function(e,n){var r=/\D{0,2}$/.exec(e),i=parseFloat(e);switch(n||=t.Text.DEFAULT_SVG_FONT_SIZE,r[0]){case`mm`:return i*t.DPI/25.4;case`cm`:return i*t.DPI/2.54;case`in`:return i*t.DPI;case`pt`:return i*t.DPI/72;case`pc`:return i*t.DPI/72*12;case`em`:return i*n;default:return i}},falseFunction:function(){return!1},getKlass:function(e,n){return e=t.util.string.camelize(e.charAt(0).toUpperCase()+e.slice(1)),t.util.resolveNamespace(n)[e]},getSvgAttributes:function(e){var t=[`instantiated_by_use`,`style`,`id`,`class`];switch(e){case`linearGradient`:t=t.concat([`x1`,`y1`,`x2`,`y2`,`gradientUnits`,`gradientTransform`]);break;case`radialGradient`:t=t.concat([`gradientUnits`,`gradientTransform`,`cx`,`cy`,`r`,`fx`,`fy`,`fr`]);break;case`stop`:t=t.concat([`offset`,`stop-color`,`stop-opacity`]);break}return t},resolveNamespace:function(n){if(!n)return t;var r=n.split(`.`),i=r.length,a,o=e||t.window;for(a=0;a<i;++a)o=o[r[a]];return o},loadImage:function(e,n,r,i){if(!e){n&&n.call(r,e);return}var a=t.util.createImage(),o=function(){n&&n.call(r,a,!1),a=a.onload=a.onerror=null};a.onload=o,a.onerror=function(){t.log(`Error loading `+a.src),n&&n.call(r,null,!0),a=a.onload=a.onerror=null},e.indexOf(`data`)!==0&&i!=null&&(a.crossOrigin=i),e.substring(0,14)===`data:image/svg`&&(a.onload=null,t.util.loadImageInDom(a,o)),a.src=e},loadImageInDom:function(e,n){var r=t.document.createElement(`div`);r.style.width=r.style.height=`1px`,r.style.left=r.style.top=`-100%`,r.style.position=`absolute`,r.appendChild(e),t.document.querySelector(`body`).appendChild(r),e.onload=function(){n(),r.parentNode.removeChild(r),r=null}},enlivenObjects:function(e,n,r,i){e||=[];var a=[],o=0,s=e.length;function c(){++o===s&&n&&n(a.filter(function(e){return e}))}if(!s){n&&n(a);return}e.forEach(function(e,n){if(!e||!e.type){c();return}t.util.getKlass(e.type,r).fromObject(e,function(t,r){r||(a[n]=t),i&&i(e,t,r),c()})})},enlivenObjectEnlivables:function(e,n,r){var i=t.Object.ENLIVEN_PROPS.filter(function(t){return!!e[t]});t.util.enlivenObjects(i.map(function(t){return e[t]}),function(e){var t={};i.forEach(function(r,i){t[r]=e[i],n&&(n[r]=e[i])}),r&&r(t)})},enlivenPatterns:function(e,n){e||=[];function r(){++a===o&&n&&n(i)}var i=[],a=0,o=e.length;if(!o){n&&n(i);return}e.forEach(function(e,n){e&&e.source?new t.Pattern(e,function(e){i[n]=e,r()}):(i[n]=e,r())})},groupSVGElements:function(e,n,r){var i;return e&&e.length===1?(r!==void 0&&(e[0].sourcePath=r),e[0]):(n&&(n.width&&n.height?n.centerPoint={x:n.width/2,y:n.height/2}:(delete n.width,delete n.height)),i=new t.Group(e,n),r!==void 0&&(i.sourcePath=r),i)},populateWithProperties:function(e,t,n){if(n&&Array.isArray(n))for(var r=0,i=n.length;r<i;r++)n[r]in e&&(t[n[r]]=e[n[r]])},createCanvasElement:function(){return t.document.createElement(`canvas`)},copyCanvasElement:function(e){var n=t.util.createCanvasElement();return n.width=e.width,n.height=e.height,n.getContext(`2d`).drawImage(e,0,0),n},toDataURL:function(e,t,n){return e.toDataURL(`image/`+t,n)},createImage:function(){return t.document.createElement(`img`)},multiplyTransformMatrices:function(e,t,n){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],n?0:e[0]*t[4]+e[2]*t[5]+e[4],n?0:e[1]*t[4]+e[3]*t[5]+e[5]]},qrDecompose:function(e){var t=r(e[1],e[0]),o=i(e[0],2)+i(e[1],2),s=n(o),c=(e[0]*e[3]-e[2]*e[1])/s,l=r(e[0]*e[2]+e[1]*e[3],o);return{angle:t/a,scaleX:s,scaleY:c,skewX:l/a,skewY:0,translateX:e[4],translateY:e[5]}},calcRotateMatrix:function(e){if(!e.angle)return t.iMatrix.concat();var n=t.util.degreesToRadians(e.angle),r=t.util.cos(n),i=t.util.sin(n);return[r,i,-i,r,0,0]},calcDimensionsMatrix:function(e){var n=e.scaleX===void 0?1:e.scaleX,r=e.scaleY===void 0?1:e.scaleY,i=[e.flipX?-n:n,0,0,e.flipY?-r:r,0,0],a=t.util.multiplyTransformMatrices,o=t.util.degreesToRadians;return e.skewX&&(i=a(i,[1,0,Math.tan(o(e.skewX)),1],!0)),e.skewY&&(i=a(i,[1,Math.tan(o(e.skewY)),0,1],!0)),i},composeMatrix:function(e){var n=[1,0,0,1,e.translateX||0,e.translateY||0],r=t.util.multiplyTransformMatrices;return e.angle&&(n=r(n,t.util.calcRotateMatrix(e))),(e.scaleX!==1||e.scaleY!==1||e.skewX||e.skewY||e.flipX||e.flipY)&&(n=r(n,t.util.calcDimensionsMatrix(e))),n},resetObjectTransform:function(e){e.scaleX=1,e.scaleY=1,e.skewX=0,e.skewY=0,e.flipX=!1,e.flipY=!1,e.rotate(0)},saveObjectTransform:function(e){return{scaleX:e.scaleX,scaleY:e.scaleY,skewX:e.skewX,skewY:e.skewY,angle:e.angle,left:e.left,flipX:e.flipX,flipY:e.flipY,top:e.top}},isTransparent:function(e,t,n,r){r>0&&(t>r?t-=r:t=0,n>r?n-=r:n=0);var i=!0,a,o,s=e.getImageData(t,n,r*2||1,r*2||1),c=s.data.length;for(a=3;a<c&&(o=s.data[a],i=o<=0,i!==!1);a+=4);return s=null,i},parsePreserveAspectRatioAttribute:function(e){var t=`meet`,n=`Mid`,r=`Mid`,i=e.split(` `),a;return i&&i.length&&(t=i.pop(),t!==`meet`&&t!==`slice`?(a=t,t=`meet`):i.length&&(a=i.pop())),n=a===`none`?`none`:a.slice(1,4),r=a===`none`?`none`:a.slice(5,8),{meetOrSlice:t,alignX:n,alignY:r}},clearFabricFontCache:function(e){e=(e||``).toLowerCase(),e?t.charWidthsCache[e]&&delete t.charWidthsCache[e]:t.charWidthsCache={}},limitDimsByArea:function(e,t){var n=Math.sqrt(t*e),r=Math.floor(t/n);return{x:Math.floor(n),y:r}},capValue:function(e,t,n){return Math.max(e,Math.min(t,n))},findScaleToFit:function(e,t){return Math.min(t.width/e.width,t.height/e.height)},findScaleToCover:function(e,t){return Math.max(t.width/e.width,t.height/e.height)},matrixToSVG:function(e){return`matrix(`+e.map(function(e){return t.util.toFixed(e,t.Object.NUM_FRACTION_DIGITS)}).join(` `)+`)`},removeTransformFromObject:function(e,n){var r=t.util.invertTransform(n),i=t.util.multiplyTransformMatrices(r,e.calcOwnMatrix());t.util.applyTransformToObject(e,i)},addTransformToObject:function(e,n){t.util.applyTransformToObject(e,t.util.multiplyTransformMatrices(n,e.calcOwnMatrix()))},applyTransformToObject:function(e,n){var r=t.util.qrDecompose(n),i=new t.Point(r.translateX,r.translateY);e.flipX=!1,e.flipY=!1,e.set(`scaleX`,r.scaleX),e.set(`scaleY`,r.scaleY),e.skewX=r.skewX,e.skewY=r.skewY,e.angle=r.angle,e.setPositionByOrigin(i,`center`,`center`)},sizeAfterTransform:function(e,n,r){var i=e/2,a=n/2,o=[{x:-i,y:-a},{x:i,y:-a},{x:-i,y:a},{x:i,y:a}],s=t.util.calcDimensionsMatrix(r),c=t.util.makeBoundingBoxFromPoints(o,s);return{x:c.width,y:c.height}},mergeClipPaths:function(e,n){var r=e,i=n;r.inverted&&!i.inverted&&(r=n,i=e),t.util.applyTransformToObject(i,t.util.multiplyTransformMatrices(t.util.invertTransform(r.calcTransformMatrix()),i.calcTransformMatrix()));var a=r.inverted&&i.inverted;return a&&(r.inverted=i.inverted=!1),new t.Group([r],{clipPath:i,inverted:a})},hasStyleChanged:function(e,t,n){return n||=!1,e.fill!==t.fill||e.stroke!==t.stroke||e.strokeWidth!==t.strokeWidth||e.fontSize!==t.fontSize||e.fontFamily!==t.fontFamily||e.fontWeight!==t.fontWeight||e.fontStyle!==t.fontStyle||e.textBackgroundColor!==t.textBackgroundColor||e.deltaY!==t.deltaY||n&&(e.overline!==t.overline||e.underline!==t.underline||e.linethrough!==t.linethrough)},stylesToArray:function(e,n){for(var e=t.util.object.clone(e,!0),r=n.split(`
2065
+ `)])]),Cb=Object.assign(Object.assign({},Em.props),{size:{type:String,default:`medium`},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]}),wb,Tb=p({name:`Switch`,props:Cb,slots:Object,setup(e){wb===void 0&&(wb=typeof CSS<`u`?CSS.supports===void 0?!1:CSS.supports(`width`,`max(1px)`):!0);let{mergedClsPrefixRef:t,inlineThemeDisabled:n}=rc(e),r=Em(`Switch`,`-switch`,Sb,sb,e,t),i=oc(e),{mergedSizeRef:a,mergedDisabledRef:s}=i,c=J(e.defaultValue),l=Wi(o(e,`value`),c),u=T(()=>l.value===e.checkedValue),d=J(!1),f=J(!1),p=T(()=>{let{railStyle:t}=e;if(t)return t({focused:f.value,checked:u.value})});function m(t){let{"onUpdate:value":n,onChange:r,onUpdateValue:a}=e,{nTriggerFormInput:o,nTriggerFormChange:s}=i;n&&Bs(n,t),a&&Bs(a,t),r&&Bs(r,t),c.value=t,o(),s()}function g(){let{nTriggerFormFocus:e}=i;e()}function _(){let{nTriggerFormBlur:e}=i;e()}function v(){e.loading||s.value||(l.value===e.checkedValue?m(e.uncheckedValue):m(e.checkedValue))}function y(){f.value=!0,g()}function b(){f.value=!1,_(),d.value=!1}function x(t){e.loading||s.value||t.key===` `&&(l.value===e.checkedValue?m(e.uncheckedValue):m(e.checkedValue),d.value=!1)}function S(t){e.loading||s.value||t.key===` `&&(t.preventDefault(),d.value=!0)}let C=T(()=>{let{value:e}=a,{self:{opacityDisabled:t,railColor:n,railColorActive:i,buttonBoxShadow:o,buttonColor:s,boxShadowFocus:c,loadingColor:l,textColor:u,iconColor:d,[hr(`buttonHeight`,e)]:f,[hr(`buttonWidth`,e)]:p,[hr(`buttonWidthPressed`,e)]:m,[hr(`railHeight`,e)]:g,[hr(`railWidth`,e)]:_,[hr(`railBorderRadius`,e)]:v,[hr(`buttonBorderRadius`,e)]:y},common:{cubicBezierEaseInOut:b}}=r.value,x,S,C;return wb?(x=`calc((${g} - ${f}) / 2)`,S=`max(${g}, ${f})`,C=`max(${_}, calc(${_} + ${f} - ${g}))`):(x=Cr((Sr(g)-Sr(f))/2),S=Cr(Math.max(Sr(g),Sr(f))),C=Sr(g)>Sr(f)?_:Cr(Sr(_)+Sr(f)-Sr(g))),{"--n-bezier":b,"--n-button-border-radius":y,"--n-button-box-shadow":o,"--n-button-color":s,"--n-button-width":p,"--n-button-width-pressed":m,"--n-button-height":f,"--n-height":S,"--n-offset":x,"--n-opacity-disabled":t,"--n-rail-border-radius":v,"--n-rail-color":n,"--n-rail-color-active":i,"--n-rail-height":g,"--n-rail-width":_,"--n-width":C,"--n-box-shadow-focus":c,"--n-loading-color":l,"--n-text-color":u,"--n-icon-color":d}}),w=n?ic(`switch`,T(()=>a.value[0]),C,e):void 0;return{handleClick:v,handleBlur:b,handleFocus:y,handleKeyup:x,handleKeydown:S,mergedRailStyle:p,pressed:d,mergedClsPrefix:t,mergedValue:l,checked:u,mergedDisabled:s,cssVars:n?void 0:C,themeClass:w?.themeClass,onRender:w?.onRender}},render(){let{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:r,onRender:i,$slots:a}=this;i?.();let{checked:o,unchecked:s,icon:c,"checked-icon":l,"unchecked-icon":u}=a,d=!(ec(c)&&ec(l)&&ec(u));return Y(`div`,{role:`switch`,"aria-checked":n,class:[`${e}-switch`,this.themeClass,d&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},Y(`div`,{class:`${e}-switch__rail`,"aria-hidden":`true`,style:r},$s(o,t=>$s(s,n=>t||n?Y(`div`,{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},Y(`div`,{class:`${e}-switch__rail-placeholder`},Y(`div`,{class:`${e}-switch__button-placeholder`}),t),Y(`div`,{class:`${e}-switch__rail-placeholder`},Y(`div`,{class:`${e}-switch__button-placeholder`}),n)):null)),Y(`div`,{class:`${e}-switch__button`},$s(c,t=>$s(l,n=>$s(u,r=>Y(km,null,{default:()=>this.loading?Y(eh,{key:`loading`,clsPrefix:e,strokeWidth:20}):this.checked&&(n||t)?Y(`div`,{class:`${e}-switch__button-icon`,key:n?`checked-icon`:`icon`},n||t):!this.checked&&(r||t)?Y(`div`,{class:`${e}-switch__button-icon`,key:r?`unchecked-icon`:`icon`},r||t):null})))),$s(o,t=>t&&Y(`div`,{key:`checked`,class:`${e}-switch__checked`},t)),$s(s,t=>t&&Y(`div`,{key:`unchecked`,class:`${e}-switch__unchecked`},t)))))}}),{message:Eb}=$y([`message`]);window.$message=Eb;var Db=p({});function Ob(e,t,n,r,i,a){return S(),V(`div`)}var kb=B(Db,[[`render`,Ob]]),Ab={},jb={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Mb(e,t){return S(),V(`svg`,jb,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M16.4697 3.46967L17.5304 4.53033L3.53039 18.5303L2.46973 17.4697L16.4697 3.46967Z`,fill:`currentColor`},null,-1)]])}var Nb=B(Ab,[[`render`,Mb]]),Pb={},Fb={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Ib(e,t){return S(),V(`svg`,Fb,[...t[0]||=[c(`rect`,{x:`2`,y:`4`,width:`16`,height:`12`,rx:`1`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var Lb=B(Pb,[[`render`,Ib]]),Rb={},zb={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Bb(e,t){return S(),V(`svg`,zb,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M16 4V3H3.00079V4H16ZM16 8V7H0.000976562V8H16ZM16 11V12H6.00061V11H16Z`,fill:`currentColor`},null,-1)]])}var Vb=B(Rb,[[`render`,Bb]]),Hb={},Ub={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Wb(e,t){return S(),V(`svg`,Ub,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M16 4V3H0V4H16ZM16 12V11H0V12H16ZM13 7V8H3V7H13Z`,fill:`currentColor`},null,-1)]])}var Gb=B(Hb,[[`render`,Wb]]),Kb={},qb={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Jb(e,t){return S(),V(`svg`,qb,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13 4V3H0V4H13ZM16 8V7H0V8H16ZM10 11V12H0V11H10Z`,fill:`currentColor`},null,-1)]])}var Yb=B(Kb,[[`render`,Jb]]),Xb={},Zb={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Qb(e,t){return S(),V(`svg`,Zb,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11.0596 5.90881L11.9398 6.72441L8.24969 10.707L4.55957 6.72441L5.4398 5.90881L8.24969 8.94096L11.0596 5.90881Z`,fill:`currentColor`},null,-1)]])}var $b=B(Xb,[[`render`,Qb]]),ex={},tx={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function nx(e,t){return S(),V(`svg`,tx,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.62085 9.99988C2.62085 5.92455 5.92455 2.62085 9.99988 2.62085C14.0752 2.62085 17.3789 5.92455 17.3789 9.99988C17.3789 14.0752 14.0752 17.3789 9.99988 17.3789C5.92455 17.3789 2.62085 14.0752 2.62085 9.99988ZM9.99988 1.12085C5.09613 1.12085 1.12085 5.09613 1.12085 9.99988C1.12085 14.9036 5.09613 18.8789 9.99988 18.8789C14.9036 18.8789 18.8789 14.9036 18.8789 9.99988C18.8789 5.09613 14.9036 1.12085 9.99988 1.12085ZM10.4652 4.81199V10.1907L12.8542 12.5798L11.7936 13.6404L8.96514 10.812L8.96519 10.8119V4.81199H10.4652Z`,fill:`currentColor`},null,-1)]])}var rx=B(ex,[[`render`,nx]]),ix={},ax={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function ox(e,t){return S(),V(`svg`,ax,[...t[0]||=[c(`rect`,{x:`2.75`,y:`2.75`,width:`11.5`,height:`11.5`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M19.25 12.5C19.25 15.6756 16.6756 18.25 13.5 18.25C10.3244 18.25 7.75 15.6756 7.75 12.5C7.75 9.32436 10.3244 6.75 13.5 6.75C16.6756 6.75 19.25 9.32436 19.25 12.5Z`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var sx=B(ix,[[`render`,ox]]),cx=[`disabled`,`title`],lx={__name:`Button`,props:{title:String,isActive:Boolean,disabled:Boolean||void 0,className:String,mediaQueryClassName:String,img:String,onClick:Function},setup(e){let t=e=>{e?.stopPropagation(),e?.preventDefault()},n=e.img?.trim().startsWith(`data:`);return e.img&&!n&&(!e.img.includes(`.`)||e.img.startsWith(`<svg`)),(n,r)=>(S(),V(`button`,{class:D([`button`,{active:e.isActive,disabled:e.disabled,[e.mediaQueryClassName]:e.mediaQueryClassName,[e.className]:e.className}]),onClick:r[0]||=n=>e.disabled||!e.onClick?t():e.onClick(n),onDblclick:r[1]||=r=>e.disabled?t:n.onDoubleClick,onMouseup:r[2]||=r=>e.disabled?t:n.onDoubleClick,disabled:e.disabled,title:e.title},[be(n.$slots,`default`)],42,cx))}},ux={},dx={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function fx(e,t){return S(),V(`svg`,dx,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M16.75 2.75V6H15.25V4.25H10.75V16.25H12.3337V17.75H7.66699V16.25H9.25V4.25H4.75V6H3.25V2.75H16.75Z`,fill:`currentColor`},null,-1)]])}var px=B(ux,[[`render`,fx]]),mx=``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,hx={},gx={width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function _x(e,t){return S(),V(`svg`,gx,[...t[0]||=[v(`<circle cx="12" cy="12" r="11.5333" fill="white" stroke="#DADBDE" stroke-width="0.933333"></circle><mask id="mask0_5731_11399" style="mask-type:luminance;" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><circle cx="12" cy="12" r="12" fill="white"></circle></mask><g mask="url(#mask0_5731_11399)"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.61636 22.203L2.00011 20.5868L20.5869 2L22.2032 3.61624L3.61636 22.203Z" fill="#FA1E5D"></path></g>`,3)]])}var vx=B(hx,[[`render`,_x]]),yx=r(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,_={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(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+v(r,2,`0`)+`:`+v(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},b=`en`,x={};x[b]=_;var S=`$isDayjsObject`,C=function(e){return e instanceof D||!(!e||!e[S])},w=function e(t,n,r){var i;if(!t)return b;if(typeof t==`string`){var a=t.toLowerCase();x[a]&&(i=a),n&&(x[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;x[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},T=function(e,t){if(C(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new D(n)},E=y;E.l=w,E.i=C,E.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function _(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}var v=_.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return this.$d.toString()!==p},v.isSame=function(e,t){var n=T(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return T(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<T(e)},v.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!E.u(t)||t,u=E.p(e),p=function(e,t){var i=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return E.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,_=this.$M,v=this.$D,y=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,_):p(0,_+1);case c:var b=this.$locale().weekStart||0,x=(g<b?g+7:g)-b;return p(r?v-x:v+(6-x),_);case s:case f:return m(y+`Hours`,0);case o:return m(y+`Minutes`,1);case a:return m(y+`Seconds`,2);case i:return m(y+`Milliseconds`,3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,c=E.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var g=this.clone().set(f,1);g.$d[p](m),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[E.p(e)]()},v.add=function(r,u){var f,p=this;r=Number(r);var m=E.p(u),g=function(e){var t=T(p);return E.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return g(1);if(m===c)return g(7);var _=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,v=this.$d.getTime()+r*_;return E.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=E.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return E.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(g,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return E.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return E.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return E.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return E.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return E.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return E.s(t.$s,2,`0`);case`SSS`:return E.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,p){var m,g=this,_=E.p(f),v=T(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,x=function(){return E.m(g,v)};switch(_){case d:m=x()/12;break;case l:m=x();break;case u:m=x()/3;break;case c:m=(b-y)/6048e5;break;case s:m=(b-y)/864e5;break;case o:m=b/n;break;case a:m=b/t;break;case i:m=b/e;break;default:m=b}return p?m:E.a(m)},v.daysInMonth=function(){return this.endOf(l).$D},v.$locale=function(){return x[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=w(e,t,!0);return r&&(n.$L=r),n},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()},_}(),O=D.prototype;return T.prototype=O,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),T.extend=function(e,t){return e.$i||=(e(t,D,T),!0),T},T.locale=w,T.isDayjs=C,T.unix=function(e){return T(1e3*e)},T.en=x[b],T.Ls=x,T.p={},T}))})),bx=r(((e,t)=>{t.exports={}})),xx=r((e=>{var t=t||{version:`5.5.2`};if(e===void 0?typeof define==`function`&&define.amd&&define([],function(){return t}):e.fabric=t,typeof document<`u`&&typeof window<`u`)document instanceof(typeof HTMLDocument<`u`?HTMLDocument:Document)?t.document=document:t.document=document.implementation.createHTMLDocument(``),t.window=window;else{var n=new(bx()).JSDOM(`<!DOCTYPE html><html><head></head><body></body></html>`,{features:{FetchExternalResources:[`img`]},resources:`usable`}).window;t.document=n.document,t.jsdomImplForWrapper=bx().implForWrapper,t.nodeCanvas=bx().Canvas,t.window=n,DOMParser=t.window.DOMParser}t.isTouchSupported=`ontouchstart`in t.window||`ontouchstart`in t.document||t.window&&t.window.navigator&&t.window.navigator.maxTouchPoints>0,t.isLikelyNode=typeof Buffer<`u`&&typeof window>`u`,t.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`],t.DPI=96,t.reNum=`(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)`,t.commaWsp=`(?:\\s+,?\\s*|,\\s*)`,t.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/gi,t.reNonWord=/[ \n\.,;!\?\-]/,t.fontPaths={},t.iMatrix=[1,0,0,1,0,0],t.svgNS=`http://www.w3.org/2000/svg`,t.perfLimitSizeTotal=2097152,t.maxCacheSideLimit=4096,t.minCacheSideLimit=256,t.charWidthsCache={},t.textureSize=2048,t.disableStyleCopyPaste=!1,t.enableGLFiltering=!0,t.devicePixelRatio=t.window.devicePixelRatio||t.window.webkitDevicePixelRatio||t.window.mozDevicePixelRatio||1,t.browserShadowBlurConstant=1,t.arcToSegmentsCache={},t.boundsOfCurveCache={},t.cachesBoundsOfCurve=!0,t.forceGLPutImageData=!1,t.initFilterBackend=function(){if(t.enableGLFiltering&&t.isWebglSupported&&t.isWebglSupported(t.textureSize))return console.log(`max texture size: `+t.maxTextureSize),new t.WebglFilterBackend({tileSize:t.textureSize});if(t.Canvas2dFilterBackend)return new t.Canvas2dFilterBackend},typeof document<`u`&&typeof window<`u`&&(window.fabric=t),(function(){function e(e,n){if(this.__eventListeners[e]){var r=this.__eventListeners[e];n?r[r.indexOf(n)]=!1:t.util.array.fill(r,!1)}}function n(e,t){if(this.__eventListeners||={},arguments.length===1)for(var n in e)this.on(n,e[n]);else this.__eventListeners[e]||(this.__eventListeners[e]=[]),this.__eventListeners[e].push(t);return this}function r(e,t){var n=function(){t.apply(this,arguments),this.off(e,n)}.bind(this);this.on(e,n)}function i(e,t){if(arguments.length===1)for(var n in e)r.call(this,n,e[n]);else r.call(this,e,t);return this}function a(t,n){if(!this.__eventListeners)return this;if(arguments.length===0)for(t in this.__eventListeners)e.call(this,t);else if(arguments.length===1&&typeof arguments[0]==`object`)for(var r in t)e.call(this,r,t[r]);else e.call(this,t,n);return this}function o(e,t){if(!this.__eventListeners)return this;var n=this.__eventListeners[e];if(!n)return this;for(var r=0,i=n.length;r<i;r++)n[r]&&n[r].call(this,t||{});return this.__eventListeners[e]=n.filter(function(e){return e!==!1}),this}t.Observable={fire:o,on:n,once:i,off:a}})(),t.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var e=0,t=arguments.length;e<t;e++)this._onObjectAdded(arguments[e]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(e,t,n){var r=this._objects;return n?r[t]=e:r.splice(t,0,e),this._onObjectAdded&&this._onObjectAdded(e),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var e=this._objects,t,n=!1,r=0,i=arguments.length;r<i;r++)t=e.indexOf(arguments[r]),t!==-1&&(n=!0,e.splice(t,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[r]));return this.renderOnAddRemove&&n&&this.requestRenderAll(),this},forEachObject:function(e,t){for(var n=this.getObjects(),r=0,i=n.length;r<i;r++)e.call(t,n[r],r,n);return this},getObjects:function(e){return e===void 0?this._objects.concat():this._objects.filter(function(t){return t.type===e})},item:function(e){return this._objects[e]},isEmpty:function(){return this._objects.length===0},size:function(){return this._objects.length},contains:function(e,t){return this._objects.indexOf(e)>-1?!0:t?this._objects.some(function(t){return typeof t.contains==`function`&&t.contains(e,!0)}):!1},complexity:function(){return this._objects.reduce(function(e,t){return e+=t.complexity?t.complexity():0,e},0)}},t.CommonMethods={_setOptions:function(e){for(var t in e)this.set(t,e[t])},_initGradient:function(e,n){e&&e.colorStops&&!(e instanceof t.Gradient)&&this.set(n,new t.Gradient(e))},_initPattern:function(e,n,r){e&&e.source&&!(e instanceof t.Pattern)?this.set(n,new t.Pattern(e,r)):r&&r()},_setObject:function(e){for(var t in e)this._set(t,e[t])},set:function(e,t){return typeof e==`object`?this._setObject(e):this._set(e,t),this},_set:function(e,t){this[e]=t},toggle:function(e){var t=this.get(e);return typeof t==`boolean`&&this.set(e,!t),this},get:function(e){return this[e]}},(function(e){var n=Math.sqrt,r=Math.atan2,i=Math.pow,a=Math.PI/180,o=Math.PI/2;t.util={cos:function(e){if(e===0)return 1;switch(e<0&&(e=-e),e/o){case 1:case 3:return 0;case 2:return-1}return Math.cos(e)},sin:function(e){if(e===0)return 0;var t=e/o,n=1;switch(e<0&&(n=-1),t){case 1:return n;case 2:return 0;case 3:return-n}return Math.sin(e)},removeFromArray:function(e,t){var n=e.indexOf(t);return n!==-1&&e.splice(n,1),e},getRandomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e},degreesToRadians:function(e){return e*a},radiansToDegrees:function(e){return e/a},rotatePoint:function(e,n,r){var i=new t.Point(e.x-n.x,e.y-n.y),a=t.util.rotateVector(i,r);return new t.Point(a.x,a.y).addEquals(n)},rotateVector:function(e,n){var r=t.util.sin(n),i=t.util.cos(n);return{x:e.x*i-e.y*r,y:e.x*r+e.y*i}},createVector:function(e,n){return new t.Point(n.x-e.x,n.y-e.y)},calcAngleBetweenVectors:function(e,t){return Math.acos((e.x*t.x+e.y*t.y)/(Math.hypot(e.x,e.y)*Math.hypot(t.x,t.y)))},getHatVector:function(e){return new t.Point(e.x,e.y).multiply(1/Math.hypot(e.x,e.y))},getBisector:function(e,n,r){var i=t.util.createVector(e,n),a=t.util.createVector(e,r),o=t.util.calcAngleBetweenVectors(i,a),s=o*(t.util.calcAngleBetweenVectors(t.util.rotateVector(i,o),a)===0?1:-1)/2;return{vector:t.util.getHatVector(t.util.rotateVector(i,s)),angle:o}},projectStrokeOnPoints:function(e,n,r){var i=[],a=n.strokeWidth/2,o=n.strokeUniform?new t.Point(1/n.scaleX,1/n.scaleY):new t.Point(1,1),s=function(e){var n=a/Math.hypot(e.x,e.y);return new t.Point(e.x*n*o.x,e.y*n*o.y)};return e.length<=1||e.forEach(function(c,l){var u=new t.Point(c.x,c.y),d,f;l===0?(f=e[l+1],d=r?s(t.util.createVector(f,u)).addEquals(u):e[e.length-1]):l===e.length-1?(d=e[l-1],f=r?s(t.util.createVector(d,u)).addEquals(u):e[0]):(d=e[l-1],f=e[l+1]);var p=t.util.getBisector(u,d,f),m=p.vector,g=p.angle,_,v;if(n.strokeLineJoin===`miter`&&(_=-a/Math.sin(g/2),v=new t.Point(m.x*_*o.x,m.y*_*o.y),Math.hypot(v.x,v.y)/a<=n.strokeMiterLimit)){i.push(u.add(v)),i.push(u.subtract(v));return}_=-a*Math.SQRT2,v=new t.Point(m.x*_*o.x,m.y*_*o.y),i.push(u.add(v)),i.push(u.subtract(v))}),i},transformPoint:function(e,n,r){return r?new t.Point(n[0]*e.x+n[2]*e.y,n[1]*e.x+n[3]*e.y):new t.Point(n[0]*e.x+n[2]*e.y+n[4],n[1]*e.x+n[3]*e.y+n[5])},makeBoundingBoxFromPoints:function(e,n){if(n)for(var r=0;r<e.length;r++)e[r]=t.util.transformPoint(e[r],n);var i=[e[0].x,e[1].x,e[2].x,e[3].x],a=t.util.array.min(i),o=t.util.array.max(i)-a,s=[e[0].y,e[1].y,e[2].y,e[3].y],c=t.util.array.min(s);return{left:a,top:c,width:o,height:t.util.array.max(s)-c}},invertTransform:function(e){var n=1/(e[0]*e[3]-e[1]*e[2]),r=[n*e[3],-n*e[1],-n*e[2],n*e[0]],i=t.util.transformPoint({x:e[4],y:e[5]},r,!0);return r[4]=-i.x,r[5]=-i.y,r},toFixed:function(e,t){return parseFloat(Number(e).toFixed(t))},parseUnit:function(e,n){var r=/\D{0,2}$/.exec(e),i=parseFloat(e);switch(n||=t.Text.DEFAULT_SVG_FONT_SIZE,r[0]){case`mm`:return i*t.DPI/25.4;case`cm`:return i*t.DPI/2.54;case`in`:return i*t.DPI;case`pt`:return i*t.DPI/72;case`pc`:return i*t.DPI/72*12;case`em`:return i*n;default:return i}},falseFunction:function(){return!1},getKlass:function(e,n){return e=t.util.string.camelize(e.charAt(0).toUpperCase()+e.slice(1)),t.util.resolveNamespace(n)[e]},getSvgAttributes:function(e){var t=[`instantiated_by_use`,`style`,`id`,`class`];switch(e){case`linearGradient`:t=t.concat([`x1`,`y1`,`x2`,`y2`,`gradientUnits`,`gradientTransform`]);break;case`radialGradient`:t=t.concat([`gradientUnits`,`gradientTransform`,`cx`,`cy`,`r`,`fx`,`fy`,`fr`]);break;case`stop`:t=t.concat([`offset`,`stop-color`,`stop-opacity`]);break}return t},resolveNamespace:function(n){if(!n)return t;var r=n.split(`.`),i=r.length,a,o=e||t.window;for(a=0;a<i;++a)o=o[r[a]];return o},loadImage:function(e,n,r,i){if(!e){n&&n.call(r,e);return}var a=t.util.createImage(),o=function(){n&&n.call(r,a,!1),a=a.onload=a.onerror=null};a.onload=o,a.onerror=function(){t.log(`Error loading `+a.src),n&&n.call(r,null,!0),a=a.onload=a.onerror=null},e.indexOf(`data`)!==0&&i!=null&&(a.crossOrigin=i),e.substring(0,14)===`data:image/svg`&&(a.onload=null,t.util.loadImageInDom(a,o)),a.src=e},loadImageInDom:function(e,n){var r=t.document.createElement(`div`);r.style.width=r.style.height=`1px`,r.style.left=r.style.top=`-100%`,r.style.position=`absolute`,r.appendChild(e),t.document.querySelector(`body`).appendChild(r),e.onload=function(){n(),r.parentNode.removeChild(r),r=null}},enlivenObjects:function(e,n,r,i){e||=[];var a=[],o=0,s=e.length;function c(){++o===s&&n&&n(a.filter(function(e){return e}))}if(!s){n&&n(a);return}e.forEach(function(e,n){if(!e||!e.type){c();return}t.util.getKlass(e.type,r).fromObject(e,function(t,r){r||(a[n]=t),i&&i(e,t,r),c()})})},enlivenObjectEnlivables:function(e,n,r){var i=t.Object.ENLIVEN_PROPS.filter(function(t){return!!e[t]});t.util.enlivenObjects(i.map(function(t){return e[t]}),function(e){var t={};i.forEach(function(r,i){t[r]=e[i],n&&(n[r]=e[i])}),r&&r(t)})},enlivenPatterns:function(e,n){e||=[];function r(){++a===o&&n&&n(i)}var i=[],a=0,o=e.length;if(!o){n&&n(i);return}e.forEach(function(e,n){e&&e.source?new t.Pattern(e,function(e){i[n]=e,r()}):(i[n]=e,r())})},groupSVGElements:function(e,n,r){var i;return e&&e.length===1?(r!==void 0&&(e[0].sourcePath=r),e[0]):(n&&(n.width&&n.height?n.centerPoint={x:n.width/2,y:n.height/2}:(delete n.width,delete n.height)),i=new t.Group(e,n),r!==void 0&&(i.sourcePath=r),i)},populateWithProperties:function(e,t,n){if(n&&Array.isArray(n))for(var r=0,i=n.length;r<i;r++)n[r]in e&&(t[n[r]]=e[n[r]])},createCanvasElement:function(){return t.document.createElement(`canvas`)},copyCanvasElement:function(e){var n=t.util.createCanvasElement();return n.width=e.width,n.height=e.height,n.getContext(`2d`).drawImage(e,0,0),n},toDataURL:function(e,t,n){return e.toDataURL(`image/`+t,n)},createImage:function(){return t.document.createElement(`img`)},multiplyTransformMatrices:function(e,t,n){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],n?0:e[0]*t[4]+e[2]*t[5]+e[4],n?0:e[1]*t[4]+e[3]*t[5]+e[5]]},qrDecompose:function(e){var t=r(e[1],e[0]),o=i(e[0],2)+i(e[1],2),s=n(o),c=(e[0]*e[3]-e[2]*e[1])/s,l=r(e[0]*e[2]+e[1]*e[3],o);return{angle:t/a,scaleX:s,scaleY:c,skewX:l/a,skewY:0,translateX:e[4],translateY:e[5]}},calcRotateMatrix:function(e){if(!e.angle)return t.iMatrix.concat();var n=t.util.degreesToRadians(e.angle),r=t.util.cos(n),i=t.util.sin(n);return[r,i,-i,r,0,0]},calcDimensionsMatrix:function(e){var n=e.scaleX===void 0?1:e.scaleX,r=e.scaleY===void 0?1:e.scaleY,i=[e.flipX?-n:n,0,0,e.flipY?-r:r,0,0],a=t.util.multiplyTransformMatrices,o=t.util.degreesToRadians;return e.skewX&&(i=a(i,[1,0,Math.tan(o(e.skewX)),1],!0)),e.skewY&&(i=a(i,[1,Math.tan(o(e.skewY)),0,1],!0)),i},composeMatrix:function(e){var n=[1,0,0,1,e.translateX||0,e.translateY||0],r=t.util.multiplyTransformMatrices;return e.angle&&(n=r(n,t.util.calcRotateMatrix(e))),(e.scaleX!==1||e.scaleY!==1||e.skewX||e.skewY||e.flipX||e.flipY)&&(n=r(n,t.util.calcDimensionsMatrix(e))),n},resetObjectTransform:function(e){e.scaleX=1,e.scaleY=1,e.skewX=0,e.skewY=0,e.flipX=!1,e.flipY=!1,e.rotate(0)},saveObjectTransform:function(e){return{scaleX:e.scaleX,scaleY:e.scaleY,skewX:e.skewX,skewY:e.skewY,angle:e.angle,left:e.left,flipX:e.flipX,flipY:e.flipY,top:e.top}},isTransparent:function(e,t,n,r){r>0&&(t>r?t-=r:t=0,n>r?n-=r:n=0);var i=!0,a,o,s=e.getImageData(t,n,r*2||1,r*2||1),c=s.data.length;for(a=3;a<c&&(o=s.data[a],i=o<=0,i!==!1);a+=4);return s=null,i},parsePreserveAspectRatioAttribute:function(e){var t=`meet`,n=`Mid`,r=`Mid`,i=e.split(` `),a;return i&&i.length&&(t=i.pop(),t!==`meet`&&t!==`slice`?(a=t,t=`meet`):i.length&&(a=i.pop())),n=a===`none`?`none`:a.slice(1,4),r=a===`none`?`none`:a.slice(5,8),{meetOrSlice:t,alignX:n,alignY:r}},clearFabricFontCache:function(e){e=(e||``).toLowerCase(),e?t.charWidthsCache[e]&&delete t.charWidthsCache[e]:t.charWidthsCache={}},limitDimsByArea:function(e,t){var n=Math.sqrt(t*e),r=Math.floor(t/n);return{x:Math.floor(n),y:r}},capValue:function(e,t,n){return Math.max(e,Math.min(t,n))},findScaleToFit:function(e,t){return Math.min(t.width/e.width,t.height/e.height)},findScaleToCover:function(e,t){return Math.max(t.width/e.width,t.height/e.height)},matrixToSVG:function(e){return`matrix(`+e.map(function(e){return t.util.toFixed(e,t.Object.NUM_FRACTION_DIGITS)}).join(` `)+`)`},removeTransformFromObject:function(e,n){var r=t.util.invertTransform(n),i=t.util.multiplyTransformMatrices(r,e.calcOwnMatrix());t.util.applyTransformToObject(e,i)},addTransformToObject:function(e,n){t.util.applyTransformToObject(e,t.util.multiplyTransformMatrices(n,e.calcOwnMatrix()))},applyTransformToObject:function(e,n){var r=t.util.qrDecompose(n),i=new t.Point(r.translateX,r.translateY);e.flipX=!1,e.flipY=!1,e.set(`scaleX`,r.scaleX),e.set(`scaleY`,r.scaleY),e.skewX=r.skewX,e.skewY=r.skewY,e.angle=r.angle,e.setPositionByOrigin(i,`center`,`center`)},sizeAfterTransform:function(e,n,r){var i=e/2,a=n/2,o=[{x:-i,y:-a},{x:i,y:-a},{x:-i,y:a},{x:i,y:a}],s=t.util.calcDimensionsMatrix(r),c=t.util.makeBoundingBoxFromPoints(o,s);return{x:c.width,y:c.height}},mergeClipPaths:function(e,n){var r=e,i=n;r.inverted&&!i.inverted&&(r=n,i=e),t.util.applyTransformToObject(i,t.util.multiplyTransformMatrices(t.util.invertTransform(r.calcTransformMatrix()),i.calcTransformMatrix()));var a=r.inverted&&i.inverted;return a&&(r.inverted=i.inverted=!1),new t.Group([r],{clipPath:i,inverted:a})},hasStyleChanged:function(e,t,n){return n||=!1,e.fill!==t.fill||e.stroke!==t.stroke||e.strokeWidth!==t.strokeWidth||e.fontSize!==t.fontSize||e.fontFamily!==t.fontFamily||e.fontWeight!==t.fontWeight||e.fontStyle!==t.fontStyle||e.textBackgroundColor!==t.textBackgroundColor||e.deltaY!==t.deltaY||n&&(e.overline!==t.overline||e.underline!==t.underline||e.linethrough!==t.linethrough)},stylesToArray:function(e,n){for(var e=t.util.object.clone(e,!0),r=n.split(`
2066
2066
  `),i=-1,a={},o=[],s=0;s<r.length;s++){if(!e[s]){i+=r[s].length;continue}for(var c=0;c<r[s].length;c++){i++;var l=e[s][c];l&&Object.keys(l).length>0&&(t.util.hasStyleChanged(a,l,!0)?o.push({start:i,end:i+1,style:l}):o[o.length-1].end++),a=l||{}}}return o},stylesFromArray:function(e,t){if(!Array.isArray(e))return e;for(var n=t.split(`
2067
2067
  `),r=-1,i=0,a={},o=0;o<n.length;o++)for(var s=0;s<n[o].length;s++)r++,e[i]&&e[i].start<=r&&r<e[i].end&&(a[o]=a[o]||{},a[o][s]=Object.assign({},e[i].style),r===e[i].end-1&&i++);return a}}})(e),(function(){var e=Array.prototype.join,n={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},r={m:`l`,M:`L`};function i(e,n,r,i,a,o,s,c,l,u,d){var f=t.util.cos(e),p=t.util.sin(e),m=t.util.cos(n),g=t.util.sin(n),_=r*a*m-i*o*g+s,v=i*a*m+r*o*g+c;return[`C`,u+l*(-r*a*p-i*o*f),d+l*(-i*a*p+r*o*f),_+l*(r*a*g+i*o*m),v+l*(i*a*g-r*o*m),_,v]}function a(e,n,r,a,s,c,l){var u=Math.PI,d=l*u/180,f=t.util.sin(d),p=t.util.cos(d),m=0,g=0;r=Math.abs(r),a=Math.abs(a);var _=-p*e*.5-f*n*.5,v=-p*n*.5+f*e*.5,y=r*r,b=a*a,x=v*v,S=_*_,C=y*b-y*x-b*S,w=0;if(C<0){var T=Math.sqrt(1-C/(y*b));r*=T,a*=T}else w=(s===c?-1:1)*Math.sqrt(C/(y*x+b*S));var E=w*r*v/a,D=-w*a*_/r,O=p*E-f*D+e*.5,k=f*E+p*D+n*.5,A=o(1,0,(_-E)/r,(v-D)/a),j=o((_-E)/r,(v-D)/a,(-_-E)/r,(-v-D)/a);c===0&&j>0?j-=2*u:c===1&&j<0&&(j+=2*u);for(var M=Math.ceil(Math.abs(j/u*2)),N=[],P=j/M,ee=8/3*Math.sin(P/4)*Math.sin(P/4)/Math.sin(P/2),F=A+P,te=0;te<M;te++)N[te]=i(A,F,p,f,r,a,O,k,ee,m,g),m=N[te][5],g=N[te][6],A=F,F+=P;return N}function o(e,t,n,r){var i=Math.atan2(t,e),a=Math.atan2(r,n);return a>=i?a-i:2*Math.PI-(i-a)}function s(n,r,i,a,o,s,c,l){var u;if(t.cachesBoundsOfCurve&&(u=e.call(arguments),t.boundsOfCurveCache[u]))return t.boundsOfCurveCache[u];var d=Math.sqrt,f=Math.min,p=Math.max,m=Math.abs,g=[],_=[[],[]],v,y=6*n-12*i+6*o,b,x,S,C,w,T;v=-3*n+9*i-9*o+3*c,b=3*i-3*n;for(var E=0;E<2;++E){if(E>0&&(y=6*r-12*a+6*s,v=-3*r+9*a-9*s+3*l,b=3*a-3*r),m(v)<1e-12){if(m(y)<1e-12)continue;x=-b/y,0<x&&x<1&&g.push(x);continue}w=y*y-4*b*v,!(w<0)&&(T=d(w),S=(-y+T)/(2*v),0<S&&S<1&&g.push(S),C=(-y-T)/(2*v),0<C&&C<1&&g.push(C))}for(var D,O,k=g.length,A=k,j;k--;)x=g[k],j=1-x,D=j*j*j*n+3*j*j*x*i+3*j*x*x*o+x*x*x*c,_[0][k]=D,O=j*j*j*r+3*j*j*x*a+3*j*x*x*s+x*x*x*l,_[1][k]=O;_[0][A]=n,_[1][A]=r,_[0][A+1]=c,_[1][A+1]=l;var M=[{x:f.apply(null,_[0]),y:f.apply(null,_[1])},{x:p.apply(null,_[0]),y:p.apply(null,_[1])}];return t.cachesBoundsOfCurve&&(t.boundsOfCurveCache[u]=M),M}function c(e,t,n){for(var r=n[1],i=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],d=a(l-e,u-t,r,i,s,c,o),f=0,p=d.length;f<p;f++)d[f][1]+=e,d[f][2]+=t,d[f][3]+=e,d[f][4]+=t,d[f][5]+=e,d[f][6]+=t;return d}function l(e){var t=0,n=0,r=e.length,i=0,a=0,o,s,l,u=[],d,f,p;for(s=0;s<r;++s){switch(l=!1,o=e[s].slice(0),o[0]){case`l`:o[0]=`L`,o[1]+=t,o[2]+=n;case`L`:t=o[1],n=o[2];break;case`h`:o[1]+=t;case`H`:o[0]=`L`,o[2]=n,t=o[1];break;case`v`:o[1]+=n;case`V`:o[0]=`L`,n=o[1],o[1]=t,o[2]=n;break;case`m`:o[0]=`M`,o[1]+=t,o[2]+=n;case`M`:t=o[1],n=o[2],i=o[1],a=o[2];break;case`c`:o[0]=`C`,o[1]+=t,o[2]+=n,o[3]+=t,o[4]+=n,o[5]+=t,o[6]+=n;case`C`:f=o[3],p=o[4],t=o[5],n=o[6];break;case`s`:o[0]=`S`,o[1]+=t,o[2]+=n,o[3]+=t,o[4]+=n;case`S`:d===`C`?(f=2*t-f,p=2*n-p):(f=t,p=n),t=o[3],n=o[4],o[0]=`C`,o[5]=o[3],o[6]=o[4],o[3]=o[1],o[4]=o[2],o[1]=f,o[2]=p,f=o[3],p=o[4];break;case`q`:o[0]=`Q`,o[1]+=t,o[2]+=n,o[3]+=t,o[4]+=n;case`Q`:f=o[1],p=o[2],t=o[3],n=o[4];break;case`t`:o[0]=`T`,o[1]+=t,o[2]+=n;case`T`:d===`Q`?(f=2*t-f,p=2*n-p):(f=t,p=n),o[0]=`Q`,t=o[1],n=o[2],o[1]=f,o[2]=p,o[3]=t,o[4]=n;break;case`a`:o[0]=`A`,o[6]+=t,o[7]+=n;case`A`:l=!0,u=u.concat(c(t,n,o)),t=o[6],n=o[7];break;case`z`:case`Z`:t=i,n=a;break;default:}l||u.push(o),d=o[0]}return u}function u(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))}function d(e){return e*e*e}function f(e){return 3*e*e*(1-e)}function p(e){return 3*e*(1-e)*(1-e)}function m(e){return(1-e)*(1-e)*(1-e)}function g(e,t,n,r,i,a,o,s){return function(c){var l=d(c),u=f(c),g=p(c),_=m(c);return{x:o*l+i*u+n*g+e*_,y:s*l+a*u+r*g+t*_}}}function _(e,t,n,r,i,a,o,s){return function(c){var l=1-c,u=3*l*l*(n-e)+6*l*c*(i-n)+3*c*c*(o-i),d=3*l*l*(r-t)+6*l*c*(a-r)+3*c*c*(s-a);return Math.atan2(d,u)}}function v(e){return e*e}function y(e){return 2*e*(1-e)}function b(e){return(1-e)*(1-e)}function x(e,t,n,r,i,a){return function(o){var s=v(o),c=y(o),l=b(o);return{x:i*s+n*c+e*l,y:a*s+r*c+t*l}}}function S(e,t,n,r,i,a){return function(o){var s=1-o,c=2*s*(n-e)+2*o*(i-n),l=2*s*(r-t)+2*o*(a-r);return Math.atan2(l,c)}}function C(e,t,n){var r={x:t,y:n},i,a=0,o;for(o=1;o<=100;o+=1)i=e(o/100),a+=u(r.x,r.y,i.x,i.y),r=i;return a}function w(e,t){for(var n=0,r=0,i=e.iterator,a={x:e.x,y:e.y},o,s,c=.01,l=e.angleFinder,d;r<t&&c>1e-4;)o=i(n),d=n,s=u(a.x,a.y,o.x,o.y),s+r>t?(n-=c,c/=2):(a=o,n+=c,r+=s);return o.angle=l(d),o}function T(e){for(var t=0,n=e.length,r,i=0,a=0,o=0,s=0,c=[],l,d,f,p=0;p<n;p++){switch(r=e[p],d={x:i,y:a,command:r[0]},r[0]){case`M`:d.length=0,o=i=r[1],s=a=r[2];break;case`L`:d.length=u(i,a,r[1],r[2]),i=r[1],a=r[2];break;case`C`:l=g(i,a,r[1],r[2],r[3],r[4],r[5],r[6]),f=_(i,a,r[1],r[2],r[3],r[4],r[5],r[6]),d.iterator=l,d.angleFinder=f,d.length=C(l,i,a),i=r[5],a=r[6];break;case`Q`:l=x(i,a,r[1],r[2],r[3],r[4]),f=S(i,a,r[1],r[2],r[3],r[4]),d.iterator=l,d.angleFinder=f,d.length=C(l,i,a),i=r[3],a=r[4];break;case`Z`:case`z`:d.destX=o,d.destY=s,d.length=u(i,a,o,s),i=o,a=s;break}t+=d.length,c.push(d)}return c.push({length:t,x:i,y:a}),c}function E(e,n,r){r||=T(e);for(var i=0;n-r[i].length>0&&i<r.length-2;)n-=r[i].length,i++;var a=r[i],o=n/a.length,s=a.command,c=e[i],l;switch(s){case`M`:return{x:a.x,y:a.y,angle:0};case`Z`:case`z`:return l=new t.Point(a.x,a.y).lerp(new t.Point(a.destX,a.destY),o),l.angle=Math.atan2(a.destY-a.y,a.destX-a.x),l;case`L`:return l=new t.Point(a.x,a.y).lerp(new t.Point(c[1],c[2]),o),l.angle=Math.atan2(c[2]-a.y,c[1]-a.x),l;case`C`:return w(a,n);case`Q`:return w(a,n)}}function D(e){var i=[],a=[],o,s,c=t.rePathCommand,l=`[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*`,u=`(`+l+`)`+t.commaWsp,d=`([01])`+t.commaWsp+`?`,f=u+`?`+u+`?`+u+d+d+u+`?(`+l+`)`,p=new RegExp(f,`g`),m,g,_;if(!e||!e.match)return i;_=e.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi);for(var v=0,y,b=_.length;v<b;v++){o=_[v],g=o.slice(1).trim(),a.length=0;var x=o.charAt(0);if(y=[x],x.toLowerCase()===`a`)for(var S;S=p.exec(g);)for(var C=1;C<S.length;C++)a.push(S[C]);else for(;m=c.exec(g);)a.push(m[0]);for(var C=0,w=a.length;C<w;C++)s=parseFloat(a[C]),isNaN(s)||y.push(s);var T=n[x.toLowerCase()],E=r[x]||x;if(y.length-1>T)for(var D=1,O=y.length;D<O;D+=T)i.push([x].concat(y.slice(D,D+T))),x=E;else i.push(y)}return i}function O(e,n){var r=[],i,a=new t.Point(e[0].x,e[0].y),o=new t.Point(e[1].x,e[1].y),s=e.length,c=1,l=0,u=s>2;for(n||=0,u&&(c=e[2].x<o.x?-1:e[2].x===o.x?0:1,l=e[2].y<o.y?-1:e[2].y===o.y?0:1),r.push([`M`,a.x-c*n,a.y-l*n]),i=1;i<s;i++){if(!a.eq(o)){var d=a.midPointFrom(o);r.push([`Q`,a.x,a.y,d.x,d.y])}a=e[i],i+1<e.length&&(o=e[i+1])}return u&&(c=a.x>e[i-2].x?1:a.x===e[i-2].x?0:-1,l=a.y>e[i-2].y?1:a.y===e[i-2].y?0:-1),r.push([`L`,a.x+c*n,a.y+l*n]),r}function k(e,n,r){return r&&(n=t.util.multiplyTransformMatrices(n,[1,0,0,1,-r.x,-r.y])),e.map(function(e){for(var r=e.slice(0),i={},a=1;a<e.length-1;a+=2)i.x=e[a],i.y=e[a+1],i=t.util.transformPoint(i,n),r[a]=i.x,r[a+1]=i.y;return r})}t.util.joinPath=function(e){return e.map(function(e){return e.join(` `)}).join(` `)},t.util.parsePath=D,t.util.makePathSimpler=l,t.util.getSmoothPathFromPoints=O,t.util.getPathSegmentsInfo=T,t.util.getBoundsOfCurve=s,t.util.getPointOnPath=E,t.util.transformPath=k})(),(function(){var e=Array.prototype.slice;function n(t,n){for(var r=e.call(arguments,2),i=[],a=0,o=t.length;a<o;a++)i[a]=r.length?t[a][n].apply(t[a],r):t[a][n].call(t[a]);return i}function r(e,t){return o(e,t,function(e,t){return e>=t})}function i(e,t){return o(e,t,function(e,t){return e<t})}function a(e,t){for(var n=e.length;n--;)e[n]=t;return e}function o(e,t,n){if(!(!e||e.length===0)){var r=e.length-1,i=t?e[r][t]:e[r];if(t)for(;r--;)n(e[r][t],i)&&(i=e[r][t]);else for(;r--;)n(e[r],i)&&(i=e[r]);return i}}t.util.array={fill:a,invoke:n,min:i,max:r}})(),(function(){function e(n,r,i){if(i)if(!t.isLikelyNode&&r instanceof Element)n=r;else if(r instanceof Array){n=[];for(var a=0,o=r.length;a<o;a++)n[a]=e({},r[a],i)}else if(r&&typeof r==`object`)for(var s in r)s===`canvas`||s===`group`?n[s]=null:r.hasOwnProperty(s)&&(n[s]=e({},r[s],i));else n=r;else for(var s in r)n[s]=r[s];return n}function n(t,n){return e({},t,n)}t.util.object={extend:e,clone:n},t.util.object.extend(t.util,t.Observable)})(),(function(){function e(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():``})}function n(e,t){return e.charAt(0).toUpperCase()+(t?e.slice(1):e.slice(1).toLowerCase())}function r(e){return e.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function i(e){var t=0,n,r=[];for(t=0;t<e.length;t++)(n=a(e,t))!==!1&&r.push(n);return r}function a(e,t){var n=e.charCodeAt(t);if(isNaN(n))return``;if(n<55296||n>57343)return e.charAt(t);if(55296<=n&&n<=56319){if(e.length<=t+1)throw`High surrogate without following low surrogate`;var r=e.charCodeAt(t+1);if(56320>r||r>57343)throw`High surrogate without following low surrogate`;return e.charAt(t)+e.charAt(t+1)}if(t===0)throw`Low surrogate without preceding high surrogate`;var i=e.charCodeAt(t-1);if(55296>i||i>56319)throw`Low surrogate without preceding high surrogate`;return!1}t.util.string={camelize:e,capitalize:n,escapeXml:r,graphemeSplit:i}})(),(function(){var e=Array.prototype.slice,n=function(){},r=(function(){for(var e in{toString:1})if(e===`toString`)return!1;return!0})(),i=function(e,t,n){for(var i in t)i in e.prototype&&typeof e.prototype[i]==`function`&&(t[i]+``).indexOf(`callSuper`)>-1?e.prototype[i]=(function(e){return function(){var r=this.constructor.superclass;this.constructor.superclass=n;var i=t[e].apply(this,arguments);if(this.constructor.superclass=r,e!==`initialize`)return i}})(i):e.prototype[i]=t[i],r&&(t.toString!==Object.prototype.toString&&(e.prototype.toString=t.toString),t.valueOf!==Object.prototype.valueOf&&(e.prototype.valueOf=t.valueOf))};function a(){}function o(t){for(var n=null,r=this;r.constructor.superclass;){var i=r.constructor.superclass.prototype[t];if(r[t]!==i){n=i;break}r=r.constructor.superclass.prototype}return n?arguments.length>1?n.apply(this,e.call(arguments,1)):n.call(this):console.log(`tried to callSuper `+t+`, method not found in prototype chain`,this)}function s(){var t=null,r=e.call(arguments,0);typeof r[0]==`function`&&(t=r.shift());function s(){this.initialize.apply(this,arguments)}s.superclass=t,s.subclasses=[],t&&(a.prototype=t.prototype,s.prototype=new a,t.subclasses.push(s));for(var c=0,l=r.length;c<l;c++)i(s,r[c],t);return s.prototype.initialize||(s.prototype.initialize=n),s.prototype.constructor=s,s.prototype.callSuper=o,s}t.util.createClass=s})(),(function(){var e=!!t.document.createElement(`div`).attachEvent,n=[`touchstart`,`touchmove`,`touchend`];t.util.addListener=function(t,n,r,i){t&&t.addEventListener(n,r,e?!1:i)},t.util.removeListener=function(t,n,r,i){t&&t.removeEventListener(n,r,e?!1:i)};function r(e){var t=e.changedTouches;return t&&t[0]?t[0]:e}t.util.getPointer=function(e){var n=e.target,i=t.util.getScrollLeftTop(n),a=r(e);return{x:a.clientX+i.left,y:a.clientY+i.top}},t.util.isTouchEvent=function(e){return n.indexOf(e.type)>-1||e.pointerType===`touch`}})(),(function(){function e(e,t){var n=e.style;if(!n)return e;if(typeof t==`string`)return e.style.cssText+=`;`+t,t.indexOf(`opacity`)>-1?o(e,t.match(/opacity:\s*(\d?\.?\d*)/)[1]):e;for(var r in t)if(r===`opacity`)o(e,t[r]);else{var i=r===`float`||r===`cssFloat`?n.styleFloat===void 0?`cssFloat`:`styleFloat`:r;n.setProperty(i,t[r])}return e}var n=t.document.createElement(`div`),r=typeof n.style.opacity==`string`,i=typeof n.style.filter==`string`,a=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,o=function(e){return e};r?o=function(e,t){return e.style.opacity=t,e}:i&&(o=function(e,t){var n=e.style;return e.currentStyle&&!e.currentStyle.hasLayout&&(n.zoom=1),a.test(n.filter)?(t=t>=.9999?``:`alpha(opacity=`+t*100+`)`,n.filter=n.filter.replace(a,t)):n.filter+=` alpha(opacity=`+t*100+`)`,e}),t.util.setStyle=e})(),(function(){var e=Array.prototype.slice;function n(e){return typeof e==`string`?t.document.getElementById(e):e}var r,i=function(t){return e.call(t,0)};try{r=i(t.document.childNodes)instanceof Array}catch{}r||(i=function(e){for(var t=Array(e.length),n=e.length;n--;)t[n]=e[n];return t});function a(e,n){var r=t.document.createElement(e);for(var i in n)i===`class`?r.className=n[i]:i===`for`?r.htmlFor=n[i]:r.setAttribute(i,n[i]);return r}function o(e,t){e&&(` `+e.className+` `).indexOf(` `+t+` `)===-1&&(e.className+=(e.className?` `:``)+t)}function s(e,t,n){return typeof t==`string`&&(t=a(t,n)),e.parentNode&&e.parentNode.replaceChild(t,e),t.appendChild(e),t}function c(e){for(var n=0,r=0,i=t.document.documentElement,a=t.document.body||{scrollLeft:0,scrollTop:0};e&&(e.parentNode||e.host)&&(e=e.parentNode||e.host,e===t.document?(n=a.scrollLeft||i.scrollLeft||0,r=a.scrollTop||i.scrollTop||0):(n+=e.scrollLeft||0,r+=e.scrollTop||0),!(e.nodeType===1&&e.style.position===`fixed`)););return{left:n,top:r}}function l(e){var t,n=e&&e.ownerDocument,r={left:0,top:0},i={left:0,top:0},a,o={borderLeftWidth:`left`,borderTopWidth:`top`,paddingLeft:`left`,paddingTop:`top`};if(!n)return i;for(var s in o)i[o[s]]+=parseInt(u(e,s),10)||0;return t=n.documentElement,e.getBoundingClientRect!==void 0&&(r=e.getBoundingClientRect()),a=c(e),{left:r.left+a.left-(t.clientLeft||0)+i.left,top:r.top+a.top-(t.clientTop||0)+i.top}}var u=t.document.defaultView&&t.document.defaultView.getComputedStyle?function(e,n){var r=t.document.defaultView.getComputedStyle(e,null);return r?r[n]:void 0}:function(e,t){var n=e.style[t];return!n&&e.currentStyle&&(n=e.currentStyle[t]),n};(function(){var e=t.document.documentElement.style,n=`userSelect`in e?`userSelect`:`MozUserSelect`in e?`MozUserSelect`:`WebkitUserSelect`in e?`WebkitUserSelect`:`KhtmlUserSelect`in e?`KhtmlUserSelect`:``;function r(e){return e.onselectstart!==void 0&&(e.onselectstart=t.util.falseFunction),n?e.style[n]=`none`:typeof e.unselectable==`string`&&(e.unselectable=`on`),e}function i(e){return e.onselectstart!==void 0&&(e.onselectstart=null),n?e.style[n]=``:typeof e.unselectable==`string`&&(e.unselectable=``),e}t.util.makeElementUnselectable=r,t.util.makeElementSelectable=i})();function d(e){var n=t.jsdomImplForWrapper(e);return n._canvas||n._image}function f(e){if(t.isLikelyNode){var n=t.jsdomImplForWrapper(e);n&&(n._image=null,n._canvas=null,n._currentSrc=null,n._attributes=null,n._classList=null)}}function p(e,t){e.imageSmoothingEnabled=e.imageSmoothingEnabled||e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled||e.oImageSmoothingEnabled,e.imageSmoothingEnabled=t}t.util.setImageSmoothing=p,t.util.getById=n,t.util.toArray=i,t.util.addClass=o,t.util.makeElement=a,t.util.wrapElement=s,t.util.getScrollLeftTop=c,t.util.getElementOffset=l,t.util.getNodeCanvas=d,t.util.cleanUpJsdomNode=f})(),(function(){function e(e,t){return e+(/\?/.test(e)?`&`:`?`)+t}function n(){}function r(r,i){i||={};var a=i.method?i.method.toUpperCase():`GET`,o=i.onComplete||function(){},s=new t.window.XMLHttpRequest,c=i.body||i.parameters;return s.onreadystatechange=function(){s.readyState===4&&(o(s),s.onreadystatechange=n)},a===`GET`&&(c=null,typeof i.parameters==`string`&&(r=e(r,i.parameters))),s.open(a,r,!0),(a===`POST`||a===`PUT`)&&s.setRequestHeader(`Content-Type`,`application/x-www-form-urlencoded`),s.send(c),s}t.util.request=r})(),t.log=console.log,t.warn=console.warn,(function(){var e=t.util.object.extend,n=t.util.object.clone,r=[];t.util.object.extend(r,{cancelAll:function(){var e=this.splice(0);return e.forEach(function(e){e.cancel()}),e},cancelByCanvas:function(e){if(!e)return[];var t=this.filter(function(t){return typeof t.target==`object`&&t.target.canvas===e});return t.forEach(function(e){e.cancel()}),t},cancelByTarget:function(e){var t=this.findAnimationsByTarget(e);return t.forEach(function(e){e.cancel()}),t},findAnimationIndex:function(e){return this.indexOf(this.findAnimation(e))},findAnimation:function(e){return this.find(function(t){return t.cancel===e})},findAnimationsByTarget:function(e){return e?this.filter(function(t){return t.target===e}):[]}});function i(){return!1}function a(e,t,n,r){return-n*Math.cos(e/r*(Math.PI/2))+n+t}function o(r){r||={};var o=!1,s,c=function(){var e=t.runningAnimations.indexOf(s);return e>-1&&t.runningAnimations.splice(e,1)[0]};return s=e(n(r),{cancel:function(){return o=!0,c()},currentValue:`startValue`in r?r.startValue:0,completionRate:0,durationRate:0}),t.runningAnimations.push(s),l(function(e){var t=e||+new Date,n=r.duration||500,u=t+n,d,f=r.onChange||i,p=r.abort||i,m=r.onComplete||i,g=r.easing||a,_=`startValue`in r?r.startValue.length>0:!1,v=`startValue`in r?r.startValue:0,y=`endValue`in r?r.endValue:100,b=r.byValue||(_?v.map(function(e,t){return y[t]-v[t]}):y-v);r.onStart&&r.onStart(),(function e(r){d=r||+new Date;var i=d>u?n:d-t,a=i/n,x=_?v.map(function(e,t){return g(i,v[t],b[t],n)}):g(i,v,b,n),S=Math.abs(_?(x[0]-v[0])/b[0]:(x-v)/b);if(s.currentValue=_?x.slice():x,s.completionRate=S,s.durationRate=a,!o){if(p(x,S,a)){c();return}if(d>u){s.currentValue=_?y.slice():y,s.completionRate=1,s.durationRate=1,f(_?y.slice():y,1,1),m(y,1,1),c();return}else f(x,S,a),l(e)}})(t)}),s.cancel}var s=t.window.requestAnimationFrame||t.window.webkitRequestAnimationFrame||t.window.mozRequestAnimationFrame||t.window.oRequestAnimationFrame||t.window.msRequestAnimationFrame||function(e){return t.window.setTimeout(e,1e3/60)},c=t.window.cancelAnimationFrame||t.window.clearTimeout;function l(){return s.apply(t.window,arguments)}function u(){return c.apply(t.window,arguments)}t.util.animate=o,t.util.requestAnimFrame=l,t.util.cancelAnimFrame=u,t.runningAnimations=r})(),(function(){function e(e,t,n){var r=`rgba(`+parseInt(e[0]+n*(t[0]-e[0]),10)+`,`+parseInt(e[1]+n*(t[1]-e[1]),10)+`,`+parseInt(e[2]+n*(t[2]-e[2]),10);return r+=`,`+(e&&t?parseFloat(e[3]+n*(t[3]-e[3])):1),r+=`)`,r}function n(n,r,i,a){var o=new t.Color(n).getSource(),s=new t.Color(r).getSource(),c=a.onComplete,l=a.onChange;return a||={},t.util.animate(t.util.object.extend(a,{duration:i||500,startValue:o,endValue:s,byValue:s,easing:function(t,n,r,i){return e(n,r,a.colorEasing?a.colorEasing(t,i):1-Math.cos(t/i*(Math.PI/2)))},onComplete:function(t,n,r){if(c)return c(e(s,s,0),n,r)},onChange:function(t,n,r){if(l){if(Array.isArray(t))return l(e(t,t,0),n,r);l(t,n,r)}}}))}t.util.animateColor=n})(),(function(){function e(e,t,n,r){return e<Math.abs(t)?(e=t,r=n/4):r=t===0&&e===0?n/(2*Math.PI)*Math.asin(1):n/(2*Math.PI)*Math.asin(t/e),{a:e,c:t,p:n,s:r}}function n(e,t,n){return e.a*2**(10*--t)*Math.sin((t*n-e.s)*(2*Math.PI)/e.p)}function r(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function i(e,t,n,r){return e/=r/2,e<1?n/2*e*e*e+t:n/2*((e-=2)*e*e+2)+t}function a(e,t,n,r){return n*(e/=r)*e*e*e+t}function o(e,t,n,r){return-n*((e=e/r-1)*e*e*e-1)+t}function s(e,t,n,r){return e/=r/2,e<1?n/2*e*e*e*e+t:-n/2*((e-=2)*e*e*e-2)+t}function c(e,t,n,r){return n*(e/=r)*e*e*e*e+t}function l(e,t,n,r){return n*((e=e/r-1)*e*e*e*e+1)+t}function u(e,t,n,r){return e/=r/2,e<1?n/2*e*e*e*e*e+t:n/2*((e-=2)*e*e*e*e+2)+t}function d(e,t,n,r){return-n*Math.cos(e/r*(Math.PI/2))+n+t}function f(e,t,n,r){return n*Math.sin(e/r*(Math.PI/2))+t}function p(e,t,n,r){return-n/2*(Math.cos(Math.PI*e/r)-1)+t}function m(e,t,n,r){return e===0?t:n*2**(10*(e/r-1))+t}function g(e,t,n,r){return e===r?t+n:n*(-(2**(-10*e/r))+1)+t}function _(e,t,n,r){return e===0?t:e===r?t+n:(e/=r/2,e<1?n/2*2**(10*(e-1))+t:n/2*(-(2**(-10*--e))+2)+t)}function v(e,t,n,r){return-n*(Math.sqrt(1-(e/=r)*e)-1)+t}function y(e,t,n,r){return n*Math.sqrt(1-(e=e/r-1)*e)+t}function b(e,t,n,r){return e/=r/2,e<1?-n/2*(Math.sqrt(1-e*e)-1)+t:n/2*(Math.sqrt(1-(e-=2)*e)+1)+t}function x(t,r,i,a){var o=1.70158,s=0,c=i;return t===0?r:(t/=a,t===1?r+i:(s||=a*.3,-n(e(c,i,s,o),t,a)+r))}function S(t,n,r,i){var a=1.70158,o=0,s=r;if(t===0)return n;if(t/=i,t===1)return n+r;o||=i*.3;var c=e(s,r,o,a);return c.a*2**(-10*t)*Math.sin((t*i-c.s)*(2*Math.PI)/c.p)+c.c+n}function C(t,r,i,a){var o=1.70158,s=0,c=i;if(t===0)return r;if(t/=a/2,t===2)return r+i;s||=.3*1.5*a;var l=e(c,i,s,o);return t<1?-.5*n(l,t,a)+r:l.a*2**(-10*--t)*Math.sin((t*a-l.s)*(2*Math.PI)/l.p)*.5+l.c+r}function w(e,t,n,r,i){return i===void 0&&(i=1.70158),n*(e/=r)*e*((i+1)*e-i)+t}function T(e,t,n,r,i){return i===void 0&&(i=1.70158),n*((e=e/r-1)*e*((i+1)*e+i)+1)+t}function E(e,t,n,r,i){return i===void 0&&(i=1.70158),e/=r/2,e<1?n/2*(e*e*(((i*=1.525)+1)*e-i))+t:n/2*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)+t}function D(e,t,n,r){return n-O(r-e,0,n,r)+t}function O(e,t,n,r){return(e/=r)<1/2.75?n*(7.5625*e*e)+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t}function k(e,t,n,r){return e<r/2?D(e*2,0,n,r)*.5+t:O(e*2-r,0,n,r)*.5+n*.5+t}t.util.ease={easeInQuad:function(e,t,n,r){return n*(e/=r)*e+t},easeOutQuad:function(e,t,n,r){return-n*(e/=r)*(e-2)+t},easeInOutQuad:function(e,t,n,r){return e/=r/2,e<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,n,r){return n*(e/=r)*e*e+t},easeOutCubic:r,easeInOutCubic:i,easeInQuart:a,easeOutQuart:o,easeInOutQuart:s,easeInQuint:c,easeOutQuint:l,easeInOutQuint:u,easeInSine:d,easeOutSine:f,easeInOutSine:p,easeInExpo:m,easeOutExpo:g,easeInOutExpo:_,easeInCirc:v,easeOutCirc:y,easeInOutCirc:b,easeInElastic:x,easeOutElastic:S,easeInOutElastic:C,easeInBack:w,easeOutBack:T,easeInOutBack:E,easeInBounce:D,easeOutBounce:O,easeInOutBounce:k}})(),(function(e){var t=e.fabric||={},n=t.util.object.extend,r=t.util.object.clone,i=t.util.toFixed,a=t.util.parseUnit,o=t.util.multiplyTransformMatrices,s=[`path`,`circle`,`polygon`,`polyline`,`ellipse`,`rect`,`line`,`image`,`text`],c=[`symbol`,`image`,`marker`,`pattern`,`view`,`svg`],l=[`pattern`,`defs`,`symbol`,`metadata`,`clipPath`,`mask`,`desc`],u=[`symbol`,`g`,`a`,`svg`,`clipPath`,`defs`],d={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`},f={stroke:`strokeOpacity`,fill:`fillOpacity`},p=`font-size`,m=`clip-path`;t.svgValidTagNamesRegEx=v(s),t.svgViewBoxElementsRegEx=v(c),t.svgInvalidAncestorsRegEx=v(l),t.svgValidParentsRegEx=v(u),t.cssRules={},t.gradientDefs={},t.clipPaths={};function g(e){return e in d?d[e]:e}function _(e,n,r,i){var s=Array.isArray(n),c;if((e===`fill`||e===`stroke`)&&n===`none`)n=``;else if(e===`strokeUniform`)return n===`non-scaling-stroke`;else if(e===`strokeDashArray`)n=n===`none`?null:n.replace(/,/g,` `).split(/\s+/).map(parseFloat);else if(e===`transformMatrix`)n=r&&r.transformMatrix?o(r.transformMatrix,t.parseTransformAttribute(n)):t.parseTransformAttribute(n);else if(e===`visible`)n=n!==`none`&&n!==`hidden`,r&&r.visible===!1&&(n=!1);else if(e===`opacity`)n=parseFloat(n),r&&r.opacity!==void 0&&(n*=r.opacity);else if(e===`textAnchor`)n=n===`start`?`left`:n===`end`?`right`:`center`;else if(e===`charSpacing`)c=a(n,i)/i*1e3;else if(e===`paintFirst`){var l=n.indexOf(`fill`),u=n.indexOf(`stroke`),n=`fill`;(l>-1&&u>-1&&u<l||l===-1&&u>-1)&&(n=`stroke`)}else if(e===`href`||e===`xlink:href`||e===`font`)return n;else if(e===`imageSmoothing`)return n===`optimizeQuality`;else c=s?n.map(a):a(n,i);return!s&&isNaN(c)?n:c}function v(e){return RegExp(`^(`+e.join(`|`)+`)\\b`,`i`)}function y(e){for(var n in f)if(!(e[f[n]]===void 0||e[n]===``)){if(e[n]===void 0){if(!t.Object.prototype[n])continue;e[n]=t.Object.prototype[n]}if(e[n].indexOf(`url(`)!==0){var r=new t.Color(e[n]);e[n]=r.setAlpha(i(r.getAlpha()*e[f[n]],2)).toRgba()}}return e}function b(e,t){var n,r=[],i,a,o;for(a=0,o=t.length;a<o;a++)n=t[a],i=e.getElementsByTagName(n),r=r.concat(Array.prototype.slice.call(i));return r}t.parseTransformAttribute=(function(){function e(e,n){var r=t.util.cos(n[0]),i=t.util.sin(n[0]),a=0,o=0;n.length===3&&(a=n[1],o=n[2]),e[0]=r,e[1]=i,e[2]=-i,e[3]=r,e[4]=a-(r*a-i*o),e[5]=o-(i*a+r*o)}function n(e,t){var n=t[0],r=t.length===2?t[1]:t[0];e[0]=n,e[3]=r}function r(e,n,r){e[r]=Math.tan(t.util.degreesToRadians(n[0]))}function i(e,t){e[4]=t[0],t.length===2&&(e[5]=t[1])}var a=t.iMatrix,o=t.reNum,s=t.commaWsp,c=`(?:(skewX)\\s*\\(\\s*(`+o+`)\\s*\\))`,l=`(?:(skewY)\\s*\\(\\s*(`+o+`)\\s*\\))`,u=`(?:(rotate)\\s*\\(\\s*(`+o+`)(?:`+s+`(`+o+`)`+s+`(`+o+`))?\\s*\\))`,d=`(?:(scale)\\s*\\(\\s*(`+o+`)(?:`+s+`(`+o+`))?\\s*\\))`,f=`(?:(translate)\\s*\\(\\s*(`+o+`)(?:`+s+`(`+o+`))?\\s*\\))`,p=`(?:`+(`(?:(matrix)\\s*\\(\\s*(`+o+`)`+s+`(`+o+`)`+s+`(`+o+`)`+s+`(`+o+`)`+s+`(`+o+`)`+s+`(`+o+`)\\s*\\))`)+`|`+f+`|`+d+`|`+u+`|`+c+`|`+l+`)`,m=`^\\s*(?:`+(`(?:`+p+`(?:`+s+`*`+p+`)*)`)+`?)\\s*$`,g=new RegExp(m),_=new RegExp(p,`g`);return function(o){var s=a.concat(),c=[];if(!o||o&&!g.test(o))return s;o.replace(_,function(o){var l=new RegExp(p).exec(o).filter(function(e){return!!e}),u=l[1],d=l.slice(2).map(parseFloat);switch(u){case`translate`:i(s,d);break;case`rotate`:d[0]=t.util.degreesToRadians(d[0]),e(s,d);break;case`scale`:n(s,d);break;case`skewX`:r(s,d,2);break;case`skewY`:r(s,d,1);break;case`matrix`:s=d;break}c.push(s.concat()),s=a.concat()});for(var l=c[0];c.length>1;)c.shift(),l=t.util.multiplyTransformMatrices(l,c[0]);return l}})();function x(e,t){var n,r;e.replace(/;\s*$/,``).split(`;`).forEach(function(e){var i=e.split(`:`);n=i[0].trim().toLowerCase(),r=i[1].trim(),t[n]=r})}function S(e,t){var n,r;for(var i in e)e[i]!==void 0&&(n=i.toLowerCase(),r=e[i],t[n]=r)}function C(e,n){var r={};for(var i in t.cssRules[n])if(w(e,i.split(` `)))for(var a in t.cssRules[n][i])r[a]=t.cssRules[n][i][a];return r}function w(e,t){var n,r=!0;return n=E(e,t.pop()),n&&t.length&&(r=T(e,t)),n&&r&&t.length===0}function T(e,t){for(var n,r=!0;e.parentNode&&e.parentNode.nodeType===1&&t.length;)r&&(n=t.pop()),e=e.parentNode,r=E(e,n);return t.length===0}function E(e,t){var n=e.nodeName,r=e.getAttribute(`class`),i=e.getAttribute(`id`),a=RegExp(`^`+n,`i`),o;if(t=t.replace(a,``),i&&t.length&&(a=RegExp(`#`+i+`(?![a-zA-Z\\-]+)`,`i`),t=t.replace(a,``)),r&&t.length)for(r=r.split(` `),o=r.length;o--;)a=RegExp(`\\.`+r[o]+`(?![a-zA-Z\\-]+)`,`i`),t=t.replace(a,``);return t.length===0}function D(e,t){var n;if(e.getElementById&&(n=e.getElementById(t)),n)return n;var r,i,a,o=e.getElementsByTagName(`*`);for(i=0,a=o.length;i<a;i++)if(r=o[i],t===r.getAttribute(`id`))return r}function O(e){for(var n=b(e,[`use`,`svg:use`]),r=0;n.length&&r<n.length;){var i=n[r],a=i.getAttribute(`xlink:href`)||i.getAttribute(`href`);if(a===null)return;var o=a.slice(1),s=i.getAttribute(`x`)||0,c=i.getAttribute(`y`)||0,l=D(e,o).cloneNode(!0),u=(l.getAttribute(`transform`)||``)+` translate(`+s+`, `+c+`)`,d,f=n.length,p,m,g,_,v=t.svgNS;if(A(l),/^svg$/i.test(l.nodeName)){var y=l.ownerDocument.createElementNS(v,`g`);for(m=0,g=l.attributes,_=g.length;m<_;m++)p=g.item(m),y.setAttributeNS(v,p.nodeName,p.nodeValue);for(;l.firstChild;)y.appendChild(l.firstChild);l=y}for(m=0,g=i.attributes,_=g.length;m<_;m++)p=g.item(m),!(p.nodeName===`x`||p.nodeName===`y`||p.nodeName===`xlink:href`||p.nodeName===`href`)&&(p.nodeName===`transform`?u=p.nodeValue+` `+u:l.setAttribute(p.nodeName,p.nodeValue));l.setAttribute(`transform`,u),l.setAttribute(`instantiated_by_use`,`1`),l.removeAttribute(`id`),d=i.parentNode,d.replaceChild(l,i),n.length===f&&r++}}var k=RegExp(`^\\s*(`+t.reNum+`+)\\s*,?\\s*(`+t.reNum+`+)\\s*,?\\s*(`+t.reNum+`+)\\s*,?\\s*(`+t.reNum+`+)\\s*$`);function A(e){if(!t.svgViewBoxElementsRegEx.test(e.nodeName))return{};var n=e.getAttribute(`viewBox`),r=1,i=1,o=0,s=0,c,l,u,d,f=e.getAttribute(`width`),p=e.getAttribute(`height`),m=e.getAttribute(`x`)||0,g=e.getAttribute(`y`)||0,_=e.getAttribute(`preserveAspectRatio`)||``,v=!n||!(n=n.match(k)),y=!f||!p||f===`100%`||p===`100%`,b=v&&y,x={},S=``,C=0,w=0;if(x.width=0,x.height=0,x.toBeParsed=b,v&&(m||g)&&e.parentNode&&e.parentNode.nodeName!==`#document`&&(S=` translate(`+a(m)+` `+a(g)+`) `,u=(e.getAttribute(`transform`)||``)+S,e.setAttribute(`transform`,u),e.removeAttribute(`x`),e.removeAttribute(`y`)),b)return x;if(v)return x.width=a(f),x.height=a(p),x;if(o=-parseFloat(n[1]),s=-parseFloat(n[2]),c=parseFloat(n[3]),l=parseFloat(n[4]),x.minX=o,x.minY=s,x.viewBoxWidth=c,x.viewBoxHeight=l,y?(x.width=c,x.height=l):(x.width=a(f),x.height=a(p),r=x.width/c,i=x.height/l),_=t.util.parsePreserveAspectRatioAttribute(_),_.alignX!==`none`&&(_.meetOrSlice===`meet`&&(i=r=r>i?i:r),_.meetOrSlice===`slice`&&(i=r=r>i?r:i),C=x.width-c*r,w=x.height-l*r,_.alignX===`Mid`&&(C/=2),_.alignY===`Mid`&&(w/=2),_.alignX===`Min`&&(C=0),_.alignY===`Min`&&(w=0)),r===1&&i===1&&o===0&&s===0&&m===0&&g===0)return x;if((m||g)&&e.parentNode.nodeName!==`#document`&&(S=` translate(`+a(m)+` `+a(g)+`) `),u=S+` matrix(`+r+` 0 0 `+i+` `+(o*r+C)+` `+(s*i+w)+`) `,e.nodeName===`svg`){for(d=e.ownerDocument.createElementNS(t.svgNS,`g`);e.firstChild;)d.appendChild(e.firstChild);e.appendChild(d)}else d=e,d.removeAttribute(`x`),d.removeAttribute(`y`),u=d.getAttribute(`transform`)+u;return d.setAttribute(`transform`,u),x}function j(e,t){for(;e&&=e.parentNode;)if(e.nodeName&&t.test(e.nodeName.replace(`svg:`,``))&&!e.getAttribute(`instantiated_by_use`))return!0;return!1}t.parseSVGDocument=function(e,n,i,a){if(e){O(e);var o=t.Object.__uid++,s,c,l=A(e),u=t.util.toArray(e.getElementsByTagName(`*`));if(l.crossOrigin=a&&a.crossOrigin,l.svgUid=o,u.length===0&&t.isLikelyNode){u=e.selectNodes(`//*[name(.)!="svg"]`);var d=[];for(s=0,c=u.length;s<c;s++)d[s]=u[s];u=d}var f=u.filter(function(e){return A(e),t.svgValidTagNamesRegEx.test(e.nodeName.replace(`svg:`,``))&&!j(e,t.svgInvalidAncestorsRegEx)});if(!f||f&&!f.length){n&&n([],{});return}var p={};u.filter(function(e){return e.nodeName.replace(`svg:`,``)===`clipPath`}).forEach(function(e){var n=e.getAttribute(`id`);p[n]=t.util.toArray(e.getElementsByTagName(`*`)).filter(function(e){return t.svgValidTagNamesRegEx.test(e.nodeName.replace(`svg:`,``))})}),t.gradientDefs[o]=t.getGradientDefs(e),t.cssRules[o]=t.getCSSRules(e),t.clipPaths[o]=p,t.parseElements(f,function(e,r){n&&(n(e,l,r,u),delete t.gradientDefs[o],delete t.cssRules[o],delete t.clipPaths[o])},r(l),i,a)}};function M(e,t){var n=[`gradientTransform`,`x1`,`x2`,`y1`,`y2`,`gradientUnits`,`cx`,`cy`,`r`,`fx`,`fy`],r=`xlink:href`,i=D(e,t.getAttribute(r).slice(1));if(i&&i.getAttribute(r)&&M(e,i),n.forEach(function(e){i&&!t.hasAttribute(e)&&i.hasAttribute(e)&&t.setAttribute(e,i.getAttribute(e))}),!t.children.length)for(var a=i.cloneNode(!0);a.firstChild;)t.appendChild(a.firstChild);t.removeAttribute(r)}var N=RegExp(`(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*(`+t.reNum+`(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|`+t.reNum+`))?\\s+(.*)`);n(t,{parseFontDeclaration:function(e,t){var n=e.match(N);if(n){var r=n[1],i=n[3],o=n[4],s=n[5],c=n[6];r&&(t.fontStyle=r),i&&(t.fontWeight=isNaN(parseFloat(i))?i:parseFloat(i)),o&&(t.fontSize=a(o)),c&&(t.fontFamily=c),s&&(t.lineHeight=s===`normal`?1:s)}},getGradientDefs:function(e){var t=b(e,[`linearGradient`,`radialGradient`,`svg:linearGradient`,`svg:radialGradient`]),n,r=0,i={};for(r=t.length;r--;)n=t[r],n.getAttribute(`xlink:href`)&&M(e,n),i[n.getAttribute(`id`)]=n;return i},parseAttributes:function(e,r,i){if(e){var o,s={},c,l;i===void 0&&(i=e.getAttribute(`svgUid`)),e.parentNode&&t.svgValidParentsRegEx.test(e.parentNode.nodeName)&&(s=t.parseAttributes(e.parentNode,r,i));var u=r.reduce(function(t,n){return o=e.getAttribute(n),o&&(t[n]=o),t},{}),d=n(C(e,i),t.parseStyleAttribute(e));u=n(u,d),d[m]&&e.setAttribute(m,d[m]),c=l=s.fontSize||t.Text.DEFAULT_SVG_FONT_SIZE,u[p]&&(u[p]=c=a(u[p],l));var f,v,b={};for(var x in u)f=g(x),v=_(f,u[x],s,c),b[f]=v;b&&b.font&&t.parseFontDeclaration(b.font,b);var S=n(s,b);return t.svgValidParentsRegEx.test(e.nodeName)?S:y(S)}},parseElements:function(e,n,r,i,a){new t.ElementsParser(e,n,r,i,a).parse()},parseStyleAttribute:function(e){var t={},n=e.getAttribute(`style`);return n&&(typeof n==`string`?x(n,t):S(n,t)),t},parsePointsAttribute:function(e){if(!e)return null;e=e.replace(/,/g,` `).trim(),e=e.split(/\s+/);var t=[],n,r;for(n=0,r=e.length;n<r;n+=2)t.push({x:parseFloat(e[n]),y:parseFloat(e[n+1])});return t},getCSSRules:function(e){var n=e.getElementsByTagName(`style`),r,i,a={},o;for(r=0,i=n.length;r<i;r++){var s=n[r].textContent;s=s.replace(/\/\*[\s\S]*?\*\//g,``),s.trim()!==``&&(o=s.split(`}`),o=o.filter(function(e){return e.trim()}),o.forEach(function(e){var n=e.split(`{`),o={},s=n[1].trim().split(`;`).filter(function(e){return e.trim()});for(r=0,i=s.length;r<i;r++){var c=s[r].split(`:`),l=c[0].trim();o[l]=c[1].trim()}e=n[0].trim(),e.split(`,`).forEach(function(e){e=e.replace(/^svg/i,``).trim(),e!==``&&(a[e]?t.util.object.extend(a[e],o):a[e]=t.util.object.clone(o))})}))}return a},loadSVGFromURL:function(e,n,r,i){e=e.replace(/^\n\s*/,``).trim(),new t.util.request(e,{method:`get`,onComplete:a});function a(e){var a=e.responseXML;if(!a||!a.documentElement)return n&&n(null),!1;t.parseSVGDocument(a.documentElement,function(e,t,r,i){n&&n(e,t,r,i)},r,i)}},loadSVGFromString:function(e,n,r,i){var a=new t.window.DOMParser().parseFromString(e.trim(),`text/xml`);t.parseSVGDocument(a.documentElement,function(e,t,r,i){n(e,t,r,i)},r,i)}})})(e),t.ElementsParser=function(e,t,n,r,i,a){this.elements=e,this.callback=t,this.options=n,this.reviver=r,this.svgUid=n&&n.svgUid||0,this.parsingOptions=i,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=a},(function(e){e.parse=function(){this.instances=Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},e.createObjects=function(){var e=this;this.elements.forEach(function(t,n){t.setAttribute(`svgUid`,e.svgUid),e.createObject(t,n)})},e.findTag=function(e){return t[t.util.string.capitalize(e.tagName.replace(`svg:`,``))]},e.createObject=function(e,n){var r=this.findTag(e);if(r&&r.fromElement)try{r.fromElement(e,this.createCallback(n,e),this.options)}catch(e){t.log(e)}else this.checkIfDone()},e.createCallback=function(e,n){var r=this;return function(i){var a;r.resolveGradient(i,n,`fill`),r.resolveGradient(i,n,`stroke`),i instanceof t.Image&&i._originalElement&&(a=i.parsePreserveAspectRatioAttribute(n)),i._removeTransformMatrix(a),r.resolveClipPath(i,n),r.reviver&&r.reviver(n,i),r.instances[e]=i,r.checkIfDone()}},e.extractPropertyDefinition=function(e,n,r){var i=e[n],a=this.regexUrl;if(a.test(i)){a.lastIndex=0;var o=a.exec(i)[1];return a.lastIndex=0,t[r][this.svgUid][o]}},e.resolveGradient=function(e,n,r){var i=this.extractPropertyDefinition(e,r,`gradientDefs`);if(i){var a=n.getAttribute(r+`-opacity`),o=t.Gradient.fromElement(i,e,a,this.options);e.set(r,o)}},e.createClipPathCallback=function(e,t){return function(e){e._removeTransformMatrix(),e.fillRule=e.clipRule,t.push(e)}},e.resolveClipPath=function(e,n){var r=this.extractPropertyDefinition(e,`clipPath`,`clipPaths`),i,a,o,s,c,l;if(r){s=[],o=t.util.invertTransform(e.calcTransformMatrix());for(var u=r[0].parentNode,d=n;d.parentNode&&d.getAttribute(`clip-path`)!==e.clipPath;)d=d.parentNode;d.parentNode.appendChild(u);for(var f=0;f<r.length;f++)i=r[f],a=this.findTag(i),a.fromElement(i,this.createClipPathCallback(e,s),this.options);r=s.length===1?s[0]:new t.Group(s),c=t.util.multiplyTransformMatrices(o,r.calcTransformMatrix()),r.clipPath&&this.resolveClipPath(r,d);var l=t.util.qrDecompose(c);r.flipX=!1,r.flipY=!1,r.set(`scaleX`,l.scaleX),r.set(`scaleY`,l.scaleY),r.angle=l.angle,r.skewX=l.skewX,r.skewY=0,r.setPositionByOrigin({x:l.translateX,y:l.translateY},`center`,`center`),e.clipPath=r}else delete e.clipPath},e.checkIfDone=function(){--this.numElements===0&&(this.instances=this.instances.filter(function(e){return e!=null}),this.callback(this.instances,this.elements))}})(t.ElementsParser.prototype),(function(e){var t=e.fabric||={};if(t.Point){t.warn(`fabric.Point is already defined`);return}t.Point=n;function n(e,t){this.x=e,this.y=t}n.prototype={type:`point`,constructor:n,add:function(e){return new n(this.x+e.x,this.y+e.y)},addEquals:function(e){return this.x+=e.x,this.y+=e.y,this},scalarAdd:function(e){return new n(this.x+e,this.y+e)},scalarAddEquals:function(e){return this.x+=e,this.y+=e,this},subtract:function(e){return new n(this.x-e.x,this.y-e.y)},subtractEquals:function(e){return this.x-=e.x,this.y-=e.y,this},scalarSubtract:function(e){return new n(this.x-e,this.y-e)},scalarSubtractEquals:function(e){return this.x-=e,this.y-=e,this},multiply:function(e){return new n(this.x*e,this.y*e)},multiplyEquals:function(e){return this.x*=e,this.y*=e,this},divide:function(e){return new n(this.x/e,this.y/e)},divideEquals:function(e){return this.x/=e,this.y/=e,this},eq:function(e){return this.x===e.x&&this.y===e.y},lt:function(e){return this.x<e.x&&this.y<e.y},lte:function(e){return this.x<=e.x&&this.y<=e.y},gt:function(e){return this.x>e.x&&this.y>e.y},gte:function(e){return this.x>=e.x&&this.y>=e.y},lerp:function(e,t){return t===void 0&&(t=.5),t=Math.max(Math.min(1,t),0),new n(this.x+(e.x-this.x)*t,this.y+(e.y-this.y)*t)},distanceFrom:function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},midPointFrom:function(e){return this.lerp(e)},min:function(e){return new n(Math.min(this.x,e.x),Math.min(this.y,e.y))},max:function(e){return new n(Math.max(this.x,e.x),Math.max(this.y,e.y))},toString:function(){return this.x+`,`+this.y},setXY:function(e,t){return this.x=e,this.y=t,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setFromPoint:function(e){return this.x=e.x,this.y=e.y,this},swap:function(e){var t=this.x,n=this.y;this.x=e.x,this.y=e.y,e.x=t,e.y=n},clone:function(){return new n(this.x,this.y)}}})(e),(function(e){var t=e.fabric||={};if(t.Intersection){t.warn(`fabric.Intersection is already defined`);return}function n(e){this.status=e,this.points=[]}t.Intersection=n,t.Intersection.prototype={constructor:n,appendPoint:function(e){return this.points.push(e),this},appendPoints:function(e){return this.points=this.points.concat(e),this}},t.Intersection.intersectLineLine=function(e,r,i,a){var o,s=(a.x-i.x)*(e.y-i.y)-(a.y-i.y)*(e.x-i.x),c=(r.x-e.x)*(e.y-i.y)-(r.y-e.y)*(e.x-i.x),l=(a.y-i.y)*(r.x-e.x)-(a.x-i.x)*(r.y-e.y);if(l!==0){var u=s/l,d=c/l;0<=u&&u<=1&&0<=d&&d<=1?(o=new n(`Intersection`),o.appendPoint(new t.Point(e.x+u*(r.x-e.x),e.y+u*(r.y-e.y)))):o=new n}else o=s===0||c===0?new n(`Coincident`):new n(`Parallel`);return o},t.Intersection.intersectLinePolygon=function(e,t,r){var i=new n,a=r.length,o,s,c,l;for(l=0;l<a;l++)o=r[l],s=r[(l+1)%a],c=n.intersectLineLine(e,t,o,s),i.appendPoints(c.points);return i.points.length>0&&(i.status=`Intersection`),i},t.Intersection.intersectPolygonPolygon=function(e,t){var r=new n,i=e.length,a;for(a=0;a<i;a++){var o=e[a],s=e[(a+1)%i],c=n.intersectLinePolygon(o,s,t);r.appendPoints(c.points)}return r.points.length>0&&(r.status=`Intersection`),r},t.Intersection.intersectPolygonRectangle=function(e,r,i){var a=r.min(i),o=r.max(i),s=new t.Point(o.x,a.y),c=new t.Point(a.x,o.y),l=n.intersectLinePolygon(a,s,e),u=n.intersectLinePolygon(s,o,e),d=n.intersectLinePolygon(o,c,e),f=n.intersectLinePolygon(c,a,e),p=new n;return p.appendPoints(l.points),p.appendPoints(u.points),p.appendPoints(d.points),p.appendPoints(f.points),p.points.length>0&&(p.status=`Intersection`),p}})(e),(function(e){var t=e.fabric||={};if(t.Color){t.warn(`fabric.Color is already defined.`);return}function n(e){e?this._tryParsingColor(e):this.setSource([0,0,0,1])}t.Color=n,t.Color.prototype={_tryParsingColor:function(e){var t;e in n.colorNameMap&&(e=n.colorNameMap[e]),e===`transparent`&&(t=[255,255,255,0]),t||=n.sourceFromHex(e),t||=n.sourceFromRgb(e),t||=n.sourceFromHsl(e),t||=[0,0,0,1],t&&this.setSource(t)},_rgbToHsl:function(e,n,r){e/=255,n/=255,r/=255;var i,a,o,s=t.util.array.max([e,n,r]),c=t.util.array.min([e,n,r]);if(o=(s+c)/2,s===c)i=a=0;else{var l=s-c;switch(a=o>.5?l/(2-s-c):l/(s+c),s){case e:i=(n-r)/l+(n<r?6:0);break;case n:i=(r-e)/l+2;break;case r:i=(e-n)/l+4;break}i/=6}return[Math.round(i*360),Math.round(a*100),Math.round(o*100)]},getSource:function(){return this._source},setSource:function(e){this._source=e},toRgb:function(){var e=this.getSource();return`rgb(`+e[0]+`,`+e[1]+`,`+e[2]+`)`},toRgba:function(){var e=this.getSource();return`rgba(`+e[0]+`,`+e[1]+`,`+e[2]+`,`+e[3]+`)`},toHsl:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return`hsl(`+t[0]+`,`+t[1]+`%,`+t[2]+`%)`},toHsla:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return`hsla(`+t[0]+`,`+t[1]+`%,`+t[2]+`%,`+e[3]+`)`},toHex:function(){var e=this.getSource(),t=e[0].toString(16),n,r;return t=t.length===1?`0`+t:t,n=e[1].toString(16),n=n.length===1?`0`+n:n,r=e[2].toString(16),r=r.length===1?`0`+r:r,t.toUpperCase()+n.toUpperCase()+r.toUpperCase()},toHexa:function(){var e=this.getSource(),t=Math.round(e[3]*255);return t=t.toString(16),t=t.length===1?`0`+t:t,this.toHex()+t.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(e){var t=this.getSource();return t[3]=e,this.setSource(t),this},toGrayscale:function(){var e=this.getSource(),t=parseInt((e[0]*.3+e[1]*.59+e[2]*.11).toFixed(0),10),n=e[3];return this.setSource([t,t,t,n]),this},toBlackWhite:function(e){var t=this.getSource(),n=(t[0]*.3+t[1]*.59+t[2]*.11).toFixed(0),r=t[3];return e||=127,n=Number(n)<Number(e)?0:255,this.setSource([n,n,n,r]),this},overlayWith:function(e){e instanceof n||(e=new n(e));var t=[],r=this.getAlpha(),i=.5,a=this.getSource(),o=e.getSource(),s;for(s=0;s<3;s++)t.push(Math.round(a[s]*(1-i)+o[s]*i));return t[3]=r,this.setSource(t),this}},t.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,t.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,t.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,t.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 r(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}t.Color.fromRgb=function(e){return n.fromSource(n.sourceFromRgb(e))},t.Color.sourceFromRgb=function(e){var t=e.match(n.reRGBa);if(t){var r=parseInt(t[1],10)/(/%$/.test(t[1])?100:1)*(/%$/.test(t[1])?255:1),i=parseInt(t[2],10)/(/%$/.test(t[2])?100:1)*(/%$/.test(t[2])?255:1),a=parseInt(t[3],10)/(/%$/.test(t[3])?100:1)*(/%$/.test(t[3])?255:1);return[parseInt(r,10),parseInt(i,10),parseInt(a,10),t[4]?parseFloat(t[4]):1]}},t.Color.fromRgba=n.fromRgb,t.Color.fromHsl=function(e){return n.fromSource(n.sourceFromHsl(e))},t.Color.sourceFromHsl=function(e){var t=e.match(n.reHSLa);if(t){var i=(parseFloat(t[1])%360+360)%360/360,a=parseFloat(t[2])/(/%$/.test(t[2])?100:1),o=parseFloat(t[3])/(/%$/.test(t[3])?100:1),s,c,l;if(a===0)s=c=l=o;else{var u=o<=.5?o*(a+1):o+a-o*a,d=o*2-u;s=r(d,u,i+1/3),c=r(d,u,i),l=r(d,u,i-1/3)}return[Math.round(s*255),Math.round(c*255),Math.round(l*255),t[4]?parseFloat(t[4]):1]}},t.Color.fromHsla=n.fromHsl,t.Color.fromHex=function(e){return n.fromSource(n.sourceFromHex(e))},t.Color.sourceFromHex=function(e){if(e.match(n.reHex)){var t=e.slice(e.indexOf(`#`)+1),r=t.length===3||t.length===4,i=t.length===8||t.length===4,a=r?t.charAt(0)+t.charAt(0):t.substring(0,2),o=r?t.charAt(1)+t.charAt(1):t.substring(2,4),s=r?t.charAt(2)+t.charAt(2):t.substring(4,6),c=i?r?t.charAt(3)+t.charAt(3):t.substring(6,8):`FF`;return[parseInt(a,16),parseInt(o,16),parseInt(s,16),parseFloat((parseInt(c,16)/255).toFixed(2))]}},t.Color.fromSource=function(e){var t=new n;return t.setSource(e),t}})(e),(function(e){var t=e.fabric||={},n=[`e`,`se`,`s`,`sw`,`w`,`nw`,`n`,`ne`,`e`],r=[`ns`,`nesw`,`ew`,`nwse`],i={},a=`left`,o=`top`,s=`right`,c=`bottom`,l=`center`,u={top:c,bottom:o,left:s,right:a,center:l},d=t.util.radiansToDegrees,f=Math.sign||function(e){return(e>0)-(e<0)||+e};function p(e,t){var n=e.angle+d(Math.atan2(t.y,t.x))+360;return Math.round(n%360/45)}function m(e,n){var r=n.transform.target,i=r.canvas,a=t.util.object.clone(n);a.target=r,i&&i.fire(`object:`+e,a),r.fire(e,n)}function g(e,t){var n=t.canvas,r=e[n.uniScaleKey];return n.uniformScaling&&!r||!n.uniformScaling&&r}function _(e){return e.originX===l&&e.originY===l}function v(e,t,n){var r=e.lockScalingX,i=e.lockScalingY;return!!(r&&i||!t&&(r||i)&&n||r&&t===`x`||i&&t===`y`)}function y(e,t,r){var i=`not-allowed`,a=g(e,r),o=``;return t.x!==0&&t.y===0?o=`x`:t.x===0&&t.y!==0&&(o=`y`),v(r,o,a)?i:n[p(r,t)]+`-resize`}function b(e,t,n){return t.x!==0&&n.lockSkewingY||t.y!==0&&n.lockSkewingX?`not-allowed`:r[p(n,t)%4]+`-resize`}function x(e,t,n){return e[n.canvas.altActionKey]?i.skewCursorStyleHandler(e,t,n):i.scaleCursorStyleHandler(e,t,n)}function S(e,t,n){var r=e[n.canvas.altActionKey];if(t.x===0)return r?`skewX`:`scaleY`;if(t.y===0)return r?`skewY`:`scaleX`}function C(e,t,n){return n.lockRotation?`not-allowed`:t.cursorStyle}function w(e,t,n,r){return{e,transform:t,pointer:{x:n,y:r}}}function T(e){return function(t,n,r,i){var a=n.target,o=a.getCenterPoint(),s=a.translateToOriginPoint(o,n.originX,n.originY),c=e(t,n,r,i);return a.setPositionByOrigin(s,n.originX,n.originY),c}}function E(e,t){return function(n,r,i,a){var o=t(n,r,i,a);return o&&m(e,w(n,r,i,a)),o}}function D(e,n,r,i,a){var o=e.target,s=o.controls[e.corner],c=o.canvas.getZoom(),l=o.padding/c,u=o.toLocalPoint(new t.Point(i,a),n,r);return u.x>=l&&(u.x-=l),u.x<=-l&&(u.x+=l),u.y>=l&&(u.y-=l),u.y<=l&&(u.y+=l),u.x-=s.offsetX,u.y-=s.offsetY,u}function O(e){return e.flipX!==e.flipY}function k(e,t,n,r,i){if(e[t]!==0){var a=i/e._getTransformedDimensions()[r]*e[n];e.set(n,a)}}function A(e,t,n,r){var i=t.target,l=i._getTransformedDimensions(0,i.skewY),u=D(t,t.originX,t.originY,n,r),f=Math.abs(u.x*2)-l.x,p=i.skewX,m;f<2?m=0:(m=d(Math.atan2(f/i.scaleX,l.y/i.scaleY)),t.originX===a&&t.originY===c&&(m=-m),t.originX===s&&t.originY===o&&(m=-m),O(i)&&(m=-m));var g=p!==m;if(g){var _=i._getTransformedDimensions().y;i.set(`skewX`,m),k(i,`skewY`,`scaleY`,`y`,_)}return g}function j(e,t,n,r){var i=t.target,l=i._getTransformedDimensions(i.skewX,0),u=D(t,t.originX,t.originY,n,r),f=Math.abs(u.y*2)-l.y,p=i.skewY,m;f<2?m=0:(m=d(Math.atan2(f/i.scaleY,l.x/i.scaleX)),t.originX===a&&t.originY===c&&(m=-m),t.originX===s&&t.originY===o&&(m=-m),O(i)&&(m=-m));var g=p!==m;if(g){var _=i._getTransformedDimensions().x;i.set(`skewY`,m),k(i,`skewX`,`scaleX`,`x`,_)}return g}function M(e,t,n,r){var i=t.target,c=i.skewX,u,d=t.originY;return i.lockSkewingX?!1:(c===0?u=D(t,l,l,n,r).x>0?a:s:(c>0&&(u=d===o?a:s),c<0&&(u=d===o?s:a),O(i)&&(u=u===a?s:a)),t.originX=u,E(`skewing`,T(A))(e,t,n,r))}function N(e,t,n,r){var i=t.target,s=i.skewY,u,d=t.originX;return i.lockSkewingY?!1:(s===0?u=D(t,l,l,n,r).y>0?o:c:(s>0&&(u=d===a?o:c),s<0&&(u=d===a?c:o),O(i)&&(u=u===o?c:o)),t.originY=u,E(`skewing`,T(j))(e,t,n,r))}function P(e,t,n,r){var i=t,a=i.target,o=a.translateToOriginPoint(a.getCenterPoint(),i.originX,i.originY);if(a.lockRotation)return!1;var s=Math.atan2(i.ey-o.y,i.ex-o.x),c=d(Math.atan2(r-o.y,n-o.x)-s+i.theta),l=!0;if(a.snapAngle>0){var u=a.snapAngle,f=a.snapThreshold||u,p=Math.ceil(c/u)*u,m=Math.floor(c/u)*u;Math.abs(c-m)<f?c=m:Math.abs(c-p)<f&&(c=p)}return c<0&&(c=360+c),c%=360,l=a.angle!==c,a.angle=c,l}function ee(e,t,n,r,i){i||={};var a=t.target,o=a.lockScalingX,s=a.lockScalingY,c=i.by,l,d,p,m,y=g(e,a),b=v(a,c,y),x,S,C=t.gestureScale;if(b)return!1;if(C)d=t.scaleX*C,p=t.scaleY*C;else{if(l=D(t,t.originX,t.originY,n,r),x=c===`y`?1:f(l.x),S=c===`x`?1:f(l.y),t.signX||=x,t.signY||=S,a.lockScalingFlip&&(t.signX!==x||t.signY!==S))return!1;if(m=a._getTransformedDimensions(),y&&!c){var w=Math.abs(l.x)+Math.abs(l.y),T=t.original,E=w/(Math.abs(m.x*T.scaleX/a.scaleX)+Math.abs(m.y*T.scaleY/a.scaleY));d=T.scaleX*E,p=T.scaleY*E}else d=Math.abs(l.x*a.scaleX/m.x),p=Math.abs(l.y*a.scaleY/m.y);_(t)&&(d*=2,p*=2),t.signX!==x&&c!==`y`&&(t.originX=u[t.originX],d*=-1,t.signX=x),t.signY!==S&&c!==`x`&&(t.originY=u[t.originY],p*=-1,t.signY=S)}var O=a.scaleX,k=a.scaleY;return c?(c===`x`&&a.set(`scaleX`,d),c===`y`&&a.set(`scaleY`,p)):(!o&&a.set(`scaleX`,d),!s&&a.set(`scaleY`,p)),O!==a.scaleX||k!==a.scaleY}function F(e,t,n,r){return ee(e,t,n,r)}function te(e,t,n,r){return ee(e,t,n,r,{by:`x`})}function I(e,t,n,r){return ee(e,t,n,r,{by:`y`})}function L(e,t,n,r){return e[t.target.canvas.altActionKey]?i.skewHandlerX(e,t,n,r):i.scalingY(e,t,n,r)}function R(e,t,n,r){return e[t.target.canvas.altActionKey]?i.skewHandlerY(e,t,n,r):i.scalingX(e,t,n,r)}function z(e,t,n,r){var i=t.target,a=D(t,t.originX,t.originY,n,r),o=i.strokeWidth/(i.strokeUniform?i.scaleX:1),s=_(t)?2:1,c=i.width,l=Math.abs(a.x*s/i.scaleX)-o;return i.set(`width`,Math.max(l,0)),c!==l}function ne(e,t,n,r){var i=t.target,a=n-t.offsetX,o=r-t.offsetY,s=!i.get(`lockMovementX`)&&i.left!==a,c=!i.get(`lockMovementY`)&&i.top!==o;return s&&i.set(`left`,a),c&&i.set(`top`,o),(s||c)&&m(`moving`,w(e,t,n,r)),s||c}i.scaleCursorStyleHandler=y,i.skewCursorStyleHandler=b,i.scaleSkewCursorStyleHandler=x,i.rotationWithSnapping=E(`rotating`,T(P)),i.scalingEqually=E(`scaling`,T(F)),i.scalingX=E(`scaling`,T(te)),i.scalingY=E(`scaling`,T(I)),i.scalingYOrSkewingX=L,i.scalingXOrSkewingY=R,i.changeWidth=E(`resizing`,T(z)),i.skewHandlerX=M,i.skewHandlerY=N,i.dragHandler=ne,i.scaleOrSkewActionName=S,i.rotationStyleHandler=C,i.fireEvent=m,i.wrapWithFixedAnchor=T,i.wrapWithFireEvent=E,i.getLocalPoint=D,t.controlsUtils=i})(e),(function(e){var t=e.fabric||={},n=t.util.degreesToRadians,r=t.controlsUtils;function i(e,t,n,r,i){r||={};var a=this.sizeX||r.cornerSize||i.cornerSize,o=this.sizeY||r.cornerSize||i.cornerSize,s=r.transparentCorners===void 0?i.transparentCorners:r.transparentCorners,c=s?`stroke`:`fill`,l=!s&&(r.cornerStrokeColor||i.cornerStrokeColor),u=t,d=n,f;e.save(),e.fillStyle=r.cornerColor||i.cornerColor,e.strokeStyle=r.cornerStrokeColor||i.cornerStrokeColor,a>o?(f=a,e.scale(1,o/a),d=n*a/o):o>a?(f=o,e.scale(a/o,1),u=t*o/a):f=a,e.lineWidth=1,e.beginPath(),e.arc(u,d,f/2,0,2*Math.PI,!1),e[c](),l&&e.stroke(),e.restore()}function a(e,t,r,i,a){i||={};var o=this.sizeX||i.cornerSize||a.cornerSize,s=this.sizeY||i.cornerSize||a.cornerSize,c=i.transparentCorners===void 0?a.transparentCorners:i.transparentCorners,l=c?`stroke`:`fill`,u=!c&&(i.cornerStrokeColor||a.cornerStrokeColor),d=o/2,f=s/2;e.save(),e.fillStyle=i.cornerColor||a.cornerColor,e.strokeStyle=i.cornerStrokeColor||a.cornerStrokeColor,e.lineWidth=1,e.translate(t,r),e.rotate(n(a.angle)),e[l+`Rect`](-d,-f,o,s),u&&e.strokeRect(-d,-f,o,s),e.restore()}r.renderCircleControl=i,r.renderSquareControl=a})(e),(function(e){var t=e.fabric||={};function n(e){for(var t in e)this[t]=e[t]}t.Control=n,t.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(e,t){return t.cursorStyle},getActionName:function(e,t){return t.actionName},getVisibility:function(e,t){var n=e._controlsVisibility;return n&&n[t]!==void 0?n[t]:this.visible},setVisibility:function(e){this.visible=e},positionHandler:function(e,n){return t.util.transformPoint({x:this.x*e.x+this.offsetX,y:this.y*e.y+this.offsetY},n)},calcCornerCoords:function(e,n,r,i,a){var o,s,c,l,u=a?this.touchSizeX:this.sizeX,d=a?this.touchSizeY:this.sizeY;if(u&&d&&u!==d){var f=Math.atan2(d,u),p=Math.sqrt(u*u+d*d)/2,m=f-t.util.degreesToRadians(e),g=Math.PI/2-f-t.util.degreesToRadians(e);o=p*t.util.cos(m),s=p*t.util.sin(m),c=p*t.util.cos(g),l=p*t.util.sin(g)}else{p=(u&&d?u:n)*.7071067812;var m=t.util.degreesToRadians(45-e);o=c=p*t.util.cos(m),s=l=p*t.util.sin(m)}return{tl:{x:r-l,y:i-c},tr:{x:r+o,y:i-s},bl:{x:r-o,y:i+s},br:{x:r+l,y:i+c}}},render:function(e,n,r,i,a){switch(i||={},i.cornerStyle||a.cornerStyle){case`circle`:t.controlsUtils.renderCircleControl.call(this,e,n,r,i,a);break;default:t.controlsUtils.renderSquareControl.call(this,e,n,r,i,a)}}}})(e),(function(){function e(e,n){var r=e.getAttribute(`style`),i=e.getAttribute(`offset`)||0,a,o,s,c;if(i=parseFloat(i)/(/%$/.test(i)?100:1),i=i<0?0:i>1?1:i,r){var l=r.split(/\s*;\s*/);for(l[l.length-1]===``&&l.pop(),c=l.length;c--;){var u=l[c].split(/\s*:\s*/),d=u[0].trim(),f=u[1].trim();d===`stop-color`?a=f:d===`stop-opacity`&&(s=f)}}return a||=e.getAttribute(`stop-color`)||`rgb(0,0,0)`,s||=e.getAttribute(`stop-opacity`),a=new t.Color(a),o=a.getAlpha(),s=isNaN(parseFloat(s))?1:parseFloat(s),s*=o*n,{offset:i,color:a.toRgb(),opacity:s}}function n(e){return{x1:e.getAttribute(`x1`)||0,y1:e.getAttribute(`y1`)||0,x2:e.getAttribute(`x2`)||`100%`,y2:e.getAttribute(`y2`)||0}}function r(e){return{x1:e.getAttribute(`fx`)||e.getAttribute(`cx`)||`50%`,y1:e.getAttribute(`fy`)||e.getAttribute(`cy`)||`50%`,r1:0,x2:e.getAttribute(`cx`)||`50%`,y2:e.getAttribute(`cy`)||`50%`,r2:e.getAttribute(`r`)||`50%`}}var i=t.util.object.clone;t.Gradient=t.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:`pixels`,type:`linear`,initialize:function(e){e||={},e.coords||={};var n,r=this;Object.keys(e).forEach(function(t){r[t]=e[t]}),this.id?this.id+=`_`+ t.Object.__uid++:this.id=t.Object.__uid++,n={x1:e.coords.x1||0,y1:e.coords.y1||0,x2:e.coords.x2||0,y2:e.coords.y2||0},this.type===`radial`&&(n.r1=e.coords.r1||0,n.r2=e.coords.r2||0),this.coords=n,this.colorStops=e.colorStops.slice()},addColorStop:function(e){for(var n in e){var r=new t.Color(e[n]);this.colorStops.push({offset:parseFloat(n),color:r.toRgb(),opacity:r.getAlpha()})}return this},toObject:function(e){var n={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 t.util.populateWithProperties(this,n,e),n},toSVG:function(e,n){var r=i(this.coords,!0),a,o,n=n||{},s,c,l=i(this.colorStops,!0),u=r.r1>r.r2,d=this.gradientTransform?this.gradientTransform.concat():t.iMatrix.concat(),f=-this.offsetX,p=-this.offsetY,m=!!n.additionalTransform,g=this.gradientUnits===`pixels`?`userSpaceOnUse`:`objectBoundingBox`;if(l.sort(function(e,t){return e.offset-t.offset}),g===`objectBoundingBox`?(f/=e.width,p/=e.height):(f+=e.width/2,p+=e.height/2),e.type===`path`&&this.gradientUnits!==`percentage`&&(f-=e.pathOffset.x,p-=e.pathOffset.y),d[4]-=f,d[5]-=p,c=`id="SVGID_`+this.id+`" gradientUnits="`+g+`"`,c+=` gradientTransform="`+(m?n.additionalTransform+` `:``)+t.util.matrixToSVG(d)+`" `,this.type===`linear`?s=[`<linearGradient `,c,` x1="`,r.x1,`" y1="`,r.y1,`" x2="`,r.x2,`" y2="`,r.y2,`">
2068
2068
  `]:this.type===`radial`&&(s=[`<radialGradient `,c,` cx="`,u?r.x1:r.x2,`" cy="`,u?r.y1:r.y2,`" r="`,u?r.r1:r.r2,`" fx="`,u?r.x2:r.x1,`" fy="`,u?r.y2:r.y1,`">
@@ -2498,11 +2498,11 @@ gl_FragColor.rgb *= color.a;
2498
2498
  `?(a++,i[a]=0):i[a]++;i[0]>0&&(this.insertCharStyleObject(r.lineIndex,r.charIndex,i[0],n),n&&=n.slice(i[0]+1)),a&&this.insertNewlineStyleObject(r.lineIndex,r.charIndex+i[0],a);for(var o=1;o<a;o++)i[o]>0?this.insertCharStyleObject(r.lineIndex+o,0,i[o],n):n&&this.styles[r.lineIndex+o]&&n[0]&&(this.styles[r.lineIndex+o][0]=n[0]),n&&=n.slice(i[o]+1);i[o]>0&&this.insertCharStyleObject(r.lineIndex+o,0,i[o],n)},setSelectionStartEndWithShift:function(e,t,n){n<=e?(t===e?this._selectionDirection=`left`:this._selectionDirection===`right`&&(this._selectionDirection=`left`,this.selectionEnd=e),this.selectionStart=n):n>e&&n<t?this._selectionDirection===`right`?this.selectionEnd=n:this.selectionStart=n:(t===e?this._selectionDirection=`right`:this._selectionDirection===`left`&&(this._selectionDirection=`right`,this.selectionStart=t),this.selectionEnd=n)},setSelectionInBoundaries:function(){var e=this.text.length;this.selectionStart>e?this.selectionStart=e:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>e?this.selectionEnd=e:this.selectionEnd<0&&(this.selectionEnd=0)}})})(),t.util.object.extend(t.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on(`mousedown`,this.onMouseDown)},onMouseDown:function(e){if(this.canvas){this.__newClickTime=+new Date;var t=e.pointer;this.isTripleClick(t)&&(this.fire(`tripleclick`,e),this._stopEvent(e.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=t,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(e){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===e.x&&this.__lastPointer.y===e.y},_stopEvent:function(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(e){this.isEditing&&this.selectWord(this.getSelectionStartFromPointer(e.e))},tripleClickHandler:function(e){this.isEditing&&this.selectLine(this.getSelectionStartFromPointer(e.e))},initClicks:function(){this.on(`mousedblclick`,this.doubleClickHandler),this.on(`tripleclick`,this.tripleClickHandler)},_mouseDownHandler:function(e){!this.canvas||!this.editable||e.e.button&&e.e.button!==1||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(e.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(e){!this.canvas||!this.editable||e.e.button&&e.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(e){if(this.__isMousedown=!1,!(!this.editable||this.group||e.transform&&e.transform.actionPerformed||e.e.button&&e.e.button!==1)){if(this.canvas){var t=this.canvas._activeObject;if(t&&t!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(e.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(e){var t=this.getSelectionStartFromPointer(e),n=this.selectionStart,r=this.selectionEnd;e.shiftKey?this.setSelectionStartEndWithShift(n,r,t):(this.selectionStart=t,this.selectionEnd=t),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(e){for(var t=this.getLocalPointer(e),n=0,r=0,i=0,a=0,o=0,s,c,l=0,u=this._textLines.length;l<u&&i<=t.y;l++)i+=this.getHeightOfLine(l)*this.scaleY,o=l,l>0&&(a+=this._textLines[l-1].length+this.missingNewlineOffset(l-1));s=this._getLineLeftOffset(o),r=s*this.scaleX,c=this._textLines[o],this.direction===`rtl`&&(t.x=this.width*this.scaleX-t.x+r);for(var d=0,f=c.length;d<f&&(n=r,r+=this.__charBounds[o][d].kernedWidth*this.scaleX,r<=t.x);d++)a++;return this._getNewSelectionStartFromOffset(t,n,r,a,f)},_getNewSelectionStartFromOffset:function(e,t,n,r,i){var a=e.x-t,o=n-e.x,s=r+(o>a||o<0?0:1);return this.flipX&&(s=i-s),s>this._text.length&&(s=this._text.length),s}}),t.util.object.extend(t.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=t.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 e=this._calcTextareaPosition();this.hiddenTextarea.style.cssText=`position: absolute; top: `+e.top+`; left: `+e.left+`; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding-top: `+e.fontSize+`;`,this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):t.document.body.appendChild(this.hiddenTextarea),t.util.addListener(this.hiddenTextarea,`keydown`,this.onKeyDown.bind(this)),t.util.addListener(this.hiddenTextarea,`keyup`,this.onKeyUp.bind(this)),t.util.addListener(this.hiddenTextarea,`input`,this.onInput.bind(this)),t.util.addListener(this.hiddenTextarea,`copy`,this.copy.bind(this)),t.util.addListener(this.hiddenTextarea,`cut`,this.copy.bind(this)),t.util.addListener(this.hiddenTextarea,`paste`,this.paste.bind(this)),t.util.addListener(this.hiddenTextarea,`compositionstart`,this.onCompositionStart.bind(this)),t.util.addListener(this.hiddenTextarea,`compositionupdate`,this.onCompositionUpdate.bind(this)),t.util.addListener(this.hiddenTextarea,`compositionend`,this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(t.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(e){if(this.isEditing){var t=this.direction===`rtl`?this.keysMapRtl:this.keysMap;if(e.keyCode in t)this[t[e.keyCode]](e);else if(e.keyCode in this.ctrlKeysMapDown&&(e.ctrlKey||e.metaKey))this[this.ctrlKeysMapDown[e.keyCode]](e);else return;e.stopImmediatePropagation(),e.preventDefault(),e.keyCode>=33&&e.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(e){if(!this.isEditing||this._copyDone||this.inCompositionMode){this._copyDone=!1;return}if(e.keyCode in this.ctrlKeysMapUp&&(e.ctrlKey||e.metaKey))this[this.ctrlKeysMapUp[e.keyCode]](e);else return;e.stopImmediatePropagation(),e.preventDefault(),this.canvas&&this.canvas.requestRenderAll()},onInput:function(e){var n=this.fromPaste;if(this.fromPaste=!1,e&&e.stopPropagation(),this.isEditing){var r=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,i=this._text.length,a=r.length,o,s,c=a-i,l=this.selectionStart,u=this.selectionEnd,d=l!==u,f,p,m;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 g=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),_=l>g.selectionStart;d?(o=this._text.slice(l,u),c+=u-l):a<i&&(o=_?this._text.slice(u+c,u):this._text.slice(l,l-c)),s=r.slice(g.selectionEnd-c,g.selectionEnd),o&&o.length&&(s.length&&(f=this.getSelectionStyles(l,l+1,!1),f=s.map(function(){return f[0]})),d?(p=l,m=u):_?(p=u-o.length,m=u):(p=u,m=u+o.length),this.removeStyleFromTo(p,m)),s.length&&(n&&s.join(``)===t.copiedText&&!t.disableStyleCopyPaste&&(f=t.copiedTextStyle),this.insertNewStyleBlock(s,l,f)),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(e){this.compositionStart=e.target.selectionStart,this.compositionEnd=e.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(t.copiedText=this.getSelectedText(),t.disableStyleCopyPaste?t.copiedTextStyle=null:t.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(e){return e&&e.clipboardData||t.window.clipboardData},_getWidthBeforeCursor:function(e,t){var n=this._getLineLeftOffset(e),r;return t>0&&(r=this.__charBounds[e][t-1],n+=r.left+r.width),n},getDownCursorOffset:function(e,t){var n=this._getSelectionForOffset(e,t),r=this.get2DCursorLocation(n),i=r.lineIndex;if(i===this._textLines.length-1||e.metaKey||e.keyCode===34)return this._text.length-n;var a=r.charIndex,o=this._getWidthBeforeCursor(i,a),s=this._getIndexOnLine(i+1,o);return this._textLines[i].slice(a).length+s+1+this.missingNewlineOffset(i)},_getSelectionForOffset:function(e,t){return e.shiftKey&&this.selectionStart!==this.selectionEnd&&t?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(e,t){var n=this._getSelectionForOffset(e,t),r=this.get2DCursorLocation(n),i=r.lineIndex;if(i===0||e.metaKey||e.keyCode===33)return-n;var a=r.charIndex,o=this._getWidthBeforeCursor(i,a),s=this._getIndexOnLine(i-1,o),c=this._textLines[i].slice(0,a),l=this.missingNewlineOffset(i-1);return-this._textLines[i-1].length+s-c.length+(1-l)},_getIndexOnLine:function(e,t){for(var n=this._textLines[e],r=this._getLineLeftOffset(e),i=0,a,o,s=0,c=n.length;s<c;s++)if(a=this.__charBounds[e][s].width,r+=a,r>t){o=!0;var l=r-a,u=r,d=Math.abs(l-t);i=Math.abs(u-t)<d?s:s-1;break}return o||(i=n.length-1),i},moveCursorDown:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown(`Down`,e)},moveCursorUp:function(e){this.selectionStart===0&&this.selectionEnd===0||this._moveCursorUpOrDown(`Up`,e)},_moveCursorUpOrDown:function(e,t){var n=`get`+e+`CursorOffset`,r=this[n](t,this._selectionDirection===`right`);t.shiftKey?this.moveCursorWithShift(r):this.moveCursorWithoutShift(r),r!==0&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(e){var t=this._selectionDirection===`left`?this.selectionStart+e:this.selectionEnd+e;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,t),e!==0},moveCursorWithoutShift:function(e){return e<0?(this.selectionStart+=e,this.selectionEnd=this.selectionStart):(this.selectionEnd+=e,this.selectionStart=this.selectionEnd),e!==0},moveCursorLeft:function(e){this.selectionStart===0&&this.selectionEnd===0||this._moveCursorLeftOrRight(`Left`,e)},_move:function(e,t,n){var r;if(e.altKey)r=this[`findWordBoundary`+n](this[t]);else if(e.metaKey||e.keyCode===35||e.keyCode===36)r=this[`findLineBoundary`+n](this[t]);else return this[t]+=n===`Left`?-1:1,!0;if(r!==void 0&&this[t]!==r)return this[t]=r,!0},_moveLeft:function(e,t){return this._move(e,t,`Left`)},_moveRight:function(e,t){return this._move(e,t,`Right`)},moveCursorLeftWithoutShift:function(e){var t=!0;return this._selectionDirection=`left`,this.selectionEnd===this.selectionStart&&this.selectionStart!==0&&(t=this._moveLeft(e,`selectionStart`)),this.selectionEnd=this.selectionStart,t},moveCursorLeftWithShift:function(e){if(this._selectionDirection===`right`&&this.selectionStart!==this.selectionEnd)return this._moveLeft(e,`selectionEnd`);if(this.selectionStart!==0)return this._selectionDirection=`left`,this._moveLeft(e,`selectionStart`)},moveCursorRight:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight(`Right`,e)},_moveCursorLeftOrRight:function(e,t){var n=`moveCursor`+e+`With`;this._currentCursorOpacity=1,t.shiftKey?n+=`Shift`:n+=`outShift`,this[n](t)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(e){if(this._selectionDirection===`left`&&this.selectionStart!==this.selectionEnd)return this._moveRight(e,`selectionStart`);if(this.selectionEnd!==this._text.length)return this._selectionDirection=`right`,this._moveRight(e,`selectionEnd`)},moveCursorRightWithoutShift:function(e){var t=!0;return this._selectionDirection=`right`,this.selectionStart===this.selectionEnd?(t=this._moveRight(e,`selectionStart`),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,t},removeChars:function(e,t){t===void 0&&(t=e+1),this.removeStyleFromTo(e,t),this._text.splice(e,t-e),this.text=this._text.join(``),this.set(`dirty`,!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(e,n,r,i){i===void 0&&(i=r),i>r&&this.removeStyleFromTo(r,i);var a=t.util.string.graphemeSplit(e);this.insertNewStyleBlock(a,r,n),this._text=[].concat(this._text.slice(0,r),a,this._text.slice(i)),this.text=this._text.join(``),this.set(`dirty`,!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),(function(){var e=t.util.toFixed,n=t.util.radiansToDegrees,r=t.util.calcRotateMatrix,i=t.util.transformPoint,a=/ +/g;t.util.object.extend(t.Text.prototype,{_toSVG:function(){var e=this._getSVGLeftTopOffsets(),t=this._getSVGTextAndBg(e.textTop,e.textLeft);return this._wrapSVGTextAndBg(t)},toSVG:function(e){var t=this._createBaseSVGMarkup(this._toSVG(),{reviver:e,noStyle:!0,withShadow:!0}),n=this.path;return n?t+n._createBaseSVGMarkup(n._toSVG(),{reviver:e,withShadow:!0}):t},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(e){var t=!0,n=this.getSvgTextDecoration(this);return[e.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+`" `:``,n?`text-decoration="`+n+`" `:``,`style="`,this.getSvgStyles(t),`"`,this.addPaintOrder(),` >`,e.textSpans.join(``),`</text>
2499
2499
  `]},_getSVGTextAndBg:function(e,t){var n=[],r=[],i=e,a;this._setSVGBg(r);for(var o=0,s=this._textLines.length;o<s;o++)a=this._getLineLeftOffset(o),(this.textBackgroundColor||this.styleHas(`textBackgroundColor`,o))&&this._setSVGTextLineBg(r,o,t+a,i),this._setSVGTextLineText(n,o,t+a,i),i+=this.getHeightOfLine(o);return{textSpans:n,textBgRects:r}},_createTextCharSpan:function(o,s,c,l,u){var d=o!==o.trim()||o.match(a),f=this.getSvgSpanStyles(s,d),p=f?`style="`+f+`"`:``,m=s.deltaY,g=``,_=t.Object.NUM_FRACTION_DIGITS,v=``;if(m&&(g=` dy="`+e(m,_)+`" `),u.renderLeft!==void 0){var y=u.angle;v=` rotate="`+e(n(y),t.Object.NUM_FRACTION_DIGITS)+`" `;var b=u.width/2,x=r({angle:n(y)});x[4]=u.renderLeft,x[5]=u.renderTop;var S=i({x:-b,y:0},x);c=S.x,l=S.y}return[`<tspan x="`,e(c,_),`" y="`,e(l,_),`" `,g,p,v,`>`,t.util.string.escapeXml(o),`</tspan>`].join(``)},_setSVGTextLineText:function(e,n,r,i){var a=this.getHeightOfLine(n),o=this.textAlign.indexOf(`justify`)!==-1,s,c,l=``,u,d,f=0,p=this._textLines[n],m;i+=a*(1-this._fontSizeFraction)/this.lineHeight;for(var g=0,_=p.length-1;g<=_;g++)m=g===_||this.charSpacing||this.path,l+=p[g],u=this.__charBounds[n][g],f===0?(r+=u.kernedWidth-u.width,f+=u.width):f+=u.kernedWidth,o&&!m&&this._reSpaceAndTab.test(p[g])&&(m=!0),m||=(s||=this.getCompleteStyleDeclaration(n,g),c=this.getCompleteStyleDeclaration(n,g+1),t.util.hasStyleChanged(s,c,!0)),m&&(d=this._getStyleDeclaration(n,g)||{},e.push(this._createTextCharSpan(l,d,r,i,u)),l=``,s=c,r+=f,f=0)},_pushTextBgRect:function(n,r,i,a,o,s){var c=t.Object.NUM_FRACTION_DIGITS;n.push(` <rect `,this._getFillAttributes(r),` x="`,e(i,c),`" y="`,e(a,c),`" width="`,e(o,c),`" height="`,e(s,c),`"></rect>
2500
2500
  `)},_setSVGTextLineBg:function(e,t,n,r){for(var i=this._textLines[t],a=this.getHeightOfLine(t)/this.lineHeight,o=0,s=0,c,l,u=this.getValueOfPropertyAt(t,0,`textBackgroundColor`),d=0,f=i.length;d<f;d++)c=this.__charBounds[t][d],l=this.getValueOfPropertyAt(t,d,`textBackgroundColor`),l===u?o+=c.kernedWidth:(u&&this._pushTextBgRect(e,u,n+s,r,o,a),s=c.left,o=c.width,u=l);l&&this._pushTextBgRect(e,l,n+s,r,o,a)},_getFillAttributes:function(e){var n=e&&typeof e==`string`?new t.Color(e):``;return!n||!n.getSource()||n.getAlpha()===1?`fill="`+e+`"`:`opacity="`+n.getAlpha()+`" fill="`+n.setAlpha(1).toRgb()+`"`},_getSVGLineTopOffset:function(e){for(var t=0,n=0,r=0;r<e;r++)t+=this.getHeightOfLine(r);return n=this.getHeightOfLine(r),{lineTop:t,offset:(this._fontSizeMult-this._fontSizeFraction)*n/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(e){return t.Object.prototype.getSvgStyles.call(this,e)+` white-space: pre;`}})})(),(function(e){var t=e.fabric||={};t.Textbox=t.util.createClass(t.IText,t.Observable,{type:`textbox`,minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:t.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(e){for(var t=0,n=0,r=0,i={},a=0;a<e.graphemeLines.length;a++)e.graphemeText[r]===`
2501
- `&&a>0?(n=0,r++,t++):!this.splitByGrapheme&&this._reSpaceAndTab.test(e.graphemeText[r])&&a>0&&(n++,r++),i[a]={line:t,offset:n},r+=e.graphemeLines[a].length,n+=e.graphemeLines[a].length;return i},styleHas:function(e,n){if(this._styleMap&&!this.isWrapping){var r=this._styleMap[n];r&&(n=r.line)}return t.Text.prototype.styleHas.call(this,e,n)},isEmptyStyles:function(e){if(!this.styles)return!0;var t=0,n=e+1,r,i,a=!1,o=this._styleMap[e],s=this._styleMap[e+1];for(var c in o&&(e=o.line,t=o.offset),s&&(n=s.line,a=n===e,r=s.offset),i=e===void 0?this.styles:{line:this.styles[e]},i)for(var l in i[c])if(l>=t&&(!a||l<r))for(var u in i[c][l])return!1;return!0},_getStyleDeclaration:function(e,t){if(this._styleMap&&!this.isWrapping){var n=this._styleMap[e];if(!n)return null;e=n.line,t=n.offset+t}return this.callSuper(`_getStyleDeclaration`,e,t)},_setStyleDeclaration:function(e,t,n){var r=this._styleMap[e];e=r.line,t=r.offset+t,this.styles[e][t]=n},_deleteStyleDeclaration:function(e,t){var n=this._styleMap[e];e=n.line,t=n.offset+t,delete this.styles[e][t]},_getLineStyle:function(e){var t=this._styleMap[e];return!!this.styles[t.line]},_setLineStyle:function(e){var t=this._styleMap[e];this.styles[t.line]={}},_wrapText:function(e,t){var n=[],r;for(this.isWrapping=!0,r=0;r<e.length;r++)n=n.concat(this._wrapLine(e[r],r,t));return this.isWrapping=!1,n},_measureWord:function(e,t,n){var r=0,i,a=!0;n||=0;for(var o=0,s=e.length;o<s;o++){var c=this._getGraphemeBox(e[o],t,o+n,i,a);r+=c.kernedWidth,i=e[o]}return r},_wrapLine:function(e,n,r,i){var a=0,o=this.splitByGrapheme,s=[],c=[],l=o?t.util.string.graphemeSplit(e):e.split(this._wordJoiners),u=``,d=0,f=o?``:` `,p=0,m=0,g=0,_=!0,v=this._getWidthOfCharSpacing(),i=i||0;l.length===0&&l.push([]),r-=i;for(var y=0;y<l.length;y++)u=o?l[y]:t.util.string.graphemeSplit(l[y]),p=this._measureWord(u,n,d),d+=u.length,a+=m+p-v,a>r&&!_?(s.push(c),c=[],a=p,_=!0):a+=v,!_&&!o&&c.push(f),c=c.concat(u),m=o?0:this._measureWord([f],n,d),d++,_=!1,p>g&&(g=p);return y&&s.push(c),g+i>this.dynamicMinWidth&&(this.dynamicMinWidth=g-v+i),s},isEndOfWrapping:function(e){return!this._styleMap[e+1]||this._styleMap[e+1].line!==this._styleMap[e].line},missingNewlineOffset:function(e,t){return this.splitByGrapheme&&!t?+!!this.isEndOfWrapping(e):1},_splitTextIntoLines:function(e){for(var n=t.Text.prototype._splitTextIntoLines.call(this,e),r=this._wrapText(n.lines,this.width),i=Array(r.length),a=0;a<r.length;a++)i[a]=r[a].join(``);return n.lines=i,n.graphemeLines=r,n},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var e={};for(var t in this._styleMap)this._textLines[t]&&(e[this._styleMap[t].line]=1);for(var t in this.styles)e[t]||delete this.styles[t]},toObject:function(e){return this.callSuper(`toObject`,[`minWidth`,`splitByGrapheme`].concat(e))}}),t.Textbox.fromObject=function(e,n){var r=t.util.stylesFromArray(e.styles,e.text),i=Object.assign({},e,{styles:r});return delete i.path,t.Object._fromObject(`Textbox`,i,function(r){e.path?t.Object._fromObject(`Path`,e.path,function(e){r.set(`path`,e),n(r)},`path`):n(r)},`text`)}})(e),(function(){var e=t.controlsUtils,n=e.scaleSkewCursorStyleHandler,r=e.scaleCursorStyleHandler,i=e.scalingEqually,a=e.scalingYOrSkewingX,o=e.scalingXOrSkewingY,s=e.scaleOrSkewActionName,c=t.Object.prototype.controls;if(c.ml=new t.Control({x:-.5,y:0,cursorStyleHandler:n,actionHandler:o,getActionName:s}),c.mr=new t.Control({x:.5,y:0,cursorStyleHandler:n,actionHandler:o,getActionName:s}),c.mb=new t.Control({x:0,y:.5,cursorStyleHandler:n,actionHandler:a,getActionName:s}),c.mt=new t.Control({x:0,y:-.5,cursorStyleHandler:n,actionHandler:a,getActionName:s}),c.tl=new t.Control({x:-.5,y:-.5,cursorStyleHandler:r,actionHandler:i}),c.tr=new t.Control({x:.5,y:-.5,cursorStyleHandler:r,actionHandler:i}),c.bl=new t.Control({x:-.5,y:.5,cursorStyleHandler:r,actionHandler:i}),c.br=new t.Control({x:.5,y:.5,cursorStyleHandler:r,actionHandler:i}),c.mtr=new t.Control({x:0,y:-.5,actionHandler:e.rotationWithSnapping,cursorStyleHandler:e.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:`rotate`}),t.Textbox){var l=t.Textbox.prototype.controls={};l.mtr=c.mtr,l.tr=c.tr,l.br=c.br,l.tl=c.tl,l.bl=c.bl,l.mt=c.mt,l.mb=c.mb,l.mr=new t.Control({x:.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:n,actionName:`resizing`}),l.ml=new t.Control({x:-.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:n,actionName:`resizing`})}})()})),xx=e(vx()),Sx=bx(),Cx=()=>{fabric.FText=fabric.util.createClass(fabric.Textbox,{type:`f-text`,padding:0,paintFirst:`stroke`,initDimensions:function(){if(this.__skipDimension)return;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();let e=this.calcTextHeight();this.path?this.height=this.path.height>e?this.path.height:e:this.height=e,this.saveState({propertySet:`_dimensionAffectingProps`})}})},wx=Sx.fabric.util.object.extend,Tx=()=>{Sx.fabric.FLine=Sx.fabric.util.createClass(Sx.fabric.Line,{type:`f-line`,padding:6,borderColor:`#00000000`,setStrokeWidth(e){this.set(`strokeWidth`,e)},setStrokeDashArray(e){this.set(`strokeDashArray`,e)},setStrokeLineCap(e){this.set(`strokeLineCap`,e?`round`:`butt`)},toObject(e){return wx(this.callSuper(`toObject`,e),{x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2})}}),Sx.fabric.FLine.fromObject=(e,t)=>{function n(e){delete e.points,t&&t(e)}let r={...e};r.points=[e.x1,e.y1,e.x2,e.y2],Sx.fabric.Object._fromObject(`FLine`,r,n,`points`)}};function Ex(){Cx(),Tx()}var Dx={editingBorderColor:`#1460F3`,fontFamily:`Arial`,fill:`#000000`,fontStyle:`normal`,fontWeight:`normal`,fontSize:14,textAlign:`left`,backgroundColor:``,opacity:1,width:100,zoomX:1,zoomY:1,splitByGrapheme:!0},Ox={stroke:`rgb(0, 0, 0)`,fill:``,strokeWidth:1,opacity:1},kx={format:`DD/MM/YYYY hh:mm:ss`,editingBorderColor:`#1460F3`,fontFamily:`Arial`,fill:`#000000`,fontStyle:`normal`,fontWeight:`normal`,fontSize:12,textAlign:`left`,backgroundColor:``,opacity:1,zoomX:1,zoomY:1,width:100,splitByGrapheme:!0},Ax={mode:`Light`},jx=(e,t,n,r,i)=>{var a=e.target,o=a.controls[e.corner],s=a.canvas.getZoom(),c=a.padding/s,l=a.toLocalPoint(new Sx.fabric.Point(r,i),t,n);return l.x>=c&&(l.x-=c),l.x<=-c&&(l.x+=c),l.y>=c&&(l.y-=c),l.y<=c&&(l.y+=c),l.x-=o.offsetX,l.y-=o.offsetY,l};function Mx(e){return e.originX===`center`&&e.originY===`center`}var Nx=(e,t,n,r)=>{let i=t.target,a=jx(t,t.originX,t.originY,n,r),o=i.strokeWidth/(i.strokeUniform?i.scaleX:1),s=Mx(t)?2:1,c=i.height,l=Math.abs(a.y*s/i.scaleY)-o;return i.set(`height`,Math.max(l,0)),c!==l},Px=Sx.fabric.controlsUtils,Fx=Px.wrapWithFireEvent(`resizing`,Px.wrapWithFixedAnchor(Nx)),Ix=Sx.fabric.controlsUtils,Lx=()=>{let e=Sx.fabric.Object.prototype.controls;if(Sx.fabric.Rect){let t=Sx.fabric.Rect.prototype.controls={};t.del=e.del,t.tr=e.tr,t.br=e.br,t.tl=e.tl,t.bl=e.bl,t.ml=new Sx.fabric.Control({x:-.5,y:0,actionHandler:Ix.changeWidth,cursorStyleHandler:e.ml.cursorStyleHandler,actionName:`resizing`,render:e.ml.render}),t.mr=new Sx.fabric.Control({x:.5,y:0,actionHandler:Ix.changeWidth,cursorStyleHandler:e.mr.cursorStyleHandler,actionName:`resizing`,render:e.mr.render}),t.mt=new Sx.fabric.Control({x:0,y:-.5,offsetY:-1,actionHandler:Fx,cursorStyleHandler:e.mt.cursorStyleHandler,actionName:`resizing`,render:e.mt.render}),t.mb=new Sx.fabric.Control({x:0,y:.5,offsetY:1,actionHandler:Fx,cursorStyleHandler:e.mb.cursorStyleHandler,actionName:`resizing`,render:e.mb.render})}},Rx=(e,t,n,r)=>{let{target:i}=t;return i.set({x2:n,y2:r}),!0},zx=(e,t,n,r)=>{let{target:i}=t;return i.set({x1:n,y1:r}),!0},Bx=(e,t)=>(n,r,i)=>{if(i?.canvas){let n=i.calcLinePoints(),r=new Sx.fabric.Point(n[e],n[t]);return Sx.fabric.util.transformPoint(r,Sx.fabric.util.multiplyTransformMatrices(i.canvas.viewportTransform,i.calcTransformMatrix()))}else return new Sx.fabric.Point(0,0)},Vx=()=>{let e=Sx.fabric.Object.prototype.controls;if(Sx.fabric.Line){let t=Sx.fabric.Line.prototype.controls={};t.del=e.del,t.l1=new Sx.fabric.Control({positionHandler:Bx(`x1`,`y1`),actionHandler:zx,cursorStyleHandler:()=>`crosshair`,actionName:`line-points-change`,render:e.br.render}),t.l2=new Sx.fabric.Control({positionHandler:Bx(`x2`,`y2`),actionHandler:Rx,cursorStyleHandler:()=>`crosshair`,actionName:`line-points-change`,render:e.br.render})}},Hx=fabric.controlsUtils,Ux=()=>{let e=fabric.Object.prototype.controls;if(fabric.Rect){let t=fabric.FText.prototype.controls={};t.del=e.del,t.tr=e.tr,t.br=e.br,t.tl=e.tl,t.bl=e.bl,t.ml=new fabric.Control({x:-.5,y:0,offsetX:-1,actionHandler:Hx.changeWidth,cursorStyleHandler:e.ml.cursorStyleHandler,actionName:`resizing`,render:e.ml.render}),t.mr=new fabric.Control({x:.5,y:0,offsetX:1,actionHandler:Hx.changeWidth,cursorStyleHandler:e.mr.cursorStyleHandler,actionName:`resizing`,render:e.mr.render})}},Wx=(e,t)=>{if(e||=t.getActiveObject(),e)return e.type===`activeSelection`?(e.getObjects().forEach(e=>{t.remove(e)}),t.discardActiveObject()):t.remove(e),sS(e),t.requestRenderAll(),t.fire(`fabritor:del`,{target:null}),!0},Gx=(e,t,n,r,i,a)=>{e.save(),e.strokeStyle=`#1460F3`,e.fillStyle=`#FFFFFF`,e.lineWidth=2,e.translate(t,n),e.rotate(Sx.fabric.util.degreesToRadians(i.angle)),e.beginPath(),e.rect(-3,-3,6,6),e.fill(),e.stroke(),e.restore()},Kx=(e,t,n)=>{e.save(),e.strokeStyle=`#1460F3`,e.fillStyle=`#FFFFFF`,e.lineWidth=2,e.beginPath(),e.rect(t-4,n-4,6,6),e.fill(),e.stroke(),e.restore()},qx=(e,t,n)=>{e.save(),e.strokeStyle=`#1460F3`,e.fillStyle=`#FFFFFF`,e.lineWidth=2,e.beginPath(),e.rect(t-4,n-2,6,6),e.fill(),e.stroke(),e.restore()},Jx=(e,t,n)=>{e.save(),e.strokeStyle=`#1460F3`,e.fillStyle=`#FFFFFF`,e.lineWidth=2,e.beginPath(),e.rect(t-2,n-4,6,6),e.fill(),e.stroke(),e.restore()},Yx=(e,t,n)=>{e.save(),e.strokeStyle=`#1460F3`,e.fillStyle=`#FFFFFF`,e.lineWidth=2,e.beginPath(),e.rect(t-2,n-2,6,6),e.fill(),e.stroke(),e.restore()};function Xx(e){return function(t,n,r,i,a){t.save(),t.translate(n,r),t.fillStyle=Ax.mode===`Light`?`rgba(255, 255, 255, 1)`:`#54575C`,t.roundRect(-25,-20,50,42,4),t.shadowColor=`rgba(0, 0, 0, 0.1)`,t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowBlur=8,t.fill(),t.rotate(Sx.fabric.util.degreesToRadians(a.angle)),t.drawImage(e,-30/2,-13,30,30),t.restore()}}var Zx=(e,t,n,r,i)=>{Gx(e,t,n,r,i,`LR`)},Qx=(e,t,n,r,i)=>{Gx(e,t,n,r,i,`TB`)},$x=()=>{let e={x:0,y:-.5,offsetY:-1,render:Qx};Object.keys(e).forEach(t=>{Sx.fabric.Object.prototype.controls.mt[t]=e[t]});let t={x:0,y:.5,offsetY:1,render:Qx};Object.keys(t).forEach(e=>{Sx.fabric.Object.prototype.controls.mb[e]=t[e]});let n={x:-.5,y:0,offsetX:-1,render:Zx};Object.keys(n).forEach(e=>{Sx.fabric.Object.prototype.controls.ml[e]=n[e]});let r={x:.5,y:0,offsetX:1,render:Zx};Object.keys(r).forEach(e=>{Sx.fabric.Object.prototype.controls.mr[e]=r[e]}),Sx.fabric.Object.prototype.borderOpacityWhenMoving=1,Sx.fabric.Object.prototype.borderColor=`#1460F3`,Sx.fabric.Object.prototype.padding=5,Sx.fabric.Object.prototype.setControlsVisibility({mtr:!1});let i={x:-.5,y:-.5,render:Kx};Object.keys(i).forEach(e=>{Sx.fabric.Object.prototype.controls.tl[e]=i[e]});let a={x:.5,y:-.5,render:Jx};Object.keys(a).forEach(e=>{Sx.fabric.Object.prototype.controls.tr[e]=a[e]});let o={x:-.5,y:.5,render:qx};Object.keys(o).forEach(e=>{Sx.fabric.Object.prototype.controls.bl[e]=o[e]});let s={x:.5,y:.5,render:Yx};Object.keys(s).forEach(e=>{Sx.fabric.Object.prototype.controls.br[e]=s[e]})},eS=(e,t)=>{let n=t.target,r=n.canvas;return Wx(n,r),!0},tS=document.createElement(`img`);tS.src=`data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2231%22%20height%3D%2230%22%20viewBox%3D%220%200%2031%2030%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18.3333%208.15275V6.73608H12.6667V8.15275H18.3333ZM24%2010.9861V9.56942H21.875H9.125H7V10.9861H9.125V23.2639H21.875V10.9861H24ZM10.5417%2021.8472V10.9861H20.4583V21.8472H10.5417ZM14.3194%2013.5833V19.25H12.9028V13.5833H14.3194ZM18.0972%2013.5833V19.25H16.6806V13.5833H18.0972Z%22%20fill%3D%22%2343474D%22%2F%3E%3C%2Fsvg%3E`;var nS=document.createElement(`img`);nS.src=`data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2230%22%20height%3D%2230%22%20viewBox%3D%220%200%2030%2030%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20x%3D%220%22%20width%3D%2230%22%20height%3D%2230%22%20rx%3D%224%22%20fill%3D%22%2354575C%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M17.8333%208.15275V6.73608H12.1667V8.15275H17.8333ZM23.5%2010.9861V9.56941H21.375H8.625H6.5V10.9861H8.625V23.2639H21.375V10.9861H23.5ZM10.0417%2021.8472V10.9861H19.9583V21.8472H10.0417ZM13.8194%2013.5833V19.25H12.4028V13.5833H13.8194ZM17.5972%2013.5833V19.25H16.1806V13.5833H17.5972Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E`;var rS=`data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2231%22%20height%3D%2230%22%20viewBox%3D%220%200%2031%2030%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20x%3D%220.436768%22%20width%3D%2230%22%20height%3D%2230%22%20rx%3D%224%22%20fill%3D%22%23DDE9FF%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18.2701%208.15275V6.73608H12.6034V8.15275H18.2701ZM23.9368%2010.9861V9.56942H21.8118H9.06177H6.93677V10.9861H9.06177V23.2639H21.8118V10.9861H23.9368ZM10.4784%2021.8472V10.9861H20.3951V21.8472H10.4784ZM14.2562%2013.5833V19.25H12.8395V13.5833H14.2562ZM18.034%2013.5833V19.25H16.6173V13.5833H18.034Z%22%20fill%3D%22%2343474D%22%2F%3E%3C%2Fsvg%3E`,iS=document.createElement(`img`);iS.src=rS;var aS=()=>{let e=new Sx.fabric.Control({x:.5,y:.5,offsetX:-18,offsetY:25,cursorStyle:`pointer`,mouseUpHandler:eS,render:Xx(Ax.mode===`Light`?tS:nS)});Sx.fabric.Object.prototype.controls.del=e},oS=(e,t)=>{e===`del`&&(t.controls[e].render=Xx(iS)),t.canvas.requestRenderAll()},sS=e=>{e&&e.controls?.del&&(e.controls.del.render=Xx(Ax.mode===`Light`?tS:nS))};function cS(){$x(),aS(),Lx(),Vx(),Ux()}var lS=class{constructor(e,t){this.options=t||{},this.canvasEl=e,this.canvas=null,this.activeObject=null,this.tool=`text`,this.shape=`rect`}init(){this._initObject(),this.canvas=new Sx.fabric.Canvas(this.canvasEl,this.options),this._initEvents()}_initObject(){Ex(),cS()}_initEvents(){let e=this.canvas;e.on(`mouse:move`,e=>{this.creatingElement&&this.creatingElement.type===`rect`&&this.updateRect(e),e.target&&console.log(`Mouse move:`,e.target.type),this.creatingElement&&this.creatingElement.type===`line`&&this.creatingElement&&this.updateLine(e)}),e.on(`mouse:up`,t=>{if(this.creatingElement){let n=this.creatingElement;if(e.setActiveObject(this.creatingElement),this.activeObject=this.creatingElement,n&&n.type===`rect`&&this.tool===`text`){this.canvas.remove(n);let{left:e,top:t,width:r,height:i}=n;this.createTextbox({text:``,scaleX:1,scaleY:1,left:e,top:t,width:r<1?100:r,height:i<1?16:i})}else n.type===`rect`?(this.updateRect(t),n.width<1&&n.height<1&&this.canvas.remove(n)):n.type===`line`&&(this.updateLine(t),n.width<1&&n.height<1&&this.canvas.remove(n));this.creatingElement=null;return}let{target:n}=t;if(!n)return;let r=n.getScaledWidth(),i=n.getScaledHeight(),a=t.transform.action;n.left<0&&((a===`resizing`||a===`scale`)&&(n.scaleX=1,n.width=r+n.left-1),n.set(`left`,0),n.setCoords()),n.top<0&&((a===`resizing`||a===`scale`)&&(n.scaleY=1,n.height=i+n.top-1),n.set(`top`,0),n.setCoords());let o=e.calcViewportBoundaries();n.left+r>o.br.x&&(a===`resizing`||a===`scale`?(n.scaleX=1,n.width=o.br.x-n.left-1):a===`drag`&&n.set(`left`,o.br.x-r+10),n.setCoords()),n.top+i>o.br.y&&(a===`resizing`||a===`scale`?(n.scaleY=1,n.height=o.br.y-n.top-1):a===`drag`&&n.set(`top`,o.br.y-i+10),n.setCoords()),e.renderAll()}),e.on(`mouse:down`,e=>{let{target:t}=e;if(!t&&this.activeObject){this.activeObject=null;return}if(t||this.activeObject)return;let n=this.tool,r=this.shape;n===`text`?this.createTextboxRect({left:e.absolutePointer.x,top:e.absolutePointer.y}):n===`shape`?r===`rect`?this.createRect({left:e.absolutePointer.x,top:e.absolutePointer.y}):r===`line`&&this.createLine({x:e.absolutePointer.x,y:e.absolutePointer.y}):n===`date`&&this.createDatetime({left:e.absolutePointer.x,top:e.absolutePointer.y,editable:!1})}),e.on(`mouse:over`,e=>{let{target:t}=e,n=t?.__corner;n&&oS(n,e.target)}),this.canvas.on(`mouse:out`,t=>{let{target:n}=t;n&&(sS(n),e.requestRenderAll())}),e.on(`selection:created`,this.selectionHandler.bind(this)),e.on(`object:scaling`,e=>{let t=e.target,n=t.canvas.width,r=t.canvas.height;t.setCoords();let i=t.getBoundingRect(),a=t.getScaledWidth();if(t.getScaledHeight(),t.left+a>n){t.scaleX=1,t.setCoords();let e=t.getScaledWidth();t.scaleX=(n-i.left)/e,t.type===`f-text`&&(t.scaleY=t.scaleX),t.setCoords(),t.canvas.renderAll()}if(i.top+i.height>r){t.scaleY=1,t.setCoords();let e=t.getScaledHeight();t.scaleY=(r-i.top)/e,t.type===`f-text`&&(t.scaleX=t.scaleY),t.setCoords(),t.canvas.renderAll()}if(i.top<0){t.scaleY=1,t.setCoords();let e=t.getScaledHeight();t.scaleY=(i.height+i.top)/e,t.type===`f-text`&&(t.scaleX=t.scaleY),t.set(`top`,0),t.setCoords(),t.canvas.renderAll()}if(i.left<0){t.scaleX=1,t.setCoords();let e=t.getScaledWidth();t.scaleX=(i.width+i.left)/e,t.type===`f-text`&&(t.scaleY=t.scaleX),t.set(`left`,0),t.setCoords(),t.canvas.renderAll()}})}updateRect(e){let t=this.creatingElement,{left:n,top:r}=t,{x:i,y:a}=e.absolutePointer,o=this.canvas;if(i<=this.originalPoint.x)t.set(`width`,this.originalPoint.x-i),t.set(`left`,i);else if(i>n){let e=Math.min(i-n,o.width-n-3);t.set(`width`,e)}if(a<=this.originalPoint.y)t.set(`height`,this.originalPoint.y-a),t.set(`top`,a);else if(a>r){let e=Math.min(a-r,o.height-r-3);t.set(`height`,e)}t.setCoords(),o.renderAll()}updateLine(e){let t=this.creatingElement,{x:n,y:r}=e.absolutePointer;t.set(`x2`,n),t.set(`y2`,r),t.setCoords(),this.canvas.renderAll()}selectionHandler(e){let{selected:t}=e;if(t&&t.length){let e=this.canvas.getActiveObject();this.activeObject=e}else this.activeObject=null}createTextboxRect(e){let t=this.canvas,n=new Sx.fabric.Rect({fill:``,stroke:`#1460F3`,strokeWidth:1,opacity:1,...e});return this.creatingElement=n,this.originalPoint={x:e.left,y:e.top},t.add(n),n}createTextbox(e){let t=this.canvas,{text:n=``,...r}=e||{},i={hasPath:!1,offset:100},a=new Sx.fabric.FText(n||``,{...Dx,...r});return a.on(`editing:entered`,e=>{}),a.on(`editing:exited`,e=>{i.hasPath&&(drawTextPath(a,i.offset),t.requestRenderAll())}),t.add(a),t.setActiveObject(a),this.activeObject=a,a.enterEditing(),t.requestRenderAll(),a}createRect(e){if(this.creating)return;let t=this.canvas,n=new Sx.fabric.Rect({...Ox,...e});return this.creatingElement=n,this.originalPoint={x:e.left,y:e.top},t.add(n),n}createDatetime(e){let t=this.canvas,{text:n=``}=e||{},r=n||(0,xx.default)(new Date().toLocaleString()).format(kx.format),i=new Sx.fabric.FText(r,{...kx,...e});return this.creatingElement=i,t.add(i),t.setActiveObject(i),this.activeObject=i,t.requestRenderAll(),i}createLine(e){let t=this.canvas,{x:n,y:r}=e,i=new Sx.fabric.Line([n,r,n,r],{...Ox});return this.creatingElement=i,t.add(i),i}destroy(){this.canvas&&=(this.canvas.dispose(),null)}clear(){this.canvas&&this.canvas.clear()}},uS={class:`custom-stamp-wrapper`},dS={class:`signatures-popup-wrapper`},fS={class:`custom-stamp-popup`},pS={class:`title`},mS={class:`stamp-container`},hS={class:`stamp-preview`},gS={class:`preview-title`},_S={class:`preview-container`},vS={class:`custom-category`},yS={class:`preview`},bS={class:`canvas-container`},xS={key:0,class:`canvas-placeholder`},SS={ref:`workspaceEl`},CS={class:`stamp-properties`},wS={class:`properties-title`},TS={key:0,class:`text-properties properties-container`},ES={class:`font property`},DS={class:`property-name`},OS={class:`font-color property`},kS={class:`property-name`},AS={class:`property-container`},jS={class:`color-picker`},MS={class:`preview-container active`},NS={class:`font-weight property`},PS={class:`property-name`},FS={class:`font-size property`},IS={class:`property-name`},LS={class:`text-align property`},RS={class:`property-name`},zS={class:`text-align property-container`},BS={class:`text-align-content`},VS={class:`border`},HS={class:`border`},US={class:`fill-color property`},WS={class:`property-name`},GS={class:`property-container`},KS={class:`color-picker`},qS={class:`opacity property`},JS={class:`property-name`},YS={key:1,class:`shape-properties properties-container`},XS={class:`shape property`},ZS={class:`property-name`},QS={class:`property-container`},$S={class:`border-color property`},eC={class:`property-name`},tC={class:`property-container`},nC={class:`color-picker`},rC={class:`preview-container active`},iC={class:`border-width property`},aC={class:`property-name`},oC={key:0,class:`fill-color property`},sC={class:`property-name`},cC={class:`property-container`},lC={class:`color-picker`},uC={class:`fill-opacity property`},dC={class:`property-name`},fC={key:2,class:`date-properties properties-container`},pC={class:`date property`},mC={class:`property-name`},hC={class:`font property`},gC={class:`property-name`},_C={class:`font-color property`},vC={class:`property-name`},yC={class:`property-container`},bC={class:`color-picker`},xC={class:`preview-container active`},SC={class:`font-weight property`},CC={class:`property-name`},wC={class:`font-size property`},TC={class:`property-name`},EC={class:`text-align property`},DC={class:`property-name`},OC={class:`text-align property-container`},kC={class:`text-align-content`},AC={class:`border`},jC={class:`border`},MC={class:`fill-color property`},NC={class:`property-name`},PC={class:`property-container`},FC={class:`color-picker`},IC={class:`opacity property`},LC={class:`property-name`},RC={class:`footer`},zC={class:`buttons-container`},BC={__name:`CustomStamp`,setup(e){let{t}=It(),n=J(null),r=ye(),i=J(`rgb(255, 255, 255)`),a=J(`rgb(255, 255, 255)`),o=J(`rgb(255, 255, 255)`),s=Ee(null),l=J(0),u=J(`text`),f=()=>{let e=s.value.canvas.toDataURL({format:`png`,multiplier:2});r.addCustomStamps(e),_()};M(()=>{C();let e=new lS(n.value,{width:300,height:300,selection:!1});e.init(),e.canvas.on(`selection:updated`,()=>{m()}),e.canvas.on(`selection:created`,()=>{m()}),e.canvas.on(`selection:cleared`,()=>{C()}),e.canvas.on(`object:added`,()=>{l.value=e.canvas.getObjects().length}),e.canvas.on(`object:removed`,()=>{l.value=e.canvas.getObjects().length,s.value.activeObject=null}),s.value=e});let p=(e,t)=>e===`bold`&&t===`oblique`?`boldOblique`:e===`bold`?`bold`:t===`oblique`?`oblique`:`normal`,m=()=>{let e=s.value.canvas.getActiveObject();if(e&&e.type===`f-text`&&e.editable){u.value=`text`;let t=e.fontSize,n=e.fontFamily,r=e.fill,i=e.textAlign,a=e.opacity,o=p(e.fontWeight,e.fontStyle);v.text.fontFamily=n,v.text.fill=r,v.text.fontStyle=o,v.text.fontSize=t,v.text.textAlign=i,v.text.backgroundColor=e.backgroundColor,v.text.opacity=a*100+`%`}else if(e&&e.type===`f-text`&&!e.editable){u.value=`date`;let t=e.format,n=e.fontSize,r=e.fontFamily,i=e.fill,a=e.textAlign,o=e.opacity,s=p(e.fontWeight,e.fontStyle);v.date.format=t,v.date.fontFamily=r,v.date.fill=i,v.date.fontStyle=s,v.date.fontSize=n,v.date.textAlign=a,v.date.backgroundColor=e.backgroundColor,v.date.opacity=o*100+`%`}else if(e&&e.type===`rect`){u.value=`shape`,v.shape.tool=`rect`;let t=e.fill,n=e.stroke,r=e.strokeWidth,i=e.opacity;v.shape.fill=t,v.shape.stroke=n,v.shape.strokeWidth=r,v.shape.opacity=i*100+`%`}else if(e&&e.type===`line`){u.value=`shape`,v.shape.tool=`line`;let t=e.stroke,n=e.strokeWidth,r=e.opacity;v.shape.stroke=t,v.shape.strokeWidth=n,v.shape.opacity=r*100+`%`}},g=()=>{s.value&&s.value.clear()},_=()=>{r.closeElement(H.CREATE_CUSTOM_STAMP_DIALOG)},v=N({text:{fontFamily:`Arial`,fill:`rgb(0, 0, 0)`,fontSize:12,fontStyle:`normal`,textAlign:`left`,backgroundColor:``,borderWidth:1,opacity:`100%`},shape:{tool:`rect`,stroke:`rgb(0, 0, 0)`,strokeWidth:1,fill:``,opacity:`100%`},date:{fontFamily:`Arial`,fill:`rgb(0, 0, 0)`,fontSize:12,fontStyle:`normal`,textAlign:`left`,backgroundColor:``,opacity:`100%`,format:`DD/MM/YYYY hh:mm:ss`}}),y=[{label:`Arial`,value:`Arial`},{label:`Times-Roman`,value:`Times-Roman`},{label:`Courier`,value:`Courier`},{label:`Helvetica`,value:`Helvetica`}],C=()=>{let e={fontSize:Dx.fontSize,fontFamily:Dx.fontFamily,fill:Dx.fill,textAlign:Dx.textAlign,opacity:Dx.opacity,fontStyle:p(Dx.fontWeight,Dx.fontStyle),backgroundColor:Dx.backgroundColor};e.backgroundColor&&(i.value=e.backgroundColor),v.text.fontFamily=e.fontFamily,v.text.fill=e.fill,v.text.fontStyle=e.fontStyle,v.text.fontSize=e.fontSize,v.text.textAlign=e.textAlign,v.text.backgroundColor=e.backgroundColor,v.text.opacity=e.opacity*100+`%`;let t={stroke:Ox.stroke,strokeWidth:Ox.strokeWidth,fill:Ox.fill,opacity:Ox.opacity};t.fill&&(a.value=t.fill),v.shape.stroke=t.stroke,v.shape.strokeWidth=t.strokeWidth,v.shape.fill=t.fill,v.shape.opacity=t.opacity*100+`%`;let n={fontSize:kx.fontSize,fontFamily:kx.fontFamily,fill:kx.fill,textAlign:kx.textAlign,opacity:kx.opacity,fontStyle:p(kx.fontWeight,kx.fontStyle),backgroundColor:kx.backgroundColor,format:kx.format};n.backgroundColor&&(o.value=n.backgroundColor),v.date.fontSize=n.fontSize,v.date.fontFamily=n.fontFamily,v.date.fill=n.fill,v.date.textAlign=n.textAlign,v.date.opacity=n.opacity*100+`%`,v.date.fontStyle=n.fontStyle,v.date.backgroundColor=n.backgroundColor,v.date.format=n.format},w=T(()=>[{label:t(`common.fontStyles.regular`),value:`normal`},{label:t(`common.fontStyles.bold`),value:`bold`},{label:t(`common.fontStyles.boldOblique`),value:`boldOblique`},{label:t(`common.fontStyles.oblique`),value:`oblique`}]),E=(e,t)=>{v[u.value][t]=e,t===`backgroundColor`?u.value===`text`?i.value=e:u.value===`date`&&(o.value=e):t===`fill`&&u.value===`shape`&&(a.value=e)},O=(e,t)=>{v[u.value][t]=e,t===`backgroundColor`?u.value===`text`?i.value=e:u.value===`date`&&(o.value=e):t===`fill`&&u.value===`shape`&&(a.value=e)},k=e=>{v[u.value].textAlign=e},j=[{label:`6 pt`,value:6},{label:`7 pt`,value:7},{label:`8 pt`,value:8},{label:`9 pt`,value:9},{label:`10 pt`,value:10},{label:`11 pt`,value:11},{label:`12 pt`,value:12},{label:`13 pt`,value:13},{label:`14 pt`,value:14},{label:`15 pt`,value:15},{label:`16 pt`,value:16},{label:`17 pt`,value:17},{label:`18 pt`,value:18},{label:`24 pt`,value:20},{label:`36 pt`,value:36},{label:`48 pt`,value:48},{label:`72 pt`,value:72}],P=[{label:`1 pt`,value:1},{label:`2 pt`,value:2},{label:`3 pt`,value:3},{label:`4 pt`,value:4},{label:`5 pt`,value:5},{label:`6 pt`,value:6},{label:`7 pt`,value:7},{label:`8 pt`,value:8},{label:`9 pt`,value:9},{label:`10 pt`,value:10}],ee=[{label:`25%`,value:`25%`},{label:`50%`,value:`50%`},{label:`75%`,value:`75%`},{label:`100%`,value:`100%`}],F=[{label:`dd/mm/yyyy`,value:`DD/MM/YYYY`},{label:`dd.mm.yyyy`,value:`DD.MM.YYYY`},{label:`dd-mm-yyyy`,value:`DD-MM-YYYY`},{label:`dd mm yyyy`,value:`DD MM YYYY`},{label:`yyyy/mm/dd`,value:`YYYY/MM/DD`},{label:`yyyy.mm.dd`,value:`YYYY.MM.DD`},{label:`yyyy-mm-dd`,value:`YYYY-MM-DD`},{label:`yyyy mm dd`,value:`YYYY MM DD`},{label:`dd/mm/yyyy hh:mm:ss`,value:`DD/MM/YYYY hh:mm:ss`},{label:`dd.mm.yyyy hh:mm:ss`,value:`DD.MM.YYYY hh:mm:ss`},{label:`dd-mm-yyyy hh:mm:ss`,value:`DD-MM-YYYY hh:mm:ss`},{label:`dd mm yyyy hh:mm:ss`,value:`DD MM YYYY hh:mm:ss`},{label:`yyyy/mm/dd hh:mm:ss`,value:`YYYY/MM/DD hh:mm:ss`},{label:`yyyy.mm.dd hh:mm:ss`,value:`YYYY.MM.DD hh:mm:ss`},{label:`yyyy-mm-dd hh:mm:ss`,value:`YYYY-MM-DD hh:mm:ss`},{label:`yyyy mm dd hh:mm:ss`,value:`YYYY MM DD hh:mm:ss`}],te=e=>{let t=s.value.canvas.getActiveObject();t&&(s.value.canvas.discardActiveObject(t),s.value.canvas.renderAll(),s.value.activeObject=null),u.value=e},I=e=>{let t=s.value.canvas.getActiveObject();t&&(s.value.canvas.discardActiveObject(t),s.value.canvas.renderAll(),s.value.activeObject=null),v.shape.tool=e};return W(()=>u.value,(e,t)=>{s.value.tool=e}),W(()=>v.shape.tool,(e,t)=>{s.value.shape=e}),W(()=>v.text.fontFamily,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&t.editable?(t.set(`fontFamily`,e),s.value.canvas.renderAll()):Dx.fontFamily=e}}),W(()=>v.text.fill,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&t.editable?(t.set(`fill`,e),s.value.canvas.renderAll()):Dx.fill=e}}),W(()=>v.text.fontSize,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&t.editable?(t.set(`fontSize`,e),s.value.canvas.renderAll()):Dx.fontSize=e}}),W(()=>v.text.fontStyle,e=>{if(s.value){let t=s.value.canvas.getActiveObject(),n=e.toLowerCase().indexOf(`oblique`)>-1?`oblique`:`normal`,r=e.indexOf(`bold`)>-1?`bold`:`normal`;t&&t.type===`f-text`&&t.editable?(t.set(`fontStyle`,n),t.set(`fontWeight`,r),s.value.canvas.renderAll()):(Dx.fontStyle=n,Dx.fontWeight=r)}}),W(()=>v.text.textAlign,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&t.editable?(t.set(`textAlign`,e),s.value.canvas.renderAll()):Dx.textAlign=e}}),W(()=>v.text.backgroundColor,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&t.editable?(t.set(`backgroundColor`,e),s.value.canvas.renderAll()):Dx.backgroundColor=e}}),W(()=>v.text.opacity,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&t.editable?(t.set(`opacity`,parseInt(e)/100),s.value.canvas.renderAll()):Dx.opacity=parseInt(e)/100}}),W(()=>v.shape.stroke,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&(t.type===`rect`&&v.shape.tool===`rect`||t.type===`line`&&v.shape.tool===`line`)?(t.set(`stroke`,e),s.value.canvas.renderAll()):Ox.stroke=e}}),W(()=>v.shape.strokeWidth,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&(t.type===`rect`&&v.shape.tool===`rect`||t.type===`line`&&v.shape.tool===`line`)?(t.set(`strokeWidth`,e),s.value.canvas.renderAll()):Ox.strokeWidth=e}}),W(()=>v.shape.fill,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`rect`&&v.shape.tool===`rect`?(t.set(`fill`,e),s.value.canvas.renderAll()):Ox.fill=e}}),W(()=>v.shape.opacity,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&(t.type===`rect`&&v.shape.tool===`rect`||t.type===`line`&&v.shape.tool===`line`)?(t.set(`opacity`,parseInt(e)/100),s.value.canvas.renderAll()):Ox.opacity=parseInt(e)/100}}),W(()=>v.date.format,e=>{if(s.value){let t=s.value.canvas.getActiveObject();if(t&&t.type===`f-text`&&!t.editable){let n=(0,xx.default)().format(e);t.set(`text`,n),s.value.canvas.renderAll()}else kx.format=e}}),W(()=>v.date.fontFamily,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&!t.editable?(t.set(`fontFamily`,e),s.value.canvas.renderAll()):kx.fontFamily=e}}),W(()=>v.date.fill,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&!t.editable?(t.set(`fill`,e),s.value.canvas.renderAll()):kx.fill=e}}),W(()=>v.date.fontSize,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&!t.editable?(t.set(`fontSize`,e),s.value.canvas.renderAll()):kx.fontSize=e}}),W(()=>v.date.fontStyle,e=>{if(s.value){let t=s.value.canvas.getActiveObject(),n=e.toLowerCase().indexOf(`oblique`)>-1?`oblique`:`normal`,r=e.indexOf(`bold`)>-1?`bold`:`normal`;t&&t.type===`f-text`&&!t.editable?(t.set(`fontStyle`,n),t.set(`fontWeight`,r),s.value.canvas.renderAll()):(kx.fontStyle=n,kx.fontWeight=r)}}),W(()=>v.date.textAlign,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&!t.editable?(t.set(`textAlign`,e),s.value.canvas.renderAll()):kx.textAlign=e}}),W(()=>v.date.backgroundColor,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&!t.editable?(t.set(`backgroundColor`,e),s.value.canvas.renderAll()):kx.backgroundColor=e}}),W(()=>v.date.opacity,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&!t.editable?(t.set(`opacity`,parseInt(e)/100),s.value.canvas.renderAll()):kx.opacity=parseInt(e)/100}}),(e,t)=>{let r=px,s=lx,p=sx,m=rx,C=$b,T=Yb,M=Gb,N=Vb,L=Lb,R=Nb;return S(),V(`div`,uS,[c(`div`,dS,[c(`div`,fS,[c(`div`,pS,d(e.$t(`panels.customStamp.title`)),1),c(`div`,mS,[c(`div`,hS,[c(`div`,gS,d(e.$t(`panels.customStamp.preview`)),1),c(`div`,_S,[c(`div`,vS,[x(s,{onClick:t[0]||=e=>te(`text`),class:D({active:u.value===`text`}),title:e.$t(`panels.customStamp.addText`)},{default:G(()=>[x(r)]),_:1},8,[`class`,`title`]),x(s,{onClick:t[1]||=e=>te(`shape`),class:D({active:u.value===`shape`}),title:e.$t(`panels.customStamp.addShape`)},{default:G(()=>[x(p)]),_:1},8,[`class`,`title`]),x(s,{onClick:t[2]||=e=>te(`date`),class:D({active:u.value===`date`}),title:e.$t(`panels.customStamp.addDateTime`)},{default:G(()=>[x(m)]),_:1},8,[`class`,`title`])]),c(`div`,yS,[c(`div`,bS,[l.value?b(``,!0):(S(),V(`div`,xS,d(e.$t(`panels.customStamp.createHere`)),1)),c(`div`,SS,[c(`canvas`,{ref_key:`canvasElement`,ref:n,width:`300`,height:`300`},null,512)],512)])])])]),c(`div`,CS,[c(`div`,wS,d(e.$t(`panels.customStamp.properties`)),1),u.value===`text`?(S(),V(`div`,TS,[c(`div`,ES,[c(`div`,DS,d(e.$t(`panels.customStamp.fontFamily`)),1),x(K(kv),{value:v.text.fontFamily,"onUpdate:value":t[3]||=e=>v.text.fontFamily=e,options:y,to:`.text-properties`,class:`font-family property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`])]),c(`div`,OS,[c(`div`,kS,d(e.$t(`panels.customStamp.fontColor`)),1),c(`div`,AS,[c(`div`,jS,[c(`div`,MS,[c(`div`,{class:`preview`,style:A({backgroundColor:v.text.fill})},null,4)]),x(K(gv),{to:`.font-color`,onComplete:t[4]||=e=>E(e,`fill`),"onUpdate:value":t[5]||=e=>O(e,`fill`),value:v.text.fill,"show-alpha":!1},{label:G(()=>[...t[37]||=[c(`img`,{src:``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,alt:`colorPicker`},null,-1)]]),_:1},8,[`value`])])])]),c(`div`,NS,[c(`div`,PS,d(e.$t(`panels.customStamp.fontStyle`)),1),x(K(kv),{value:v.text.fontStyle,"onUpdate:value":t[6]||=e=>v.text.fontStyle=e,options:w.value,to:`.font-weight`,class:`font-weight property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`,`options`])]),c(`div`,FS,[c(`div`,IS,d(e.$t(`panels.customStamp.fontSize`)),1),x(K(kv),{value:v.text.fontSize,"onUpdate:value":t[7]||=e=>v.text.fontSize=e,options:j,to:`.font-size`,class:`font-size property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`])]),c(`div`,LS,[c(`div`,RS,d(e.$t(`panels.customStamp.alignment`)),1),c(`div`,zS,[c(`div`,BS,[c(`div`,{class:D({active:v.text.textAlign===`left`}),onClick:t[8]||=e=>k(`left`)},[c(`span`,VS,[x(T)])],2),c(`div`,{class:D({active:v.text.textAlign===`center`}),onClick:t[9]||=e=>k(`center`)},[c(`span`,HS,[x(M)])],2),c(`div`,{class:D({active:v.text.textAlign===`right`}),onClick:t[10]||=e=>k(`right`)},[c(`span`,null,[x(N)])],2)])])]),c(`div`,US,[c(`div`,WS,d(e.$t(`panels.customStamp.fillColor`)),1),c(`div`,GS,[c(`span`,{class:D([`no-color`,{active:v.text.backgroundColor===``}]),onClick:t[11]||=e=>v.text.backgroundColor=``},[x(_x)],2),c(`div`,KS,[c(`div`,{class:D([`preview-container`,{active:v.text.backgroundColor===i.value}])},[c(`div`,{class:`preview`,style:A({backgroundColor:i.value})},null,4)],2),x(K(gv),{to:`.fill-color`,onComplete:t[12]||=e=>E(e,`backgroundColor`),"onUpdate:value":t[13]||=e=>O(e,`backgroundColor`),value:i.value,"show-alpha":!1},{label:G(()=>[...t[38]||=[c(`img`,{src:``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,alt:`colorPicker`},null,-1)]]),_:1},8,[`value`])])])]),c(`div`,qS,[c(`div`,JS,d(e.$t(`panels.customStamp.opacity`)),1),x(K(kv),{value:v.text.opacity,"onUpdate:value":t[14]||=e=>v.text.opacity=e,options:ee,to:`.text-properties`,class:`opacity property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`])])])):b(``,!0),u.value===`shape`?(S(),V(`div`,YS,[c(`div`,XS,[c(`div`,ZS,d(e.$t(`panels.customStamp.shape`)),1),c(`div`,QS,[x(s,{onClick:t[15]||=e=>I(`rect`),class:D({active:v.shape.tool===`rect`})},{default:G(()=>[x(L)]),_:1},8,[`class`]),x(s,{onClick:t[16]||=e=>I(`line`),class:D({active:v.shape.tool===`line`})},{default:G(()=>[x(R)]),_:1},8,[`class`])])]),c(`div`,$S,[c(`div`,eC,d(e.$t(`panels.customStamp.borderColor`)),1),c(`div`,tC,[c(`div`,nC,[c(`div`,rC,[c(`div`,{class:`preview`,style:A({backgroundColor:v.shape.stroke})},null,4)]),x(K(gv),{to:`.shape-properties`,onComplete:t[17]||=e=>E(e,`stroke`),"onUpdate:value":t[18]||=e=>O(e,`stroke`),value:v.shape.stroke,"show-alpha":!1},{label:G(()=>[...t[39]||=[c(`img`,{src:``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,alt:`colorPicker`},null,-1)]]),_:1},8,[`value`])])])]),c(`div`,iC,[c(`div`,aC,d(e.$t(`panels.customStamp.borderWidth`)),1),x(K(kv),{value:v.shape.strokeWidth,"onUpdate:value":t[19]||=e=>v.shape.strokeWidth=e,options:P,to:`.shape-properties`,class:`border-width property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`])]),v.shape.tool===`rect`?(S(),V(`div`,oC,[c(`div`,sC,d(e.$t(`panels.customStamp.fillColor`)),1),c(`div`,cC,[c(`span`,{class:D([`no-color`,{active:v.shape.fill===``}]),onClick:t[20]||=e=>v.shape.fill=``},[x(_x)],2),c(`div`,lC,[c(`div`,{class:D([`preview-container`,{active:v.shape.fill===a.value}])},[c(`div`,{class:`preview`,style:A({backgroundColor:a.value})},null,4)],2),x(K(gv),{to:`.shape-properties`,onComplete:t[21]||=e=>E(e,`fill`),"onUpdate:value":t[22]||=e=>O(e,`fill`),value:a.value,"show-alpha":!1},{label:G(()=>[...t[40]||=[c(`img`,{src:``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,alt:`colorPicker`},null,-1)]]),_:1},8,[`value`])])])])):b(``,!0),c(`div`,uC,[c(`div`,dC,d(e.$t(`panels.customStamp.opacity`)),1),x(K(kv),{value:v.shape.opacity,"onUpdate:value":t[23]||=e=>v.shape.opacity=e,options:ee,to:`.shape-properties`,class:`fill-opacity property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`])])])):b(``,!0),u.value===`date`?(S(),V(`div`,fC,[c(`div`,pC,[c(`div`,mC,d(e.$t(`panels.customStamp.dateTime`)),1),x(K(kv),{"consistent-menu-width":!1,value:v.date.format,"onUpdate:value":t[24]||=e=>v.date.format=e,options:F,to:`.date-properties`,class:`text-family property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`])]),c(`div`,hC,[c(`div`,gC,d(e.$t(`panels.customStamp.fontFamily`)),1),x(K(kv),{value:v.date.fontFamily,"onUpdate:value":t[25]||=e=>v.date.fontFamily=e,options:y,to:`.date-properties`,class:`text-family property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`])]),c(`div`,_C,[c(`div`,vC,d(e.$t(`panels.customStamp.fontColor`)),1),c(`div`,yC,[c(`div`,bC,[c(`div`,xC,[c(`div`,{class:`preview`,style:A({backgroundColor:v.date.fill})},null,4)]),x(K(gv),{to:`.date-properties`,onComplete:t[26]||=e=>E(e,`fill`),"onUpdate:value":t[27]||=e=>O(e,`fill`),value:v.date.fill,"show-alpha":!1},{label:G(()=>[...t[41]||=[c(`img`,{src:``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,alt:`colorPicker`},null,-1)]]),_:1},8,[`value`])])])]),c(`div`,SC,[c(`div`,CC,d(e.$t(`panels.customStamp.fontStyle`)),1),x(K(kv),{value:v.date.fontStyle,"onUpdate:value":t[28]||=e=>v.date.fontStyle=e,options:w.value,to:`.date-properties`,class:`text-family property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`,`options`])]),c(`div`,wC,[c(`div`,TC,d(e.$t(`panels.customStamp.fontSize`)),1),x(K(kv),{value:v.date.fontSize,"onUpdate:value":t[29]||=e=>v.date.fontSize=e,options:j,to:`.date-properties`,class:`font-size property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`])]),c(`div`,EC,[c(`div`,DC,d(e.$t(`panels.customStamp.alignment`)),1),c(`div`,OC,[c(`div`,kC,[c(`div`,{class:D({active:v.date.textAlign===`left`}),onClick:t[30]||=e=>k(`left`)},[c(`span`,AC,[x(T)])],2),c(`div`,{class:D({active:v.date.textAlign===`center`}),onClick:t[31]||=e=>k(`center`)},[c(`span`,jC,[x(M)])],2),c(`div`,{class:D({active:v.date.textAlign===`right`}),onClick:t[32]||=e=>k(`right`)},[c(`span`,null,[x(N)])],2)])])]),c(`div`,MC,[c(`div`,NC,d(e.$t(`panels.customStamp.fillColor`)),1),c(`div`,PC,[c(`span`,{class:D([`no-color`,{active:v.date.backgroundColor===``}]),onClick:t[33]||=e=>v.date.backgroundColor=``},[x(_x)],2),c(`div`,FC,[c(`div`,{class:D([`preview-container`,{active:v.date.backgroundColor===o.value}])},[c(`div`,{class:`preview`,style:A({backgroundColor:o.value})},null,4)],2),x(K(gv),{to:`.date-properties`,onComplete:t[34]||=e=>E(e,`backgroundColor`),"onUpdate:value":t[35]||=e=>O(e,`backgroundColor`),value:o.value,"show-alpha":!1},{label:G(()=>[...t[42]||=[c(`img`,{src:``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,alt:`colorPicker`},null,-1)]]),_:1},8,[`value`])])])]),c(`div`,IC,[c(`div`,LC,d(e.$t(`panels.customStamp.opacity`)),1),x(K(kv),{value:v.date.opacity,"onUpdate:value":t[36]||=e=>v.date.opacity=e,options:ee,to:`.date-properties`,class:`opacity property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`])])])):b(``,!0)])]),c(`div`,RC,[c(`span`,{onClick:g},d(e.$t(`common.actions.clear`)),1),c(`div`,zC,[c(`span`,{class:`cancel-container`,onClick:_},d(e.$t(`common.actions.cancel`)),1),c(`span`,{class:D({disabled:l.value===0}),onClick:f},d(e.$t(`common.actions.ok`)),3)])])])])])}}},VC={key:0,class:`dialog`},HC={class:`dialog-wrapper`},UC={key:0,class:`close`},WC={__name:`Dialog`,props:[`show`,`dialogName`,`close`],setup(e){let t=ye(),n=()=>{e.dialogName&&t.closeElement(e.dialogName)},r=t=>{typeof e.close==`function`?e.close(t):n()};return(t,n)=>{let i=Le,a=Ne,o=Fe;return e.show?(S(),V(`div`,VC,[c(`div`,HC,[c(`div`,{class:`dialog-container`,onClick:n[0]||=Ae(()=>{},[`stop`])},[e.close?(S(),V(`div`,UC,[e.close===`A`?(S(),s(i,{key:0,onClick:r})):b(``,!0),e.close===`B`?(S(),s(a,{key:1,onClick:r})):(S(),s(o,{key:2,onClick:r}))])):b(``,!0),c(`header`,null,[be(t.$slots,`header`)]),c(`main`,null,[be(t.$slots,`default`)]),c(`footer`,null,[be(t.$slots,`footer`)])])])])):b(``,!0)}}},GC={},KC={width:`40`,height:`40`,viewBox:`0 0 40 40`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function qC(e,t){return S(),V(`svg`,KC,[...t[0]||=[c(`path`,{d:`M20 36.6667C29.2047 36.6667 36.6667 29.2047 36.6667 20C36.6667 10.7952 29.2047 3.33333 20 3.33333C10.7952 3.33333 3.33333 10.7952 3.33333 20C3.33333 29.2047 10.7952 36.6667 20 36.6667Z`,fill:`#FFC061`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M21.6667 12.5C21.6667 11.5795 20.9205 10.8333 20 10.8333C19.0795 10.8333 18.3333 11.5795 18.3333 12.5L18.3333 22.5C18.3333 23.4205 19.0795 24.1667 20 24.1667C20.9205 24.1667 21.6667 23.4205 21.6667 22.5L21.6667 12.5ZM20.1667 29.3333C21.0871 29.3333 21.8333 28.5871 21.8333 27.6667C21.8333 26.7462 21.0871 26 20.1667 26C19.2462 26 18.5 26.7462 18.5 27.6667C18.5 28.5871 19.2462 29.3333 20.1667 29.3333Z`,fill:`white`},null,-1)]])}var JC=B(GC,[[`render`,qC]]),YC={},XC={width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function ZC(e,t){return S(),V(`svg`,XC,[...t[0]||=[c(`rect`,{width:`14`,height:`14`,rx:`1`,fill:`#2D77FA`},null,-1),c(`path`,{d:`M10.2784 5.27848L5.84653 9.71032L4.20261 8.06642`,stroke:`white`,"stroke-width":`1.5`,"stroke-linecap":`square`},null,-1)]])}var QC=B(YC,[[`render`,ZC]]),$C={},ew={width:`8`,height:`16`,viewBox:`0 0 8 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function tw(e,t){return S(),V(`svg`,ew,[...t[0]||=[c(`g`,{id:`.base / Sliders`},[c(`rect`,{id:`Rectangle`,width:`8`,height:`16`,rx:`4`,fill:`#1460F3`})],-1)]])}var nw=B($C,[[`render`,tw]]),rw={},iw={width:`112`,height:`112`,viewBox:`0 0 112 112`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function aw(e,t){return S(),V(`svg`,iw,[...t[0]||=[v(`<rect x="20" y="30" width="58" height="44" rx="3.168" fill="#4982E6" fill-opacity="0.15"></rect><rect x="20.5" y="30.5" width="57" height="43" rx="2.668" stroke="#4982E6" stroke-dasharray="4 4"></rect><path fill-rule="evenodd" clip-rule="evenodd" d="M30 41.168C30 39.4184 31.4184 38 33.168 38H84.832C86.5816 38 88 39.4184 88 41.168V78.832C88 80.5816 86.5816 82 84.832 82H33.168C31.4184 82 30 80.5816 30 78.832L30 41.168Z" fill="#FCFDFF"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M77 54C79.7614 54 82 51.7614 82 49C82 46.2386 79.7614 44 77 44C74.2386 44 72 46.2386 72 49C72 51.7614 74.2386 54 77 54ZM36 76H79.1397L61.8379 61L54.3148 68.1755L38.7391 56L36 58.8801V76Z" fill="#E2E3E6"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M92.2373 71.6307L81.4619 68.3981L84.6945 79.1734C84.902 79.865 85.8082 80.0262 86.2414 79.4485L87.8623 77.2874L89.5512 78.9764C89.8949 79.32 90.4521 79.32 90.7957 78.9764L92.0402 77.7319C92.3839 77.3882 92.3839 76.831 92.0402 76.4874L90.3513 74.7984L92.5124 73.1775C93.09 72.7443 92.9289 71.8381 92.2373 71.6307Z" fill="#273C62" fill-opacity="0.6"></path>`,5)]])}var ow=B(rw,[[`render`,aw]]),sw={},cw={width:`112`,height:`112`,viewBox:`0 0 112 112`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function lw(e,t){return S(),V(`svg`,cw,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M27.2002 22.4002C27.2002 20.6329 28.6329 19.2002 30.4002 19.2002H68.8002L81.6002 32.0002V88.0002C81.6002 89.7675 80.1675 91.2002 78.4002 91.2002H30.4002C28.6329 91.2002 27.2002 89.7675 27.2002 88.0002V22.4002Z`,fill:`#54575C`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M68.7998 19.2002L81.5998 32.0002H71.9998C70.2325 32.0002 68.7998 30.5675 68.7998 28.8002V19.2002Z`,fill:`#606773`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M34.4002 36.7998C33.9584 36.7998 33.6002 37.158 33.6002 37.5998V41.5998C33.6002 42.0416 33.9584 42.3998 34.4002 42.3998H74.4002C74.842 42.3998 75.2002 42.0416 75.2002 41.5998V37.5998C75.2002 37.158 74.842 36.7998 74.4002 36.7998H34.4002ZM34.4001 47.2C33.9583 47.2 33.6001 47.5582 33.6001 48V52C33.6001 52.4418 33.9583 52.8 34.4001 52.8H74.4001C74.8419 52.8 75.2001 52.4418 75.2001 52V48C75.2001 47.5582 74.8419 47.2 74.4001 47.2H34.4001ZM33.6001 58.4C33.6001 57.9582 33.9583 57.6 34.4001 57.6H74.4001C74.8419 57.6 75.2001 57.9582 75.2001 58.4V62.4C75.2001 62.8418 74.8419 63.2 74.4001 63.2H34.4001C33.9583 63.2 33.6001 62.8418 33.6001 62.4V58.4ZM34.4001 68C33.9583 68 33.6001 68.3582 33.6001 68.8V72.8C33.6001 73.2418 33.9583 73.6 34.4001 73.6H55.2001C55.6419 73.6 56.0001 73.2418 56.0001 72.8V68.8C56.0001 68.3582 55.6419 68 55.2001 68H34.4001Z`,fill:`#606773`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M77.6 67.2002C74.2863 67.2002 71.6 69.8865 71.6 73.2002C71.6 75.4018 72.7857 77.3264 74.5534 78.3703C74.7147 78.8387 74.8174 79.3262 74.8174 79.8082C74.8174 82.0522 72.5913 82.263 72.5913 82.263L67.2 82.2631C65.4327 82.2631 64 83.6958 64 85.4631V89.6002H91.2V85.4631C91.2 83.6958 89.7673 82.2631 88 82.2631L82.6087 82.263C82.6087 82.263 80.3826 82.0522 80.3826 79.8082C80.3826 79.3262 80.4853 78.8387 80.6466 78.3703C82.4143 77.3264 83.6 75.4018 83.6 73.2002C83.6 69.8865 80.9137 67.2002 77.6 67.2002ZM64 93.6002V91.2002H91.2V93.6002C91.2 94.042 90.8418 94.4002 90.4 94.4002H64.8C64.3582 94.4002 64 94.042 64 93.6002Z`,fill:`#6499FF`},null,-1)]])}var uw=B(sw,[[`render`,lw]]),dw=[L.INK,L.LINE,L.SQUARE,L.ARC,L.POLYGON,L.POLYLINE,L.CIRCLE,L.FREETEXT,L.TEXT,L.HIGHLIGHT,L.UNDERLINE,L.SQUIGGLY,L.STRIKEOUT,L.IMAGE,L.STAMP,L.POLYGON,`rectangle`,L.POLYLINE],fw=xe(`document`,{state:()=>({totalPages:0,loadingProgress:0,annotationsCount:0,info:null,optionUrl:null,markupTool:L.HIGHLIGHT,selected:{data:null},highlight:{color:`#FFEC66`},underline:{color:`#FF0000`},squiggly:{color:`#FF0000`},strikeout:{color:`#FF0000`},shapeTool:L.SQUARE,square:{color:`#FF0000`,opacity:`0.8`,stroke:`1pt`},arc:{color:`#FF0000`,opacity:`0.8`,stroke:`1pt`},polygon:{color:`#FF0000`,opacity:`0.8`,stroke:`1pt`},polyline:{color:`#FF0000`,opacity:`0.8`,stroke:`1pt`},circle:{color:`#FF0000`,opacity:`0.8`,stroke:`1pt`},arrow:{color:`#FF0000`,opacity:`0.8`,stroke:`1pt`},line:{color:`#FF0000`,opacity:`0.8`,stroke:`1pt`},ink:{color:`#FF0000`,opacity:`0.8`,stroke:`2pt`},freetext:{color:`#000000`},text:{color:`#FF0000`},activeTool:``,annotations:null,textfield:{color:`#DDE9FF`},checkbox:{color:`#DDE9FF`,borderColor:`#43474D`},radiobutton:{color:`#DDE9FF`,borderColor:`#43474D`},listbox:{color:`#DDE9FF`,borderColor:`#43474D`},combobox:{color:`#DDE9FF`,borderColor:`#43474D`},pushbutton:{color:`#DDE9FF`,borderColor:`#43474D`},link:{color:`#DDE9FF`},signatureFields:{color:`#DDE9FF`},redaction:{color:`#000000`},remove:{color:`#FF0000`},propertyPanel:{fieldName:``,isHidden:`0`,title:``,fillColor:`#DDE9FF`,color:`#000000`,fontName:`Helvetica`,fontStyle:`normal`,fontWeight:`normal`,fontSize:`14`,textAlignment:`0`,contents:``,isMultiLine:!1,project:``,projectList:``,checkStyle:0,isChecked:``,actionType:`0`,text:`OK`,url:``,destPage:``,items:[],item:null,deleteItemIndex:null,moveOption:null,indicator:!1,indicatorText:`Fill`},compareFiles:{oldFile:null,oldFilePassword:``,newFile:null,newFilePassword:``},compareSettings:{oldFileColor:`#FBBDBF`,newFileColor:`#93B9FD`},currentPdfData:null,fileHasPwd:!1,pwd:null,compareResult:null,outlines:[],activeOutlineId:null,searchResults:[],activeSearchResult:null,signatures:[],selectedSignature:null,trustedCertificateLists:[],author:`ComPDF`,annotator:`Guest`,highlightLink:!0,highlightForm:!0,redactionPrompted:!1,autoJumpNextSign:!0,disableDigitalSignature:!1,disableElectronicSignature:!1,layers:[],selectedLayer:null,firstEnterRedactionTool:``,measure:{scale:{base:1,baseUnit:`cm`,translate:1,translateUnit:`cm`},precision:.1},documentEditor:{operationList:[],pageList:[],selectedPageList:[]},canUndo:{content:!1,annotation:!1},canRedo:{content:!1,annotation:!1}}),getters:{getTotalPages(){return this.totalPages},getLoadingProgress(){return this.loadingProgress},getAnnotationsCount(){return this.annotationsCount+` annotation`+(this.annotationsCount>1?`s`:``)},getMeasure(){return this.measure},getPrecision(){return this.measure.precision===1?.1:.01},getInfo(){return this.info},getOptionUrl(){return this.optionUrl},getMarkupToolState(){return this.markupTool},getLineType(){return this.line.type},getActiveToolColor(){if(this.activeTool)return this[this.activeTool].color},getActiveTool(){return this.activeTool},getShapeToolState(){return this.shapeTool},getAllAnnotations(){let e={annotations:{},annotationsCount:0},t=this.annotations;if(!t)return e;let n=t.length;for(let r=0;r<n;r++){let n=t[r];if(dw.includes(n.type)&&!n.inReplyTo){let t=n.PageNumber-1;e.annotations[t]||(e.annotations[t]={pageAnnotationsCount:0,annotations:[]}),e.annotations[t].pageAnnotationsCount++,e.annotationsCount++,e.annotations[t].annotations.push(n)}}return e},getAnnotations(e){return this.annotations&&this.annotations[e]},getCompareFile(e){return t=>e.compareFiles[t]},getCompareFiles(){return this.compareFiles},getCompareSetting(e){return t=>e.compareSettings[t]},getCurrentPdfData(){return this.currentPdfData},getFilehasPwd(){return this.fileHasPwd},getPassword(){return this.pwd},getCompareResult(){return this.compareResult},getOutlines(){return this.outlines},getActiveOutlineId(){return this.activeOutlineId},getSearchResults(){return this.searchResults},getActiveSearchResult(){return this.activeSearchResult},getDocEditorOperationList(){return this.documentEditor.operationList},getSignatures(){let e=this.annotations;return e?e.filter(e=>e.type===`signatureFields`&&e.annotation.isSignedDigitally):[]},getSelectedSignature(){return this.selectedSignature},getPkcs12(){return this.pkcs12},getTrustedCertificateLists(){return this.trustedCertificateLists},getAuthor(){return this.author},getAnnotator(){return this.annotator},getHighlightLink(){return this.highlightLink},getHighlightForm(){return this.highlightForm},getRedactionPrompted(){return this.redactionPrompted},getAutoJumpNextSign(){return this.autoJumpNextSign},getDisableDigitalSignature(){return this.disableDigitalSignature},getDisableElectronicSignature(){return this.disableElectronicSignature},getLayers(){return this.layers},getSelectedLayer(){return this.selectedLayer},getFirstEnterRedactionTool(){return this.firstEnterRedactionTool},getSelectedAnnotation(){return this.selectedAnnotation},getSelect(){return this.selected},getDocEditorPageList(){return this.documentEditor.pageList},getDocEditorSelectedPageList(){return this.documentEditor.selectedPageList},getCanUndo(e){return t=>e.canUndo[t]},getCanRedo(e){return t=>e.canRedo[t]}},actions:{resetSetting(){this.totalPages=0,this.loadingProgress=0,this.annotationsCount=0,this.annotations=null,this.outlines=[],this.activeOutlineId=null,this.searchResults=[],this.documentEditor.operationList.length=0,this.documentEditor.pageList.length=0,this.documentEditor.selectedPageList.length=0,this.signatures=[],this.layers=[],this.selectedAnnotation=null},setTotalPages(e){this.totalPages=e},setLoadingProgress(e){this.loadingProgress=e},setAnnotationsCount(e){this.annotationsCount=e},setOptionUrl(e){this.optionUrl=e},setToken(e){this.info=e},setDistance(e){this.measure.distance=Math.round(e*10)/10},setMarkupToolState(e){this.markupTool=e},setMarkupToolColor(e){this[this.markupTool]=e},setShapeToolState(e){this.shapeTool=e},setLineType(e){this.line.type=e},setLineColor(e){this.line.color=e},setActiveTool(e){this.activeTool=e},setActiveToolColor(e){this.activeTool&&(this[this.activeTool].color=e,U.setTool(this.activeTool))},setToolState(e){if(this.activeTool===e||!e){this.activeTool=``,U.setTool(``);return}let t=ne[e];U.setTool(t.tool,t.toolName)&&(this.activeTool=t.toolName||t.tool,[L.TEXTFIELD,L.CHECKBOX,L.RADIOBUTTON,L.PUSHBUTTON].includes(t.tool)&&U.setInitProperty())},initAnnotations(e){this.annotations=null,this.annotations=F(e)},setAnnotations(e,t){let n=this.annotations;if(t===`add`)n[e[page]]||(n[page]=[]),n[page].push(e);else{let r=n[e[page]],i=r.findIndex(t=>t.index===e.index);t===`delete`?r[i].isDelete=!0:r[i]={...r[i],...e}}},setPropertyPanel(e){let t={};for(let n in e)for(let r in this.propertyPanel)n===r&&(t[r]=e[n]);U.setPropertyPanel(t)},setProperty(e,t){this.propertyPanel[e]=t},setCompareFiles(e,t){this.compareFiles[e]=t},initCompareFiles(){this.compareFiles.oldFile=null,this.compareFiles.oldFilePassword=``,this.compareFiles.newFile=null,this.compareFiles.newFilePassword=``},setCompareSetting(e,t){this.compareSettings[e]=t},initCompareSetting(){this.compareSettings={oldFileColor:`#FBBDBF`,newFileColor:`#93B9FD`}},setCurrentPdfData(e,t){e&&t?(this.currentPdfData||={},this.currentPdfData.pdf=e,this.currentPdfData.options=t):e?this.currentPdfData.pdf=e:this.currentPdfData=null},setFileHasPwd(e){this.fileHasPwd=e},setPassword(e){this.pwd=e},setCompareResult(e){this.compareResult=e},setOutline(e){this.outlines=e},setActiveOutlineId(e){this.activeOutlineId=e},setSearchResults(e){this.searchResults=e},setActiveSearchResult(e){this.activeSearchResult=e},setDocEditorOperationList(e){this.documentEditor.operationList.push(e)},setSelectedSignature(e){this.selectedSignature=e},setPkcs12(e){this.pkcs12=e},setTrustedCertificateLists(e){this.trustedCertificateLists.push(e)},setAuthor(e){this.author=e},setCurrentUser(e){this.annotator=e,U.setCurrentUser(e)},setHighlightLink(e){this.highlightLink=e,U.setHighlightLink(e)},setHighlightForm(e){this.highlightForm=e,U.setHighlightForm(e)},dispatch(e){return this[e]},getState(e){return e?this.$state[e]:this.$state},setRedactionPrompted(e){this.redactionPrompted=e},setAutoJumpNextSign(e){this.autoJumpNextSign=e,U.setAutoJumpNextSign(e)},setDisableDigitalSignature(e){this.disableDigitalSignature=e},setDisableElectronicSignature(e){this.disableElectronicSignature=e},setLayers(e){this.layers=e},setSelectedLayer(e){this.selectedLayer=e},setFirstEnterRedactionTool(e){this.firstEnterRedactionTool=e},setSelectedAnnotation(e){this.selectedAnnotation=e,this.selected.data=e},setCanUndo(e,t){!t&&this.canUndo.hasOwnProperty(t)||(this.canUndo[t]=e)},setCanRedo(e,t){!t&&this.canRedo.hasOwnProperty(t)||(this.canRedo[t]=e)}}}),pw=`data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='&%23229;&%23133;&%23179;&%23233;&%23151;&%23173;_close-one%20(1)%201'%3e%3cpath%20id='Vector'%20d='M12%2022C17.5228%2022%2022%2017.5228%2022%2012C22%206.47715%2017.5228%202%2012%202C6.47715%202%202%206.47715%202%2012C2%2017.5228%206.47715%2022%2012%2022Z'%20fill='%23F87171'%20stroke='%23F87171'%20stroke-width='1.04167'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M15%209L9%2015'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_3'%20d='M9%209L15%2015'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e`,mw=e=>new Promise((t,n)=>{let r=document.createElement(`input`);r.type=`file`,r.style.display=`none`,r.accept=e,r.onchange=()=>{r.files&&(t(r.files[0]),r.remove())},document.body.appendChild(r),r.click()}),hw=(e,t,n)=>{let r,i,a;if(t===0)r=i=a=n;else{let o=function(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e},s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=Math.round(o(c,s,e+1/3)*255),i=Math.round(o(c,s,e)*255),a=Math.round(o(c,s,e-1/3)*255)}return{R:r,G:i,B:a}},gw=e=>{if(!e)return null;if(e.startsWith(`#`)){let t=e.slice(1).match(/.{2}/g);if(t)return{R:parseInt(t[0],16),G:parseInt(t[1],16),B:parseInt(t[2],16)}}if(e.startsWith(`rgb`)){let t=e.match(/\d+/g);if(t&&t.length===3)return{R:parseInt(t[0]),G:parseInt(t[1]),B:parseInt(t[2])}}if(e.startsWith(`hsl`)){let t=e.match(/(\d+),\s*(\d+%),\s*(\d+%)/);if(t){let[e,n,r]=[parseInt(t[1]),parseInt(t[2])/100,parseInt(t[3])/100],{R:i,G:a,B:o}=hw(e/360,n,r);return{R:i,G:a,B:o}}}},_w=(e,t,n=10)=>{let r=gw(e),i=gw(t);if(!r||!i)return!1;let a=Math.abs(r.R-i.R),o=Math.abs(r.G-i.G),s=Math.abs(r.B-i.B);return a<=n&&o<=n&&s<=n},vw={},yw={width:`112`,height:`112`,viewBox:`0 0 112 112`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function bw(e,t){return S(),V(`svg`,yw,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M27.2 22.4002C27.2 20.6329 28.6327 19.2002 30.4 19.2002H68.8L81.6 32.0002V88.0002C81.6 89.7675 80.1673 91.2002 78.4 91.2002H30.4C28.6327 91.2002 27.2 89.7675 27.2 88.0002V22.4002Z`,fill:`#F5F6FA`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M68.8 19.2002L81.6 32.0002H72C70.2327 32.0002 68.8 30.5675 68.8 28.8002V19.2002Z`,fill:`#E2E3E6`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M34.4 36.7998C33.9582 36.7998 33.6 37.158 33.6 37.5998V41.5998C33.6 42.0416 33.9582 42.3998 34.4 42.3998H74.4C74.8418 42.3998 75.2 42.0416 75.2 41.5998V37.5998C75.2 37.158 74.8418 36.7998 74.4 36.7998H34.4ZM34.4 47.2C33.9582 47.2 33.6 47.5582 33.6 48V52C33.6 52.4418 33.9582 52.8 34.4 52.8H74.4C74.8418 52.8 75.2 52.4418 75.2 52V48C75.2 47.5582 74.8418 47.2 74.4 47.2H34.4ZM33.6 58.4C33.6 57.9582 33.9582 57.6 34.4 57.6H74.4C74.8418 57.6 75.2 57.9582 75.2 58.4V62.4C75.2 62.8418 74.8418 63.2 74.4 63.2H34.4C33.9582 63.2 33.6 62.8418 33.6 62.4V58.4ZM34.4 68C33.9582 68 33.6 68.3582 33.6 68.8V72.8C33.6 73.2418 33.9582 73.6 34.4 73.6H55.2C55.6418 73.6 56 73.2418 56 72.8V68.8C56 68.3582 55.6418 68 55.2 68H34.4Z`,fill:`#E2E3E6`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M77.6 67.2002C74.2863 67.2002 71.6 69.8865 71.6 73.2002C71.6 75.4018 72.7857 77.3264 74.5534 78.3703C74.7147 78.8387 74.8174 79.3262 74.8174 79.8082C74.8174 82.0522 72.5913 82.263 72.5913 82.263L67.2 82.2631C65.4327 82.2631 64 83.6958 64 85.4631V89.6002H91.2V85.4631C91.2 83.6958 89.7673 82.2631 88 82.2631L82.6087 82.263C82.6087 82.263 80.3826 82.0522 80.3826 79.8082C80.3826 79.3262 80.4853 78.8387 80.6466 78.3703C82.4143 77.3264 83.6 75.4018 83.6 73.2002C83.6 69.8865 80.9137 67.2002 77.6 67.2002ZM64 93.6002V91.2002H91.2V93.6002C91.2 94.042 90.8418 94.4002 90.4 94.4002H64.8C64.3582 94.4002 64 94.042 64 93.6002Z`,fill:`#273C62`,"fill-opacity":`0.6`},null,-1)]])}var xw=B(vw,[[`render`,bw]]),Sw={class:`signatures-popup`},Cw={class:`sign-title`},ww={class:`sign-content`},Tw={key:0,class:`sign-popup-header`},Ew={class:`signatures-popup-lists`},Dw={key:0,class:`signatures-popup-empty`},Ow={class:`no-signatures`},kw={key:1,class:`signatures-popup-list-container`},Aw=[`onClick`],jw=[`src`],Mw={class:`signatures-popup-create`},Nw={class:`create-sign-header`},Pw=[`onClick`],Fw=[`width`,`height`],Iw={class:`keyboard-paint`},Lw=[`placeholder`],Rw={key:0,class:`property-container`},zw={class:`width-tool`},Bw={key:0},Vw={class:`font-tool`},Hw={key:0},Uw={class:`color-tool`},Ww={key:0},Gw={class:`colors-container`},Kw=[`onClick`],qw={key:0,class:`color-picker`},Jw={class:`footer`},Yw={class:`clear-container`},Xw={key:0,class:`left-btns`},Zw={key:0},Qw={key:1},$w={class:`buttons-container`},eT={class:`right-btns`},tT={key:0,class:`delete-page-popup`},nT={__name:`SignCreatePanel`,setup(e){let{t}=It(),n=ye(),r=fw(),i=T(()=>n.isElementOpen(H.SIGN_CREATE_PANEL)),a=T(()=>n.getActiveElementTab(`signPanel`)),o=T(()=>n.getToolMode),l=T(()=>n.getSignatureDialogTabs),u=T(()=>n.getSignatureDialogProperties),f=T(()=>r.getDisableDigitalSignature),p=T(()=>r.getDisableElectronicSignature),m=T(()=>n.getElectronicSignaturesList),g=T(()=>n.getTheme),_=T(()=>r.getActiveTool),v=T(()=>n.getEnableSignatureTemplates),C=J(!1),O=J(0),k=J(``),j=J(``),M=J(u.value.trackpad.lineWidth||5),N=J(u.value[a.value].colors[0].value||`#000000`),P=J(u.value.keyboard.fonts[0].fontFamily||`Courier New`),ee=J(u.value.keyboard.fonts.map(e=>({label:e.label,value:e.fontFamily,style:{fontFamily:e.fontFamily}}))),F=J(),te=J(oe?289:578),I=J(270),ne=J(`rgb(0, 0, 0)`),re=J(`create`),ie=J(!0);m.value.length>=5&&(ie.value=!1);let B=(e,t)=>{e.stopPropagation(),C.value=!0,O.value=t},ae=()=>{n.removeElectronicSignature(O.value),C.value=!1};W(()=>u.value.keyboard.fonts,(e,t)=>{P.value=e[0]||`Courier New`,ee.value=e.map(e=>({label:e.label,value:e.fontFamily,style:{fontFamily:e.fontFamily}}))}),W(()=>o.value,(e,t)=>{if(!(t===`sign`&&e===`view`)&&e!==t){let e=document.getElementById(`sign-image-save`);e&&e.remove()}}),W(()=>M.value,(e,t)=>{e!==``&&(e>10||e<=0||!/^\d+$/.test(e))&&(M.value=t),a.value===`trackpad`&&U.handleSign({flag:`update`,param:{width:M.value,color:N.value}})}),W(()=>N.value,(e,t)=>{if(U.handleSign({flag:`update`,param:{width:M.value,color:N.value}}),a.value===`keyboard`){ne.value=N.value;let e=document.querySelector(`.keyboard-paint input`);e&&(e.style.color=N.value)}}),W(()=>i.value,(e,t)=>{e&&(oe&&E(()=>{let{clientWidth:e,clientHeight:t}=F.value;e&&te.value!==e&&(te.value=e),t&&I.value!==t&&(I.value=t)}),n.setActiveSignWay(`keyboard`),k.value=``,U.handleSign({flag:`create`}))}),W(()=>re.value,(e,t)=>{e===`create`&&oe&&E(()=>{let{clientWidth:e,clientHeight:t}=F.value;e&&te.value!==e&&(te.value=e),t&&I.value!==t&&(I.value=t)})}),W(()=>m.value,e=>{e&&e.length>=5?ie.value=!1:ie.value||=!0},{deep:!0}),W(()=>i.value,e=>{v.value&&(e&&m.value.length>0?re.value=`list`:e&&m.value.length===0&&(re.value=`create`))}),W(()=>a.value,(e,t)=>{t===`trackpad`&&U.handleSign({flag:`clear`}),k.value=``,j.value=``});let se=e=>{a.value!==e&&(n.setActiveSignWay(e),le(),ue())},ce=e=>{n.toggleElement(`signCreatePanel`),U.handleSign({flag:`reset`}),a.value!==`trackpad`&&le(),ue(),document.body.style.overflow=``,e===`cancel`&&f.value&&p.value&&n.openElement(H.SELECT_SIGN_TYPE_DIALOG)},le=()=>{if(a.value===`keyboard`&&(k.value=``),a.value===`image`){j.value=``;let e=document.querySelector(`.image-paint`),t=document.querySelector(`.image-paint input`),n=document.querySelector(`.image-paint a`),r=document.querySelector(`.image-paint img`);e&&(r&&(e.removeChild(r),t.value=``),n&&(n.style.display=`block`))}a.value===`trackpad`&&U.handleSign({flag:`clear`})},ue=()=>{let e=u.value.trackpad.lineWidth||5,t=[`trackpad`,`keyboard`].includes(a.value)&&u.value[a.value].colors[0].value||`#000000`,n=u.value.keyboard.fonts[0].fontFamily||`Courier New`;N.value!==t&&(N.value=t),P.value!==n&&(P.value=n),M.value!==e&&(M.value=e,U.handleSign({flag:`update`,param:{width:M.value,color:N.value}}))},de=e=>{e.preventDefault(),e.stopPropagation();let t=e.dataTransfer.files[0];pe(t)},fe=e=>{let n=e.target.files[0];if(n.size>1024*1024){window.$message.error(t(`signatures.uploadError`),{duration:5e3,icon:()=>Y(`img`,{src:pw})}),e.target.value=``;return}e.target.value=``,pe(n)},pe=e=>{o.value===`annotation`&&(r.setToolState(L.IMAGE),U.handleCreateStatus({bool:!0,fileData:e}));let t=new FileReader;t.readAsDataURL(e),t.onload=function(){j.value=t.result;let e=document.querySelector(`.image-paint`),n=document.querySelector(`.image-paint a`);if(e){let t=document.createElement(`img`);t.setAttribute(`src`,j.value),t.style.maxHeight=`220px`,t.style.maxWidth=`568px`,n.style.display=`none`,e.append(t)}if(_.value===L.IMAGE){let e=new Image;e.onload=function(){he()},e.src=j.value}}},me=e=>{o.value===`annotation`&&r.setToolState(L.IMAGE)},he=async()=>{let e=``,t=0,i=0,o=n.getSelectedSignatureField;if((a.value===`image`&&j.value!==``||j.value!==``)&&(e=j.value),a.value===`keyboard`&&k.value!==``){let n=document.createElement(`canvas`).getContext(`2d`);n.font=`46px ${P.value}`;let r=n.measureText(k.value),a=r.width,o=r.actualBoundingBoxAscent||46*.6,s=o+(r.actualBoundingBoxDescent||46*.6),c=document.createElement(`canvas`);c.width=a+16,c.height=s+16;let l=c.getContext(`2d`);l.font=`46px ${P.value}`,l.fillStyle=N.value,l.textBaseline=`alphabetic`,l.fillText(k.value,8,8+o),t=a,i=s,e=c.toDataURL()}e&&a.value!==`trackpad`&&(U.handleSign({flag:`save`,param:{imageBase64:e,annotation:w(o)}}),m.value.length<5&&ie.value&&n.addElectronicSignature(e));let s=document.querySelector(`.content`);if(s&&_.value===L.IMAGE){let n=document.getElementById(`sign-image-save`);n||(n=document.createElement(`img`),n.style.position=`absolute`,n.style.zIndex=10,n.style.pointerEvents=`none`,n.style.maxHeight=`220px`,n.style.maxWidth=`568px`,n.style.border=`2px solid blue`,n.style.cursor=`crosshair`,n.id=`sign-image-save`),n.setAttribute(`src`,e),n.style.left=`50%`,n.style.top=`50%`,n.style.display=`hidden`,s.append(n),n.offsetWidth>0&&n.offsetHeight>0&&(t=n.offsetWidth,i=n.offsetHeight);let a=Math.min(parseInt(t/2),568/2),o=Math.min(parseInt(i/2),220/2);n.style.left=`calc(50% -`+a+`)`,n.style.top=`calc(50% -`+o+`)`,n.style.display=`block`,s.onmousemove=function(e){n.style.left=e.clientX-a+`px`,n.style.top=e.clientY-o+`px`},r.setToolState(L.IMAGE);return}if(a.value===`trackpad`){let e=await U.handleSign({flag:`save`,param:{width:M.value,color:N.value,annotation:w(o)}});m.value.length<5&&ie.value&&n.addElectronicSignature(e)}ce()},ge=e=>{let t=n.getSelectedSignatureField;t&&U.handleSign({flag:`save`,param:{imageBase64:e,annotation:w(t)}}),n.toggleElement(H.SIGN_CREATE_PANEL)},_e=e=>{e.target.value||(M.value=1)},ve=e=>{N.value=e},be=e=>{_w(e,N.value)||ve(e)},xe=e=>{ne.value=e};U.addEvent(`signaturesImageChanged`,e=>{j.value=e.imageBase64});let Se=({option:e})=>Y(`div`,{style:{fontFamily:e.style.fontFamily}},{default:()=>e.label});return(e,t)=>{let n=Fe,r=uw,i=lx,o=ow,f=nw,p=$b,_=QC,w=JC,T=WC;return S(),V(q,null,[c(`div`,{class:`signatures-popup-wrapper`,onMousedown:t[11]||=Ae(()=>{},[`stop`])},[c(`div`,Sw,[c(`div`,Cw,d(e.$t(`signatures.electronicSignature.title`)),1),c(`div`,{onClick:t[0]||=e=>ce(`cancel`),class:`close-button`},[x(n)]),c(`div`,ww,[v.value?(S(),V(`div`,Tw,[c(`div`,{onClick:t[1]||=e=>re.value=`list`,class:D({active:re.value===`list`})},d(e.$t(`signatures.electronicSignature.mySignatures`)),3),c(`div`,{onClick:t[2]||=e=>re.value=`create`,class:D({active:re.value===`create`})},d(e.$t(`signatures.electronicSignature.create`)),3)])):b(``,!0),R(c(`div`,Ew,[m.value.length===0?(S(),V(`div`,Dw,[c(`div`,Ow,[g.value===`light`?(S(),s(xw,{key:0})):(S(),s(r,{key:1})),c(`div`,{onClick:t[3]||=e=>re.value=`create`},d(e.$t(`signatures.electronicSignature.empty`)),1)])])):(S(),V(`div`,kw,[(S(!0),V(q,null,z(m.value,(e,t)=>(S(),V(`div`,{class:`signatures-popup-list`,onClick:t=>ge(e),key:t},[c(`img`,{src:e},null,8,jw),x(i,{class:D([`close-button`,{show:K(oe)}]),onClick:e=>B(e,t)},{default:G(()=>[x(n)]),_:1},8,[`class`,`onClick`])],8,Aw))),128))]))],512),[[Re,re.value===`list`]]),R(c(`div`,Mw,[c(`div`,Nw,[(S(!0),V(q,null,z(l.value,(t,n)=>(S(),V(`div`,{key:n,onClick:e=>se(t),class:D({active:a.value===t})},d(e.$t(`signatures.`+t)),11,Pw))),128))]),c(`div`,{class:D([`sign-create-container`,{mobile:K(oe)}])},[c(`div`,{class:`paint-container`,ref_key:`paintContainer`,ref:F},[R(c(`canvas`,{id:`electronicTrackpadCanvas`,width:te.value,height:I.value},null,8,Fw),[[Re,a.value===`trackpad`]]),R(c(`div`,Iw,[R(c(`input`,{type:`text`,placeholder:e.$t(`signatures.signHere`),"onUpdate:modelValue":t[4]||=e=>k.value=e,name:`signature`,style:A({fontFamily:P.value})},null,12,Lw),[[Me,k.value]])],512),[[Re,a.value===`keyboard`]]),R(c(`div`,{class:`image-paint`,onDrop:de,onDragover:t[5]||=Ae(()=>{},[`prevent`])},[R(c(`div`,null,[x(o),c(`div`,null,d(e.$t(`signatures.electronicSignature.dropFile`)),1),c(`a`,null,[y(d(e.$t(`signatures.selectFile`)),1),c(`input`,{type:`file`,id:`signImageInput`,onChange:fe,accept:`.png, .jpg, .jpeg`,onClick:me,name:`signature`},null,32)])],512),[[Re,!j.value]])],544),[[Re,a.value===`image`]])],512),[`trackpad`,`keyboard`].includes(a.value)?(S(),V(`div`,Rw,[R(c(`div`,zw,[K(oe)?b(``,!0):(S(),V(`span`,Bw,d(e.$t(`signatures.lineWidth`)),1)),x(K(xb),{value:M.value,"onUpdate:value":t[6]||=e=>M.value=e,step:1,max:10,min:1,class:`width-slider`},{thumb:G(()=>[x(f)]),_:1},8,[`value`]),R(c(`input`,{"onUpdate:modelValue":t[7]||=e=>M.value=e,type:`text`,pattern:`\\d*`,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,onBlur:_e,name:`signature`},null,544),[[Me,M.value]])],512),[[Re,a.value===`trackpad`&&u.value.trackpad.enableLineWidth]]),R(c(`div`,Vw,[K(oe)?b(``,!0):(S(),V(`span`,Hw,d(e.$t(`common.uiElements.font`)),1)),x(K(kv),{value:P.value,"onUpdate:value":t[8]||=e=>P.value=e,options:ee.value,"render-tag":Se,to:`.font-tool`,class:`font-family-select`},{arrow:G(()=>[x(p)]),_:1},8,[`value`,`options`])],512),[[Re,a.value===`keyboard`]]),R(c(`div`,Uw,[K(oe)?b(``,!0):(S(),V(`span`,Ww,d(e.$t(`common.uiElements.color`)),1)),c(`div`,Gw,[(S(!0),V(q,null,z(u.value[a.value].colors,(e,t)=>(S(),V(`span`,{class:D([`cell-container`,{mobile:K(oe),show:!u.value[a.value].enableCustomColor}]),key:t},[c(`span`,{class:D([`cell-outer`,{active:K(_w)(N.value,e.value)}]),onClick:t=>ve(e.value)},[c(`span`,{class:`cell`,style:A(`background-color: ${e.value}`)},null,4)],10,Kw)],2))),128)),u.value[a.value].enableCustomColor?(S(),V(`div`,qw,[c(`div`,{class:`preview`,style:A({backgroundColor:ne.value})},null,4),x(K(gv),{to:`.signatures-popup`,onComplete:be,"onUpdate:value":xe,value:ne.value,"show-alpha":!1},{label:G(()=>[...t[13]||=[c(`img`,{src:``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,alt:`colorPicker`},null,-1)]]),_:1},8,[`value`])])):b(``,!0)])],512),[[Re,a.value===`trackpad`||a.value===`keyboard`]])])):b(``,!0)],2),c(`div`,Jw,[c(`div`,Yw,[c(`span`,{class:`clear top`,onClick:le},d(e.$t(`common.actions.clear`)),1),v.value?(S(),V(`div`,Xw,[c(`div`,{class:D([`check`,{active:ie.value,disabled:m.value.length>=5}]),onClick:t[9]||=e=>m.value.length<5&&(ie.value=!ie.value)},[R(x(_,null,null,512),[[Re,ie.value]])],2),m.value.length<5?(S(),V(`span`,Zw,d(e.$t(`signatures.electronicSignature.saveTemplate`)),1)):(S(),V(`span`,Qw,d(e.$t(`signatures.fullStorage`)),1))])):b(``,!0)]),c(`div`,$w,[c(`span`,{class:`clear bottom`,onClick:le},d(e.$t(`common.actions.clear`)),1),c(`div`,eT,[c(`div`,{class:`button`,onClick:t[10]||=e=>ce(`cancel`)},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:D([`button blue`,{disabled:!k.value&&!j.value}]),onClick:he},d(e.$t(`common.actions.apply`)),3)])])])],512),[[Re,re.value===`create`]])])])],32),C.value?(S(),V(`div`,tT,[x(T,{show:C.value,dialogName:e.dialogName},{footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:t[12]||=e=>C.value=!1},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:ae},d(e.$t(`common.actions.ok`)),1)]),default:G(()=>[x(w),c(`p`,null,d(e.$t(`signatures.deleteConfirm`)),1)]),_:1},8,[`show`,`dialogName`])])):b(``,!0)],64)}}},rT={},iT={width:`48`,height:`48`,viewBox:`0 0 48 48`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function aT(e,t){return S(),V(`svg`,iT,[...t[0]||=[c(`path`,{d:`M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z`,fill:`#FF5050`,stroke:`#FF5050`,"stroke-linejoin":`round`},null,-1),c(`path`,{d:`M30 18L18 30`,stroke:`white`,"stroke-width":`3`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1),c(`path`,{d:`M18 18L30 30`,stroke:`white`,"stroke-width":`3`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var oT=B(rT,[[`render`,aT]]),sT={},cT={width:`60`,height:`60`,viewBox:`0 0 60 60`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function lT(e,t){return S(),V(`svg`,cT,[...t[0]||=[v(`<circle cx="47.0455" cy="16.3636" r="2.04545" fill="white"></circle><circle cx="53.1819" cy="32.0454" r="2.72727" fill="white"></circle><circle cx="47.0453" cy="47.0456" r="3.40909" fill="white"></circle><circle cx="31.3639" cy="53.8636" r="4.09091" fill="white"></circle><circle cx="15.6819" cy="47.7273" r="4.77273" fill="white"></circle><circle cx="9.54537" cy="32.0454" r="5.45455" fill="white"></circle><circle cx="15.6818" cy="17.0455" r="6.13636" fill="white"></circle><circle cx="31.3636" cy="9.54548" r="6.81818" fill="white"></circle>`,8)]])}var uT=B(sT,[[`render`,lT]]),dT=[`data-element`],fT={__name:`Panel`,props:{dataElement:String,location:String,isFullHeight:Boolean,close:Boolean},setup(e){let t=e,n=ye(),r=fw(),i=J(null),a=T(()=>n.isElementOpen(t.dataElement)),o=T(()=>n.isElementDisabled(t.dataElement)),s=T(()=>n.isElementDisabled(H.HEADER)),c=T(()=>n.getOpenedPanelsNum),l=T(()=>r.getActiveTool),u=T(()=>({"modular-panel":!0,closed:!a.value||o.value,mobile:P,left:t.location===`left`||t.location===`start`,right:t.location===`right`||t.location===`end`,full:t.isFullHeight})),d=T(()=>{let e;if(P)e=t.isFullHeight?`calc(100% - 44px)`:`70%`;else{let t=[L.REDACTION,L.REMOVE].includes(l.value)?136:88;e=s.value?`100%`:`calc(100% - ${t}px)`}return{height:e}}),f=()=>{n.closeElement(t.dataElement)};W(()=>a.value,e=>{if(P)return;n.setPanelTransitionEnd(!1);let r=t.location,i=c.value;n.setOpenedPanelsNum(r,Math.max(0,i[r]+(e?1:-1))),n.setPanelSpace(r,i[r]>0?260:0)});let p=()=>{n.setPanelTransitionEnd(!0)};return M(()=>{i.value.addEventListener(`transitionend`,p)}),j(()=>{i.value.removeEventListener(`transitionend`,p)}),(t,n)=>{let r=Fe;return S(),V(`div`,{ref_key:`panelRef`,ref:i,class:D(u.value),style:A(d.value),"data-element":e.dataElement},[e.close?(S(),V(`div`,{key:0,class:`close-container`,onClick:f},[x(r)])):b(``,!0),be(t.$slots,`default`)],14,dT)}}},pT=[`data-element`],mT={__name:`CustomElement`,props:{className:{type:String,default:`CustomElement`},dataElement:{type:String,required:!0},display:{type:String,default:`block`},render:{type:Function,required:!0},renderArguments:{type:Array,default:()=>[]},mediaQueryClassName:{type:String,default:``},style:{type:Object,default:()=>({})}},setup(e){let t=e,n=ye(),r=J(null),i=J(null),a=T(()=>n.isElementDisabled(t.dataElement)),o=T(()=>({[t.className]:!0,[t.mediaQueryClassName]:!!t.mediaQueryClassName})),c=T(()=>({display:t.display,...t.style})),l=e=>{try{return e instanceof window.Element||e instanceof window.parent?.Element}catch{return!1}},u=()=>{let e=r.value;if(e)for(;e.firstChild;)e.removeChild(e.firstChild)},d=async()=>{if(a.value){f();return}let e;try{e=t.renderArguments.length?t.render(...t.renderArguments):t.render()}catch(e){console.error(`[CustomElement] render error:`,e),f();return}if(!e){f();return}let n=r.value;if(n){if(l(e)){i.value=null,u(),n.appendChild(e);return}if(O(e)){u(),i.value=e;return}console.warn(`[CustomElement] render() must return a DOM Element or Vue VNode`),f()}},f=()=>{i.value=null,u()};return W(()=>[a.value,t.render,t.renderArguments],async()=>{await E(),d()},{deep:!0}),M(()=>{d()}),j(()=>{f()}),(t,n)=>a.value?b(``,!0):(S(),V(`div`,{key:0,class:D(o.value),ref_key:`wrapperRef`,ref:r,"data-element":e.dataElement,style:A(c.value)},[i.value?(S(),s(ve(i.value),{key:0})):be(t.$slots,`default`,{key:1})],14,pT))}},hT={__name:`LazyLoadWrapper`,props:[`Component`,`dataElement`,`onOpenHook`],setup(e){let t=e,n=ye(),r=T(()=>t.onOpenHook?t.onOpenHook():{}),i=T(()=>n.isElementOpen(t.dataElement)),a=T(()=>n.isElementDisabled(t.dataElement));return(t,n)=>i.value&&!a.value?(S(),s(ee,{key:0},{fallback:G(()=>[...n[0]||=[c(`div`,null,`Loading...`,-1)]]),default:G(()=>[x(K(e.Component),f({"data-element":e.dataElement},r.value),null,16,[`data-element`])]),_:1})):b(``,!0)}},gT={key:0,class:`move-page-popup`},_T=[`placeholder`],vT=`movePageSettingDialog`,yT={__name:`MovePageSettingDialog`,props:[`totalPages`,`selectedPageList`],emits:[`movePage`],setup(e,{emit:t}){let n=e,r=t,i=ye(),a=T(()=>i.isElementOpen(vT)),o=J(``),s=!1,l=T(()=>{if(typeof o.value!=`number`)return!0;let e=n.selectedPageList;return!!(e.length===1&&(e[0]===o.value||e[0]===o.value-1)||e.length>1&&u(e)&&(e.includes(o.value)||e.includes(o.value-1)))}),u=e=>{e.sort(function(e,t){return e-t});for(var t=0;t<e.length-1;t++)if(e[t]+1!==e[t+1])return!1;return!0},f=()=>{i.closeElement(vT),o.value=``},p=async()=>{r(`movePage`,o.value),f()},m=e=>{if(s)return;let t=e.target.valueAsNumber;isNaN(t)&&(e.target.value=``),t>n.totalPages&&(o.value=n.totalPages),t===0&&(e.target.value=t.toFixed(0))},g=()=>{s=!0},_=()=>{s=!1};return(e,t)=>{let n=WC;return a.value?(S(),V(`div`,gT,[x(n,{show:a.value,dialogName:vT,close:!0},{header:G(()=>[c(`p`,null,d(e.$t(`documentEditor.moveTo`)),1)]),footer:G(()=>[c(`div`,{class:D([`rect-button blue`,{disabled:l.value}]),onClick:p},d(e.$t(`common.actions.ok`)),3)]),default:G(()=>[R(c(`input`,{"onUpdate:modelValue":t[0]||=e=>o.value=e,type:`number`,pattern:`\\d*`,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,onInput:m,placeholder:e.$t(`documentEditor.pageInputTip`),onCompositionstart:g,onCompositionend:_,name:`document-editor`},null,40,_T),[[Me,o.value,void 0,{number:!0}]])]),_:1},8,[`show`])])):b(``,!0)}}},bT={},xT={width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function ST(e,t){return S(),V(`svg`,xT,[...t[0]||=[c(`g`,{id:`ic_btn_radio_dis`},[c(`circle`,{id:`ic`,cx:`7`,cy:`7`,r:`5.625`,fill:`white`,stroke:`#666666`})],-1)]])}var CT=B(bT,[[`render`,ST]]),wT={},TT={width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function ET(e,t){return S(),V(`svg`,TT,[...t[0]||=[c(`g`,{id:`ic_btn_radio_sel`},[c(`circle`,{id:`Radio`,cx:`7`,cy:`7`,r:`6.125`,fill:`#1460F3`}),c(`circle`,{id:`Radio_2`,cx:`7`,cy:`7`,r:`2.625`,fill:`white`})],-1)]])}var DT=B(wT,[[`render`,ET]]),OT={key:0,class:`extract-page-setting-popup`},kT={class:`title`},AT={class:`container`},jT={class:`select-content`},MT={key:0,class:`disabled-btn`},NT={class:`addition`},PT=[`placeholder`],FT={class:`check-content`},IT=`extractPageSettingDialog`,LT={__name:`ExtractPageSettingDialog`,props:[`selectedPageList`,`totalPages`],emits:[`extractPage`],setup(e,{emit:t}){let n=e,r=t,i=ye(),a=T(()=>i.isElementOpen(IT)),o=J(`custom`),l=J(``),u=J(``),f=J(!1),p=J(!1),m=``;W(()=>a.value,(e,t)=>{e&&(m=C(n.selectedPageList.map(function(e){return e+1}).join(`,`)),l.value=u.value=m)});let g=()=>{i.closeElement(IT),o.value=`custom`},_=async()=>{r(`extractPage`,{range:o.value===`custom`?l.value:o.value,separateFile:f.value,deleteAfter:o.value===`all`?!1:p.value}),g()},v=()=>{u.value=C(l.value),l.value=u.value},C=e=>{let t=n.totalPages,r=e.replace(/\s/g,``).match(/\d+-\d+|\d+|\d+/g);if(r){let e=r.flatMap(e=>{if(e.includes(`-`)){let[n,r]=e.split(`-`),i=Math.min(n,r),a=Math.min(Math.max(n,r),t);return Array.from({length:a-i+1},(e,t)=>String(Number(i)+t))}else return Math.min(Math.max(e,1),t)}).sort((e,t)=>e-t),n=[],i=e[0],a=e[0];for(let t=1;t<e.length;t++){let r=e[t],o=Number(a);Number(r)-o>1&&(n.push(w(i,a)),i=r),a=r}return n.push(w(i,a)),n.join(`, `)}return m},w=(e,t)=>e===t?e.toString():`${e}-${t}`,E=T(()=>{if(o.value===`all`||n.totalPages===1&&o.value!==`even`||n.totalPages>1&&o.value===`custom`&&l.value===`1-`+n.totalPages)return!0});return(t,n)=>{let r=DT,i=CT,m=QC,C=WC;return a.value?(S(),V(`div`,OT,[x(C,{show:a.value,dialogName:IT,close:!1},{header:G(()=>[c(`p`,null,d(t.$t(`documentEditor.extract`)),1)]),footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:g},d(t.$t(`common.actions.cancel`)),1),c(`div`,{class:D([`rect-button blue`,{disabled:o.value===`pdf`&&(!t.inputFile||o.value===`custom`&&!u.value)}]),onClick:_},d(t.$t(`documentEditor.extract`)),3)]),default:G(()=>[c(`p`,kT,d(t.$t(`documentEditor.dialog.pageRange`)),1),c(`div`,AT,[c(`div`,jT,[c(`div`,{onClick:n[0]||=e=>o.value=`all`,class:`option`},[o.value===`all`?(S(),s(r,{key:0})):(S(),s(i,{key:1})),y(d(t.$t(`documentEditor.dialog.allPages`)),1)]),c(`div`,{onClick:n[1]||=e=>o.value=`odd`,class:`option`},[o.value===`odd`?(S(),s(r,{key:0})):(S(),s(i,{key:1})),y(d(t.$t(`documentEditor.dialog.oddPage`)),1)]),c(`div`,{onClick:n[2]||=e=>o.value=`even`,class:D([`option`,{disabled:e.totalPages===1}])},[e.totalPages===1?(S(),V(`div`,MT)):o.value===`even`?(S(),s(r,{key:1})):(S(),s(i,{key:2})),y(` `+d(t.$t(`documentEditor.dialog.evenPage`)),1)],2),c(`div`,{onClick:n[4]||=e=>o.value=`custom`,class:`option custom-page`},[o.value===`custom`?(S(),s(r,{key:0})):(S(),s(i,{key:1})),y(d(t.$t(`documentEditor.dialog.page`))+` `,1),c(`div`,NT,[R(c(`input`,{type:`text`,"onUpdate:modelValue":n[3]||=e=>l.value=e,placeholder:t.$t(`documentEditor.dialog.tip`),onBlur:v,name:`document-editor`},null,40,PT),[[Me,l.value]]),c(`span`,null,`/ `+d(e.totalPages),1)])])])]),c(`div`,FT,[c(`div`,{class:`check-box`,onClick:n[5]||=e=>f.value=!f.value},[c(`div`,{class:D([`check`,{active:f.value}])},[R(x(m,null,null,512),[[Re,f.value]])],2),c(`span`,null,d(t.$t(`documentEditor.separateFiles`)),1)]),c(`div`,{class:D([`check-box`,{disabled:E.value}]),onClick:n[6]||=()=>{E.value||(p.value=!p.value)}},[c(`div`,{class:D([`check`,{active:p.value}])},[R(x(m,null,null,512),[[Re,p.value&&!E.value]])],2),c(`span`,null,d(t.$t(`documentEditor.deleteAfter`)),1)],2)])]),_:1},8,[`show`])])):b(``,!0)}}},RT={key:0,class:`delete-page-popup`},zT=`deletePageDialog`,BT={__name:`DeletePageDialog`,props:[`selectedPageList`],emits:[`deletePage`],setup(e,{emit:t}){let{i18next:n}=It(),r=e,i=t,a=ye(),o=T(()=>a.isElementOpen(zT)),s=T(()=>r.selectedPageList.sort((e,t)=>e-t).map(e=>e+1).join(`, `)),l=()=>{a.closeElement(zT)},u=async()=>{i(`deletePage`),l()};return(e,t)=>{let r=JC,i=WC;return o.value?(S(),V(`div`,RT,[x(i,{show:o.value,dialogName:zT,close:!1},{footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:l},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:u},d(e.$t(`common.actions.delete`)),1)]),default:G(()=>[x(r),c(`p`,null,d(e.$t(`documentEditor.deleteConfirmation`))+d(K(n).language===`en`?` ${s.value}?`:``),1)]),_:1},8,[`show`])])):b(``,!0)}}},VT={},HT={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function UT(e,t){return S(),V(`svg`,HT,[...t[0]||=[c(`path`,{d:`M6.82225 3.96144L6.99439 4.05909H7.19231H11.75V13.25H1.25V2.75H4.6867L6.82225 3.96144Z`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M1.55867 13.25L3.84383 6.75H14.4413L12.1562 13.25H1.55867Z`,fill:`transparent`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var WT=B(VT,[[`render`,UT]]),GT={},KT={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function qT(e,t){return S(),V(`svg`,KT,[...t[0]||=[c(`g`,{id:`ic_btn_arrow_down`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11.0596 5.90869L11.9398 6.72429L8.24969 10.7068L4.55957 6.72429L5.4398 5.90869L8.24969 8.94084L11.0596 5.90869Z`,fill:`currentColor`})],-1)]])}var JT=B(GT,[[`render`,qT]]),YT={key:0,class:`merge-page-setting-popup`},XT={class:`title`},ZT={class:`container`},QT={class:`select-content`},$T={key:0,class:`addition`},eE={key:1,class:`addition`},tE={class:`file-input-underbox`},nE={key:2,class:`file-list`},rE=[`title`],iE=[`onClick`],aE={key:3,class:`addition from-pdf`},oE={class:`addition`},sE={value:`all`},cE={value:`odd`},lE={value:`even`},uE={value:`custom`},dE=[`placeholder`],fE=`mergePageSettingDialog`,pE={__name:`MergePageSettingDialog`,props:[`selectedPageList`,`totalPages`],emits:[`mergePage`],setup(e,{emit:t}){let n=e,r=t,i=ye(),a=T(()=>i.isElementOpen(fE)),o=J(`blank`),l=J(`A4`),u=J([]),f=J(`all`),p=J(``),m=J(``),g=T(()=>o.value===`pdf`?!u.value.length||f.value===`custom`&&!m.value:!1),_=()=>{i.closeElement(fE),o.value=`blank`,l.value=`A4`,u.value=[],f.value=`all`,p.value=``,m.value=``},v=async()=>{if(g.value)return;let e={type:o.value===`pdf`?`pdf`:`blank`,place:n.totalPages};if(o.value===`custom`){let t={A3:{width:297,height:420},A4:{width:210,height:297},A5:{width:148,height:210}};e.size={width:t[l.value].width/25.4*72,height:t[l.value].height/25.4*72}}if(o.value===`pdf`){let t=C();e.files=u.value.map((e,n)=>{let r=f.value;if(f.value===`custom`){let e=t[n];r=e!==void 0&&e.trim()!==``?e.trim():`all`}return{file:e.file,range:r,password:e.password||``}})}r(`mergePage`,e),_()},C=()=>f.value===`custom`?p.value.split(`;`):[],w=async e=>{let t=Array.from(e.target.files);if(t.length){for(let e of t){let t=URL.createObjectURL(e),n=await U.checkPassword(t,!0);n!==!1&&u.value.push({file:e,password:n})}e.target.value=``}},E=e=>{u.value.splice(e,1)},O=()=>{let e=p.value.split(`;`).map(e=>k(e.trim())).join(`; `);m.value=e,p.value=e},k=e=>{if(!e)return``;let t=e.replace(/\s/g,``).match(/\d+-\d+|\d+/g);if(t){let e=t.flatMap(e=>{if(e.includes(`-`)){let[t,n]=e.split(`-`),r=Math.max(1,Math.min(t,n)),i=Math.max(1,t,n);return Array.from({length:i-r+1},(e,t)=>String(Number(r)+t))}else return Math.max(1,e)}).sort((e,t)=>e-t),n=[],r=e[0],i=e[0];for(let t=1;t<e.length;t++){let a=e[t],o=Number(i);Number(a)-o>1&&(n.push(A(r,i)),r=a),i=a}return n.push(A(r,i)),n.join(`, `)}return``},A=(e,t)=>e===t?e.toString():`${e}-${t}`;return(e,t)=>{let n=DT,r=CT,i=JT,m=WT,C=WC;return a.value?(S(),V(`div`,YT,[x(C,{show:a.value,dialogName:fE,close:!1},{footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:_},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:D([`rect-button blue`,{disabled:g.value}]),onClick:v},d(e.$t(`documentEditor.merge`)),3)]),default:G(()=>[c(`p`,XT,d(e.$t(`documentEditor.dialog.mergePages`)),1),c(`div`,ZT,[c(`div`,QT,[c(`div`,{onClick:t[0]||=e=>o.value=`blank`,class:`option`},[o.value===`blank`?(S(),s(n,{key:0})):(S(),s(r,{key:1})),y(d(e.$t(`documentEditor.dialog.blankPage`)),1)]),c(`div`,{onClick:t[1]||=e=>o.value=`custom`,class:`option`},[o.value===`custom`?(S(),s(n,{key:0})):(S(),s(r,{key:1})),y(d(e.$t(`documentEditor.dialog.customPage`)),1)]),o.value===`custom`?(S(),V(`div`,$T,[R(c(`select`,{name:`customPageSize`,"onUpdate:modelValue":t[2]||=e=>l.value=e},[...t[6]||=[c(`option`,{value:`A3`},`A3`,-1),c(`option`,{value:`A4`},`A4`,-1),c(`option`,{value:`A5`},`A5`,-1)]],512),[[Oe,l.value]]),x(i)])):b(``,!0),c(`div`,{onClick:t[3]||=e=>o.value=`pdf`,class:`option`},[o.value===`pdf`?(S(),s(n,{key:0})):(S(),s(r,{key:1})),y(d(e.$t(`documentEditor.dialog.fromPdf`)),1)]),o.value===`pdf`?(S(),V(`div`,eE,[c(`div`,tE,[c(`span`,null,d(e.$t(`documentEditor.dialog.selectFiles`)),1),x(m)]),c(`input`,{type:`file`,onChange:w,accept:`.pdf`,multiple:``,name:`document-editor`},null,32)])):b(``,!0),o.value===`pdf`&&u.value.length?(S(),V(`div`,nE,[(S(!0),V(q,null,z(u.value,(e,t)=>(S(),V(`div`,{key:t,class:`file-item`},[c(`span`,{class:`file-name`,title:e.file.name},d(e.file.name),9,rE),c(`span`,{class:`file-remove`,onClick:e=>E(t)},`×`,8,iE)]))),128))])):b(``,!0),o.value===`pdf`&&u.value.length?(S(),V(`div`,aE,[c(`span`,null,d(e.$t(`documentEditor.dialog.pageRange`)),1),c(`div`,null,[c(`div`,oE,[R(c(`select`,{name:`inputFileRange`,"onUpdate:modelValue":t[4]||=e=>f.value=e},[c(`option`,sE,d(e.$t(`documentEditor.dialog.allPages`)),1),c(`option`,cE,d(e.$t(`documentEditor.dialog.oddPage`)),1),c(`option`,lE,d(e.$t(`documentEditor.dialog.evenPage`)),1),c(`option`,uE,d(e.$t(`documentEditor.dialog.customRange`)),1)],512),[[Oe,f.value]]),x(i)]),f.value===`custom`?R((S(),V(`input`,{key:0,type:`text`,"onUpdate:modelValue":t[5]||=e=>p.value=e,placeholder:e.$t(`documentEditor.dialog.mergeTip`),onBlur:O,name:`document-editor`},null,40,dE)),[[Me,p.value]]):b(``,!0)])])):b(``,!0)])])]),_:1},8,[`show`])])):b(``,!0)}}},mE={key:0,class:`add-page-setting-popup`},hE={class:`title`},gE={class:`container`},_E={class:`select-content`},vE={key:0,class:`addition`},yE={key:1,class:`addition`},bE={class:`file-input-underbox`},xE={key:2,class:`addition from-pdf`},SE={class:`addition`},CE={value:`all`},wE={value:`odd`},TE={value:`even`},EE={value:`custom`},DE=[`placeholder`],OE={class:`title`},kE={class:`container`},AE={class:`select-content`},jE={class:`left`},ME={key:0,class:`right`},NE={class:`addition`},PE=[`max`],FE={class:`addition`},IE={value:0},LE={value:1},RE=`insertPageSettingDialog`,zE={__name:`InsertPageSettingDialog`,props:[`selectedPageList`,`totalPages`],emits:[`insertPage`],setup(e,{emit:t}){let n=e,r=t,i=ye(),a=T(()=>i.isElementOpen(RE)),o=J(`blank`),l=J(`A4`),u=J(null),f=J(`all`),p=J(``),m=J(``),g=J(`first`),_=J(1),v=J(1),C=J(``);W(()=>a.value,(e,t)=>{e&&(n.selectedPageList.length>0&&(g.value=`custom`),_.value=(n.selectedPageList[0]??0)+1)});let w=()=>{i.closeElement(RE),o.value=`blank`,l.value=`A4`,u.value=null,f.value=`all`,p.value=``,m.value=``,g.value=`first`,v.value=1,C.value=``},E=async()=>{let e={type:o.value===`pdf`?`pdf`:`blank`};if(o.value===`custom`){let t={A3:{width:297,height:420},A4:{width:210,height:297},A5:{width:148,height:210}};e.size={width:t[l.value].width/25.4*72,height:t[l.value].height/25.4*72}}o.value===`pdf`&&u.value&&(e.file=u.value,e.range=f.value===`custom`?p.value:f.value,e.password=C.value),g.value===`custom`?(e.place=_.value-1+v.value,e.targetPlace=v.value):g.value===`last`?e.place=n.totalPages:e.place=0,r(`insertPage`,e),w()},O=async e=>{if(!e.target.files[0])return;let t=URL.createObjectURL(e.target.files[0]),n=await U.checkPassword(t,!0);if(n===!1){e.target.value=``;return}u.value=e.target.files[0],C.value=n},k=e=>{let t=e.target.valueAsNumber;t>n.totalPages?_.value=n.totalPages:t<1&&(_.value=1)},A=()=>{_.value||=1},j=()=>{m.value=M(p.value),p.value=m.value},M=e=>{let t=e.replace(/\s/g,``).match(/\d+-\d+|\d+|\d+/g);if(t){let e=t.flatMap(e=>{if(e.includes(`-`)){let[t,n]=e.split(`-`),r=Math.max(1,Math.min(t,n)),i=Math.max(1,t,n);return Array.from({length:i-r+1},(e,t)=>String(Number(r)+t))}else return Math.max(1,e)}).sort((e,t)=>e-t),n=[],r=e[0],i=e[0];for(let t=1;t<e.length;t++){let a=e[t],o=Number(i);Number(a)-o>1&&(n.push(N(r,i)),r=a),i=a}return n.push(N(r,i)),n.join(`, `)}return`1`},N=(e,t)=>e===t?e.toString():`${e}-${t}`;return(t,n)=>{let r=DT,i=CT,C=JT,T=WT,M=WC;return a.value?(S(),V(`div`,mE,[x(M,{show:a.value,dialogName:RE,close:!1},{footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:w},d(t.$t(`common.actions.cancel`)),1),c(`div`,{class:D([`rect-button blue`,{disabled:o.value===`pdf`&&(!u.value||f.value===`custom`&&!m.value)}]),onClick:E},d(t.$t(`documentEditor.insert`)),3)]),default:G(()=>[c(`p`,hE,d(t.$t(`documentEditor.dialog.insertPages`)),1),c(`div`,gE,[c(`div`,_E,[c(`div`,{onClick:n[0]||=e=>o.value=`blank`,class:`option`},[o.value===`blank`?(S(),s(r,{key:0})):(S(),s(i,{key:1})),y(d(t.$t(`documentEditor.dialog.blankPage`)),1)]),c(`div`,{onClick:n[1]||=e=>o.value=`custom`,class:`option`},[o.value===`custom`?(S(),s(r,{key:0})):(S(),s(i,{key:1})),y(d(t.$t(`documentEditor.dialog.customPage`)),1)]),o.value===`custom`?(S(),V(`div`,vE,[R(c(`select`,{name:`customPageSize`,"onUpdate:modelValue":n[2]||=e=>l.value=e},[...n[11]||=[c(`option`,{value:`A3`},`A3`,-1),c(`option`,{value:`A4`},`A4`,-1),c(`option`,{value:`A5`},`A5`,-1)]],512),[[Oe,l.value]]),x(C)])):b(``,!0),c(`div`,{onClick:n[3]||=e=>o.value=`pdf`,class:`option`},[o.value===`pdf`?(S(),s(r,{key:0})):(S(),s(i,{key:1})),y(d(t.$t(`documentEditor.dialog.fromPdf`)),1)]),o.value===`pdf`?(S(),V(`div`,yE,[c(`div`,bE,[c(`span`,{class:D({uploaded:u.value?.name})},d(u.value?.name||t.$t(`documentEditor.dialog.selectFile`)),3),x(T)]),c(`input`,{type:`file`,onChange:O,accept:`.pdf`,name:`document-editor`},null,32)])):b(``,!0),o.value===`pdf`?(S(),V(`div`,xE,[c(`span`,null,d(t.$t(`documentEditor.dialog.pageRange`)),1),c(`div`,null,[c(`div`,SE,[R(c(`select`,{name:`inputFileRange`,"onUpdate:modelValue":n[4]||=e=>f.value=e},[c(`option`,CE,d(t.$t(`documentEditor.dialog.allPages`)),1),c(`option`,wE,d(t.$t(`documentEditor.dialog.oddPage`)),1),c(`option`,TE,d(t.$t(`documentEditor.dialog.evenPage`)),1),c(`option`,EE,d(t.$t(`documentEditor.dialog.customRange`)),1)],512),[[Oe,f.value]]),x(C)]),f.value===`custom`?R((S(),V(`input`,{key:0,type:`text`,"onUpdate:modelValue":n[5]||=e=>p.value=e,placeholder:t.$t(`documentEditor.dialog.tip`),onBlur:j,name:`document-editor`},null,40,DE)),[[Me,p.value]]):b(``,!0)])])):b(``,!0)])]),c(`p`,OE,d(t.$t(`documentEditor.dialog.insertTo`)),1),c(`div`,kE,[c(`div`,AE,[c(`div`,{onClick:n[6]||=e=>g.value=`first`,class:`option`},[g.value===`first`?(S(),s(r,{key:0})):(S(),s(i,{key:1})),y(d(t.$t(`documentEditor.dialog.firstPage`)),1)]),c(`div`,{onClick:n[7]||=e=>g.value=`last`,class:`option`},[g.value===`last`?(S(),s(r,{key:0})):(S(),s(i,{key:1})),y(d(t.$t(`documentEditor.dialog.lastPage`)),1)]),c(`div`,{onClick:n[10]||=e=>g.value=`custom`,class:D([`option`,{"custom-page":g.value===`custom`}])},[c(`div`,jE,[g.value===`custom`?(S(),s(r,{key:0})):(S(),s(i,{key:1})),y(d(t.$t(`documentEditor.dialog.page`)),1)]),g.value===`custom`?(S(),V(`div`,ME,[c(`div`,NE,[R(c(`input`,{"onUpdate:modelValue":n[8]||=e=>_.value=e,type:`number`,max:e.totalPages,min:`1`,pattern:`\\d*`,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,onInput:k,onBlur:A,name:`document-editor`},null,40,PE),[[Me,_.value,void 0,{number:!0}]]),c(`span`,null,`/ `+d(e.totalPages),1)]),c(`div`,FE,[R(c(`select`,{name:`targetPlace`,"onUpdate:modelValue":n[9]||=e=>v.value=e},[c(`option`,IE,d(t.$t(`documentEditor.dialog.before`)),1),c(`option`,LE,d(t.$t(`documentEditor.dialog.after`)),1)],512),[[Oe,v.value]]),x(C)])])):b(``,!0)],2)])])]),_:1},8,[`show`])])):b(``,!0)}}},BE={},VE={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function HE(e,t){return S(),V(`svg`,VE,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / all select`},[c(`path`,{id:`Union`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M17.5 2.5H6.5V13.5H17.5V2.5ZM6.5 1H5V2.5V2.9342H2H1.25V3.6842V18V18.75H2H16.3158H17.0658V18V15H17.5H19V13.5V2.5V1H17.5H6.5ZM2.75 4.4342H5V13.5V15H6.5H15.5658V17.25H2.75V4.4342ZM15.4446 6.94453L15.9749 6.4142L14.9142 5.35355L14.3839 5.88388L11.1016 9.16615L10.2177 8.28227L9.68734 7.75195L8.62667 8.8126L9.15701 9.34293L10.5712 10.7571L11.1016 11.2875L11.6319 10.7571L15.4446 6.94453Z`,fill:`currentColor`})],-1)]])}var UE=B(BE,[[`render`,HE]]),WE={},GE={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function KE(e,t){return S(),V(`svg`,GE,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / unselect`},[c(`path`,{id:`Union`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M17.5 2.5H6.5V13.5H17.5V2.5ZM6.5 1H5V2.5V2.9342H2H1.25V3.6842V18V18.75H2H16.3158H17.0658V18V15H17.5H19V13.5V2.5V1H17.5H6.5ZM2.75 4.4342H5V13.5V15H6.5H15.5658V17.25H2.75V4.4342ZM8 8.75H16V7.25H8V8.75Z`,fill:`currentColor`})],-1)]])}var qE=B(WE,[[`render`,KE]]),JE={},YE={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function XE(e,t){return S(),V(`svg`,YE,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / reverse`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.9019 1.75H1.25V18.25H14.75V5.95882L10.9019 1.75ZM10.24 3.25L13.25 6.542V16.75H2.75V3.25H10.24ZM19.624 6.83397L16.25 1.77292V18.25H17.75V6.729L18.376 7.66603L19.624 6.83397Z`,fill:`currentColor`})],-1)]])}var ZE=B(JE,[[`render`,XE]]),QE={},$E={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function eD(e,t){return S(),V(`svg`,$E,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / replace`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.25 1H13.3107L17.75 5.43934V10.75H16.25V6.061L12.689 2.5H3.75V17H10V18.5H2.25V1ZM14.3454 12.7983L15.3689 11.7017L18.9028 15H11V13.5H15.097L14.3454 12.7983ZM14.5339 19.5L15.5574 18.4034L14.8058 17.7017H18.9028V16.2017H11L14.5339 19.5Z`,fill:`currentColor`})],-1)]])}var tD=B(QE,[[`render`,eD]]),nD={},rD={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function iD(e,t){return S(),V(`svg`,rD,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / extract`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.25 1.25H13.3107L17.75 5.68934V11H16.25V6.311L12.689 2.75H3.75V17.25H10V18.75H2.25V1.25ZM16.0174 16.25L15.1768 17.091L16.2374 18.1516L18.8891 15.5L16.2374 12.8483L15.1768 13.909L16.0174 14.75H11V16.25H16.0174Z`,fill:`currentColor`})],-1)]])}var aD=B(nD,[[`render`,iD]]),oD={},sD={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function cD(e,t){return S(),V(`svg`,sD,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / copy`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M4.75 0.75H14.3866L18.25 4.69386V16.25H15.25V19.25H1.75V3.75H4.75V0.75ZM4.75 16.25H13.75V17.75H3.25V5.25H4.75V16.25ZM16.75 5.306L13.756 2.25H6.25V14.75H16.75V5.306ZM14.1974 7.35361C13.8798 6.13053 12.7917 5.25 11.5202 5.25C9.98499 5.25 8.75 6.52361 8.75 8.08333V8.91667L8.75503 9.08874C8.84189 10.569 10.0418 11.75 11.5202 11.75C12.8491 11.75 13.9777 10.7882 14.2357 9.47867L12.764 9.18872L12.7319 9.3182C12.5675 9.86695 12.0782 10.25 11.5202 10.25C10.8239 10.25 10.25 9.65813 10.25 8.91667V8.08333L10.2566 7.94617C10.3222 7.2702 10.8674 6.75 11.5202 6.75C12.1213 6.75 12.6427 7.19453 12.7641 7.81182L14.2359 7.52247L14.1974 7.35361Z`,fill:`currentColor`})],-1)]])}var lD=B(oD,[[`render`,cD]]),uD={},dD={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function fD(e,t){return S(),V(`svg`,dD,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / rotate left`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10 9.75V1.75H18.5V9.75V10.5V18.25H2V9.75H10ZM11.5 9.75V3.25H17V9.75H11.5ZM3.5 11.25V16.75H17.001V11.25H3.5ZM1.53769 5.46967L0.477028 6.53033L3.12868 9.18198L5.78033 6.53033L4.71967 5.46967L3.80559 6.38355C3.89386 5.03216 4.82757 3.82648 6.20838 3.4565C6.98256 3.24905 7.78597 3.33465 8.48622 3.68044L8.67454 3.78117L9.42454 2.48213C8.34118 1.85665 7.05293 1.67728 5.82015 2.00761C3.81662 2.54445 2.45713 4.28512 2.31137 6.24287L1.53769 5.46967Z`,fill:`currentColor`})],-1)]])}var pD=B(uD,[[`render`,fD]]),mD={},hD={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function gD(e,t){return S(),V(`svg`,hD,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / rotate left`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10 9.75V1.75H1.5V9.75V10.5V18.25H18V9.75H10ZM8.5 9.75V3.25H3V9.75H8.5ZM16.5 11.25V16.75H2.999V11.25H16.5ZM18.4623 5.46967L19.523 6.53033L16.8713 9.18198L14.2197 6.53033L15.2803 5.46967L16.1944 6.38355C16.1061 5.03216 15.1724 3.82648 13.7916 3.4565C13.0174 3.24905 12.214 3.33465 11.5138 3.68044L11.3255 3.78117L10.5755 2.48213C11.6588 1.85665 12.9471 1.67728 14.1798 2.00761C16.1834 2.54445 17.5429 4.28512 17.6886 6.24287L18.4623 5.46967Z`,fill:`currentColor`})],-1)]])}var _D=B(mD,[[`render`,gD]]),vD={},yD={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function bD(e,t){return S(),V(`svg`,yD,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / delete`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13 2.75V1.25H7V2.75H13ZM19 5.75V4.25H16.75H3.25H1V5.75H3.25V18.75H16.75V5.75H19ZM4.75 17.25V5.75H15.25V17.25H4.75ZM8.75 8.5V14.5H7.25V8.5H8.75ZM12.75 8.5V14.5H11.25V8.5H12.75Z`,fill:`currentColor`})],-1)]])}var xD=B(vD,[[`render`,bD]]),SD={},CD={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function wD(e,t){return S(),V(`svg`,CD,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M4.75 0.75H14.3866L18.25 4.69386V16.25H15.25V19.25H1.75V3.75H4.75V0.75ZM4.75 16.25H13.75V17.75H3.25V5.25H4.75V16.25ZM16.75 5.306L13.756 2.25H6.25V14.75H16.75V5.306ZM10.75 8.5L10.7449 8.68442C10.6492 10.3935 9.23303 11.75 7.5 11.75V13.25L7.71743 13.2451C9.30636 13.1735 10.692 12.3213 11.5 11.0628C12.3446 12.3784 13.8205 13.25 15.5 13.25V11.75L15.3156 11.7449C13.6065 11.6492 12.25 10.233 12.25 8.5V6.31093L13.4697 7.53044L14.5304 6.46978L11.5001 3.43945L8.46973 6.46978L9.53039 7.53044L10.75 6.31104V8.5Z`,fill:`currentColor`},null,-1)]])}var TD=B(SD,[[`render`,wD]]),ED={},DD={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function OD(e,t){return S(),V(`svg`,DD,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / insert`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.25 1.25H13.3107L17.75 5.68934V11H16.25V6.311L12.689 2.75H3.75V17.25H10V18.75H2.25V1.25ZM14.75 18H13.25V15.75H11V14.25H13.25V12H14.75V14.25H17V15.75H14.75V18Z`,fill:`currentColor`})],-1)]])}var kD=B(ED,[[`render`,OD]]),AD=[`onClick`],jD=[`src`],MD={__name:`DocumentEditorContainer`,props:[`Sortable`],setup(e){let t=ye(),n=fw(),r=T(()=>n.getDocEditorPageList),i=T(()=>n.getDocEditorSelectedPageList),a=J(null),o=J(-2),l=J(-2),u=J(!1),f=J(null),p=J(0),m=J(null),g=window.devicePixelRatio||1,_=window.innerWidth<768,v=null;M(()=>{e.Sortable.create(a.value,{multiDrag:!0,selectedClass:`sortable-selected`,dragClass:`sortable-drag`,sort:!1,forceFallback:!0,fallbackTolerance:P?0:20,onStart:ie,onEnd:ae,delay:P?200:0});let{width:t,height:n}=f.value[0].getBoundingClientRect(),r={width:t,height:n};U.getDocEditorPages(r),window.addEventListener(`resize`,ce),ce()}),j(()=>{U.removeEvent(`getDocEditorPages`,C),window.addEventListener(`resize`,ce)});let y=U.getPagesCount();for(let e=0;e<y;e++)r.value.push({type:`page`});let C=e=>{let{index:t,pageData:n}=e;r.value[t]=n};U.addEvent(`getDocEditorPages`,C);let w=async e=>{let t={type:`insert`,pageIndex:e.place};if(e.type===`blank`){let n=e.targetPlace?r.value[e.place-1]:r.value[e.place]||r.value[e.place-1],i={type:e.type,rotation:0,size:e.size||{width:n.size.width,height:n.size.height}};r.value.splice(e.place,0,i),t.size=i.size,U.saveDocumentEdit(t)}else if(e.type===`pdf`){t.file=e.file,t.range=e.range,t.password=e.password||``;let{width:n,height:i}=f.value[0].getBoundingClientRect(),a=await U.saveDocumentEdit(t);if(!a)return;let o=r.value.length;for(let t=0;t<a-o;t++)r.value.splice(e.place+t,0,{type:`page`});let s={width:n,height:i};U.getDocEditorPages(s,e.place,a-o)}n.setDocEditorOperationList(t),i.value.length=0},E=async e=>{let t=r.value.length,a={type:`insert`,pageIndex:t};if(e.type===`blank`){let o=r.value[t-1]||r.value[0],s={type:e.type,rotation:0,size:e.size||{width:o.size.width,height:o.size.height}};r.value.splice(t,0,s),a.size=s.size,U.saveDocumentEdit(a),n.setDocEditorOperationList(a),i.value.length=0;return}if(!e.files||!e.files.length)return;let{width:o,height:s}=f.value[0].getBoundingClientRect(),c={width:o,height:s};for(let t of e.files){let e={type:`insert`,pageIndex:r.value.length,file:t.file,range:t.range,password:t.password||``},i=await U.saveDocumentEdit(e);if(!i)continue;let a=r.value.length;for(let t=0;t<i-a;t++)r.value.splice(e.pageIndex+t,0,{type:`page`});U.getDocEditorPages(c,e.pageIndex,i-a),n.setDocEditorOperationList(e)}i.value.length=0},O=e=>{let{width:t,height:n}=e,r=_?140:204,i=_?141:216,a=t/g,o=n/g,s=r/a,c=i/o,l=Math.min(s,c);return l>1&&(l=1),{width:a*l,height:o*l}},k=e=>{let t=i.value.indexOf(e);t===-1?i.value.push(e):i.value.splice(t,1)},N=()=>{if(i.value.length<r.value.length){i.value.length=0;for(let e=0;e<r.value.length;e++)i.value.push(e)}else i.value.length=0},ee=e=>{ue()&&t.openElement(e)},F=()=>{i.value.sort((e,t)=>t-e),i.value.forEach(e=>{r.value.splice(e,1)});let e={type:`delete`,selectedPageIndexArray:Array.from(i.value)};U.saveDocumentEdit(e),n.setDocEditorOperationList(e),i.value.length=0},te=e=>{if(!ue())return;i.value.forEach(t=>{let n=r.value[t];n.rotation+=e,(n.rotation>3||n.rotation<-3)&&(n.rotation=0)});let t={type:`rotate`,selectedPageIndexArray:Array.from(i.value),rotation:e};U.saveDocumentEdit(t),n.setDocEditorOperationList(t)},I=e=>new Map([[-3,-270],[-2,180],[-1,-90],[0,0],[1,90],[2,180],[3,270]]).get(e),L=()=>{if(!ue())return;i.value.sort((e,t)=>t-e),i.value.forEach(e=>{r.value.splice(e,0,{...r.value[e]})});let e={type:`copy`,selectedPageIndexArray:Array.from(i.value)};U.saveDocumentEdit(e),n.setDocEditorOperationList(e),i.value.length=0},R=()=>{if(!ue())return;let e=document.createElement(`input`);e.type=`file`,e.accept=`.pdf`,e.click(),e.addEventListener(`change`,async function(e){let t=e.target.files[0],n=i.value[0],r=URL.createObjectURL(t),a=await U.checkPassword(r,!0);a!==!1&&(w({type:`pdf`,file:t,range:`all`,place:n,password:a}),F())})},ne=async e=>{let t=e.range.replace(/\s/g,``),a=r.value.length;e.range===`all`?t=`1-`+a:e.range===`odd`?t=Array.from({length:a},(e,t)=>t+1).filter(e=>e%2!=0).join(`,`):e.range===`even`&&(t=Array.from({length:a},(e,t)=>t+1).filter(e=>e%2==0).join(`,`));let o=t.split(`,`),s=[];o.forEach(e=>{if(e.includes(`-`)){let[t,n]=e.split(`-`).map(e=>parseInt(e));for(let e=t;e<=n;e++)s.push(e-1)}else e&&s.push(parseInt(e)-1)});let c={type:`extract`,range:e.separateFile?s:t,separateFile:e.separateFile};if(await U.saveDocumentEdit(c),n.setDocEditorOperationList(c),e.deleteAfter){s.reverse().forEach(e=>{r.value.splice(e,1)});let e={type:`delete`,selectedPageIndexArray:s};U.saveDocumentEdit(e),n.setDocEditorOperationList(e),i.value.length=0}},re=e=>{if(i.value.length===1||i.value.length<2&&o.value>=0||i.value.length>1&&o.value>=0&&!i.value.includes(o.value)){let t=i.value.length===1&&i.value.includes(o.value)||i.value.length===1&&o.value<0,a=t?i.value[0]:[o.value],s=a>e?e:e-1;if(a===s)return;let[c]=r.value.splice(a,1);r.value.splice(s,0,c);let l={type:`move`,pageIndex:a,targetPageIndex:s};U.saveDocumentEdit(l),n.setDocEditorOperationList(l),t&&(i.value[0]=s)}else{i.value.sort((e,t)=>e-t);for(let t=0;t<i.value.length;t++){let a,o;if(i.value[t]===e)a=i.value[t],o=e;else if(i.value[t]>e)if(a=i.value[t],i.value.includes(e)){o=e;for(let e=0;e<i.value.length;e++)i.value[e]===o&&a!==o&&o++}else o=e;else a=i.value[t]-t,o=e-1;if(i.value.includes(a)&&i.value.includes(o)&&a===o)continue;let[s]=r.value.splice(a,1);r.value.splice(o,0,s);let c={type:`move`,pageIndex:a,targetPageIndex:o};U.saveDocumentEdit(c),n.setDocEditorOperationList(c),i.value[t]=i.value[t]>e?o:o-t}}},ie=e=>{o.value=e.oldIndex,a.value.addEventListener(P?`touchmove`:`mousemove`,B),P&&(document.body.style.overscrollBehavior=`none`,document.body.style.userSelect=`none`,document.getElementById(`app`).style.touchAction=`none`,m.value.style.overflow=`hidden`)},B=e=>{i.value.length>1&&i.value.includes(o.value)&&a.value.querySelector(`.sortable-drag`).style.setProperty(`--after-content`,`'`+i.value.length+`'`);let t=P?document.elementFromPoint(e.touches[0].clientX,e.touches[0].clientY):e.target,n=a.value.children;for(let r=0;r<n.length;r++){let i=n[r];if(i.contains(t)){let t=i.getBoundingClientRect();u.value=(P?e.touches[0].clientX-t.left:e.offsetX+30)<t.width/2,u.value?l.value=r-1:l.value=r}}P&&le(e.touches[0].clientY)},ae=()=>{clearInterval(v),a.value.removeEventListener(P?`touchmove`:`mousemove`,B),ue()&&l.value>-2&&!oe(l.value)&&re(l.value+1),o.value=-2,l.value=-2,P&&(document.body.style.overscrollBehavior=`auto`,document.body.style.userSelect=`auto`,document.getElementById(`app`).style.touchAction=`auto`,m.value.style.overflow=`auto`)},oe=e=>{if(![e-1,e,e+1].includes(l.value+1))return!1;if(i.value.includes(o.value)){if(i.value.length===1&&(i.value[0]===l.value+1||i.value[0]===l.value)||i.value.length>1&&se(i.value)&&(i.value.includes(l.value+1)||i.value.includes(l.value)))return!0}else if([o.value,o.value-1].includes(l.value))return!0;return!1},se=e=>{e.sort(function(e,t){return e-t});for(var t=0;t<e.length-1;t++)if(e[t]+1!==e[t+1])return!1;return!0},ce=()=>{let e=window.innerWidth;p.value=parseInt(e%(e>767?280:170)/2)},le=e=>{let t=m.value,n=t.getBoundingClientRect().height,r=e,i=t.scrollHeight;r<=100||r>=n-100?(clearInterval(v),v=setInterval(()=>{r<=100?(t.scrollTop-=10,t.scrollTop<=0&&clearInterval(v)):r>=n-100&&(t.scrollTop+=10,t.scrollTop+n>=i&&clearInterval(v))},10)):clearInterval(v)},ue=()=>{let e=U.getPermission(`allowsDocumentAssembly`);return!e&&t.openElement(H.PERMISSION_PASSWORD_DIALOG),e};return(e,t)=>{let n=kD,g=lx,_=TD,v=xD,y=_D,C=pD,T=lD,j=aD,M=tD,ie=ZE,B=qE,ae=UE,se=zE,ce=pE,le=BT,H=LT,ue=yT;return S(),V(q,null,[c(`div`,{class:`document-editor-container`,ref_key:`docEditorContainer`,ref:m},[c(`div`,{class:D([`tools-container`,{mobile:K(P)}])},[x(g,{class:D({"with-text":!K(P)}),onClick:t[0]||=e=>ee(`insertPageSettingDialog`)},{default:G(()=>[x(n),c(`span`,null,d(e.$t(`documentEditor.insert`)),1)]),_:1},8,[`class`]),x(g,{class:D({"with-text":!K(P)}),onClick:t[1]||=e=>ee(`mergePageSettingDialog`)},{default:G(()=>[x(_),c(`span`,null,d(e.$t(`documentEditor.merge`)),1)]),_:1},8,[`class`]),x(g,{class:D({"with-text":!K(P),disabled:!i.value.length||i.value.length==r.value.length}),onClick:t[2]||=e=>ee(`deletePageDialog`)},{default:G(()=>[x(v),c(`span`,null,d(e.$t(`common.actions.delete`)),1)]),_:1},8,[`class`]),x(g,{class:D({"with-text":!K(P),disabled:!i.value.length}),onClick:t[3]||=e=>te(1)},{default:G(()=>[x(y),c(`span`,null,d(e.$t(`documentEditor.rotateRight`)),1)]),_:1},8,[`class`]),x(g,{class:D({"with-text":!K(P),disabled:!i.value.length}),onClick:t[4]||=e=>te(-1)},{default:G(()=>[x(C),c(`span`,null,d(e.$t(`documentEditor.rotateLeft`)),1)]),_:1},8,[`class`]),x(g,{class:D({"with-text":!K(P),disabled:!i.value.length}),onClick:L},{default:G(()=>[x(T),c(`span`,null,d(e.$t(`documentEditor.copy`)),1)]),_:1},8,[`class`]),x(g,{class:D({"with-text":!K(P),disabled:!i.value.length}),onClick:t[5]||=e=>ee(`extractPageSettingDialog`)},{default:G(()=>[x(j),c(`span`,null,d(e.$t(`documentEditor.extract`)),1)]),_:1},8,[`class`]),x(g,{class:D({"with-text":!K(P),disabled:!i.value.length}),onClick:R},{default:G(()=>[x(M),c(`span`,null,d(e.$t(`documentEditor.replace`)),1)]),_:1},8,[`class`]),x(g,{class:D({"with-text":!K(P),disabled:!i.value.length}),onClick:t[6]||=e=>ee(`movePageSettingDialog`)},{default:G(()=>[x(ie),c(`span`,null,d(e.$t(`documentEditor.move`)),1)]),_:1},8,[`class`]),x(g,{class:`select-all`,onClick:N,title:i.value.length===r.value.length?e.$t(`documentEditor.unselectAll`):e.$t(`documentEditor.selectAll`)},{default:G(()=>[i.value.length===r.value.length?(S(),s(B,{key:0})):(S(),s(ae,{key:1}))]),_:1},8,[`title`])],2),c(`div`,{class:`page-container`,ref_key:`dragContainer`,ref:a,style:A({"margin-left":p.value+`px`})},[(S(!0),V(q,null,z(r.value,(e,t)=>(S(),V(`div`,{key:`${e.type} - ${t}`,class:D([`page`,{selected:i.value.includes(t),"drag-indicate-right":l.value===t&&!u.value,"drag-indicate-left":l.value+1===t&&u.value,"drag-indicate-disable":o.value>=0&&l.value>=-1&&oe(t),"has-hover":!K(P)&&o.value<0&&!i.value.includes(t)}]),ref_for:!0,ref_key:`imgBoxEl`,ref:f},[c(`div`,{class:`img-box`,onClick:e=>k(t)},[e.img?(S(),V(`img`,{key:0,src:e.img,style:A(`transform: rotate(${I(e.rotation)}deg);`)},null,12,jD)):e.type===`blank`?(S(),V(`div`,{key:1,class:D({"blank-page":e.type===`blank`}),style:A({transform:`rotate(`+I(e.rotation)+`deg)`,width:O(e.size).width+`px`,height:O(e.size).height+`px`})},null,6)):b(``,!0)],8,AD),c(`p`,null,d(t+1),1)],2))),128))],4)],512),x(se,{onInsertPage:w,selectedPageList:i.value,totalPages:r.value.length},null,8,[`selectedPageList`,`totalPages`]),x(ce,{onMergePage:E,selectedPageList:i.value,totalPages:r.value.length},null,8,[`selectedPageList`,`totalPages`]),x(le,{onDeletePage:F,selectedPageList:i.value},null,8,[`selectedPageList`]),x(H,{onExtractPage:ne,totalPages:r.value.length,selectedPageList:i.value},null,8,[`totalPages`,`selectedPageList`]),x(ue,{onMovePage:re,totalPages:r.value.length,selectedPageList:i.value},null,8,[`totalPages`,`selectedPageList`])],64)}}},ND={key:0,class:`print-setting-popup`},PD={class:`select-content`},FD=`printSettingDialog`,ID={__name:`PrintSettingDialog`,setup(e){let{triggerPrinting:t}=U,n=ye(),r=fw(),i=T(()=>n.isElementOpen(FD)),a=T(()=>r.getCompareResult),o=J(`old`),l=()=>{n.closeElement(FD)},u=async()=>{let e=null;o.value===`old`?e=a.value.oldFile.url:o.value===`new`&&(e=a.value.newFile.url),l(),n.setDownloading(!0);try{await t(e),n.setDownloading(!1)}catch(e){console.log(e)}};return(e,t)=>{let n=DT,r=CT,a=WC;return i.value?(S(),V(`div`,ND,[x(a,{show:i.value,dialogName:FD,close:!0},{header:G(()=>[c(`p`,null,d(e.$t(`compare.printSettings`)),1)]),footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:l},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:u},d(e.$t(`common.actions.ok`)),1)]),default:G(()=>[c(`div`,PD,[c(`div`,{onClick:t[0]||=e=>o.value=`old`,class:`option`},[o.value===`old`?(S(),s(n,{key:0})):(S(),s(r,{key:1})),y(d(e.$t(`compare.printOld`)),1)]),c(`div`,{onClick:t[1]||=e=>o.value=`new`,class:`option`},[o.value===`new`?(S(),s(n,{key:0})):(S(),s(r,{key:1})),y(d(e.$t(`compare.printNew`)),1)])])]),_:1},8,[`show`])])):b(``,!0)}}},LD=de(),RD={key:0,class:`download-setting-popup`},zD={class:`select-content`},BD=`downloadSettingDialog`,VD={__name:`DownloadSettingDialog`,setup(e){let t=ye(),n=fw(),r=T(()=>t.isElementOpen(BD)),i=T(()=>n.getCompareResult),a=J(1),o=()=>{t.closeElement(BD)},l=async()=>{let e=[];a.value===1?e.push(i.value.mergeFile):a.value===2&&e.push(i.value.oldFile,i.value.newFile),o(),t.setDownloading(!0);try{e.forEach(e=>{(0,LD.saveAs)(e.url,e.filename)}),t.setDownloading(!1)}catch(e){console.log(e)}};return(e,t)=>{let n=DT,i=CT,u=WC;return r.value?(S(),V(`div`,RD,[x(u,{show:r.value,dialogName:BD,close:!0},{header:G(()=>[c(`p`,null,d(e.$t(`compare.downloadOptions`)),1)]),footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:o},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:l},d(e.$t(`common.actions.ok`)),1)]),default:G(()=>[c(`div`,zD,[c(`div`,{onClick:t[0]||=e=>a.value=2,class:`option`},[a.value===2?(S(),s(n,{key:0})):(S(),s(i,{key:1})),y(d(e.$t(`compare.separateFiles`)),1)]),c(`div`,{onClick:t[1]||=e=>a.value=1,class:`option`},[a.value===1?(S(),s(n,{key:0})):(S(),s(i,{key:1})),y(d(e.$t(`compare.mergedFile`)),1)])])]),_:1},8,[`show`])])):b(``,!0)}}};function HD(){let e=window.location.href,t=e?e.indexOf(`#`):-1;return 0<=t?e.substring(t+1):``}function UD(e,t){let n=typeof t,r=HD().split(`&`).reduce(function(e,t){return t=t.split(`=`),e[decodeURIComponent(t[0])]=decodeURIComponent(t[1]),e},{});if(n===`boolean`&&r[e]!==void 0){if(n=r[e],n===`true`||n===`1`)return!0;if(n===`false`||n===`0`)return!1}return r[e]||t}var WD={key:0,class:`compare-setting-popup`},GD={class:`mode pc`},KD={class:`dialog-content`},qD={class:`mode mobile`},JD={class:`compare-items`},YD={class:`title`},XD={class:`row`},ZD={class:`row`},QD={class:`opacity`},$D={class:`title`},eO={class:`row`},tO={class:`percent-input`},nO={class:`row`},rO={class:`percent-input`},iO={class:`mark-color`},aO={class:`title`},oO={class:`row`},sO={class:`select color-select`},cO={class:`colors-container mark`},lO={class:`cell-container`},uO={class:`cell-outer`},dO={class:`drop-down`},fO={class:`colors-container mark`},pO={class:`cell-container`},mO=[`onClick`],hO={class:`row`},gO={class:`select color-select`},_O={class:`colors-container mark`},vO={class:`cell-container`},yO={class:`cell-outer`},bO={class:`drop-down`},xO={class:`colors-container mark`},SO={class:`cell-container`},CO=[`onClick`],wO={class:`row`},TO={class:`select`},EO={class:`row`},DO={class:`select color-select`},OO={class:`colors-container mark`},kO={class:`cell-container`},AO={class:`cell-outer`},jO={class:`drop-down`},MO={class:`colors-container mark`},NO={class:`cell-container`},PO=[`onClick`],FO={class:`row`},IO={class:`select color-select`},LO={class:`colors-container mark`},RO={class:`cell-container`},zO={class:`cell-outer`},BO={class:`drop-down`},VO={class:`colors-container mark`},HO={class:`cell-container`},UO=[`onClick`],WO={class:`row`},GO={class:`select color-select`},KO={class:`colors-container mark`},qO={class:`cell-container`},JO={class:`cell-outer`},YO={class:`drop-down`},XO={class:`colors-container mark`},ZO={class:`cell-container`},QO=[`onClick`],$O={class:`dialog-footer mobile`},ek={class:`loading`},tk={class:`loading-compare-tip`},nk=`compareSettingDialog`,rk={__name:`CompareSettingDialog`,setup(e){let{t}=It(),{compare:n,loadDocument:r}=U,i=ye(),a=fw(),o=T(()=>i.isElementOpen(nk)),s=T(()=>a.getCompareFiles),l=T(()=>i.getCompareMode),u=J(50),f=J(50),p=T(()=>a.getCompareSetting(`oldFileColor`)),m=T(()=>a.getCompareSetting(`newFileColor`)),g=J(`0`),_=[{label:t(`compare.overlayDialog.normal`),value:`0`},{label:t(`compare.overlayDialog.multiply`),value:`1`},{label:t(`compare.overlayDialog.screen`),value:`2`},{label:t(`compare.overlayDialog.overlay`),value:`3`},{label:t(`compare.overlayDialog.darken`),value:`4`},{label:t(`compare.overlayDialog.lighten`),value:`5`},{label:t(`compare.overlayDialog.colorDodge`),value:`6`},{label:t(`compare.overlayDialog.colorBurn`),value:`7`},{label:t(`compare.overlayDialog.hardLight`),value:`8`},{label:t(`compare.overlayDialog.softLight`),value:`9`},{label:t(`compare.overlayDialog.difference`),value:`10`},{label:t(`compare.overlayDialog.exclusion`),value:`11`},{label:t(`compare.overlayDialog.hue`),value:`12`},{label:t(`compare.overlayDialog.saturation`),value:`13`},{label:t(`compare.overlayDialog.colour`),value:`14`},{label:t(`compare.overlayDialog.luminosity`),value:`15`}],v=J(!0),y=J(!0),C=J(`#93B9FD`),w=J(`#C0FFEC`),E=J(`#FBBDBF`),O=[`#FBBDBF`,`#93B9FD`,`#FFF6B3`,`#C0FFEC`],k=J(null),j=J(null),M=J(null),N=J(null),P=J(null),ee=J(!1),F=J(null),te=J(null);W(()=>u.value,(e,t)=>{e!==``&&(e>100||e<0||!/^\d+$/.test(e))&&(u.value=t)}),W(()=>f.value,(e,t)=>{e!==``&&(e>100||e<0||!/^\d+$/.test(e))&&(f.value=t)});let I=async()=>{let e=await U.getDocumentViewer(2)?.pdfDocument?.getData(),o=await U.getDocumentViewer(3)?.pdfDocument?.getData();if(!e||!o)return;let c=new File([e],U.getDocumentViewer(2)?._docName),d=new File([o],U.getDocumentViewer(3)?._docName),_={leftFile:c,leftFilePassword:s.value.oldFilePassword,rightFile:d,rightFilePassword:s.value.newFilePassword};if(l.value===`content`){let e=v.value,t=y.value;!e&&!t&&(e=t=!0);let n={type:1,textCompare:e,imgCompare:t,replaceColor:C.value,insertColor:w.value,deleteColor:E.value};Object.assign(_,n)}else{let e={type:2,inTransparency:u.value+``,newTransparency:f.value+``,coverType:g.value,inColor:p.value,newColor:m.value};Object.assign(_,e)}try{i.closeElement(nk),ee.value=!0;let e=await n(_);if(e&&e.url){a.resetSetting();let n={filename:t(`compare.credit`)+`.pdf`,progress:a.setLoadingProgress,pageChangedCallback:i.setCurrentPage,scaleChangedCallback:i.setCurrentScale,annotationsNumChangedCallback:a.setAnnotationsCount,distanceChangedCallback:a.setDistance,notUpdatePwd:!0};await r(e.url,n),ee.value=!1;let o=U.getPagesCount(),s=U.getScale();a.setTotalPages(o),i.setCurrentScale(s),i.setCurrentPage(1),i.setUpload(!0),i.setCompareStatus(`finished`)}else if(e&&Array.isArray(e)){let t=e[0],n=e[1];a.setCompareResult({oldFile:t,newFile:n,mergeFile:e[2]}),B(t.url,t.fileName,2),B(n.url,n.fileName,3),ee.value=!1,i.setCompareStatus(`next`)}else ee.value=!1,i.setDownloadError(`Compared`)}catch(e){if(console.log(e),ee.value=!1,i.setDownloadError(`Compared`),e===`invalid_file_error`||e===`no_password_given`||e===`incorrect_password`){i.setUpload(!1),a.setLoadingProgress(0),i.resetSetting();let e=document.getElementById(`fileInput`);e.value=``}}},L=e=>{e.target.value||(u.value=1)},ne=e=>{e.target.value||(f.value=1)},re=(e,t)=>{e===`old`?a.setCompareSetting(`oldFileColor`,t):e===`new`?a.setCompareSetting(`newFileColor`,t):e===`replace`?C.value=t:e===`insert`?w.value=t:e===`delete`&&(E.value=t),l.value===`content`?(M.value.setShow(!1),N.value.setShow(!1),P.value.setShow(!1)):(k.value.setShow(!1),j.value.setShow(!1))},ie=()=>{i.closeElement(nk)};async function B(e,t=null,n){i.setUploadLoading(!0);let o=null;n===2?o=a.getCompareFile(`oldFilePassword`):n===3&&(o=a.getCompareFile(`newFilePassword`));let s={extension:UD(`extension`,null),filename:t||UD(`filename`,null),externalPath:UD(`p`,``),documentId:UD(`did`,null),progress:a.setLoadingProgress,pageChangedCallback:i.setCurrentPage,scaleChangedCallback:n===2?oe():se(),annotationsNumChangedCallback:a.setAnnotationsCount,distanceChangedCallback:a.setDistance,notUploadPdf:!0};o&&(s.pwd=o);try{await r(e,s,n)}catch(e){console.log(e),i.setDownloadError(`Loaded`)}i.setUploadLoading(!1)}let ae=e=>{i.setCompareMode(e)},oe=e=>{F.value=e},se=e=>{te.value=e};return(e,t)=>{let n=QC,r=nw,i=JT,a=WC,s=uT;return S(),V(q,null,[o.value?(S(),V(`div`,WD,[x(a,{show:o.value,dialogName:nk,close:!1},{header:G(()=>[c(`div`,GD,[c(`div`,{class:D({selected:l.value===`content`}),onClick:t[0]||=e=>ae(`content`)},d(e.$t(`compare.contentDialog.title`)),3),c(`div`,{class:D({selected:l.value===`cover`}),onClick:t[1]||=e=>ae(`cover`)},d(e.$t(`compare.overlayDialog.title`)),3)])]),footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:ie},d(e.$t(`compare.return`)),1),c(`div`,{class:`rect-button blue`,onClick:I},d(e.$t(`compare.compare`)),1)]),default:G(()=>[c(`div`,KD,[c(`div`,qD,[c(`div`,{class:D({selected:l.value===`content`}),onClick:t[2]||=e=>ae(`content`)},d(e.$t(`compare.contentDialog.title`)),3),c(`div`,{class:D({selected:l.value===`cover`}),onClick:t[3]||=e=>ae(`cover`)},d(e.$t(`compare.overlayDialog.title`)),3)]),R(c(`div`,JD,[c(`p`,YD,d(e.$t(`compare.contentDialog.items`)),1),c(`div`,XD,[c(`div`,{class:`check-box`,onClick:t[4]||=e=>v.value=!v.value},[c(`div`,{class:D([`check`,{active:v.value}])},[R(x(n,null,null,512),[[Re,v.value]])],2),c(`span`,null,d(e.$t(`compare.contentDialog.text`)),1)])]),c(`div`,ZD,[c(`div`,{class:`check-box`,onClick:t[5]||=e=>y.value=!y.value},[c(`div`,{class:D([`check`,{active:y.value}])},[R(x(n,null,null,512),[[Re,y.value]])],2),c(`span`,null,d(e.$t(`compare.contentDialog.images`)),1)])])],512),[[Re,l.value===`content`]]),R(c(`div`,QD,[c(`p`,$D,d(e.$t(`common.uiElements.opacity`)),1),c(`div`,eO,[c(`span`,null,d(e.$t(`compare.oldFile`)),1),x(K(xb),{value:u.value,"onUpdate:value":t[6]||=e=>u.value=e,step:10,max:100,min:0},{thumb:G(()=>[x(r)]),_:1},8,[`value`]),c(`div`,tO,[R(c(`input`,{"onUpdate:modelValue":t[7]||=e=>u.value=e,type:`number`,step:`10`,pattern:`\\d*`,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,onBlur:L,name:`compare`},null,544),[[Me,u.value]])])]),c(`div`,nO,[c(`span`,null,d(e.$t(`compare.newFile`)),1),x(K(xb),{value:f.value,"onUpdate:value":t[8]||=e=>f.value=e,step:10,max:100,min:0},{thumb:G(()=>[x(r)]),_:1},8,[`value`]),c(`div`,rO,[R(c(`input`,{"onUpdate:modelValue":t[9]||=e=>f.value=e,type:`number`,step:`10`,pattern:`\\d*`,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,onBlur:ne,name:`compare`},null,544),[[Me,f.value]])])])],512),[[Re,l.value===`cover`]]),c(`div`,iO,[c(`p`,aO,d(e.$t(`compare.contentDialog.colorMark`)),1),l.value===`cover`?(S(),V(q,{key:0},[c(`div`,oO,[c(`span`,null,d(e.$t(`compare.oldFile`)),1),x(K(Og),{ref_key:`oldColorPopover`,ref:k,placement:`bottom-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,class:`color-popover`},{trigger:G(()=>[c(`div`,sO,[c(`div`,cO,[c(`span`,lO,[c(`span`,uO,[c(`span`,{class:`cell`,style:A(`background-color: ${p.value};`)},null,4)])])]),x(i)])]),default:G(()=>[c(`div`,dO,[(S(),V(q,null,z(O,(e,t)=>c(`div`,{class:`drop-item`,key:t},[c(`div`,fO,[c(`span`,pO,[c(`span`,{class:D([`cell-outer`,{active:p.value===e}]),onClick:t=>re(`old`,e)},[c(`span`,{class:`cell`,style:A(`background-color: ${e};`)},null,4)],10,mO)])])])),64))])]),_:1},512)]),c(`div`,hO,[c(`span`,null,d(e.$t(`compare.newFile`)),1),x(K(Og),{ref_key:`newColorPopover`,ref:j,placement:`bottom-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,class:`color-popover`},{trigger:G(()=>[c(`div`,gO,[c(`div`,_O,[c(`span`,vO,[c(`span`,yO,[c(`span`,{class:`cell`,style:A(`background-color: ${m.value};`)},null,4)])])]),x(i)])]),default:G(()=>[c(`div`,bO,[(S(),V(q,null,z(O,(e,t)=>c(`div`,{class:`drop-item`,key:t},[c(`div`,xO,[c(`span`,SO,[c(`span`,{class:D([`cell-outer`,{active:m.value===e}]),onClick:t=>re(`new`,e)},[c(`span`,{class:`cell`,style:A(`background-color: ${e};`)},null,4)],10,CO)])])])),64))])]),_:1},512)]),c(`div`,wO,[c(`span`,null,d(e.$t(`compare.overlayDialog.blendMode`)),1),x(K(Tv),{value:g.value,"onUpdate:value":t[10]||=e=>g.value=e,options:_,trigger:`click`,placement:`bottom-start`},{default:G(()=>[c(`div`,TO,[c(`span`,null,d(_[parseInt(g.value)].label),1),x(i)])]),_:1},8,[`value`])])],64)):(S(),V(q,{key:1},[c(`div`,EO,[c(`span`,null,d(e.$t(`compare.contentDialog.replaced`)),1),x(K(Og),{ref_key:`replaceColorPopover`,ref:M,placement:`bottom-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,class:`color-popover`},{trigger:G(()=>[c(`div`,DO,[c(`div`,OO,[c(`span`,kO,[c(`span`,AO,[c(`span`,{class:`cell`,style:A(`background-color: ${C.value};`)},null,4)])])]),x(i)])]),default:G(()=>[c(`div`,jO,[(S(),V(q,null,z(O,(e,t)=>c(`div`,{class:`drop-item`,key:t},[c(`div`,MO,[c(`span`,NO,[c(`span`,{class:D([`cell-outer`,{active:C.value===e}]),onClick:t=>re(`replace`,e)},[c(`span`,{class:`cell`,style:A(`background-color: ${e};`)},null,4)],10,PO)])])])),64))])]),_:1},512)]),c(`div`,FO,[c(`span`,null,d(e.$t(`compare.contentDialog.inserted`)),1),x(K(Og),{ref_key:`insertColorPopover`,ref:N,placement:`bottom-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,class:`color-popover`},{trigger:G(()=>[c(`div`,IO,[c(`div`,LO,[c(`span`,RO,[c(`span`,zO,[c(`span`,{class:`cell`,style:A(`background-color: ${w.value};`)},null,4)])])]),x(i)])]),default:G(()=>[c(`div`,BO,[(S(),V(q,null,z(O,(e,t)=>c(`div`,{class:`drop-item`,key:t},[c(`div`,VO,[c(`span`,HO,[c(`span`,{class:D([`cell-outer`,{active:w.value===e}]),onClick:t=>re(`insert`,e)},[c(`span`,{class:`cell`,style:A(`background-color: ${e};`)},null,4)],10,UO)])])])),64))])]),_:1},512)]),c(`div`,WO,[c(`span`,null,d(e.$t(`compare.contentDialog.deleted`)),1),x(K(Og),{ref_key:`deleteColorPopover`,ref:P,placement:`bottom-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,class:`color-popover`},{trigger:G(()=>[c(`div`,GO,[c(`div`,KO,[c(`span`,qO,[c(`span`,JO,[c(`span`,{class:`cell`,style:A(`background-color: ${E.value};`)},null,4)])])]),x(i)])]),default:G(()=>[c(`div`,YO,[(S(),V(q,null,z(O,(e,t)=>c(`div`,{class:`drop-item`,key:t},[c(`div`,XO,[c(`span`,ZO,[c(`span`,{class:D([`cell-outer`,{active:E.value===e}]),onClick:t=>re(`delete`,e)},[c(`span`,{class:`cell`,style:A(`background-color: ${e};`)},null,4)],10,QO)])])])),64))])]),_:1},512)])],64))]),c(`div`,$O,[c(`div`,{class:`rect-button white`,onClick:ie},d(e.$t(`compare.return`)),1),c(`div`,{class:`rect-button blue`,onClick:I},d(e.$t(`compare.compare`)),1)])])]),_:1},8,[`show`])])):b(``,!0),c(`div`,{class:D([`mask`,{active:ee.value}])},[R(c(`div`,ek,[x(s)],512),[[Re,ee.value]]),c(`div`,tk,[c(`span`,null,d(e.$t(`compare.status`)),1)])],2)],64)}}},ik={},ak={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function ok(e,t){return S(),V(`svg`,ak,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.625 9.375V3.75H9.375V9.375H3.75V10.625H9.375V16.25H10.625V10.625H16.25V9.375H10.625Z`,fill:`currentColor`},null,-1)]])}var sk=B(ik,[[`render`,ok]]),ck={},lk={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function uk(e,t){return S(),V(`svg`,lk,[...t[0]||=[c(`rect`,{x:`3.75`,y:`9.375`,width:`12.5`,height:`1.25`,fill:`currentColor`},null,-1)]])}var dk=B(ck,[[`render`,uk]]),fk={},pk={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function mk(e,t){return S(),V(`svg`,pk,[...t[0]||=[c(`rect`,{opacity:`0.01`,width:`16`,height:`16`,transform:`matrix(0 -1 -1 0 16 16)`,fill:`currentColor`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.5 5.51025L7.5041 10.5L11.5 5.5L3.5 5.51025Z`,fill:`currentColor`},null,-1)]])}var hk=B(fk,[[`render`,mk]]),gk={class:`input-container`},_k={class:`drop-down-zoom`},vk={class:`drop-down zoom`},yk={__name:`ZoomOverlay`,props:[`docNum`],setup(e){let t=J(null),{proxy:{$forceUpdate:n}}=_(),r=ye(),i=T(()=>e.docNum===2?r.getOldScale:e.docNum===3?r.getNewScale:r.getScale),a=T(()=>r.getUpload),o=()=>{i.value<=5||U.zoomOut(e.docNum)},s=()=>{i.value>1e3||U.zoomIn(e.docNum)},l=t=>{let i=/^(\d){0,4}$/,a=t.target.value;i.test(a)||a===``?e.docNum===2?r.setOldCurrentScale(a/100):e.docNum===3?r.setNewCurrentScale(a/100):r.setCurrentScale(a/100):(e.docNum===2?r.setOldCurrentScale(r.getOldScale/100):e.docNum===3?r.setNewCurrentScale(r.getNewScale/100):r.setCurrentScale(r.getScale/100),n())},u=a=>{let o=``;if(o=a.target&&a.target.value?a.target.value:a,!o){i.value=r.getScale;return}if(/^(\d){0,4}$/.test(o)){let t=Math.max(5,o);t=Math.min(1e3,t),e.docNum===2?r.setOldCurrentScale(t/100):e.docNum===3?r.setNewCurrentScale(t/100):r.setCurrentScale(t/100),U.scaleChanged(t/100,e.docNum)}else e.docNum===2?r.setOldCurrentScale(r.getOldScale/100):e.docNum===3?r.setNewCurrentScale(r.getNewScale/100):r.setCurrentScale(r.getScale/100),n();t.value.setShow(!1)},d=T(()=>i.value?i.value.toString().length*9:0),f=e=>{e.target.value?u(e):u(`100`)};return(e,n)=>{let r=hk,p=dk,m=lx,g=sk;return S(),V(`div`,null,[c(`div`,{class:D([`zoom-overlay`,{disabled:!a.value}])},[c(`div`,gk,[R(c(`input`,{"onUpdate:modelValue":n[0]||=e=>i.value=e,type:`text`,pattern:`\\d*`,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,onInput:l,onKeydown:ke(u,[`enter`]),onBlur:f,style:A({width:d.value+`px`}),name:`zoom`},null,36),[[Me,i.value]]),c(`div`,_k,[n[11]||=c(`span`,null,`%`,-1),x(K(Og),{ref_key:`popover`,ref:t,placement:`bottom`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,"z-index":5,disabled:!a.value},{trigger:G(()=>[x(r,{class:`arrow-left`})]),default:G(()=>[c(`div`,vk,[c(`div`,{class:`drop-item`,onClick:n[1]||=e=>u(`10`)},`10%`),c(`div`,{class:`drop-item`,onClick:n[2]||=e=>u(`25`)},`25%`),c(`div`,{class:`drop-item`,onClick:n[3]||=e=>u(`50`)},`50%`),c(`div`,{class:`drop-item`,onClick:n[4]||=e=>u(`100`)},`100%`),c(`div`,{class:`drop-item`,onClick:n[5]||=e=>u(`150`)},`150%`),c(`div`,{class:`drop-item`,onClick:n[6]||=e=>u(`200`)},`200%`),c(`div`,{class:`drop-item`,onClick:n[7]||=e=>u(`300`)},`300%`),c(`div`,{class:`drop-item`,onClick:n[8]||=e=>u(`400`)},`400%`),c(`div`,{class:`drop-item`,onClick:n[9]||=e=>u(`500`)},`500%`),c(`div`,{class:`drop-item`,onClick:n[10]||=e=>u(`1000`)},`1000%`)])]),_:1},8,[`disabled`])])]),x(m,{img:`icon-header-zoom-out`,onClick:o,title:e.$t(`toolbar.viewControls.zoomOut`),class:D({disabled:!a.value})},{default:G(()=>[x(p)]),_:1},8,[`title`,`class`]),x(m,{img:`icon-header-zoom-in`,onClick:s,title:e.$t(`toolbar.viewControls.zoomIn`),class:D({disabled:!a.value})},{default:G(()=>[x(g)]),_:1},8,[`title`,`class`])],2)])}}},bk={class:`old`},xk={class:`file-type`},Sk={class:`upload-tip`},Ck={class:`rect-button white`},wk={key:1,class:`uploaded pc`},Tk={class:`header-info`},Ek={class:`file-name`},Dk={class:`drop-area mobile`},Ok={class:`upload-tip mobile`},kk={class:`text`},Ak={class:`rect-button white`},jk={key:0,class:`file-name`},Mk={class:`new`},Nk={class:`file-type`},Pk={class:`upload-tip`},Fk={class:`rect-button white`},Ik={key:1,class:`uploaded pc`},Lk={class:`header-info`},Rk={class:`file-name`},zk={class:`drop-area mobile`},Bk={class:`upload-tip`},Vk={class:`text`},Hk={class:`rect-button white`},Uk={key:0,class:`file-name`},Wk={__name:`CompareDocumentContainer`,props:{docNum:Number},setup(e){let{loadDocument:t,initializeViewer:n,initConfig:r}=U,{t:i}=It(),a=ye(),o=fw(),s=T(()=>a.getToolMode),l=T(()=>a.getCompareStatus),u=J(),f=J(),p=J(),m=J(),g=T(()=>o.getCompareFile(`oldFile`)),_=T(()=>o.getCompareFile(`newFile`)),v=J(!1),C=J(!1),w=T(()=>a.getVerified);W(()=>s.value,(e,t)=>{t===`compare`&&e!==t&&(O(),N()),e===`compare`&&e!==t&&setTimeout(()=>{w.value||(U.eventBus().dispatch(`message`,{type:`ERROR`,message:`Invalid license`}),console.log(`Invalid license`))},1)});let E=async(e,t)=>{if(!e.target.files[0])return;(!U.getDocumentViewer(2)||!U.getDocumentViewer(3))&&await M();let n=URL.createObjectURL(e.target.files[0]),r=await U.checkPassword(n,!0);if(r===!1){e.target.value=``;return}let i=e.target.files[0].name;t===`old`&&(o.setCompareFiles(`oldFile`,e.target.files[0]),o.setCompareFiles(`oldFilePassword`,r),P(n,i,2)),t===`new`&&(o.setCompareFiles(`newFile`,e.target.files[0]),o.setCompareFiles(`newFilePassword`,r),P(n,i,3))},O=e=>{e===`old`?(o.setCompareFiles(`oldFile`,null),o.setCompareFiles(`oldFilePassword`,``)):e===`new`?(o.setCompareFiles(`newFile`,null),o.setCompareFiles(`newFilePassword`,``)):o.initCompareFiles(),a.setCompareStatus(``)},k=async(e,t)=>{e.preventDefault();let n=e.dataTransfer.files;if(v.value=!1,C.value=!1,n[0].type!==`application/pdf`)return;let r=URL.createObjectURL(n[0]),i=await U.checkPassword(r,!0);if(i===!1){e.target.value=``;return}let a=n[0].name;t===`old`&&(o.setCompareFiles(`oldFile`,n[0]),o.setCompareFiles(`oldFilePassword`,i),P(r,a,2)),t===`new`&&(o.setCompareFiles(`newFile`,n[0]),o.setCompareFiles(`newFilePassword`,i),P(r,a,3))},A=e=>{e===`old`&&(v.value=!0),e===`new`&&(C.value=!0)},j=e=>{let t=document.getElementById(`oldDropArea`),n=document.getElementById(`newDropArea`),r=e.relatedTarget;for(;r;){if(r===t||t.contains(r)||r===n||n.contains(r))return;r=r.parentElement}v.value=!1,C.value=!1},M=async()=>{let e=a.getLicense;e&&(U.setDocumentViewer(2,null,{$t:i}),U.setDocumentViewer(3,null,{$t:i}),await r({license:e},2),n({container:u.value,viewer:f.value},2),await r({license:e},3),n({container:p.value,viewer:m.value},3))},N=()=>{U.deleteDocumentViewer(2),U.deleteDocumentViewer(3)};async function P(e,t,n){a.setUpload(!0),a.setUploadLoading(!0),await ee(e,t,n),a.setUploadLoading(!1)}async function ee(e,n,r){let i=null;r===2?i=o.getCompareFile(`oldFilePassword`):r===3&&(i=o.getCompareFile(`newFilePassword`));let s={extension:UD(`extension`,null),filename:UD(`filename`,null)||n,externalPath:UD(`p`,``),documentId:UD(`did`,null),progress:o.setLoadingProgress,pageChangedCallback:a.setCurrentPage,scaleChangedCallback:r===2?a.setOldCurrentScale:a.setNewCurrentScale,annotationsNumChangedCallback:o.setAnnotationsCount,distanceChangedCallback:o.setDistance,notUploadPdf:!0};i&&(s.pwd=i);try{await t(e,s,r)}catch(e){console.log(e),(e===`invalid_file_error`||e===`no_password_given`||e===`incorrect_password`)&&(a.setUpload(!1),o.setLoadingProgress(0),a.resetSetting())}}return window.instance.UI.loadCompareDocument=async(e,t=``,n=``,r=``)=>{e&&((!U.getDocumentViewer(2)||!U.getDocumentViewer(3))&&await M(),r===`old`&&(o.setCompareFiles(`oldFile`,e),o.setCompareFiles(`oldFilePassword`,n),P(e,t,2)),r===`new`&&(o.setCompareFiles(`newFile`,e),o.setCompareFiles(`newFilePassword`,n),P(e,t,3)))},(e,t)=>{let n=yk,r=Le,i=rk,a=VD,o=ID;return S(),V(q,null,[c(`div`,{class:D([`compare-document-container`,{under:s.value!==`compare`||s.value===`compare`&&l.value===`finished`}])},[c(`div`,bk,[c(`div`,xk,d(e.$t(`compare.oldFile`)),1),c(`div`,{class:D([`file-content`,{"no-file":!K(g)}])},[K(g)?b(``,!0):(S(),V(`div`,{key:0,class:D([`drop-area pc`,{"drag-over":K(v)}]),id:`oldDropArea`,onDragover:t[1]||=Ae(()=>{},[`prevent`]),onDragenter:t[2]||=e=>A(`old`),onDragleave:j,onDrop:t[3]||=e=>k(e,`old`)},[c(`div`,Sk,[c(`p`,null,[y(d(e.$t(`compare.dropFile`)[0]),1),t[12]||=c(`br`,null,null,-1),y(d(e.$t(`compare.dropFile`)[1]),1)]),c(`div`,Ck,[y(d(e.$t(`compare.chooseOld`)),1),c(`input`,{type:`file`,onChange:t[0]||=e=>E(e,`old`),accept:`.pdf`,name:`compare`},null,32)])])],34)),K(g)?(S(),V(`div`,wk,[c(`div`,Tk,[x(n,{docNum:2}),c(`p`,Ek,d(K(g).name),1),x(r,{class:`close`,onClick:t[4]||=e=>O(`old`)})])])):b(``,!0),c(`div`,{class:D([`old-file-container file-container pc`,{"no-file":!K(g)}]),ref_key:`oldFileContainer`,ref:u},[c(`div`,{ref_key:`oldViewerContainer`,ref:f,class:`document`},null,512)],2),c(`div`,Dk,[c(`div`,Ok,[c(`div`,kk,[c(`p`,null,d(e.$t(`compare.oldFile`)),1)]),c(`div`,Ak,[y(d(e.$t(`compare.chooseOld`))+` `,1),c(`input`,{type:`file`,onChange:t[5]||=e=>E(e,`old`),accept:`.pdf`,name:`compare`},null,32),K(g)?(S(),V(`p`,jk,d(K(g).name),1)):b(``,!0)])])])],2)]),c(`div`,Mk,[c(`div`,Nk,d(e.$t(`compare.newFile`)),1),c(`div`,{class:D([`file-content`,{"no-file":!K(_)}])},[K(_)?b(``,!0):(S(),V(`div`,{key:0,class:D([`drop-area pc`,{"drag-over":K(C)}]),id:`newDropArea`,onDragover:t[7]||=Ae(()=>{},[`prevent`]),onDragenter:t[8]||=e=>A(`new`),onDragleave:j,onDrop:t[9]||=e=>k(e,`new`)},[c(`div`,Pk,[c(`p`,null,[y(d(e.$t(`compare.dropFile`)[0]),1),t[13]||=c(`br`,null,null,-1),y(d(e.$t(`compare.dropFile`)[1]),1)]),c(`div`,Fk,[y(d(e.$t(`compare.chooseNew`)),1),c(`input`,{type:`file`,onChange:t[6]||=e=>E(e,`new`),accept:`.pdf`,name:`compare`},null,32)])])],34)),K(_)?(S(),V(`div`,Ik,[c(`div`,Lk,[x(n,{docNum:3}),c(`p`,Rk,d(K(_).name),1),x(r,{class:`close`,onClick:t[10]||=e=>O(`new`)})])])):b(``,!0),c(`div`,{class:D([`new-file-container file-container pc`,{"no-file":!K(_)}]),ref_key:`newFileContainer`,ref:p},[c(`div`,{ref_key:`newViewerContainer`,ref:m,class:`document`},null,512)],2),c(`div`,zk,[c(`div`,Bk,[c(`div`,Vk,[c(`p`,null,d(e.$t(`compare.newFile`)),1)]),c(`div`,Hk,[y(d(e.$t(`compare.chooseNew`))+` `,1),c(`input`,{type:`file`,onChange:t[11]||=e=>E(e,`new`),accept:`.pdf`,name:`compare`},null,32),K(_)?(S(),V(`p`,Uk,d(K(_).name),1)):b(``,!0)])])])],2)])],2),x(i),x(a),x(o)],64)}}};``+new URL(`../images/curve-guide.gif`,import.meta.url).href;var Gk={class:`title`},Kk={class:`got-button`},qk={__name:`MeasureCurveGuide`,setup(e){let t=fw(),n=T(()=>t.getActiveTool),r=J(!1),i=J(`calc(50% - 155px)`),a=J(`95px`),o=!1;W(n,(e,t)=>{if(e===`curve`&&!o){let e=document.querySelector(`[data-element="${H.MEASURE_CURVE}"]`);if(e){let t=e.getBoundingClientRect();i.value=t.left+t.width/2+`px`,a.value=t.top+t.height+15+`px`}r.value=!0}else r.value=!1});let s=()=>{r.value=!1,o=!0};return(e,t)=>r.value?(S(),V(`div`,{key:0,class:`measure-curve-guide`,style:A({left:i.value,top:a.value})},[t[0]||=c(`img`,{src:``+new URL(`../images/curve-guide.gif`,import.meta.url).href,alt:``},null,-1),c(`p`,Gk,d(e.$t(`measurement.curveMeasurement.title`)),1),c(`p`,null,d(e.$t(`measurement.curveMeasurement.steps`)[0]),1),c(`p`,null,d(e.$t(`measurement.curveMeasurement.steps`)[1]),1),c(`div`,Kk,[c(`span`,{onClick:s},d(e.$t(`measurement.curveMeasurement.confirmation`)),1)])],4)):b(``,!0)}},Jk={},Yk={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Xk(e,t){return S(),V(`svg`,Yk,[...t[0]||=[c(`path`,{d:`M2.52442 5.684L10 1.36798L17.4756 5.684V14.3161L10 18.6321L2.52442 14.3161V5.684Z`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M10.0003 6.50003L13.0314 8.25003V11.75L10.0003 13.5L6.96919 11.75V8.25003L10.0003 6.50003Z`,fill:`currentColor`},null,-1)]])}var Zk=B(Jk,[[`render`,Xk]]),Qk={},$k={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function eA(e,t){return S(),V(`svg`,$k,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8.18555 2.96288L18.3831 2.96288L18.3831 4.46288L8.18557 4.46288C7.88386 5.24988 7.1212 5.80861 6.22804 5.80861C5.33488 5.80861 4.57222 5.24988 4.27051 4.46288L1.61743 4.46288L1.61743 2.96288L4.27053 2.96288C4.57225 2.1759 5.3349 1.61719 6.22804 1.61719C7.12118 1.61719 7.88383 2.1759 8.18555 2.96288ZM1.61743 10.75L11.6053 10.75C11.907 11.537 12.6697 12.0958 13.5628 12.0958C14.456 12.0958 15.2187 11.537 15.5204 10.75H18.3831L18.3831 9.25002L15.5204 9.25002C15.2186 8.46304 14.456 7.90433 13.5628 7.90433C12.6697 7.90433 11.9071 8.46304 11.6053 9.25002L1.61743 9.25002L1.61743 10.75ZM4.27051 17.0372H1.61743L1.61743 15.5372H4.27053C4.57225 14.7502 5.3349 14.1915 6.22804 14.1915C7.12118 14.1915 7.88383 14.7502 8.18555 15.5372L18.3831 15.5372L18.3831 17.0372L8.18557 17.0372C7.88386 17.8242 7.1212 18.3829 6.22804 18.3829C5.33488 18.3829 4.57222 17.8242 4.27051 17.0372Z`,fill:`currentColor`},null,-1)]])}var tA=B(Qk,[[`render`,eA]]),nA={},rA={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function iA(e,t){return S(),V(`svg`,rA,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3 2.25H2.25V3V15H3.75V3.75H15V2.25H3ZM7.5 7.5H16.5V16.5H7.5V7.5ZM6 6H7.5H16.5H18V7.5V16.5V18H16.5H7.5H6V16.5V7.5V6Z`,fill:`currentColor`},null,-1)]])}var aA=B(nA,[[`render`,iA]]),oA={},sA={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function cA(e,t){return S(),V(`svg`,sA,[...t[0]||=[c(`path`,{d:`M17.8252 2.743H2.17484V17.4101C2.17484 17.4943 2.27256 17.5408 2.33791 17.4877L6.16578 14.3765H17.8252V2.743Z`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M5.00003 6.77402H14`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M5.00003 10.2973H11`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var lA=B(oA,[[`render`,cA]]),uA={},dA={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function fA(e,t){return S(),V(`svg`,dA,[...t[0]||=[c(`path`,{d:`M6.58333 8.44989L9.44994 1.99999C10.0202 1.99999 10.567 2.22651 10.9702 2.6297C11.3734 3.0329 11.5999 3.57975 11.5999 4.14996V7.01658H15.6562C15.8639 7.01422 16.0697 7.05707 16.2593 7.14215C16.4489 7.22722 16.6176 7.3525 16.754 7.50929C16.8903 7.66608 16.9909 7.85063 17.0489 8.05017C17.1068 8.24971 17.1207 8.45946 17.0895 8.66488L16.1005 15.1148C16.0487 15.4565 15.8751 15.7681 15.6117 15.992C15.3483 16.2158 15.0129 16.337 14.6672 16.3331H6.58333M6.58333 8.44989V16.3331M6.58333 8.44989H4.66986C4.26426 8.44271 3.87015 8.58471 3.56233 8.84893C3.25452 9.11315 3.05443 9.48119 3.00005 9.88319V14.8998C3.05443 15.3018 3.25452 15.6698 3.56233 15.934C3.87015 16.1983 4.26426 16.3403 4.66986 16.3331H6.58333`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var pA=B(uA,[[`render`,fA]]),mA={},hA={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function gA(e,t){return S(),V(`svg`,hA,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M12.5663 1.73124C12.3457 1.51066 11.9792 1.54371 11.8017 1.80019L9.00221 5.84387C8.97541 5.88258 8.93581 5.9106 8.89039 5.92298L5.20212 6.92888C5.12329 6.95038 5.06548 7.01679 5.05485 7.0978C4.99741 7.53536 4.78835 8.98634 4.36452 10.5C4.00509 11.7837 2.91361 14.2634 2.30714 15.6015C1.93791 15.4319 1.48666 15.4992 1.18254 15.8033C0.792017 16.1939 0.792017 16.827 1.18254 17.2175C1.57307 17.6081 2.20623 17.6081 2.59676 17.2175C2.90731 16.907 2.9709 16.443 2.78754 16.0696C3.97427 15.503 6.12247 14.5333 7.90006 14.0355C9.90855 13.4732 10.9209 13.3576 11.2798 13.3342C11.3716 13.3282 11.4526 13.266 11.4768 13.1773L12.4771 9.50966C12.4895 9.46424 12.5175 9.42465 12.5562 9.39785L16.5999 6.59838C16.8563 6.42081 16.8894 6.05431 16.6688 5.83373L12.5663 1.73124ZM8.34417 8.8228C8.29817 8.77679 8.22119 8.78627 8.18771 8.84206L6.33809 11.9248C6.28453 12.014 6.38602 12.1155 6.47529 12.062L9.558 10.2123C9.61378 10.1789 9.62326 10.1019 9.57726 10.0559L8.34417 8.8228ZM16.027 16.5933C15.9522 16.5981 15.8766 16.6005 15.8006 16.6005C15.7254 16.6005 15.6507 16.5982 15.5767 16.5935L14.0309 19.2709C13.9525 19.4067 13.7553 19.4035 13.6813 19.2651L13.0771 18.1343C13.0412 18.0671 12.9702 18.0262 12.8941 18.0287L11.6126 18.0708C11.4558 18.0759 11.3544 17.9067 11.4329 17.7709L12.9536 15.1369C12.5425 14.5632 12.3006 13.8601 12.3006 13.1005C12.3006 11.1675 13.8676 9.60053 15.8006 9.60053C17.7336 9.60053 19.3006 11.1675 19.3006 13.1005C19.3006 13.8592 19.0592 14.5615 18.649 15.1348L20.171 17.7709C20.2494 17.9067 20.148 18.0759 19.9912 18.0708L18.7098 18.0287C18.6336 18.0262 18.5627 18.0671 18.5268 18.1343L17.9225 19.2651C17.8486 19.4035 17.6514 19.4067 17.5729 19.2709L16.027 16.5933Z`,fill:`currentColor`},null,-1)]])}var _A=B(mA,[[`render`,gA]]),vA={},yA={width:`25`,height:`24`,viewBox:`0 0 25 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function bA(e,t){return S(),V(`svg`,yA,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M19.5623 7.9067L14.6557 3L11.5014 7.55623L7.64623 8.60766C7.64623 8.60766 7.44842 10.3155 6.94528 12.1125C6.58896 13.3851 5.50688 15.8434 4.90572 17.1698C4.5396 17.0014 4.09196 17.068 3.79034 17.3696C3.40322 17.7568 3.40322 18.3844 3.79034 18.7715C4.17746 19.1587 4.80511 19.1587 5.19223 18.7715C5.5 18.4638 5.56308 18.004 5.38149 17.6339C6.55777 17.0723 8.68764 16.1107 10.45 15.6172C13.034 14.8937 13.9547 14.9163 13.9547 14.9163L15.0061 11.061L19.5623 7.9067ZM10.7997 10.3601L12.2016 11.762L8.69685 13.8649L10.7997 10.3601ZM17.9547 17.5658C17.6177 16.9944 17.0028 16.7812 16.1476 16.8013C16.0495 16.8036 15.9455 16.8091 15.8353 16.8179L15.4861 16.854L15.0991 16.9101C15.0313 16.9211 14.962 16.933 14.891 16.9457L14.445 17.0323L13.9583 17.1398L13.4299 17.2684L12.8587 17.4186L12.2436 17.5906L11.2363 17.8906L10.5067 18.119L9.32254 18.5051L8.47165 18.7921L7.10044 19.2678L7.68591 21L8.57815 20.6888L9.82355 20.2659L10.5929 20.0127L11.3145 19.782L12.3087 19.4775L12.9138 19.3017L13.737 19.0778L14.2305 18.9546L14.6806 18.8519L15.088 18.7692L15.4535 18.7063L15.7779 18.6628C15.93 18.6459 16.0669 18.636 16.189 18.6332L16.3181 18.6327L16.2761 18.8388C16.2125 19.1636 16.1998 19.3368 16.2394 19.5948C16.324 20.1475 16.6955 20.5595 17.257 20.7155C17.7746 20.8593 18.5301 20.7995 19.6673 20.5229L20.2199 20.3798C20.4134 20.327 20.6166 20.2689 20.8298 20.2057L21.5002 20.0001L20.9702 18.2494L20.3733 18.4324L19.8368 18.5865L19.3603 18.7128L18.9431 18.8123C18.8784 18.8267 18.8163 18.8401 18.7565 18.8524L18.4273 18.9139C18.3273 18.9303 18.237 18.9427 18.1562 18.9514L18.0859 18.9576L18.118 18.7913C18.2062 18.2932 18.1885 17.9622 17.9547 17.5658Z`,fill:`currentColor`},null,-1)]])}var xA=B(vA,[[`render`,bA]]),SA={},CA={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function wA(e,t){return S(),V(`svg`,CA,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.5 3H1.75V3.75V16.25V17H2.5H19H19.75V16.25V10H18.25V15.5H18.2147L12.8718 10.8178L10.5643 13.25L6.29496 9.75L3.25 12.9595V4.5H13.75V3H2.5ZM14.5 8.25C14.5 9.07843 13.8284 9.75 13 9.75C12.1716 9.75 11.5 9.07843 11.5 8.25C11.5 7.42157 12.1716 6.75 13 6.75C13.8284 6.75 14.5 7.42157 14.5 8.25ZM16.75 6.75H14.5V5.25H16.75V3H18.25V5.25H20.5V6.75H18.25V9H16.75V6.75Z`,fill:`currentColor`},null,-1)]])}var TA=B(SA,[[`render`,wA]]),EA={},DA={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function OA(e,t){return S(),V(`svg`,DA,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.25 3H1.5V3.75V16.25V17H2.25H18.75H19.5V16.25V10H18V15.5H3V4.5H13.5V3H2.25ZM12.5 8V5.5H4.5V8H6V7H7.75V13H7V14.5H10V13H9.25V7H11V8H12.5ZM16.75 6.75H14.5V5.25H16.75V3H18.25V5.25H20.5V6.75H18.25V9H16.75V6.75Z`,fill:`currentColor`},null,-1)]])}var kA=B(EA,[[`render`,OA]]),AA={},jA={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function MA(e,t){return S(),V(`svg`,jA,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M20 1.25H2L0 18.75H18L20 1.25ZM10.4361 3.51788L15.0866 15.1442H16.5866V16.3942H12.7404V15.1442H13.7403L12.798 12.7885H6.91309L5.9711 15.1442H6.97115V16.3942H3.125V15.1442H4.62492L9.27547 3.51788H10.4361ZM9.85499 5.43124L12.298 11.5385H7.41292L9.85499 5.43124Z`,fill:`currentColor`},null,-1)]])}var NA=B(AA,[[`render`,MA]]),PA={},FA={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function IA(e,t){return S(),V(`svg`,FA,[...t[0]||=[c(`path`,{d:`M3.25 18C3.25 9.71573 9.96573 3 18.25 3`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var LA=B(PA,[[`render`,IA]]),RA={},zA={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function BA(e,t){return S(),V(`svg`,zA,[...t[0]||=[c(`path`,{d:`M7 4.07123L13 10.071L7 16.0709`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var VA=B(RA,[[`render`,BA]]),HA={},UA={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function WA(e,t){return S(),V(`svg`,UA,[...t[0]||=[c(`path`,{d:`M13 4.07123L7 10.071L13 16.0709`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var GA=B(HA,[[`render`,WA]]),KA={},qA={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function JA(e,t){return S(),V(`svg`,qA,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M9.99164 3.52673L9.24244 3.56122L9.31142 5.05963L10.0606 5.02514L14.0731 4.84043L3.46978 15.4438L2.93945 15.9741L4.00011 17.0348L4.53044 16.5044L15.3467 5.68818L15.5465 10.0282L15.581 10.7774L17.0794 10.7084L17.0449 9.95918L16.769 3.96553L16.7345 3.21632L15.9853 3.25081L9.99164 3.52673Z`,fill:`currentColor`},null,-1)]])}var YA=B(KA,[[`render`,JA]]),XA={},ZA={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function QA(e,t){return S(),V(`svg`,ZA,[...t[0]||=[c(`path`,{d:`M10.4934 16H5V4H10.8882C12.3739 4.02171 13.4265 4.44776 14.0461 5.27815C14.4189 5.78833 14.6053 6.39891 14.6053 7.10991C14.6053 7.84261 14.4189 8.43148 14.0461 8.87653C13.8377 9.12619 13.5307 9.35414 13.125 9.56038C13.7445 9.7829 14.2105 10.1357 14.523 10.6187C14.841 11.1018 15 11.6879 15 12.3772C15 13.0882 14.8191 13.7259 14.4572 14.2904C14.227 14.6649 13.9391 14.9796 13.5938 15.2347C13.2045 15.5278 12.744 15.7286 12.2122 15.8372C11.6859 15.9457 11.1129 16 10.4934 16ZM10.4359 10.7164H7.41776V13.9159H10.3947C10.9265 13.9159 11.3405 13.8453 11.6365 13.7042C12.1738 13.4437 12.4424 12.9444 12.4424 12.2062C12.4424 11.5821 12.182 11.1533 11.6612 10.9199C11.3706 10.7897 10.9622 10.7218 10.4359 10.7164ZM11.6941 8.42877C12.023 8.23338 12.1875 7.88331 12.1875 7.37856C12.1875 6.81954 11.9682 6.45047 11.5296 6.27137C11.1513 6.14654 10.6689 6.08412 10.0822 6.08412H7.41776V8.72999H10.3947C10.9265 8.72999 11.3596 8.62958 11.6941 8.42877Z`,fill:`currentColor`},null,-1)]])}var $A=B(XA,[[`render`,QA]]),ej={},tj={width:`17`,height:`16`,viewBox:`0 0 17 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function nj(e,t){return S(),V(`svg`,tj,[...t[0]||=[c(`path`,{d:`M8.45508 7.53613L15.4551 10.3379L16.5391 10.7725L15.4775 11.2568L8.47754 14.4551L8.26953 14.5498L8.06152 14.4551L1.06152 11.2568L0 10.7725L1.08398 10.3379L8.08398 7.53613L8.26953 7.46094L8.45508 7.53613ZM8.47656 1.54492L15.4766 4.72852L16.4121 5.1543L15.5 5.62793L12 7.44336L11.5391 6.55664L14.1279 5.21387L8.26953 2.5498L2.41211 5.21387L5 6.55664L4.53906 7.44336L1.03906 5.62793L0.126953 5.1543L1.0625 4.72852L8.0625 1.54492L8.26953 1.45117L8.47656 1.54492Z`,fill:`#43474D`},null,-1)]])}var rj=B(ej,[[`render`,nj]]),ij={},aj={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function oj(e,t){return S(),V(`svg`,aj,[...t[0]||=[c(`path`,{d:`M14.793 10.2378L15.7842 10.7173L14.7705 11.1479L8.19531 13.939L8 14.022L7.80469 13.939L1.23047 11.1479L0.216797 10.7173L1.20801 10.2378L4.49512 8.64502L4.93066 9.54541L2.63379 10.6567L8 12.9351L13.3652 10.6567L11.0693 9.54541L11.2881 9.09521L11.5059 8.64502L14.793 10.2378ZM8.20312 2.06396L14.7783 4.98389L15.875 5.47119L14.7568 5.90674L8.18164 8.46533L8 8.53662L7.81934 8.46533L1.24414 5.90674L0.125 5.47119L1.22266 4.98389L7.79785 2.06396L8 1.97412L8.20312 2.06396Z`,fill:`#43474D`},null,-1)]])}var sj=B(ij,[[`render`,oj]]),cj={},lj={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function uj(e,t){return S(),V(`svg`,lj,[...t[0]||=[c(`path`,{d:`M8.20312 1.94287L10.2178 2.8374V3.93115L8 2.94678L2.64551 5.32373L8 7.40771L10.2178 6.54346V7.61768L8.18164 8.41064L8 8.48193L7.81836 8.41064L4.88086 7.26709L4.89062 7.28662L2.55371 8.41748L8 10.729L11.9453 9.0542H14.5039L12.2021 10.0308L14.8721 11.3247L15.8633 11.8052L14.8496 12.2349L8.19531 15.0601L8 15.1431L7.80469 15.0601L1.15039 12.2349L0.136719 11.8052L1.12793 11.3247L3.79688 10.0308L1.15039 8.90771L0.136719 8.47803L1.12793 7.99756L3.63574 6.78271L1.16406 5.8208L0.0449219 5.38525L1.14258 4.89795L7.79688 1.94287L8 1.85303L8.20312 1.94287ZM13.0557 6.92432L13.7842 6.1958L14.4912 6.90283L12.9092 8.48486C12.7139 8.67985 12.3973 8.68003 12.2021 8.48486L10.6201 6.90283L11.3271 6.1958L12.0557 6.92432V2.45361H13.0557V6.92432Z`,fill:`#43474D`},null,-1)]])}var dj=B(cj,[[`render`,uj]]),fj={},pj={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function mj(e,t){return S(),V(`svg`,pj,[...t[0]||=[c(`path`,{d:`M8.20264 2.13086L14.6528 4.99512L15.7505 5.48242L14.6313 5.91797L12.2681 6.83691L14.5913 7.96289H12.2983L11.0073 7.33789L11.0122 7.32617L8.18115 8.42871L8.00049 8.49902L7.81885 8.42871L4.98682 7.32617L4.99268 7.33789L2.7583 8.41895L7.99951 10.6436L10.1499 9.73047V10.8174L8.1958 11.6475L8.00049 11.7305L7.8042 11.6475L4.92627 10.4258L4.99268 10.5625L2.7583 11.6436L7.99951 13.8682L10.1499 12.9551V14.042L8.1958 14.8721L8.00049 14.9551L7.8042 14.8721L1.35498 12.1348L0.341309 11.7041L1.33252 11.2246L3.88916 9.98535L1.35498 8.91016L0.341309 8.47949L1.33252 8L3.73096 6.83691L1.36865 5.91797L0.249512 5.48242L1.34717 4.99512L7.79736 2.13086L8.00049 2.04102L8.20264 2.13086ZM12.062 8.68359C12.2572 8.48872 12.5739 8.48861 12.769 8.68359L14.313 10.2275L13.606 10.9346L12.9155 10.2441V14.5557H11.9155V10.2441L11.2251 10.9346L10.5181 10.2275L12.062 8.68359Z`,fill:`#43474D`},null,-1)]])}var hj=B(fj,[[`render`,mj]]),gj={},_j={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function vj(e,t){return S(),V(`svg`,_j,[...t[0]||=[v(`<mask id="path-1-inside-1_172_2287" fill="white"><rect x="2" y="2" width="16" height="10" rx="1"></rect></mask><rect x="2" y="2" width="16" height="10" rx="1" stroke="currentColor" stroke-width="3" stroke-linejoin="round" mask="url(#path-1-inside-1_172_2287)"></rect><path d="M8.59809 16L8.59809 16.75C8.34414 16.75 8.10745 16.6215 7.96912 16.4085L8.59809 16ZM5.37103 12.4085L4.9625 11.7796L6.22044 10.9625L6.62897 11.5915L6 12L5.37103 12.4085ZM14 16L14 16.75L8.59809 16.75L8.59809 16L8.59809 15.25L14 15.25L14 16ZM8.59809 16L7.96912 16.4085L5.37103 12.4085L6 12L6.62897 11.5915L9.22706 15.5915L8.59809 16Z" fill="currentColor"></path><path d="M12.5 14L14.5 16.065L12.626 18" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"></path>`,4)]])}var yj=B(gj,[[`render`,vj]]),bj={},xj={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Sj(e,t){return S(),V(`svg`,xj,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M4 4H15.5V15.5H4V4ZM2.5 2.5H4H15.5H17V4V15.5V17H15.5H4H2.5V15.5V4V2.5ZM7.06066 6L7.59099 6.53033L9.56066 8.5L11.5303 6.53033L12.0607 6L13.1213 7.06066L12.591 7.59099L10.6213 9.56066L12.591 11.5303L13.1213 12.0607L12.0607 13.1213L11.5303 12.591L9.56066 10.6213L7.59099 12.591L7.06066 13.1213L6 12.0607L6.53033 11.5303L8.5 9.56066L6.53033 7.59099L6 7.06066L7.06066 6Z`,fill:`currentColor`},null,-1)]])}var Cj=B(bj,[[`render`,Sj]]),wj={},Tj={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Ej(e,t){return S(),V(`svg`,Tj,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M14.0315 11.1503L10.609 2.59406H9.39038L5.96788 11.1503H5.09998V12.0253H7.89998V11.1503H7.38147L8.08144 9.4003H11.9179L12.6179 11.1503H12.1V12.0253H14.9V11.1503H14.0315ZM11.568 8.5253L9.99969 4.60441L8.43142 8.5253H11.568Z`,fill:`currentColor`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M4.499 17.406L1.80957 14.7147L4.50088 12.0253L5.26929 12.7942L3.8888 14.1737L16.1078 14.1703L14.7306 12.7942L15.499 12.0252L18.1903 14.7146L15.5009 17.4059L14.732 16.6375L16.1106 15.2574L3.89264 15.2607L5.26795 16.6376L4.499 17.406Z`,fill:`currentColor`},null,-1)]])}var Dj=B(wj,[[`render`,Ej]]),Oj={},kj={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Aj(e,t){return S(),V(`svg`,kj,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M18.25 1.75H1.75V18.25H18.25V1.75ZM16.75 3.25V16.75H3.25V3.25H16.75ZM15.532 7.52861L14.468 6.47139L9.038 11.935L6.53204 9.41291L5.46796 10.4701L9.03873 14.0641L15.532 7.52861Z`,fill:`currentColor`},null,-1)]])}var jj=B(Oj,[[`render`,Aj]]),Mj={},Nj={width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Pj(e,t){return S(),V(`svg`,Nj,[...t[0]||=[c(`rect`,{width:`14`,height:`14`,rx:`1`,fill:`currentColor`},null,-1),c(`path`,{d:`M10.2784 5.27848L5.84653 9.71032L4.20261 8.06642`,stroke:`white`,"stroke-width":`1.5`,"stroke-linecap":`square`},null,-1)]])}var Fj=B(Mj,[[`render`,Pj]]),Ij={},Lj={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Rj(e,t){return S(),V(`svg`,Lj,[...t[0]||=[c(`circle`,{cx:`8`,cy:`8`,r:`6.5`,fill:`white`,stroke:`#666666`},null,-1)]])}var zj=B(Ij,[[`render`,Rj]]),Bj={},Vj={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Hj(e,t){return S(),V(`svg`,Vj,[...t[0]||=[c(`circle`,{cx:`8`,cy:`8`,r:`7`,fill:`#1460F3`},null,-1),c(`circle`,{cx:`8`,cy:`8`,r:`3`,fill:`white`},null,-1)]])}var Uj=B(Bj,[[`render`,Hj]]),Wj={},Gj={width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Kj(e,t){return S(),V(`svg`,Gj,[...t[0]||=[c(`path`,{d:`M13 1L1 13`,stroke:`#BABABA`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1),c(`path`,{d:`M1 1L13 13`,stroke:`#BABABA`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var qj=B(Wj,[[`render`,Kj]]),Jj={},Yj={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Xj(e,t){return S(),V(`svg`,Yj,[...t[0]||=[c(`mask`,{id:`path-1-inside-1_172_2280`,fill:`white`},[c(`path`,{d:`M10 3C13.0376 3 15.5 5.46243 15.5 8.5C15.5 8.66861 15.4904 8.83526 15.4756 9C15.4837 8.99995 15.4919 9 15.5 9C17.7091 9 19.5 10.7909 19.5 13C19.5 15.2091 17.7091 17 15.5 17H5.5C2.73858 17 0.5 14.7614 0.5 12C0.5 9.51456 2.3135 7.45274 4.68945 7.06543C5.32052 4.72359 7.45876 3 10 3Z`})],-1),c(`path`,{d:`M15.4756 9L13.9816 8.86532C13.9437 9.28642 14.0852 9.70398 14.3714 10.0152C14.6575 10.3265 15.0618 10.5025 15.4846 10.5L15.4756 9ZM4.68945 7.06543L4.93078 8.54589C5.51231 8.45109 5.98448 8.02463 6.13779 7.45572L4.68945 7.06543ZM10 3V4.5C12.2091 4.5 14 6.29086 14 8.5H15.5H17C17 4.63401 13.866 1.5 10 1.5V3ZM15.5 8.5H14C14 8.61249 13.9936 8.73267 13.9816 8.86532L15.4756 9L16.9695 9.13468C16.9873 8.93785 17 8.72473 17 8.5H15.5ZM15.4756 9L15.4846 10.5C15.483 10.5 15.4826 10.5 15.4855 10.5C15.4873 10.5 15.4883 10.5 15.4911 10.5C15.4934 10.5 15.4966 10.5 15.5 10.5V9V7.5C15.4972 7.5 15.4973 7.49999 15.49 7.49998C15.4848 7.49998 15.4763 7.49997 15.4666 7.50003L15.4756 9ZM15.5 9V10.5C16.8807 10.5 18 11.6193 18 13H19.5H21C21 9.96243 18.5376 7.5 15.5 7.5V9ZM19.5 13H18C18 14.3807 16.8807 15.5 15.5 15.5V17V18.5C18.5376 18.5 21 16.0376 21 13H19.5ZM15.5 17V15.5H5.5V17V18.5H15.5V17ZM5.5 17V15.5C3.567 15.5 2 13.933 2 12H0.5H-1C-1 15.5899 1.91015 18.5 5.5 18.5V17ZM0.5 12H2C2 10.2617 3.26878 8.81681 4.93078 8.54589L4.68945 7.06543L4.44812 5.58497C1.35821 6.08866 -1 8.76744 -1 12H0.5ZM4.68945 7.06543L6.13779 7.45572C6.59695 5.75182 8.15414 4.5 10 4.5V3V1.5C6.76339 1.5 4.0441 3.69536 3.24112 6.67514L4.68945 7.06543Z`,fill:`currentColor`,mask:`url(#path-1-inside-1_172_2280)`},null,-1)]])}var Zj=B(Jj,[[`render`,Xj]]),Qj={},$j={width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`};function eM(e,t){return S(),V(`svg`,$j,[...t[0]||=[v(`<mask id="mask0_3348_1984" style="mask-type:luminance;" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><circle cx="12" cy="12" r="12" fill="white"></circle></mask><g mask="url(#mask0_3348_1984)"><rect x="-22.2856" y="-29.1428" width="65.1427" height="80.5713" fill="url(#pattern0_3348_1984)"></rect></g><defs><pattern id="pattern0_3348_1984" patternContentUnits="objectBoundingBox" width="1" height="1"><use xlink:href="#image0_3348_1984" transform="scale(0.0263158 0.0212766)"></use></pattern><image id="image0_3348_1984" width="38" height="47" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAvCAYAAACPMrhmAAAKs2lDQ1BJQ0MgUHJvZmlsZQAASImVlgdUE9kax+/MpBdaAAEpoTfpLYD0Grp0EJWQUEKJMSGI2FBZVEBRRETAhi6CKLgWQNaCiGJFUSkquiCLirIuFkRFZQd4hLfvnffeeV/ON/d3vtz57n/uzD3nDwClj8Xnp8JSAKTx0gXBXq70yKhoOv45QAAWSAFFoMJiC/kuQUF+AI3Z8e/xqRtAU+MDo6le//7/fw1pTryQDQAUhHIcR8hOQ/kMmq1sviAdACQTrWuuTOdPcQXKsgJUIMonpzhxhtumOG6Ge6fnhAa7oTwCAIHCYgkSASB/Ruv0DHYi2oeigLIpj8PloeyNsiM7icVBeQvKC9LSlk8xqgHoxf1Tn8S/9YwT92SxEsU88yzTQXDnCvmprFX/53b870hLFc2uoYEmJUngHYyOSuieVacs9xUzLy4gcJa5nOn505wk8g6bZbbQLXqWOSx331kWpYS5zDJLMHcvN50ZOsuC5cHi/rzUAD9x/3immOOFHiGznMD1ZM5yVlJoxCxncMMDZlmYEuI7N8dNXBeIgsWaEwSe4mdME85pY7Pm1kpPCvWe0xAp1sOJd/cQ13lh4vn8dFdxT35q0Jz+VC9xXZgRIr43Hf3AZjmZ5RM01ydIvD8gHEQCc2CB/qwBHYQADxAMmOgVXTU9PjN9Srjbcv4qATcxKZ3ugp6ceDqTxzZeQDc3NWMAMHUOZ17zh97p8wXJE+ZqQvQ7X2gJAMZ8rhajBsDJCwBIbZur6TwDgCYBwEUeWyTImKlhpi5YQAKSQBY94apAE+gBI1SrNbAHzqhCHxAIQkEUWArYIAmkAQFYCdaADSAX5IMdYDcoAwfAYVANToBToBGcB5fBNXAL3ANd4AnoB0PgDRgFn8AEBEF4iArRIEVIDdKGDCFziAE5Qh6QHxQMRUGxUCLEg0TQGmgTlA8VQWXQIagG+gU6B12GbkCd0CNoABqG3kNfYQSmwLKwCqwDm8AM2AX2hUPhJXAivALOgnPg7XApXAkfhxvgy/AtuAvuh9/AYwhAyIg8oo4YIQzEDQlEopEERICsQ/KQEqQSqUOakXbkAdKPjCBfMDgMDUPHGGHsMd6YMAwbswKzDlOAKcNUYxowbZgHmAHMKOYHlopVxhpi7bBMbCQ2EbsSm4stwVZhz2KvYruwQ9hPOBxOHqeLs8F546JwybjVuALcPlw9rgXXiRvEjeHxeEW8Id4BH4hn4dPxufi9+OP4S/j7+CH8ZwKZoEYwJ3gSogk8wkZCCeEY4SLhPuElYYIoRdQm2hEDiRziKmIh8QixmXiXOEScIEmTdEkOpFBSMmkDqZRUR7pK6iN9IJPJGmRb8iIyl5xNLiWfJF8nD5C/UGQoBhQ3SgxFRNlOOUppoTyifKBSqTpUZ2o0NZ26nVpDvUJ9Rv0sQZMwlmBKcCTWS5RLNEjcl3grSZTUlnSRXCqZJVkieVryruSIFFFKR8pNiiW1Tqpc6pxUj9SYNE3aTDpQOk26QPqY9A3pVzJ4GR0ZDxmOTI7MYZkrMoM0hKZJc6OxaZtoR2hXaUOyOFldWaZssmy+7AnZDtlRORk5S7lwuUy5crkLcv3yiLyOPFM+Vb5Q/pR8t/zXeSrzXObFz9s6r27e/XnjCvMVnBXiFfIU6hW6FL4q0hU9FFMUdyo2Kj5VwigZKC1SWqm0X+mq0sh82fn289nz8+afmv9YGVY2UA5WXq18WPm28piKqoqXCl9lr8oVlRFVeVVn1WTVYtWLqsNqNDVHNa5asdoltdd0OboLPZVeSm+jj6orq3uri9QPqXeoT2joaoRpbNSo13iqSdJkaCZoFmu2ao5qqWn5a63RqtV6rE3UZmgnae/Rbtce19HVidDZrNOo80pXQZepm6Vbq9unR9Vz0luhV6n3UB+nz9BP0d+nf88ANrAySDIoN7hrCBtaG3IN9xl2LsAusF3AW1C5oMeIYuRilGFUazRgLG/sZ7zRuNH4rYmWSbTJTpN2kx+mVqappkdMn5jJmPmYbTRrNntvbmDONi83f2hBtfC0WG/RZPHO0tAy3nK/Za8VzcrfarNVq9V3axtrgXWd9bCNlk2sTYVND0OWEcQoYFy3xdq62q63PW/7xc7aLt3ulN2f9kb2KfbH7F8t1F0Yv/DIwkEHDQeWwyGHfke6Y6zjQcd+J3UnllOl03NnTWeOc5XzSxd9l2SX4y5vXU1dBa5nXcfd7NzWurW4I+5e7nnuHR4yHmEeZR7PPDU8Ez1rPUe9rLxWe7V4Y719vXd69zBVmGxmDXPUx8ZnrU+bL8U3xLfM97mfgZ/Ar9kf9vfx3+XfF6AdwAtoDASBzMBdgU+DdINWBP26CLcoaFH5ohfBZsFrgttDaCHLQo6FfAp1DS0MfRKmFyYKaw2XDI8Jrwkfj3CPKIrojzSJXBt5K0opihvVFI2PDo+uih5b7LF49+KhGKuY3JjuJbpLMpfcWKq0NHXphWWSy1jLTsdiYyNij8V+YwWyKlljccy4irhRtht7D/sNx5lTzBmOd4gvin+Z4JBQlPAq0SFxV+JwklNSSdII141bxn2X7J18IHk8JTDlaMpkakRqfRohLTbtHE+Gl8JrW666PHN5J9+Qn8vvX2G3YveKUYGvoEoICZcIm9JlUcNzW6Qn+kk0kOGYUZ7xeWX4ytOZ0pm8zNurDFZtXfUyyzPr59WY1ezVrWvU12xYM7DWZe2hddC6uHWt6zXX56wfyvbKrt5A2pCy4c5G041FGz9uitjUnKOSk50z+JPXT7W5ErmC3J7N9psPbMFs4W7p2Gqxde/WH3mcvJv5pvkl+d8K2AU3t5ltK902uT1he0ehdeH+HbgdvB3dO512VhdJF2UVDe7y39VQTC/OK/64e9nuGyWWJQf2kPaI9vSX+pU27dXau2Pvt7Kksq5y1/L6CuWKrRXj+zj77u933l93QOVA/oGvB7kHew95HWqo1KksOYw7nHH4xZHwI+0/M36uqVKqyq/6fpR3tL86uLqtxqam5pjyscJauFZUO3w85vi9E+4nmuqM6g7Vy9fnnwQnRSdf/xL7S/cp31Otpxmn685on6k4Szub1wA1rGoYbUxq7G+Kauo853Outdm++eyvxr8ePa9+vvyC3IXCi6SLORcnL2VdGmvht4xcTrw82Lqs9cmVyCsP2xa1dVz1vXr9mue1K+0u7ZeuO1w/f8PuxrmbjJuNt6xvNdy2un32jtWdsx3WHQ13be423bO919y5sPPifaf7lx+4P7j2kPnwVldAV2d3WHdvT0xPfy+n99Wj1EfvHmc8nniS3Yfty3sq9bTkmfKzyt/0f6vvt+6/MOA+cPt5yPMng+zBN78Lf/82lPOC+qLkpdrLmlfmr84Pew7fe7349dAb/puJkdw/pP+oeKv39syfzn/eHo0cHXoneDf5vuCD4oejHy0/to4FjT37lPZpYjzvs+Ln6i+ML+1fI76+nFj5Df+t9Lv+9+Yfvj/6JtMmJ/ksAWvaCiBowgkJALw/CgA1CvUK9wAgScz45OmAZrz9NIH/xDNeejqsAah0BiAMTf8WAA5mox4ETWk0g9BaqDOALSzE+Y8QJliYz/QiN6LWpGRy8gPqD/H6AHzvmZycaJyc/F6Fin0MQMunGX8+FdGoD3Y2mKI7W0nZ4F/iL/OdBdopifIkAAAEQklEQVRYCe2WzYsjRRjGn+5OV3cn6XxOdj7WHXFlHFdxRfak6ODFHUSvggcR9CK4Bw/+IR7FgwdBWA+KshcZFTzo4sJ6ED/AYVlFZnYnmWSSSXfS3elOp316x7mEwKRGD4t0haLo4q2qX5736bdaSdhwHzb1PmS6h5SByWYmUyxTTFYB2fjMY5lisgrIxmcek1UsJ7tgOt4PHPT72/Cc68h520A0wVhdR37hWZQbj8KyStNL5npWTvvZE0Uj3Gl/CVO9ipo4gD6aIBlOgH965IzRHdUQPvgmVh5/GbpuzgV0HHQqMC9wcbv7MVbqX6CiKVADA/A0gmlHYIMIcH3A8RA6IfYXX0Lj+Xdh5e3jc08cpVMZUqnrvQ8gGl+hqBmwUISZs6AIKhLxXYr43amHUHQfiepCjA+x/PM17E1sLF++Aj2Nm6NJg91g+n6pf4NVzUQeZfYS01RELk7hqFwKZowAfwCoBhJFhRqPcebbj7BXOovVjVfnwAKkwFwa/XPxCfScAhMF/krsVVhqFUXCKUIcgeUCQuUBhdunX+7jELrnQ3z2PvxLL8IqlE+EkwK75W7jVvkQC0xgPiGYYlOxCuHqEFoVhrCAkCA5755amKRQVG885HwBtd0Wun/8BuuJZ04EkyqwP4xuwmEKXdjosnforzZV6xDOVRcQ60uAWCFUg0pVCcRSEVK5gL7yTGh9Df73X58IlQZIKbad2+eSRST0VqzU4KOGIfXrc3SoWp4ptZQEypj/d0TVRlTQJ5hH7w2Y5p4G48ff5wPb2tqaGbi5uTlj/qhYKoQCYRL2mEAh+5AKuSF95icQAQ3PkdQEY23zx4Tjc8Aez1dwc7MBZjBxan18Hj8pbcJUEBEmJliYKpdU4FAZJU1VFygdVlEYWMj5NlSPRg+YVr/O8tFA8NTa7M2nZqVS+bRxAZ/GKiKNQITyCOXGZRi+AeVQwbAFFA4SDAlY6eVh9wVM14bm1AjYwFicQX7j4hTC7EcpsDX7ATT6TXRry/BoeidiDRvqSAgVtFm+mgmsToKBy8z1gXJHQ6lro9A1YcYV9M4JlNdWZ5NMzUqB2WYBr/cW8V5MP01KUB1eQT16nDAuwcTdBCbHAWtrWl+HB+wtBWVXwKb/g7frWCoWphBmP0qBpVu8sHAeu607uKqXEPPgsE2FOoC5nyB3l7cR0znoJwj4Ug7pN4/gvjbB4JUmHrs8n1rpOdJghi7w2sIinNs7uNZZht+ijwglmoC2SzCqNkhhWPy9kOAiRPWtFtbeWOI9yZIxZ5MGS/ctmnm888hZrGMHH/5poNmuA02B5K8E2h6BWCESPULhoQ4uXAlxafMchARUesapPnvShcfN9Txs7/Tw3c0Bfr1hsX4BT1708dxGEQ+v8Q4tssCeov1rsFOcOdcSqbtyrh3/o6AMTFbITLFMMVkFZOMzj2WKySogG5957H+j2N8vPYhqDhnSbgAAAABJRU5ErkJggg=="></image></defs>`,3)]])}var tM=B(Qj,[[`render`,eM]]),nM={},rM={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function iM(e,t){return S(),V(`svg`,rM,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0.25 2.25H19.75V10.75H15.75V17.75H0.25V10.75V9.25V2.25ZM1.75 10.75H14.25V16.25H1.75V10.75ZM18.25 9.25H15.75H1.75V3.75H18.25V9.25ZM15 8L17 5.5H13L15 8Z`,fill:`currentColor`},null,-1)]])}var aM=B(nM,[[`render`,iM]]),oM={},sM={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function cM(e,t){return S(),V(`svg`,sM,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M4 4H15.5V15.5H4V4ZM2.5 2.5H4H15.5H17V4V15.5V17H15.5H4H2.5V15.5V4V2.5ZM13.6441 8.40148L14.1745 7.87115L13.1138 6.81049L12.5835 7.34082L8.87115 11.0531L7.53033 9.71231L7 9.18198L5.93934 10.2426L6.46967 10.773L8.34082 12.6441L8.87115 13.1745L9.40148 12.6441L13.6441 8.40148Z`,fill:`currentColor`},null,-1)]])}var lM=B(oM,[[`render`,cM]]),uM={},dM={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function fM(e,t){return S(),V(`svg`,dM,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3 16V4H18V16H3ZM1.5 3.5C1.5 2.94772 1.94772 2.5 2.5 2.5H18.5C19.0523 2.5 19.5 2.94772 19.5 3.5V16.5C19.5 17.0523 19.0523 17.5 18.5 17.5H2.5C1.94772 17.5 1.5 17.0523 1.5 16.5V3.5ZM10.3774 13.1117C9.88462 14.0732 9.12745 14.6461 8.15796 14.6461C7.29663 14.6461 6.83191 14.1213 6.83191 13.3C6.83191 13.2359 6.83592 13.1758 6.84393 13.1117H4V12.2865H7.06427C7.2766 11.8017 7.62113 11.305 8.06982 10.8523C7.13237 10.1151 6.27505 8.98137 6.27505 7.62728C6.27505 6.38937 7.09231 5.5 8.25811 5.5C9.79649 5.5 10.8862 7.10247 11.0304 9.27383C11.3268 9.21774 11.6313 9.1897 11.9398 9.1897C12.5407 9.1897 12.9093 9.49417 12.9093 10.003C12.9093 10.067 12.8995 10.1298 12.8864 10.1889L12.844 10.3525C12.8309 10.4018 12.8212 10.445 12.8212 10.4797C12.8212 10.5238 12.8372 10.5398 12.8732 10.5398C12.9385 10.5398 13.0642 10.443 13.2278 10.3047L13.4031 10.1546L13.5985 9.98918C13.9722 9.67931 14.4221 9.35395 14.8082 9.35395C15.3152 9.35395 15.4429 9.75975 15.5112 10.1168L15.5627 10.4004C15.5929 10.5465 15.6313 10.6479 15.7176 10.6479C15.7399 10.6479 15.7763 10.6396 15.8268 10.623L15.9467 10.5788L16.1042 10.5123L16.2995 10.4238L16.4637 11.245L16.2383 11.3483L16.0433 11.4309C15.8337 11.5152 15.6864 11.5574 15.6014 11.5574C15.0514 11.5574 14.8602 11.2147 14.7653 10.8984L14.7297 10.7655L14.6756 10.5353C14.6496 10.4385 14.6205 10.3755 14.5679 10.3755C14.501 10.3755 14.3806 10.4669 14.2239 10.6019L13.8668 10.916L13.6613 11.0903C13.2715 11.4106 12.8163 11.7176 12.4005 11.7176C12.0279 11.7176 11.7635 11.4812 11.7635 11.1207C11.7635 10.9165 11.8211 10.7485 11.8751 10.5908C11.9229 10.4515 11.9678 10.3202 11.9678 10.1792C11.9678 10.1151 11.9158 10.0711 11.8236 10.0711C11.5592 10.0711 11.2948 10.1031 11.0424 10.1552C11.0144 10.9484 10.9022 11.6695 10.7099 12.2865H16.6226V13.1117H10.3774ZM7.15643 7.61933C7.15643 8.80115 7.97369 9.69854 8.73086 10.2834C9.15551 9.96695 9.63625 9.70254 10.1611 9.51025C10.089 7.72749 9.32778 6.38542 8.26213 6.38542C7.60912 6.38542 7.15643 6.90222 7.15643 7.61933ZM8.07385 12.2865H9.76046C9.95676 11.7737 10.089 11.1528 10.141 10.4597C9.9207 10.5639 9.70837 10.684 9.51207 10.8122C9.58685 10.8763 9.70169 10.9542 9.85658 11.0458L9.22061 11.5887L8.82301 11.3611C8.51053 11.6576 8.25413 11.978 8.07385 12.2865ZM7.76133 13.2119C7.76133 13.5444 7.9336 13.7648 8.2621 13.7648C8.66673 13.7648 9.03129 13.5244 9.33176 13.1118H7.76934C7.76894 13.1154 7.76853 13.119 7.76813 13.1226C7.76457 13.1543 7.76133 13.1831 7.76133 13.2119Z`,fill:`currentColor`},null,-1)]])}var pM=B(uM,[[`render`,fM]]),mM={},hM={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function gM(e,t){return S(),V(`svg`,hM,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.8 12.6V3.29999H11.7561L11.2345 3.85884L11.9655 4.54115L12.3 4.18279V12.6H3.8ZM2.6 13.2V3.29999H0V2.29999H2.6V0.399994H3.8V2.29999H12.8H13.3V2.79999V12.6H16V13.8H13.3V15.6H12.3V13.8H3.2H2.6V13.2ZM14.2055 2.14115L14.7655 1.54115L14.0345 0.858835L13.4745 1.45884L14.2055 2.14115ZM9.72553 6.94115L10.8455 5.74115L10.1145 5.05884L8.99447 6.25883L9.72553 6.94115ZM7.48553 9.34115L8.60553 8.14115L7.87447 7.45883L6.75447 8.65883L7.48553 9.34115ZM5.24553 11.7412L6.36553 10.5412L5.63447 9.85884L4.51447 11.0588L5.24553 11.7412Z`,fill:`currentColor`},null,-1)]])}var _M=B(mM,[[`render`,gM]]),vM={},yM={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function bM(e,t){return S(),V(`svg`,yM,[...t[0]||=[c(`path`,{d:`M4.52539 4H15.75V15.4746H18V17H15.75V18.75H14.25V17H3V5.5H1V4H3V2H4.52539V4ZM4.52539 14.5137L7.2207 11.8896L8.95215 13.917L12.1533 11L14.25 13.4541V5.5H4.52539V14.5137ZM7.5 7C8.32843 7 9 7.67157 9 8.5C9 9.32843 8.32843 10 7.5 10C6.67157 10 6 9.32843 6 8.5C6 7.67157 6.67157 7 7.5 7Z`,fill:`currentColor`},null,-1)]])}var xM=B(vM,[[`render`,bM]]),SM={},CM={width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function wM(e,t){return S(),V(`svg`,CM,[...t[0]||=[c(`path`,{d:`M12 22C17.5229 22 22 17.5229 22 12C22 6.47715 17.5229 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5229 6.47715 22 12 22Z`,fill:`#F87171`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13 7.5C13 6.94772 12.5523 6.5 12 6.5C11.4477 6.5 11 6.94772 11 7.5V13.5C11 14.0523 11.4477 14.5 12 14.5C12.5523 14.5 13 14.0523 13 13.5L13 7.5ZM12.1 17.6C12.6523 17.6 13.1 17.1523 13.1 16.6C13.1 16.0477 12.6523 15.6 12.1 15.6C11.5477 15.6 11.1 16.0477 11.1 16.6C11.1 17.1523 11.5477 17.6 12.1 17.6Z`,fill:`white`},null,-1)]])}var TM=B(SM,[[`render`,wM]]),EM={},DM={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function OM(e,t){return S(),V(`svg`,DM,[...t[0]||=[c(`mask`,{id:`path-1-inside-1_334_4981`,fill:`white`},[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M1.58408 11.3387C4.3368 11.6625 7.20552 10.7684 9.31754 8.65635C11.1899 6.78404 12.105 4.31705 12.0631 1.86338C12.9045 2.2377 13.6927 2.76991 14.3828 3.46C17.399 6.47625 17.399 11.3666 14.3828 14.3828C11.3665 17.3991 6.47623 17.3991 3.45998 14.3828C2.57505 13.4979 1.94975 12.4516 1.58408 11.3387Z`})],-1),c(`path`,{d:`M1.58412 11.3387L1.75933 9.849L-0.574465 9.57451L0.159076 11.807L1.58412 11.3387ZM12.0631 1.86337L12.6728 0.492869L10.5232 -0.46347L10.5634 1.889L12.0631 1.86337ZM8.25692 7.59568C6.48322 9.36938 4.07577 10.1214 1.75933 9.849L1.40891 12.8285C4.59792 13.2035 7.9279 12.1673 10.3782 9.717L8.25692 7.59568ZM10.5634 1.889C10.5986 3.95285 9.82995 6.02265 8.25692 7.59568L10.3782 9.717C12.5498 7.54541 13.6115 4.68123 13.5629 1.83774L10.5634 1.889ZM11.4535 3.23387C12.1295 3.5346 12.7642 3.96264 13.3222 4.52064L15.4435 2.39932C14.6213 1.57714 13.6796 0.940768 12.6728 0.492869L11.4535 3.23387ZM13.3222 4.52064C15.7526 6.95111 15.7526 10.8917 13.3222 13.3221L15.4435 15.4435C19.0455 11.8414 19.0455 6.00136 15.4435 2.39932L13.3222 4.52064ZM13.3222 13.3221C10.8917 15.7526 6.95115 15.7526 4.52068 13.3221L2.39936 15.4435C6.0014 19.0455 11.8415 19.0455 15.4435 15.4435L13.3222 13.3221ZM4.52068 13.3221C3.80572 12.6072 3.30315 11.7652 3.00916 10.8705L0.159076 11.807C0.596442 13.1381 1.34447 14.3886 2.39936 15.4435L4.52068 13.3221Z`,fill:`currentColor`,mask:`url(#path-1-inside-1_334_4981)`},null,-1)]])}var kM=B(EM,[[`render`,OM]]),AM={},jM={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function MM(e,t){return S(),V(`svg`,jM,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M17.394 4.97046H12.394V6.47046H17.394V4.97046ZM9.29604 4.99995L13.2075 14.7785H14.2V15.7785H11V14.7785H11.5919L10.792 12.7785H6.4074L5.60744 14.7785H6.2V15.7785H3V14.7785H3.9919L7.90332 4.99995H9.29604ZM8.59968 7.29749L10.392 11.7785H6.80738L8.59968 7.29749Z`,fill:`currentColor`},null,-1)]])}var NM=B(AM,[[`render`,MM]]),PM={},FM={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function IM(e,t){return S(),V(`svg`,FM,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M15.8333 7.33333H15.8333H14.5H13.1666H11.8333H7.83331V6C7.83331 4.52724 9.02722 3.33333 10.5 3.33333C11.9727 3.33333 13.1666 4.52724 13.1666 6H14.5C14.5 3.79086 12.7091 2 10.5 2C8.29084 2 6.49998 3.79086 6.49998 6V7.33333H5.16665C4.43027 7.33333 3.83331 7.93029 3.83331 8.66667V16.6667C3.83331 17.403 4.43027 18 5.16665 18H15.8333C16.5697 18 17.1666 17.403 17.1666 16.6667V8.66667C17.1666 7.93029 16.5697 7.33333 15.8333 7.33333ZM6.49998 8.6784V8.66667H5.16665L5.16665 16.6667H15.8333L15.8333 8.66667H14.5V8.6784H13.1666H7.83331H6.49998Z`,fill:`currentColor`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11.1667 13.4263C11.8182 13.1626 12.2778 12.5238 12.2778 11.7778C12.2778 10.7959 11.4818 10 10.5 10C9.51817 10 8.72223 10.7959 8.72223 11.7778C8.72223 12.5239 9.18185 13.1626 9.83339 13.4264V14.6667C9.83339 15.0349 10.1319 15.3333 10.5001 15.3333C10.8683 15.3333 11.1667 15.0349 11.1667 14.6667V13.4263Z`,fill:`currentColor`},null,-1)]])}var LM=B(PM,[[`render`,IM]]),RM={},zM={width:`80`,height:`80`,viewBox:`0 0 80 80`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function BM(e,t){return S(),V(`svg`,zM,[...t[0]||=[v(`<g clip-path="url(#clip0_2460_1292)"><circle cx="40" cy="40" r="40" fill="#F2F3F5"></circle><path d="M33 55H53.5208C55.73 55 57.5208 53.2091 57.5208 51V30.5192V25.9126C57.5208 24.854 57.1012 23.8386 56.3539 23.0888L51.9111 18.6313C51.5083 18.2272 50.9612 18 50.3906 18H43.2604H37.7756H33C30.7909 18 29 19.7909 29 22V51C29 53.2091 30.7909 55 33 55Z" fill="#878C98"></path><g opacity="0.5"><path d="M27 61H47.5208C49.73 61 51.5208 59.2091 51.5208 57V36.5192V31.9126C51.5208 30.854 51.1012 29.8386 50.3539 29.0888L45.9111 24.6313C45.5083 24.2272 44.9612 24 44.3906 24H37.2604H31.7756H27C24.7909 24 23 25.7909 23 28V57C23 59.2091 24.7909 61 27 61Z" fill="#878C98"></path></g><path d="M37.3135 37.4121H35.7852V40H34.291V32.8027H37.4258C38.1484 32.8027 38.7246 32.9883 39.1543 33.3594C39.584 33.7305 39.7988 34.305 39.7988 35.083C39.7988 35.9326 39.584 36.5332 39.1543 36.8848C38.7246 37.2363 38.111 37.4121 37.3135 37.4121ZM38.0166 35.9131C38.2119 35.7406 38.3096 35.4671 38.3096 35.0928C38.3096 34.7184 38.2103 34.4515 38.0117 34.292C37.8164 34.1325 37.5413 34.0527 37.1865 34.0527H35.7852V36.1719H37.1865C37.5413 36.1719 37.818 36.0856 38.0166 35.9131ZM44.0273 40H40.9268V32.8027H44.0273C44.4733 32.8092 44.8444 32.8613 45.1406 32.959C45.6452 33.125 46.0537 33.4294 46.3662 33.8721C46.6169 34.2301 46.7878 34.6175 46.8789 35.0342C46.9701 35.4508 47.0156 35.848 47.0156 36.2256C47.0156 37.1826 46.8236 37.9932 46.4395 38.6572C45.9186 39.5524 45.1146 40 44.0273 40ZM45.1455 34.6387C44.9144 34.248 44.457 34.0527 43.7734 34.0527H42.3867V38.75H43.7734C44.4831 38.75 44.9779 38.4001 45.2578 37.7002C45.4108 37.3161 45.4873 36.8587 45.4873 36.3281C45.4873 35.5957 45.3734 35.0326 45.1455 34.6387ZM53.2559 34.0771H49.6475V35.7324H52.8066V36.9824H49.6475V40H48.1533V32.8125H53.2559V34.0771Z" fill="white"></path></g><defs><clipPath id="clip0_2460_1292"><rect width="80" height="80" fill="white"></rect></clipPath></defs>`,2)]])}var VM=B(RM,[[`render`,BM]]),HM={},UM={width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function WM(e,t){return S(),V(`svg`,UM,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11 5H1V19H11V5ZM19 5H13V19H23V9.2L19 5Z`,fill:`currentColor`},null,-1)]])}var GM=B(HM,[[`render`,WM]]),KM={},qM={width:`10`,height:`11`,viewBox:`0 0 10 11`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function JM(e,t){return S(),V(`svg`,qM,[...t[0]||=[c(`path`,{d:`M5 0.0517578C5.2793 0.0517578 5.47803 0.245117 5.47803 0.524414V7.59814L5.44043 8.74219L7.04639 6.98047L8.271 5.77734C8.35693 5.69141 8.48047 5.64844 8.60938 5.64844C8.87793 5.64844 9.07129 5.85254 9.07129 6.11572C9.07129 6.24463 9.02832 6.35742 8.92627 6.46484L5.35986 10.0366C5.25781 10.144 5.13428 10.1978 5 10.1978C4.86572 10.1978 4.74219 10.144 4.64014 10.0366L1.0791 6.46484C0.977051 6.35742 0.928711 6.24463 0.928711 6.11572C0.928711 5.85254 1.12207 5.64844 1.39062 5.64844C1.51953 5.64844 1.64844 5.69141 1.729 5.77734L2.95361 6.98047L4.56494 8.74756L4.52197 7.59814V0.524414C4.52197 0.245117 4.7207 0.0517578 5 0.0517578Z`,fill:`currentColor`},null,-1)]])}var YM=B(KM,[[`render`,JM]]),XM={},ZM={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function QM(e,t){return S(),V(`svg`,ZM,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M14.3596 8.35973L10.7499 11.9694L10.7499 2C10.7499 1.58579 10.4142 1.25 9.99994 1.25C9.58573 1.25 9.24994 1.58579 9.24994 2L9.24994 11.9694L5.64024 8.35973C5.34735 8.06683 4.87247 8.06683 4.57958 8.35973C4.28669 8.65262 4.28669 9.12749 4.57958 9.42039L9.46961 14.3104C9.7625 14.6033 10.2374 14.6033 10.5303 14.3104L15.4203 9.42039C15.7132 9.12749 15.7132 8.65262 15.4203 8.35973C15.1274 8.06683 14.6525 8.06683 14.3596 8.35973ZM2.99994 16.1538C2.58573 16.1538 2.24994 16.4896 2.24994 16.9038C2.24994 17.318 2.58573 17.6538 2.99994 17.6538H17.3076C17.7218 17.6538 18.0576 17.318 18.0576 16.9038C18.0576 16.4896 17.7218 16.1538 17.3076 16.1538H2.99994Z`,fill:`currentColor`},null,-1)]])}var $M=B(XM,[[`render`,QM]]),eN={},tN={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function nN(e,t){return S(),V(`svg`,tN,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.53033 7.62131L3 8.15164L3.53033 8.68197L7.15164 12.3033L8.2123 11.2426L5.87132 8.90164H12.5607C14.0794 8.90164 15.3107 10.1329 15.3107 11.6516C15.3107 13.1704 14.0794 14.4016 12.5607 14.4016H5.06066V15.9016H12.5607C14.9079 15.9016 16.8107 13.9988 16.8107 11.6516C16.8107 9.30443 14.9079 7.40164 12.5607 7.40164H5.87132L8.2123 5.06066L7.15164 4L3.53033 7.62131Z`,fill:`currentColor`},null,-1)]])}var rN=B(eN,[[`render`,nN]]),iN={},aN={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function oN(e,t){return S(),V(`svg`,aN,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M16.2802 7.62131L16.8105 8.15164L16.2802 8.68197L12.6589 12.3033L11.5982 11.2426L13.9392 8.90164H7.24989C5.7311 8.90164 4.49989 10.1329 4.49989 11.6516C4.49989 13.1704 5.7311 14.4016 7.24989 14.4016H14.7499V15.9016H7.24989C4.90268 15.9016 2.99989 13.9988 2.99989 11.6516C2.99989 9.30443 4.90268 7.40164 7.24989 7.40164H13.9392L11.5982 5.06066L12.6589 4L16.2802 7.62131Z`,fill:`currentColor`},null,-1)]])}var sN=B(iN,[[`render`,oN]]),cN={},lN={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function uN(e,t){return S(),V(`svg`,lN,[...t[0]||=[c(`circle`,{cx:`10`,cy:`10`,r:`7`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var dN=B(cN,[[`render`,uN]]),fN={},pN={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function mN(e,t){return S(),V(`svg`,pN,[...t[0]||=[c(`g`,{id:`btn / close`},[c(`circle`,{id:`Ellipse 2704`,cx:`8`,cy:`8`,r:`7`,fill:`#999999`}),c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8.07107 7.29289L4.88909 4.11091L4.18198 4.81802L7.36396 8L4.18198 11.182L4.88909 11.8891L8.07107 8.70711L11.253 11.8891L11.9602 11.182L8.77817 8L11.9602 4.81802L11.253 4.11091L8.07107 7.29289Z`,fill:`white`})],-1)]])}var hN=B(fN,[[`render`,mN]]),gN={},_N={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function vN(e,t){return S(),V(`svg`,_N,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13.1666 7.25722V6C13.1666 4.52724 11.9727 3.33333 10.4999 3.33333C9.02716 3.33333 7.83325 4.52724 7.83325 6V7.25722H13.1666ZM10.4999 2C8.29078 2 6.49992 3.79086 6.49992 6V7.25722V7.33333H4.72214C4.23122 7.33333 3.83325 7.7313 3.83325 8.22222V17.1111C3.83325 17.602 4.23122 18 4.72214 18H16.2777C16.7686 18 17.1666 17.602 17.1666 17.1111V8.22222C17.1666 7.7313 16.7686 7.33333 16.2777 7.33333H14.4999V7.25722V6C14.4999 3.79086 12.7091 2 10.4999 2ZM5.16659 8.66667V16.6667H15.8333V8.66667H5.16659ZM7.50005 11.5707V13.0707H13.5001V11.5707H7.50005Z`,fill:`currentColor`},null,-1)]])}var yN=B(gN,[[`render`,vN]]),bN={},xN={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function SN(e,t){return S(),V(`svg`,xN,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M1.23895 11.6199C0.549718 10.9423 0.549717 9.84377 1.23895 9.16622L9.01111 1.52578L9.54595 1L10.0808 1.52578L15.0305 6.39164L15.5654 6.91742L15.0305 7.4432L10.7879 11.6139L7.95947 14.3944L7.73793 14.6122L7.42463 14.6122L4.5962 14.6122H4.2829L4.06136 14.3944L1.23895 11.6199ZM2.30864 10.2178C2.21017 10.3146 2.21017 10.4715 2.30864 10.5683L4.90951 13.1251H7.11133L7.76913 12.4784L3.88907 8.66413L2.30864 10.2178ZM9.71821 10.5624L8.83882 11.4269L4.95875 7.61257L9.54595 3.10311L13.426 6.91742L9.71821 10.5624ZM0 14.0216H1.19105L2.71691 15.5216H0V14.0216ZM15.5 15.5216H8.23701L9.76287 14.0216H15.5V15.5216Z`,fill:`currentColor`},null,-1)]])}var CN=B(bN,[[`render`,SN]]),wN={},TN={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function EN(e,t){return S(),V(`svg`,TN,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M9.56181 13.8733C9.85977 14.1611 10.3429 14.1611 10.6408 13.8733L14.7421 9.91282C15.0401 9.62509 15.0401 9.15858 14.7421 8.87085C14.4442 8.58311 13.9611 8.58311 13.6631 8.87085L10.75 11.6839L10.75 4C10.75 3.58579 10.4142 3.25 10 3.25C9.58581 3.25 9.25002 3.58579 9.25002 4L9.25003 11.4883L6.53951 8.87085C6.24155 8.58311 5.75846 8.58311 5.46049 8.87085C5.16253 9.15858 5.16253 9.62509 5.46049 9.91282L9.56181 13.8733ZM4 15.7543C3.58579 15.7543 3.25 16.0901 3.25 16.5043C3.25 16.9185 3.58579 17.2543 4 17.2543H16C16.4142 17.2543 16.75 16.9185 16.75 16.5043C16.75 16.0901 16.4142 15.7543 16 15.7543H4Z`,fill:`currentColor`},null,-1)]])}var DN=B(wN,[[`render`,EN]]),ON={},kN={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function AN(e,t){return S(),V(`svg`,kN,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11.8537 7.17423L8.5001 10.5279L8.5001 1.60001V1.10001H7.5001V1.60001L7.5001 10.5277L4.14666 7.17423L3.7931 6.82068L3.086 7.52778L3.43955 7.88134L7.64664 12.0884C7.8419 12.2837 8.15849 12.2837 8.35375 12.0884L12.5608 7.88134L12.9144 7.52778L12.2073 6.82068L11.8537 7.17423ZM1.6001 13.9H1.1001V14.9H1.6001H14.4001H14.9001V13.9H14.4001H1.6001Z`,fill:`currentColor`},null,-1)]])}var jN=B(ON,[[`render`,AN]]),MN={},NN={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function PN(e,t){return S(),V(`svg`,NN,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13.3033 12.5962L3.40381 2.69666L2.6967 3.40376L12.5962 13.3033L13.3033 12.5962ZM2 7.99996C2 7.99996 2.69777 6.96095 3.82074 5.94202L9.58576 11.707C9.08063 11.8902 8.54892 12 8 12C4.68629 12 2 7.99996 2 7.99996ZM14 7.99996C14 7.99996 13.3022 9.03896 12.1793 10.0579L6.41424 4.29288C6.91937 4.10972 7.45108 3.99996 8 3.99996C11.3137 3.99996 14 7.99996 14 7.99996Z`,fill:`currentColor`},null,-1)]])}var FN=B(MN,[[`render`,PN]]),IN={},LN={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function RN(e,t){return S(),V(`svg`,LN,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8 12C11.3137 12 14 8 14 8C14 8 11.3137 4 8 4C4.68629 4 2 8 2 8C2 8 4.68629 12 8 12ZM8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10Z`,fill:`currentColor`},null,-1)]])}var zN=B(IN,[[`render`,RN]]),BN={},VN={width:`20`,height:`21`,viewBox:`0 0 20 21`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function HN(e,t){return S(),V(`svg`,VN,[...t[0]||=[c(`path`,{d:`M17.5 10.5C17.5 14.6421 14.1421 18 10 18C5.85786 18 2.5 14.6421 2.5 10.5C2.5 6.35786 5.85786 3 10 3C14.1421 3 17.5 6.35786 17.5 10.5Z`,fill:`#FF6666`},null,-1),c(`path`,{d:`M12 8.5L8 12.5`,stroke:`white`,"stroke-width":`1.5`,"stroke-linecap":`square`,"stroke-linejoin":`round`},null,-1),c(`path`,{d:`M8 8.5L12 12.5`,stroke:`white`,"stroke-width":`1.5`,"stroke-linecap":`square`,"stroke-linejoin":`round`},null,-1)]])}var UN=B(BN,[[`render`,HN]]),WN={},GN={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function KN(e,t){return S(),V(`svg`,GN,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13.3107 1.25H2.25V18.75H17.75V5.68934L13.3107 1.25ZM12.689 2.75L16.25 6.311V17.25H3.75V2.75H12.689ZM15 8H5V12H15V8Z`,fill:`currentColor`},null,-1)]])}var qN=B(WN,[[`render`,KN]]),JN={},YN={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function XN(e,t){return S(),V(`svg`,YN,[...t[0]||=[c(`path`,{d:`M16.5 7.75H15V3.5H3.5V17H8.5V18.5H2V2H16.5V7.75ZM19.0029 12.0068L12.6064 18.25H9.07129L9.10352 14.835L15.4668 8.47168L19.0029 12.0068ZM10.5977 15.4629L10.585 16.75H11.9951L16.8682 11.9941L15.4668 10.5928L10.5977 15.4629ZM10 10H5V8.5H10V10ZM13 6.5H5V5H13V6.5Z`,fill:`currentColor`},null,-1)]])}var ZN=B(JN,[[`render`,XN]]),QN={},$N={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function eP(e,t){return S(),V(`svg`,$N,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13.3107 1.25H2.25V18.75H10V17.25H3.75V2.75H12.689L16.25 6.311V10H17.75V5.68934L13.3107 1.25ZM5 6H14V10H5V6ZM11.4945 15.1106L12.7372 13.5H17.5V16.5H12.6887L11.4945 15.1106ZM9.56053 15.1617L12 18H17.5H19V16.5V13.5V12H17.5H12L9.56053 15.1617Z`,fill:`currentColor`},null,-1)]])}var tP=B(QN,[[`render`,eP]]),nP={},rP={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function iP(e,t){return S(),V(`svg`,rP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M6 1.25H5.25V2V4H6.75V2.75H14.0533L17.25 6.75603V17.1111V17.25H6.75V16H5.25V18V18.75H6H18H18.75V18V17.1111V6.49346V6.23089L18.5862 6.02566L15.0005 1.5322L14.7753 1.25H14.4143H6ZM2 4.95819H1.25V5.70819V15V16.1967L2.32698 15.675L4.83876 14.4582H11.7778H12.5278V13.7082V5.70819V4.95819H11.7778H2ZM2.75 13.8033V6.45819H11.0278V12.9582H4.66667H4.49457L4.33969 13.0332L2.75 13.8033ZM9.11107 11.8166H4.66663V10.3166H9.11107V11.8166ZM4.66663 8.97222H9.11107V7.47222H4.66663V8.97222Z`,fill:`currentColor`},null,-1)]])}var aP=B(nP,[[`render`,iP]]),oP={},sP={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function cP(e,t){return S(),V(`svg`,sP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M7.52941 14.5H0L7.52941 1.5V14.5ZM9.47059 13.5H14.2652L9.47059 5.2218V13.5ZM16 14.5H14.8444H9.47059H8.47059V13.5V3.49524V1.5L9.47059 3.22656L15.4208 13.5L16 14.5Z`,fill:`currentColor`},null,-1)]])}var lP=B(oP,[[`render`,cP]]),uP={},dP={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function fP(e,t){return S(),V(`svg`,dP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M15.5 7.5H13.1353H1.5H0.5V6.5V1.60353V0.5L1.5 0.966667L13.3571 6.5L15.5 7.5ZM10.9924 6.5H1.5V2.0702L10.9924 6.5ZM15.5 8.5H0.5V15.5L15.5 8.5Z`,fill:`currentColor`},null,-1)]])}var pP=B(uP,[[`render`,fP]]),mP={},hP={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function gP(e,t){return S(),V(`svg`,hP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M9.1853 17.5647L9.1853 11.5647L9.1853 10.8147L8.4353 10.8147L2.4353 10.8147L2.4353 12.3147L6.62476 12.3147L2.43018 16.5093L3.49084 17.5699L7.6853 13.3755L7.6853 17.5647L9.1853 17.5647Z`,fill:`currentColor`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.8147 2.4353L10.8147 8.4353L10.8147 9.1853L11.5647 9.1853L17.5647 9.1853L17.5647 7.6853L13.3752 7.6853L17.5698 3.49072L16.5092 2.43006L12.3147 6.62453L12.3147 2.4353L10.8147 2.4353Z`,fill:`currentColor`},null,-1)]])}var _P=B(mP,[[`render`,gP]]),vP={},yP={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function bP(e,t){return S(),V(`svg`,yP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.5 3.5H16.5V16.5H3.5V3.5ZM2 2H3.5H16.5H18V3.5V16.5V18H16.5H3.5H2V16.5V3.5V2ZM14.2461 14.9961H11.6868V13.4961H13.4961V11.6893H14.9961V14.2461V14.9961H14.2461ZM13.4961 6.5H11.6868V5H14.2461H14.9961V5.75V8.3078H13.4961V6.5ZM6.5 6.5H8.30664V5H5.75H5V5.75V8.3078H6.5V6.5ZM5.75 14.9961H8.30664V13.4961H6.5V11.6893H5V14.2461V14.9961H5.75Z`,fill:`currentColor`},null,-1)]])}var xP=B(vP,[[`render`,bP]]),SP={},CP={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function wP(e,t){return S(),V(`svg`,CP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M5.06066 4.35359L4.35355 3.64648L0 8.00004L4.35355 12.3536L5.06066 11.6465L1.91418 8.5H56V7.5H1.91425L5.06066 4.35359Z`,fill:`currentColor`},null,-1)]])}var TP=B(SP,[[`render`,wP]]),EP={},DP={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function OP(e,t){return S(),V(`svg`,DP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M1 7.5V5.5H0V7.5V8.5V10.5H1V8.5H56V7.5H1Z`,fill:`currentColor`},null,-1)]])}var kP=B(EP,[[`render`,OP]]),AP={},jP={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function MP(e,t){return S(),V(`svg`,jP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0 8C0 6.34315 1.34315 5 3 5C4.4865 5 5.72048 6.08114 5.95852 7.5H56V8.5H5.95852C5.72048 9.91886 4.4865 11 3 11C1.34315 11 0 9.65685 0 8Z`,fill:`currentColor`},null,-1)]])}var NP=B(AP,[[`render`,MP]]),PP={},FP={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function IP(e,t){return S(),V(`svg`,FP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M5 8.5V12L0 8L5 4V7.5H56V8.5H5Z`,fill:`currentColor`},null,-1)]])}var LP=B(PP,[[`render`,IP]]),RP={},zP={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function BP(e,t){return S(),V(`svg`,zP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0 8L4 4L7.5 7.5H56V8.5H7.5L4 12L0 8Z`,fill:`currentColor`},null,-1)]])}var VP=B(RP,[[`render`,BP]]),HP={},UP={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function WP(e,t){return S(),V(`svg`,UP,[...t[0]||=[c(`path`,{d:`M56 7.5V8.5H0V7.5H56Z`,fill:`currentColor`},null,-1)]])}var GP=B(HP,[[`render`,WP]]),KP={},qP={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function JP(e,t){return S(),V(`svg`,qP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0 7.5V5L4.16667 7.5H56V8.5H4.16667L0 11V8.5V7.5Z`,fill:`currentColor`},null,-1)]])}var YP=B(KP,[[`render`,JP]]),XP={},ZP={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function QP(e,t){return S(),V(`svg`,ZP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0 5.87004L0.508793 5L4.25147 7.5H56V8.5H4.25147L0.508793 11L0 10.13L3.19004 8L0 5.87004Z`,fill:`currentColor`},null,-1)]])}var $P=B(XP,[[`render`,QP]]),eF={},tF={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function nF(e,t){return S(),V(`svg`,tF,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3 6.66667L2.5 6L0 9.33333L0.5 10L1.625 8.5H56V7.5H2.375L3 6.66667Z`,fill:`currentColor`},null,-1)]])}var rF=B(eF,[[`render`,nF]]),iF={},aF={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function oF(e,t){return S(),V(`svg`,aF,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0 5H6V7.5H56V8.5H6V11H0V8.5V7.5V5Z`,fill:`currentColor`},null,-1)]])}var sF=B(iF,[[`render`,oF]]),cF={},lF={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function uF(e,t){return S(),V(`svg`,lF,[...t[0]||=[c(`circle`,{cx:`8`,cy:`7.99976`,r:`7`,fill:`currentColor`},null,-1),c(`path`,{d:`M7.40967 10.8826H8.47852V11.9998H7.40967V10.8826ZM5.59961 6.58032C5.59961 5.80688 5.81803 5.18563 6.25488 4.71655C6.69173 4.2439 7.2915 4.00757 8.0542 4.00757C8.7596 4.00757 9.32357 4.20988 9.74609 4.6145C10.1722 5.01554 10.3853 5.52938 10.3853 6.15601C10.3853 6.53556 10.3065 6.84351 10.1489 7.07983C9.99495 7.31616 9.68164 7.66349 9.20898 8.12183C8.86523 8.45483 8.64144 8.73771 8.5376 8.97046C8.43734 9.19963 8.38721 9.53979 8.38721 9.99097H7.43115C7.43115 9.47892 7.49202 9.06714 7.61377 8.75562C7.73551 8.44051 8.00228 8.08065 8.41406 7.67603L8.84375 7.25171C8.97266 7.12996 9.0765 7.00285 9.15527 6.87036C9.2985 6.63761 9.37012 6.39591 9.37012 6.14526C9.37012 5.79435 9.26449 5.48999 9.05322 5.23218C8.84554 4.97437 8.5 4.84546 8.0166 4.84546C7.41862 4.84546 7.00505 5.06746 6.77588 5.51147C6.64697 5.75854 6.57357 6.11483 6.55566 6.58032H5.59961Z`,fill:`white`},null,-1)]])}var dF=B(cF,[[`render`,uF]]),fF={},pF={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function mF(e,t){return S(),V(`svg`,pF,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2 2H20L18 18H0L2 2Z`,fill:`#FEF87C`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M15.6078 15.5L10.6964 3.22145H9.30364L4.39223 15.5H3V16.5H7V15.5H6.00776L7.10772 12.75H12.8923L13.9922 15.5H13V16.5H17V15.5H15.6078ZM12.4923 11.75L10 5.51899L7.5077 11.75H12.4923Z`,fill:`currentColor`},null,-1)]])}var hF=B(fF,[[`render`,mF]]),gF={},_F={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function vF(e,t){return S(),V(`svg`,_F,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M19 2.79999H2.8L1 17.2H17.2L19 2.79999ZM10.333 3.83661L14.7334 14.8375H15.85V15.9625H12.25V14.8375H12.9159L12.016 12.5875H7.08332L6.18337 14.8375H6.85V15.9625H3.25V14.8375H4.3659L8.76624 3.83661H10.333ZM9.54964 6.42134L11.566 11.4625H7.5333L9.54964 6.42134Z`,fill:`currentColor`},null,-1)]])}var yF=B(gF,[[`render`,vF]]),bF={},xF={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function SF(e,t){return S(),V(`svg`,xF,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.1722 3.67907C9.75796 3.67907 9.42218 3.34328 9.42218 2.92907V1.75C9.42218 1.33579 9.75796 1 10.1722 1C10.5864 1 10.9222 1.33579 10.9222 1.75V2.92907C10.9222 3.34328 10.5864 3.67907 10.1722 3.67907ZM10.0862 13.3672C11.9032 13.3672 13.3761 11.8942 13.3761 10.0772C13.3761 8.26024 11.9032 6.78727 10.0862 6.78727C8.26916 6.78727 6.79619 8.26024 6.79619 10.0772C6.79619 11.8942 8.26916 13.3672 10.0862 13.3672ZM10.0862 14.8672C12.7316 14.8672 14.8761 12.7227 14.8761 10.0772C14.8761 7.43181 12.7316 5.28727 10.0862 5.28727C7.44074 5.28727 5.29619 7.43181 5.29619 10.0772C5.29619 12.7227 7.44074 14.8672 10.0862 14.8672ZM14.7612 4.51466C14.468 4.80718 14.468 5.28144 14.7612 5.57395C15.0545 5.86646 15.53 5.86646 15.8233 5.57395L16.6592 4.74023C16.9524 4.44771 16.9524 3.97345 16.6592 3.68094C16.3659 3.38842 15.8904 3.38842 15.5971 3.68094L14.7612 4.51466ZM16.6633 10.1509C16.6633 9.73669 16.9991 9.4009 17.4133 9.4009H18.5954C19.0096 9.4009 19.3454 9.73669 19.3454 10.1509C19.3454 10.5651 19.0096 10.9009 18.5954 10.9009H17.4133C16.9991 10.9009 16.6633 10.5651 16.6633 10.1509ZM15.8233 14.7278C15.53 14.4353 15.0546 14.4353 14.7613 14.7278C14.468 15.0203 14.468 15.4946 14.7613 15.7871L15.5972 16.6208C15.8904 16.9134 16.3659 16.9134 16.6592 16.6208C16.9525 16.3283 16.9525 15.8541 16.6592 15.5615L15.8233 14.7278ZM10.1721 16.6227C10.5863 16.6227 10.9221 16.9585 10.9221 17.3727V18.5517C10.9221 18.966 10.5863 19.3017 10.1721 19.3017C9.75784 19.3017 9.42206 18.966 9.42206 18.5517V17.3727C9.42206 16.9585 9.75784 16.6227 10.1721 16.6227ZM5.58357 15.7871C5.87684 15.4946 5.87684 15.0204 5.58357 14.7279C5.2903 14.4353 4.81481 14.4353 4.52154 14.7279L3.68565 15.5616C3.39238 15.8541 3.39238 16.3284 3.68565 16.6209C3.97893 16.9134 4.45441 16.9134 4.74769 16.6209L5.58357 15.7871ZM3.68212 10.1509C3.68212 10.5651 3.34633 10.9009 2.93212 10.9009H1.75C1.33579 10.9009 1 10.5651 1 10.1509C1 9.7367 1.33579 9.40091 1.75 9.40091H2.93212C3.34633 9.40091 3.68212 9.7367 3.68212 10.1509ZM4.52151 5.57399C4.81478 5.8665 5.29027 5.8665 5.58354 5.57399C5.87681 5.28147 5.87681 4.80721 5.58354 4.5147L4.74765 3.68098C4.45438 3.38846 3.97889 3.38846 3.68562 3.68098C3.39235 3.97349 3.39235 4.44775 3.68562 4.74026L4.52151 5.57399Z`,fill:`currentColor`},null,-1)]])}var CF=B(bF,[[`render`,SF]]),wF={},TF={width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function EF(e,t){return S(),V(`svg`,TF,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M22.5 5H2.5V19H22.5V5ZM6.34628 13.75L6.6731 12.7365H8.05023L8.37455 13.75H8.96333L7.66353 10H7.05979L5.76 13.75H6.34628ZM7.90054 12.2687H6.82279L7.33921 10.6575H7.38162L7.90054 12.2687ZM12 18V6H13V18H12ZM18.0694 12.6923C18.0694 13.3498 17.6078 13.75 16.8394 13.75H15.36V10H16.807C17.4831 10 17.8897 10.3586 17.8897 10.933V10.9381C17.8897 11.328 17.6128 11.6788 17.2585 11.7412V11.7853C17.745 11.8399 18.0694 12.1985 18.0694 12.6871V12.6923ZM15.9188 11.5956H16.5825C17.0764 11.5956 17.3334 11.4033 17.3334 11.0395V11.0343C17.3334 10.6809 17.0914 10.4756 16.6773 10.4756H15.9188V11.5956ZM16.7272 13.2744H15.9188V12.04H16.6947C17.2211 12.04 17.498 12.2479 17.498 12.6507V12.6559C17.498 13.0587 17.2311 13.2744 16.7272 13.2744Z`,fill:`currentColor`},null,-1)]])}var DF=B(wF,[[`render`,EF]]),OF={},kF={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function AF(e,t){return S(),V(`svg`,kF,[...t[0]||=[c(`g`,{id:`subtoolbar / mytools / image`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M1.25 3.25H18.75V16.75H1.25V3.25ZM17.25 4.75H2.75V13.2095L5.79496 10L10.0643 13.5L12.3718 11.0678L17.1442 15.25H17.25V4.75ZM14.5 9C15.3284 9 16 8.32843 16 7.5C16 6.67157 15.3284 6 14.5 6C13.6716 6 13 6.67157 13 7.5C13 8.32843 13.6716 9 14.5 9Z`,fill:`currentColor`})],-1)]])}var jF=B(OF,[[`render`,AF]]),MF={},NF={width:`112`,height:`112`,viewBox:`0 0 112 112`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function PF(e,t){return S(),V(`svg`,NF,[...t[0]||=[v(`<rect x="20" y="30" width="58" height="44" rx="3.168" fill="#4982E6" fill-opacity="0.15"></rect><rect x="20.5" y="30.5" width="57" height="43" rx="2.668" stroke="#6499FF" stroke-dasharray="4 4"></rect><path fill-rule="evenodd" clip-rule="evenodd" d="M30 41.168C30 39.4184 31.4184 38 33.168 38H84.832C86.5816 38 88 39.4184 88 41.168V78.832C88 80.5816 86.5816 82 84.832 82H33.168C31.4184 82 30 80.5816 30 78.832L30 41.168Z" fill="#54575C"></path><path d="M54.3145 68.1748L61.8379 61L79.1396 76H36V58.8799L38.7393 56L54.3145 68.1748ZM77 44C79.7614 44 82 46.2386 82 49C82 51.7614 79.7614 54 77 54C74.2386 54 72 51.7614 72 49C72 46.2386 74.2386 44 77 44Z" fill="#606773"></path><path d="M92.2368 71.6312C92.9284 71.8387 93.0893 72.7448 92.5116 73.178L90.3503 74.798L92.04 76.4878C92.3835 76.8314 92.3836 77.3885 92.04 77.7321L90.7957 78.9764C90.452 79.3201 89.895 79.32 89.5513 78.9764L87.8616 77.2867L86.2409 79.4488C85.8077 80.0262 84.9017 79.8653 84.6941 79.1739L81.4617 68.3982L92.2368 71.6312Z" fill="#6499FF"></path>`,5)]])}var FF=B(MF,[[`render`,PF]]),IF={},LF={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function RF(e,t){return S(),V(`svg`,LF,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.6374 2.96451C10.3413 2.67483 9.8613 2.67483 9.56523 2.96451L5.46391 6.97719C5.16784 7.26687 5.16784 7.73652 5.46391 8.0262C5.75999 8.31588 6.24002 8.31588 6.53609 8.0262L9.25012 5.37083L9.25012 12.8271C9.25012 13.2413 9.58591 13.5771 10.0001 13.5771C10.4143 13.5771 10.7501 13.2413 10.7501 12.8271L10.7501 5.17281L13.6665 8.0262C13.9626 8.31588 14.4426 8.31588 14.7387 8.0262C15.0348 7.73652 15.0348 7.26687 14.7387 6.97719L10.6374 2.96451ZM4 15.7516C3.58579 15.7516 3.25 16.0873 3.25 16.5016C3.25 16.9158 3.58579 17.2516 4 17.2516H16C16.4142 17.2516 16.75 16.9158 16.75 16.5016C16.75 16.0873 16.4142 15.7516 16 15.7516H4Z`,fill:`currentColor`},null,-1)]])}var zF=B(IF,[[`render`,RF]]),BF={},VF={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function HF(e,t){return S(),V(`svg`,VF,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M15.644 4.97046V3.22046H14.144V4.97046H12.394V6.47046H14.144V8.22046H15.644V6.47046H17.394V4.97046H15.644ZM13.2075 14.7785L9.29604 4.99995H7.90332L3.9919 14.7785H3V15.7785H6.2V14.7785H5.60744L6.4074 12.7785H10.792L11.5919 14.7785H11V15.7785H14.2V14.7785H13.2075ZM10.392 11.7785L8.59968 7.29749L6.80738 11.7785H10.392Z`,fill:`currentColor`},null,-1)]])}var UF=B(BF,[[`render`,HF]]),WF={},GF={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function KF(e,t){return S(),V(`svg`,GF,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M1.57675 19.1757L1 17.7787L2.23629 17.3267L3.39858 16.9142L4.48804 16.5416L5.17445 16.3153L5.82936 16.1069L6.4531 15.9162L7.04603 15.7435L7.60849 15.5886L8.14082 15.4517L8.64337 15.3328C8.72467 15.3145 8.80474 15.297 8.88359 15.2802L9.34212 15.1884L9.77173 15.1147C11.0868 14.91 11.972 14.9785 12.4769 15.3262C12.7932 15.544 13.0243 15.7942 13.1655 16.0808C13.4151 16.5876 13.3721 16.9889 13.1388 17.5664L13.0118 17.8607L13.1178 17.8549C13.3318 17.8376 13.6024 17.7943 13.926 17.7239L14.1265 17.6785L14.3516 17.6235L14.8394 17.4928C14.9249 17.4688 15.0125 17.4435 15.1022 17.4171L15.6652 17.245L16.2781 17.0452L16.9408 16.8178L17.653 16.5629L18.4146 16.2803L19 17.6741L17.9462 18.0639L17.2946 18.2959L16.6828 18.5054L16.1097 18.6922C15.925 18.7507 15.7466 18.8054 15.5744 18.8563L15.076 18.9974C14.9159 19.0406 14.7618 19.0799 14.6135 19.1154L14.186 19.2101C13.0235 19.4455 12.271 19.399 11.8322 19.0549C11.4563 18.7602 11.3001 18.3582 11.3527 17.9256C11.3673 17.8051 11.3855 17.7161 11.4219 17.6072L11.4922 17.4224L11.6818 16.9751L11.7255 16.8448C11.7439 16.7759 11.7424 16.7393 11.7305 16.715C11.7102 16.674 11.6563 16.6156 11.5457 16.5395C11.436 16.4639 11.2053 16.4374 10.8597 16.4606L10.6123 16.4834C10.5683 16.4885 10.5228 16.4941 10.476 16.5004L10.1783 16.5455L9.84745 16.6054L9.48395 16.6803L9.08816 16.7701C9.01952 16.7863 8.94956 16.8031 8.87827 16.8206L8.43479 16.933L7.95999 17.0604L7.45428 17.203L6.63861 17.4454L5.75561 17.7221L4.80659 18.0333L3.79289 18.3792L3.08181 18.6292L2.34296 18.8946L1.57675 19.1757Z`,fill:`#64BC38`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M12.7275 1.00012L16.9702 5.24276L14.8385 7.37449L10.5958 3.13185L12.7275 1.00012ZM9.8887 3.83896L3.53515 10.1925L2.12094 15.8494L7.77779 14.4352L14.1313 8.0816L9.8887 3.83896Z`,fill:`currentColor`},null,-1)]])}var qF=B(WF,[[`render`,KF]]),JF={},YF={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function XF(e,t){return S(),V(`svg`,YF,[...t[0]||=[c(`g`,{id:`btn / close`},[c(`circle`,{id:`Ellipse 2704`,cx:`8`,cy:`8`,r:`7`,fill:`#999999`}),c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8.07107 7.29289L4.88909 4.11091L4.18198 4.81802L7.36396 8L4.18198 11.182L4.88909 11.8891L8.07107 8.70711L11.253 11.8891L11.9602 11.182L8.77817 8L11.9602 4.81802L11.253 4.11091L8.07107 7.29289Z`,fill:`white`})],-1)]])}var ZF=B(JF,[[`render`,XF]]),QF={},$F={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function eI(e,t){return S(),V(`svg`,$F,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.4216 5.35913H9.36765V3.85913H13.3676V5.35913H11.9745L9.48752 14.6409H10.6323V16.1409H6.63232V14.6409H7.9346L10.4216 5.35913Z`,fill:`currentColor`},null,-1)]])}var tI=B(QF,[[`render`,eI]]),nI={},rI={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function iI(e,t){return S(),V(`svg`,rI,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M9.66731 5.69934H4.95164C5.55909 7.3715 6.21384 8.67697 7.20164 9.69698C8.25354 8.61248 9.07042 7.29169 9.66731 5.69934ZM7.10864 12.0565C8.00383 12.7036 9.11299 13.2183 10.5512 13.6401C10.8845 13.7378 11.2212 13.6119 11.4102 13.3203C11.737 12.816 11.5079 12.0098 10.9339 11.8314C9.98576 11.5368 9.19688 11.1854 8.52747 10.7657C9.81068 9.40566 10.8127 7.73499 11.5524 5.69934H12.728C13.1647 5.69934 13.5188 5.34529 13.5188 4.90854C13.5188 4.47179 13.1647 4.11774 12.728 4.11774H8.17084V2.83101C8.17084 2.37206 7.79878 2 7.33983 2C6.88087 2 6.50881 2.37206 6.50881 2.83101V4.11774H2.03207C1.59533 4.11774 1.24127 4.47179 1.24127 4.90854C1.24127 5.34529 1.59533 5.69934 2.03207 5.69934H3.17484C3.98444 7.92894 4.71182 9.60401 5.82738 10.8859C4.7777 11.6477 3.55589 12.2507 2.15289 12.7164C1.62074 12.893 1.42241 13.6068 1.71639 14.0842C1.91795 14.4116 2.29391 14.5417 2.6569 14.4151C4.36046 13.821 5.84041 13.0462 7.10864 12.0565ZM16.8629 16.017C16.8673 16.017 16.8712 16.0198 16.8725 16.024L17.2645 17.2744C17.3999 17.7062 17.7999 18 18.2524 18C18.9559 18 19.4545 17.3134 19.2369 16.6444L16.6144 8.58416C16.404 7.93763 15.8014 7.49998 15.1215 7.49998C14.4429 7.49998 13.8411 7.93598 13.6297 8.5808L10.9734 16.6831C10.7605 17.3323 11.2442 18 11.9275 18C12.3586 18 12.7416 17.7248 12.8792 17.3162L13.3142 16.024C13.3156 16.0198 13.3195 16.017 13.324 16.017H16.8629ZM16.2459 14.1065C16.2772 14.2326 16.1817 14.3546 16.0518 14.3546H14.1174C13.9868 14.3546 13.8913 14.2315 13.9237 14.105L14.9064 10.2685C14.9579 10.0672 15.2442 10.0683 15.2942 10.27L16.2459 14.1065Z`,fill:`currentColor`},null,-1)]])}var aI=B(nI,[[`render`,iI]]),oI={},sI={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function cI(e,t){return S(),V(`svg`,sI,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3 3H17V17H3V3ZM2 3C2 2.44772 2.44772 2 3 2H17C17.5523 2 18 2.44772 18 3V17C18 17.5523 17.5523 18 17 18H3C2.44772 18 2 17.5523 2 17V3ZM5.40381 5L15.3033 14.8995L14.5962 15.6066L4.6967 5.70711L5.40381 5ZM5.82074 8.24536C4.69777 9.2643 4 10.3033 4 10.3033C4 10.3033 6.68629 14.3033 10 14.3033C10.5489 14.3033 11.0806 14.1935 11.5858 14.0104L5.82074 8.24536ZM14.1793 12.3612C15.3022 11.3423 16 10.3033 16 10.3033C16 10.3033 13.3137 6.3033 10 6.3033C9.45108 6.3033 8.91937 6.41306 8.41424 6.59622L14.1793 12.3612Z`,fill:`currentColor`},null,-1)]])}var lI=B(oI,[[`render`,cI]]),uI={},dI={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function fI(e,t){return S(),V(`svg`,dI,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3 3H17V17H3V3ZM2 3C2 2.44772 2.44772 2 3 2H17C17.5523 2 18 2.44772 18 3V17C18 17.5523 17.5523 18 17 18H3C2.44772 18 2 17.5523 2 17V3ZM16 10C16 10 13.3137 14 10 14C6.68629 14 4 10 4 10C4 10 6.68629 6 10 6C13.3137 6 16 10 16 10ZM12 10C12 11.1046 11.1046 12 10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10Z`,fill:`currentColor`},null,-1)]])}var pI=B(uI,[[`render`,fI]]),mI={},hI={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function gI(e,t){return S(),V(`svg`,hI,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.5 3.5H13.3V13.3H3.5V3.5ZM2 2H3.5H13.3H14.8V3.5V5.2H16.5H18V6.7V16.5V18H16.5H6.7H5.2V16.5V14.8H3.5H2V13.3V3.5V2ZM6.7 14.8V16.5H16.5V6.7H14.8V13.3V14.8H13.3H6.7Z`,fill:`currentColor`},null,-1)]])}var _I=B(mI,[[`render`,gI]]),vI={},yI={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function bI(e,t){return S(),V(`svg`,yI,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M9.99938 3.50634C9.58517 3.50634 9.24938 3.17055 9.24938 2.75634V1.57727C9.24938 1.16306 9.58517 0.827271 9.99938 0.827271C10.4136 0.827271 10.7494 1.16306 10.7494 1.57727V2.75634C10.7494 3.17055 10.4136 3.50634 9.99938 3.50634ZM14.7034 9.9044C14.7034 12.5498 12.5589 14.6944 9.91347 14.6944C7.26804 14.6944 5.1235 12.5498 5.1235 9.9044C5.1235 7.25898 7.26804 5.11444 9.91347 5.11444C12.5589 5.11444 14.7034 7.25898 14.7034 9.9044ZM14.5886 4.34193C14.2954 4.63444 14.2954 5.1087 14.5886 5.40121C14.8819 5.69373 15.3574 5.69373 15.6507 5.40121L16.4865 4.56749C16.7798 4.27497 16.7798 3.80071 16.4865 3.5082C16.1933 3.21569 15.7178 3.21569 15.4245 3.5082L14.5886 4.34193ZM16.4906 9.97809C16.4906 9.56388 16.8264 9.22809 17.2406 9.22809H18.4227C18.837 9.22809 19.1727 9.56388 19.1727 9.97809C19.1727 10.3923 18.837 10.7281 18.4227 10.7281H17.2406C16.8264 10.7281 16.4906 10.3923 16.4906 9.97809ZM15.6507 14.555C15.3574 14.2624 14.8819 14.2624 14.5887 14.555C14.2954 14.8475 14.2954 15.3217 14.5887 15.6142L15.4245 16.448C15.7178 16.7405 16.1933 16.7405 16.4866 16.448C16.7798 16.1555 16.7798 15.6812 16.4866 15.3887L15.6507 14.555ZM9.99947 16.4497C10.4137 16.4497 10.7495 16.7855 10.7495 17.1997V18.3788C10.7495 18.793 10.4137 19.1288 9.99947 19.1288C9.58526 19.1288 9.24947 18.793 9.24947 18.3788V17.1997C9.24947 16.7855 9.58526 16.4497 9.99947 16.4497ZM5.41081 15.6142C5.70408 15.3217 5.70408 14.8474 5.41081 14.5549C5.11754 14.2624 4.64205 14.2624 4.34878 14.5549L3.51289 15.3887C3.21962 15.6812 3.21962 16.1554 3.51289 16.4479C3.80616 16.7405 4.28165 16.7405 4.57492 16.4479L5.41081 15.6142ZM3.50939 9.97805C3.50939 10.3923 3.1736 10.728 2.75939 10.728H1.57727C1.16306 10.728 0.827271 10.3923 0.827271 9.97805C0.827271 9.56384 1.16306 9.22805 1.57727 9.22805H2.75939C3.1736 9.22805 3.50939 9.56384 3.50939 9.97805ZM4.34874 5.40119C4.64201 5.6937 5.1175 5.6937 5.41077 5.40119C5.70405 5.10867 5.70405 4.63442 5.41077 4.3419L4.57489 3.50818C4.28162 3.21566 3.80613 3.21566 3.51286 3.50818C3.21958 3.80069 3.21958 4.27495 3.51286 4.56746L4.34874 5.40119Z`,fill:`currentColor`},null,-1)]])}var xI=B(vI,[[`render`,bI]]),SI={},CI={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function wI(e,t){return S(),V(`svg`,CI,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.55957 5.99906L5.25088 3.30963L7.94031 6.00094L7.17136 6.76935L5.79198 5.38893L5.79519 14.6079L7.17142 13.2307L7.94037 13.9991L5.25094 16.6904L2.55963 14.001L3.32804 13.232L4.70812 14.6105L4.7049 5.39264L3.32798 6.76801L2.55957 5.99906Z`,fill:`currentColor`},null,-1),c(`rect`,{x:`9.44043`,y:`4.75`,width:`8`,height:`1.5`,fill:`currentColor`},null,-1),c(`rect`,{x:`9.44043`,y:`9.25`,width:`8`,height:`1.5`,fill:`currentColor`},null,-1),c(`rect`,{x:`9.44043`,y:`13.75`,width:`8`,height:`1.5`,fill:`currentColor`},null,-1)]])}var TI=B(SI,[[`render`,wI]]),EI={},DI={width:`87`,height:`4`,viewBox:`0 0 87 4`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function OI(e,t){return S(),V(`svg`,DI,[...t[0]||=[c(`path`,{d:`M1 0C1 1.36964 2.14004 2.49993 3.57129 2.5C5.00261 2.5 6.14258 1.36969 6.14258 0H7.14258C7.14258 1.36955 8.28275 2.49978 9.71387 2.5C11.0557 2.5 12.1419 1.50662 12.2725 0.253906L12.2861 0H13.2861C13.2861 1.36969 14.4261 2.5 15.8574 2.5C17.1991 2.49986 18.2845 1.50652 18.415 0.253906L18.4287 0H19.4287C19.4287 1.36969 20.5687 2.5 22 2.5C23.4313 2.5 24.5713 1.36969 24.5713 0H25.5713C25.5713 1.3696 26.7114 2.49985 28.1426 2.5C29.5739 2.5 30.7139 1.36969 30.7139 0H31.7139C31.7139 1.36969 32.8548 2.5 34.2861 2.5C35.6278 2.49979 36.7132 1.50648 36.8438 0.253906L36.8574 0H37.8574C37.8574 1.36969 38.9974 2.5 40.4287 2.5C41.86 2.49993 43 1.36964 43 0H44C44 1.36964 45.14 2.49993 46.5713 2.5C48.0026 2.5 49.1426 1.36969 49.1426 0H50.1426C50.1426 1.36955 51.2827 2.49978 52.7139 2.5C54.0557 2.5 55.1419 1.50662 55.2725 0.253906L55.2861 0H56.2861C56.2861 1.36969 57.4261 2.5 58.8574 2.5C60.1991 2.49986 61.2845 1.50652 61.415 0.253906L61.4287 0H62.4287C62.4287 1.36969 63.5687 2.5 65 2.5C66.4313 2.5 67.5713 1.36969 67.5713 0H68.5713C68.5713 1.3696 69.7114 2.49985 71.1426 2.5C72.5739 2.5 73.7139 1.36969 73.7139 0H74.7139C74.7139 1.36969 75.8548 2.5 77.2861 2.5C78.6278 2.4998 79.7132 1.50648 79.8438 0.253906L79.8574 0H80.8574C80.8574 1.36969 81.9974 2.5 83.4287 2.5C84.86 2.49993 86 1.36964 86 0H87C87 1.94398 85.3899 3.49993 83.4287 3.5C82.1277 3.5 80.981 2.81549 80.3564 1.78711C79.7319 2.81503 78.5867 3.49986 77.2861 3.5C75.9849 3.5 74.8383 2.81484 74.2139 1.78613C73.5894 2.81463 72.4436 3.5 71.1426 3.5C69.8415 3.4999 68.6957 2.8147 68.0713 1.78613C67.4468 2.8147 66.3011 3.5 65 3.5C63.6989 3.5 62.5532 2.8147 61.9287 1.78613C61.3043 2.8147 60.1585 3.4999 58.8574 3.5C57.5562 3.5 56.4096 2.81487 55.7852 1.78613C55.1607 2.8146 54.0149 3.5 52.7139 3.5C51.4132 3.49985 50.267 2.81527 49.6426 1.78711C49.018 2.81525 47.8721 3.5 46.5713 3.5C45.2699 3.49995 44.1243 2.81412 43.5 1.78516C42.8757 2.81412 41.7301 3.49995 40.4287 3.5C39.1277 3.5 37.981 2.81549 37.3564 1.78711C36.7319 2.81503 35.5867 3.49985 34.2861 3.5C32.9849 3.5 31.8383 2.81484 31.2139 1.78613C30.5894 2.81463 29.4436 3.5 28.1426 3.5C26.8415 3.4999 25.6957 2.8147 25.0713 1.78613C24.4468 2.8147 23.3011 3.5 22 3.5C20.6989 3.5 19.5532 2.8147 18.9287 1.78613C18.3043 2.8147 17.1585 3.4999 15.8574 3.5C14.5562 3.5 13.4096 2.81487 12.7852 1.78613C12.1607 2.8146 11.0149 3.5 9.71387 3.5C8.41315 3.49985 7.26705 2.81527 6.64258 1.78711C6.01801 2.81525 4.87207 3.5 3.57129 3.5C1.61006 3.49993 0 1.94398 0 0H1Z`,fill:`black`},null,-1)]])}var kI=B(EI,[[`render`,OI]]),AI={},jI={width:`88`,height:`5`,viewBox:`0 0 88 5`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function MI(e,t){return S(),V(`svg`,jI,[...t[0]||=[c(`path`,{d:`M1 -2.98023e-08C1 2.20914 3.75025 4 7.14286 4C10.5355 4 13.2857 2.20914 13.2857 -2.98023e-08C13.2857 2.20914 16.036 4 19.4286 4C22.8212 4 25.5714 2.20914 25.5714 -2.98023e-08C25.5714 2.20914 28.3217 4 31.7143 4C35.1069 4 37.8571 2.20914 37.8571 -2.98023e-08C37.8571 2.20914 40.6074 4 44 4C47.3926 4 50.1429 2.20914 50.1429 -2.98023e-08C50.1429 2.20914 52.8931 4 56.2857 4C59.6783 4 62.4286 2.20914 62.4286 -2.98023e-08C62.4286 2.20914 65.1788 4 68.5714 4C71.964 4 74.7143 2.20914 74.7143 -2.98023e-08C74.7143 2.20914 77.4645 4 80.8571 4C84.2498 4 87 2.20914 87 -2.98023e-08`,stroke:`black`},null,-1)]])}var NI=B(AI,[[`render`,MI]]),PI={},FI={width:`86`,height:`2`,viewBox:`0 0 86 2`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function II(e,t){return S(),V(`svg`,FI,[...t[0]||=[c(`path`,{d:`M0 1H86`,stroke:`black`,"stroke-dasharray":`10 10`},null,-1)]])}var LI=B(PI,[[`render`,II]]),RI={},zI={width:`90`,height:`2`,viewBox:`0 0 90 2`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function BI(e,t){return S(),V(`svg`,zI,[...t[0]||=[v(`<path d="M0 1H2" stroke="black"></path><path d="M4 1H14" stroke="black"></path><path d="M16 1H18" stroke="black"></path><path d="M20 1H30" stroke="black"></path><path d="M32 1H34" stroke="black"></path><path d="M36 1H46" stroke="black"></path><path d="M48 1H50" stroke="black"></path><path d="M52 1H62" stroke="black"></path><path d="M64 1H66" stroke="black"></path><path d="M68 1H78" stroke="black"></path><path d="M80 1H82" stroke="black"></path><path d="M84 1H90" stroke="black"></path>`,12)]])}var VI=B(RI,[[`render`,BI]]),HI={},UI={width:`86`,height:`2`,viewBox:`0 0 86 2`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function WI(e,t){return S(),V(`svg`,UI,[...t[0]||=[c(`path`,{d:`M0 1H86`,stroke:`black`,"stroke-dasharray":`4 4`},null,-1)]])}var GI=B(HI,[[`render`,WI]]),KI={},qI={width:`86`,height:`2`,viewBox:`0 0 86 2`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function JI(e,t){return S(),V(`svg`,qI,[...t[0]||=[v(`<path d="M0 1H6" stroke="black"></path><path d="M8 1H9" stroke="black"></path><path d="M11 1H17" stroke="black"></path><path d="M19 1H20" stroke="black"></path><path d="M22 1H28" stroke="black"></path><path d="M30 1H31" stroke="black"></path><path d="M33 1H39" stroke="black"></path><path d="M41 1H42" stroke="black"></path><path d="M44 1H50" stroke="black"></path><path d="M52 1H53" stroke="black"></path><path d="M55 1H61" stroke="black"></path><path d="M63 1H64" stroke="black"></path><path d="M66 1H72" stroke="black"></path><path d="M74 1H75" stroke="black"></path><path d="M77 1H83" stroke="black"></path><path d="M85 1H86" stroke="black"></path>`,16)]])}var YI=B(KI,[[`render`,JI]]),XI={},ZI={width:`86`,height:`2`,viewBox:`0 0 86 2`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function QI(e,t){return S(),V(`svg`,ZI,[...t[0]||=[v(`<path d="M0 1H6" stroke="black"></path><path d="M8 1H10" stroke="black"></path><path d="M12.5715 1H18.5715" stroke="black"></path><path d="M20.5715 1H22.5715" stroke="black"></path><path d="M25.1428 1H31.1428" stroke="black"></path><path d="M33.1428 1H35.1428" stroke="black"></path><path d="M37.7144 1H43.7144" stroke="black"></path><path d="M45.7144 1H47.7144" stroke="black"></path><path d="M50.2856 1H56.2856" stroke="black"></path><path d="M58.2856 1H60.2856" stroke="black"></path><path d="M62.8572 1H68.8572" stroke="black"></path><path d="M70.8572 1H72.8572" stroke="black"></path><path d="M75.4285 1H81.4285" stroke="black"></path><path d="M83.4285 1H85.4285" stroke="black"></path>`,14)]])}var $I=B(XI,[[`render`,QI]]),eL={},tL={width:`86`,height:`2`,viewBox:`0 0 86 2`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function nL(e,t){return S(),V(`svg`,tL,[...t[0]||=[c(`path`,{d:`M0 1H86`,stroke:`black`,"stroke-dasharray":`6 6`},null,-1)]])}var rL=B(eL,[[`render`,nL]]),iL={},aL={width:`86`,height:`2`,viewBox:`0 0 86 2`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function oL(e,t){return S(),V(`svg`,aL,[...t[0]||=[c(`path`,{d:`M0 1H86`,stroke:`black`},null,-1)]])}var sL=B(iL,[[`render`,oL]]),cL={},lL={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function uL(e,t){return S(),V(`svg`,lL,[...t[0]||=[c(`g`,{id:`subtoolbar / mytools / links`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M18.8388 7.17154L14.331 11.6793L13.2703 10.6187L16.7175 7.17154L12.8284 3.28245L9.38125 6.7296L8.32059 5.66894L12.8284 1.16113L18.8388 7.17154ZM6.7296 9.38125L3.28245 12.8284L7.17154 16.7175L10.6187 13.2703L11.6793 14.331L7.17154 18.8388L1.16113 12.8284L5.66894 8.32059L6.7296 9.38125ZM9.11608 11.9445L11.9445 9.11608L10.8839 8.05542L8.05542 10.8839L9.11608 11.9445Z`,fill:`currentColor`})],-1)]])}var dL=B(cL,[[`render`,uL]]),fL={},pL={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function mL(e,t){return S(),V(`svg`,pL,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M19.75 2.25H0.25V17.75H19.75V2.25ZM18.25 10.75V16.25H1.75V10.75H18.25ZM18.25 9.25V3.75H1.75V9.25H18.25ZM6 5.5H3V7.5H6V5.5ZM3 12.5H6V14.5H3V12.5Z`,fill:`currentColor`},null,-1)]])}var hL=B(fL,[[`render`,mL]]),gL={},_L={width:`48`,height:`48`,viewBox:`0 0 48 48`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function vL(e,t){return S(),V(`svg`,_L,[...t[0]||=[c(`path`,{d:`M32.5 19.2321V13.1607C32.5 8.46629 28.6944 4.66071 24 4.66071V4.66071C19.3056 4.66071 15.5 8.46628 15.5 13.1607V19.2321`,stroke:`#93B9FD`,"stroke-width":`4`},null,-1),c(`rect`,{x:`7`,y:`16.8036`,width:`34`,height:`26.7143`,rx:`2`,fill:`currentColor`},null,-1),c(`rect`,{x:`15`,y:`28`,width:`18`,height:`3`,fill:`white`},null,-1)]])}var yL=B(gL,[[`render`,vL]]),bL={},xL={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function SL(e,t){return S(),V(`svg`,xL,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8 8H12V7C12 5.89543 11.1046 5 10 5C8.89543 5 8 5.89543 8 7V8ZM7 8H6C5.44772 8 5 8.44772 5 9V15C5 15.5523 5.44772 16 6 16H14C14.5523 16 15 15.5523 15 15V9C15 8.44772 14.5523 8 14 8H13V7C13 5.34315 11.6569 4 10 4C8.34315 4 7 5.34315 7 7V8Z`,fill:`currentColor`},null,-1)]])}var CL=B(bL,[[`render`,SL]]),wL={},TL={width:`48`,height:`48`,viewBox:`0 0 48 48`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function EL(e,t){return S(),V(`svg`,TL,[...t[0]||=[c(`g`,{id:`pop-up`},[c(`path`,{id:`Subtract`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M24 2.66077C18.201 2.66077 13.5 7.36177 13.5 13.1608V19.2322H17.5V13.1608C17.5 9.57091 20.4101 6.66077 24 6.66077C26.4426 6.66077 28.5705 8.00807 29.6811 10.0001H34.0159C32.6747 5.74562 28.6976 2.66077 24 2.66077Z`,fill:`#93B9FD`}),c(`rect`,{id:`Rectangle 34624135`,x:`7`,y:`16.8036`,width:`34`,height:`26.7143`,rx:`2`,fill:`currentColor`}),c(`path`,{id:`Union`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M25.5 31.7092C26.9659 31.1159 28 29.6787 28 28C28 25.7909 26.2091 24 24 24C21.7909 24 20 25.7909 20 28C20 29.6787 21.0341 31.1159 22.5 31.7092V37H25.5V31.7092Z`,fill:`white`})],-1)]])}var DL=B(wL,[[`render`,EL]]),OL={},kL={width:`105`,height:`105`,viewBox:`0 0 105 105`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function AL(e,t){return S(),V(`svg`,kL,[...t[0]||=[c(`g`,{opacity:`0.4`},[c(`path`,{d:`M0.408203 9.65476C0.408203 4.73679 4.395 0.75 9.31297 0.75H71.6464C76.5644 0.75 80.5512 4.7368 80.5512 9.65477V85.3452H9.31295C4.39499 85.3452 0.408203 81.3584 0.408203 76.4404V9.65476Z`,fill:`#3863F1`}),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M56.8051 20.0437C38.7725 20.0437 24.1543 34.662 24.1543 52.6945C24.1543 70.727 38.7726 85.3452 56.8051 85.3452H80.5512V20.0437H56.8051ZM56.805 40.8214C50.2477 40.8214 44.932 46.1371 44.932 52.6944C44.932 59.2517 50.2477 64.5674 56.805 64.5674H80.5511V40.8214H56.805Z`,fill:`white`}),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M95.3925 20.0437H80.5512V85.3452L24.1543 85.3452V95.7341C24.1543 100.652 28.1411 104.639 33.059 104.639H95.3925C100.31 104.639 104.297 100.652 104.297 95.7341V28.9485C104.297 24.0305 100.31 20.0437 95.3925 20.0437ZM44.932 52.6944C44.932 46.1371 50.2477 40.8214 56.805 40.8214H80.5511V64.5674H56.805C50.2477 64.5674 44.932 59.2517 44.932 52.6944Z`,fill:`#31BC98`})],-1)]])}var jL=B(OL,[[`render`,AL]]),ML={},NL={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function PL(e,t){return S(),V(`svg`,NL,[...t[0]||=[c(`path`,{d:`M2.63672 18C2.63672 15.9828 3.03403 13.9854 3.80595 12.1218C4.57788 10.2582 5.70932 8.56494 7.13565 7.1386C8.56199 5.71227 10.2553 4.58083 12.1189 3.80891C13.9825 3.03698 15.9799 2.63968 17.997 2.63968`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M17.9966 2V18H2.00293`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-dasharray":`3.6 1.8`},null,-1),c(`path`,{d:`M16.7554 4.56842L18.6333 2.63967L16.7298 0.736165`,stroke:`currentColor`,"stroke-width":`1.4`},null,-1),c(`path`,{d:`M0.708008 16.838L2.63675 18.7159L4.54026 16.8124`,stroke:`currentColor`,"stroke-width":`1.4`},null,-1)]])}var FL=B(ML,[[`render`,PL]]),IL={},LL={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function RL(e,t){return S(),V(`svg`,LL,[...t[0]||=[c(`circle`,{cx:`10.5`,cy:`10`,r:`8.25`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M17.0664 5.21002L3.37442 15.2833`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M13.5967 2.37137L2.12094 11.0831`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M18.9043 9.01334L7.85905 17.3793`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var zL=B(IL,[[`render`,RL]]),BL={},VL={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function HL(e,t){return S(),V(`svg`,VL,[...t[0]||=[c(`path`,{d:`M2.5 11.9037C3.09643 7.58461 4.96299 -0.313125 7.65776 2.64854C11.0262 6.35062 10.8157 17.4568 13.342 17.9857C15.3631 18.4088 17.6228 9.34754 18.5 4.76404`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var UL=B(BL,[[`render`,HL]]),WL={},GL={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function KL(e,t){return S(),V(`svg`,GL,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M18.278 5.75735L14.7425 2.22181L13.505 3.45925L15.98 5.93421L14.9193 6.99487L12.4444 4.51991L10.6766 6.28768L13.1516 8.76264L12.0909 9.8233L9.61596 7.34834L7.84819 9.11611L10.3232 11.5911L9.26249 12.6517L6.78753 10.1768L5.01977 11.9445L7.49473 14.4195L6.43407 15.4802L3.95911 13.0052L2.72167 14.2426L6.2572 17.7782L18.278 5.75735ZM15.8031 1.16115L14.7425 0.100494L13.6818 1.16115L1.66101 13.182L0.600348 14.2426L1.66101 15.3033L5.19654 18.8388L6.2572 19.8995L7.31786 18.8388L19.3387 6.81801L20.3993 5.75735L19.3387 4.69669L15.8031 1.16115Z`,fill:`currentColor`},null,-1)]])}var qL=B(WL,[[`render`,KL]]),JL={},YL={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function XL(e,t){return S(),V(`svg`,YL,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M1 3C1 1.89543 1.89543 1 3 1C3.83934 1 4.55793 1.51704 4.85462 2.25H16.1454C16.4421 1.51704 17.1607 1 18 1C19.1046 1 20 1.89543 20 3C20 3.83934 19.483 4.55793 18.75 4.85462V17V17.75H18H14.2011L15.0167 18.5765L14.0138 19.5928L11.9986 17.5505L11.4972 17.0423L11.9986 16.5342L14.0138 14.4918L15.0167 15.5082L14.2847 16.25H17.25V4.85462C16.7487 4.65168 16.3483 4.25135 16.1454 3.75H4.85462C4.65168 4.25135 4.25135 4.65168 3.75 4.85462V16.25H6.75V15H8.25V19H6.75V17.75H3H2.25V17V4.85462C1.51704 4.55793 1 3.83934 1 3Z`,fill:`currentColor`},null,-1)]])}var ZL=B(JL,[[`render`,XL]]),QL={},$L={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function eR(e,t){return S(),V(`svg`,$L,[...t[0]||=[c(`path`,{d:`M14.2041 4.48883L3.08548 11.1043`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M16.9145 8.71439L5.51183 15.5114`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M2.95577 5.93301L10 1.86603L17.0442 5.93301V14.067L10 18.134L2.95577 14.067V5.93301Z`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var tR=B(QL,[[`render`,eR]]),nR={},rR={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function iR(e,t){return S(),V(`svg`,rR,[...t[0]||=[c(`rect`,{x:`2.25`,y:`3.75`,width:`16.5`,height:`12.5`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M18.2759 4.31778L2.203 16.3053`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M12.2065 3.56934L2.14012 11.148`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M18.8979 9.27121L9.43893 16.3618`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var aR=B(nR,[[`render`,iR]]),oR={},sR={width:`10`,height:`2`,viewBox:`0 0 10 2`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function cR(e,t){return S(),V(`svg`,sR,[...t[0]||=[c(`path`,{d:`M1.04688 1.61084C0.789062 1.61084 0.568848 1.39062 0.568848 1.12744C0.568848 0.864258 0.789062 0.649414 1.04688 0.649414H8.95312C9.21094 0.649414 9.43115 0.864258 9.43115 1.12744C9.43115 1.39062 9.21094 1.61084 8.95312 1.61084H1.04688Z`,fill:`currentColor`},null,-1)]])}var lR=B(oR,[[`render`,cR]]),uR={},dR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function fR(e,t){return S(),V(`svg`,dR,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.62109 10C2.62109 5.92468 5.9248 2.62097 10.0001 2.62097C14.0755 2.62097 17.3792 5.92468 17.3792 10C17.3792 14.0753 14.0755 17.379 10.0001 17.379C5.9248 17.379 2.62109 14.0753 2.62109 10ZM10.0001 1.12097C5.09637 1.12097 1.12109 5.09625 1.12109 10C1.12109 14.9038 5.09637 18.879 10.0001 18.879C14.9039 18.879 18.8792 14.9038 18.8792 10C18.8792 5.09625 14.9039 1.12097 10.0001 1.12097ZM6.02432 11.5C6.71468 11.5 7.27432 10.9404 7.27432 10.25C7.27432 9.55967 6.71468 9.00003 6.02432 9.00003C5.33396 9.00003 4.77432 9.55967 4.77432 10.25C4.77432 10.9404 5.33396 11.5 6.02432 11.5ZM10.0888 11.5C10.7792 11.5 11.3388 10.9404 11.3388 10.25C11.3388 9.55967 10.7792 9.00003 10.0888 9.00003C9.39848 9.00003 8.83884 9.55967 8.83884 10.25C8.83884 10.9404 9.39848 11.5 10.0888 11.5ZM15.4034 10.25C15.4034 10.9404 14.8437 11.5 14.1534 11.5C13.463 11.5 12.9034 10.9404 12.9034 10.25C12.9034 9.55967 13.463 9.00003 14.1534 9.00003C14.8437 9.00003 15.4034 9.55967 15.4034 10.25Z`,fill:`currentColor`},null,-1)]])}var pR=B(uR,[[`render`,fR]]),mR={},hR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function gR(e,t){return S(),V(`svg`,hR,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M6.5 10C6.5 10.8284 5.82843 11.5 5 11.5C4.17157 11.5 3.5 10.8284 3.5 10C3.5 9.17157 4.17157 8.5 5 8.5C5.82843 8.5 6.5 9.17157 6.5 10ZM11.5 10C11.5 10.8284 10.8284 11.5 10 11.5C9.17157 11.5 8.5 10.8284 8.5 10C8.5 9.17157 9.17157 8.5 10 8.5C10.8284 8.5 11.5 9.17157 11.5 10ZM15 11.5C15.8284 11.5 16.5 10.8284 16.5 10C16.5 9.17157 15.8284 8.5 15 8.5C14.1716 8.5 13.5 9.17157 13.5 10C13.5 10.8284 14.1716 11.5 15 11.5Z`,fill:`currentColor`},null,-1)]])}var _R=B(mR,[[`render`,gR]]),vR={},yR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function bR(e,t){return S(),V(`svg`,yR,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11 6C11 6.55228 10.5523 7 10 7C9.44772 7 9 6.55228 9 6C9 5.44772 9.44772 5 10 5C10.5523 5 11 5.44772 11 6ZM11 10C11 10.5523 10.5523 11 10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10ZM10 15C10.5523 15 11 14.5523 11 14C11 13.4477 10.5523 13 10 13C9.44772 13 9 13.4477 9 14C9 14.5523 9.44772 15 10 15Z`,fill:`currentColor`},null,-1)]])}var xR=B(vR,[[`render`,bR]]),SR={},CR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function wR(e,t){return S(),V(`svg`,CR,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3 5.25C3 4.83579 3.33579 4.5 3.75 4.5H16.2516C16.6659 4.5 17.0016 4.83579 17.0016 5.25C17.0016 5.66421 16.6659 6 16.2516 6H3.75C3.33579 6 3 5.66421 3 5.25ZM3 10.0006C3 9.58635 3.33579 9.25056 3.75 9.25056H16.2516C16.6659 9.25056 17.0016 9.58635 17.0016 10.0006C17.0016 10.4148 16.6659 10.7506 16.2516 10.7506H3.75C3.33579 10.7506 3 10.4148 3 10.0006ZM3.75 14.0012C3.33579 14.0012 3 14.337 3 14.7512C3 15.1654 3.33579 15.5012 3.75 15.5012H16.2516C16.6659 15.5012 17.0016 15.1654 17.0016 14.7512C17.0016 14.337 16.6659 14.0012 16.2516 14.0012H3.75Z`,fill:`currentColor`},null,-1)]])}var TR=B(SR,[[`render`,wR]]),ER={},DR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function OR(e,t){return S(),V(`svg`,DR,[...t[0]||=[c(`path`,{d:`M0 4C0 1.79086 1.79086 0 4 0H16C18.2091 0 20 1.79086 20 4V16C20 18.2091 18.2091 20 16 20H4C1.79086 20 0 18.2091 0 16V4Z`,fill:`#DDE9FF`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M7.01271 6.08121C7.01378 5.2426 7.98452 4.7777 8.63857 5.30256L13.5261 9.22462C14.0256 9.62544 14.0248 10.3859 13.5245 10.7857L8.62697 14.6998C7.97166 15.2235 7.00159 14.7562 7.00267 13.9173L7.01271 6.08121Z`,fill:`currentColor`},null,-1)]])}var kR=B(ER,[[`render`,OR]]),AR={},jR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function MR(e,t){return S(),V(`svg`,jR,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M4 4H15.5V15.5H4V4ZM2.5 2.5H4H15.5H17V4V15.5V17H15.5H4H2.5V15.5V4V2.5ZM7 9.25H6.25V10.75H7H13H13.75V9.25H13H7Z`,fill:`currentColor`},null,-1)]])}var NR=B(AR,[[`render`,MR]]),PR={},FR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function IR(e,t){return S(),V(`svg`,FR,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M18 3H2V15H5V18L10 15H18V3ZM5 6H11V7.5H5V6ZM5 9.5H15V11H5V9.5Z`,fill:`currentColor`},null,-1)]])}var LR=B(PR,[[`render`,IR]]),RR={},zR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function BR(e,t){return S(),V(`svg`,zR,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.5 3V17H11.5625V18.5H3.5H2V17V3V1.5H3.5H11.5625L16.875 5.75V10H15.375V6.47094L11.0363 3H3.5ZM6.25001 6.0625H5.50001V7.5625H6.25001H8.37501H9.12501V6.0625H8.37501H6.25001ZM5.50001 9.25H6.25001H9.96876H10.7188V10.75H9.96876H6.25001H5.50001V9.25ZM6.25001 12.4375H5.50001V13.9375H6.25001H9.96876H10.7188V12.4375H9.96876H6.25001ZM12.5842 14.8916L13.62 13.8558V17.604V18.354H15.12V17.604V13.8558L16.1558 14.8916L17.2165 13.831L14.9003 11.5148L14.37 10.9845L13.8397 11.5148L11.5235 13.831L12.5842 14.8916Z`,fill:`currentColor`},null,-1)]])}var VR=B(RR,[[`render`,BR]]),HR={},UR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function WR(e,t){return S(),V(`svg`,UR,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M5 1.875H1.25V5.625H5V1.875ZM5 8.125H1.25V11.875H5V8.125ZM1.25 14.375H5V18.125H1.25V14.375ZM18.75 4.6875V2.8125H7.5V4.6875H18.75ZM18.75 9.0625V10.9375H7.5V9.0625H18.75ZM18.75 17.1875V15.3125H7.5V17.1875H18.75Z`,fill:`currentColor`},null,-1)]])}var GR=B(HR,[[`render`,WR]]),KR={},qR={width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function JR(e,t){return S(),V(`svg`,qR,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11 15H1V21H11V15ZM23 15H13V21H23V15Z`,fill:`currentColor`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M1 3H8L11 6.2V13H1V3Z`,fill:`currentColor`},null,-1)]])}var YR=B(KR,[[`render`,JR]]),XR={},ZR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function QR(e,t){return S(),V(`svg`,ZR,[...t[0]||=[c(`path`,{d:`M18.3327 10C18.3327 10 14.6017 16.25 9.99935 16.25C5.39698 16.25 1.66602 10 1.66602 10C1.66602 10 5.39698 3.75 9.99935 3.75C14.6017 3.75 18.3327 10 18.3327 10Z`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`circle`,{cx:`10`,cy:`10`,r:`2`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var $R=B(XR,[[`render`,QR]]),ez={},tz={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function nz(e,t){return S(),V(`svg`,tz,[...t[0]||=[c(`rect`,{x:`12`,y:`8`,width:`6`,height:`9`,fill:`#999999`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.5 3.5H17.5V7.25H12H2.5V3.5ZM12.75 8.75H17.5V16.5H12.75V8.75ZM11.25 16.5V8.75H2.5V16.5H11.25ZM17.5 2H19V3.5V16.5V18H17.5H2.5H1V16.5V3.5V2H2.5H17.5Z`,fill:`currentColor`},null,-1)]])}var rz=B(ez,[[`render`,nz]]),iz={},az={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function oz(e,t){return S(),V(`svg`,az,[...t[0]||=[c(`rect`,{x:`2`,y:`8`,width:`6`,height:`9`,fill:`#999999`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M17.5 3.5H2.5V7.25H8H17.5V3.5ZM7.25 8.75H2.5V16.5H7.25V8.75ZM8.75 16.5V8.75H17.5V16.5H8.75ZM2.5 2H1V3.5V16.5V18H2.5H17.5H19V16.5V3.5V2H17.5H2.5Z`,fill:`currentColor`},null,-1)]])}var sz=B(iz,[[`render`,oz]]),cz={},lz={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function uz(e,t){return S(),V(`svg`,lz,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8.7463 7.94055L8.43134 3.20358C8.38986 2.6073 8.82031 2.08322 9.40947 2.01273L9.46546 2.00656C9.75502 1.97416 10.0451 2.06271 10.2681 2.25159C10.4911 2.44047 10.6276 2.71317 10.6457 3.00614L10.9886 8.17061C10.999 8.31659 11.1097 8.43516 11.2537 8.45444C11.3176 8.46288 11.382 8.44409 11.4315 8.40258C11.481 8.36108 11.5111 8.30063 11.5145 8.23584L11.7612 3.47595C11.7918 2.85998 12.3116 2.38523 12.923 2.41468H12.9309C13.5429 2.44972 14.0111 2.97745 13.9773 3.59407L13.7218 8.51438C13.7137 8.66679 13.8235 8.79975 13.9738 8.81936C14.1225 8.83876 14.2625 8.73915 14.2914 8.59018L14.8006 6.02337C14.9178 5.41517 15.497 5.01851 16.0954 5.13574L16.1041 5.13751C16.7058 5.25854 17.0969 5.84695 16.979 6.45353L16.3684 9.53687C15.8189 13.3474 15.0586 15.5052 14.3946 16.4246C13.3649 17.8508 11.5573 17.8667 10.1251 17.8667C8.69381 17.8667 7.16012 17.5291 6.44796 16.9993C5.73492 16.4696 4.77079 15.2575 4.15837 13.9327L4.16712 13.9283C4.11876 13.8639 4.0774 13.7945 4.04376 13.7212L3.105 11.685C2.84552 11.1243 3.08338 10.4577 3.63781 10.1918L3.64656 10.1874C3.91235 10.0626 4.21656 10.0497 4.49179 10.1517C4.76702 10.2536 4.99055 10.4619 5.11287 10.7304C5.62206 11.8234 5.94227 12.324 6.07526 12.2324C6.27386 12.0949 6.12075 11.7176 5.85478 9.21249C5.67578 7.53039 5.45319 5.85328 5.18724 4.18289C5.07653 3.5968 5.44002 3.02581 6.01489 2.88273L6.07526 2.86775C6.35866 2.79957 6.65742 2.85178 6.90147 3.01215C7.14552 3.17252 7.3134 3.42693 7.36572 3.71571L8.168 8.02341C8.19642 8.17613 8.33897 8.27937 8.49171 8.25787C8.64561 8.23564 8.75656 8.09774 8.7463 7.94143V7.94055Z`,fill:`currentColor`},null,-1)]])}var dz=B(cz,[[`render`,uz]]),fz={},pz={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function mz(e,t){return S(),V(`svg`,pz,[...t[0]||=[v(`<path fill-rule="evenodd" clip-rule="evenodd" d="M2.55957 5.99906L5.25088 3.30963L7.94031 6.00094L7.17136 6.76935L5.79198 5.38893L5.79519 14.6079L7.17142 13.2307L7.94037 13.9991L5.25094 16.6904L2.55963 14.001L3.32804 13.232L4.70812 14.6105L4.7049 5.39264L3.32798 6.76801L2.55957 5.99906Z" fill="currentColor"></path><rect x="9.44043" y="4.5" width="8" height="1.5" fill="currentColor"></rect><rect x="9.44043" y="7" width="8" height="1.5" fill="currentColor"></rect><rect x="9.44043" y="11.5" width="8" height="1.5" fill="currentColor"></rect><rect x="9.44043" y="14" width="8" height="1.5" fill="currentColor"></rect>`,5)]])}var hz=B(fz,[[`render`,mz]]),gz={},_z={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function vz(e,t){return S(),V(`svg`,_z,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M17.25 2.25H18V3V15H16.5V3.75H5.25V2.25H17.25ZM2.25 6H14.25V18H2.25V6Z`,fill:`currentColor`},null,-1)]])}var yz=B(gz,[[`render`,vz]]),bz={},xz={width:`10`,height:`10`,viewBox:`0 0 10 10`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Sz(e,t){return S(),V(`svg`,xz,[...t[0]||=[c(`path`,{d:`M5 9.6499C4.73682 9.6499 4.52197 9.44043 4.52197 9.18262V5.61084H1.04688C0.789062 5.61084 0.568848 5.39062 0.568848 5.12744C0.568848 4.86426 0.789062 4.64941 1.04688 4.64941H4.52197V1.07227C4.52197 0.814453 4.73682 0.60498 5 0.60498C5.26318 0.60498 5.4834 0.814453 5.4834 1.07227V4.64941H8.95312C9.21094 4.64941 9.43115 4.86426 9.43115 5.12744C9.43115 5.39062 9.21094 5.61084 8.95312 5.61084H5.4834V9.18262C5.4834 9.44043 5.26318 9.6499 5 9.6499Z`,fill:`currentColor`},null,-1)]])}var Cz=B(bz,[[`render`,Sz]]),wz={},Tz={width:`21`,height:`20`,viewBox:`5 5 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Ez(e,t){return S(),V(`svg`,Tz,[...t[0]||=[c(`path`,{d:`M8.20577 10.933L15.25 6.86603L22.2942 10.933V19.067L15.25 23.134L8.20577 19.067V10.933Z`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var Dz=B(wz,[[`render`,Ez]]),Oz={},kz={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Az(e,t){return S(),V(`svg`,kz,[...t[0]||=[c(`path`,{d:`M10.0282 2L18.2999 10.2717L1.75648 10.6988L10.0282 18.9706`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linejoin":`round`},null,-1)]])}var jz=B(Oz,[[`render`,Az]]),Mz={},Nz={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Pz(e,t){return S(),V(`svg`,Nz,[...t[0]||=[c(`path`,{d:`M0 4C0 1.79086 1.79086 0 4 0H16C18.2091 0 20 1.79086 20 4V16C20 18.2091 18.2091 20 16 20H4C1.79086 20 0 18.2091 0 16V4Z`,fill:`#DDE9FF`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M12.4873 6.08121C12.4862 5.2426 11.5155 4.7777 10.8614 5.30256L5.97391 9.22462C5.47443 9.62544 5.47519 10.3859 5.97548 10.7857L10.873 14.6998C11.5283 15.2235 12.4984 14.7562 12.4973 13.9173L12.4873 6.08121Z`,fill:`currentColor`},null,-1)]])}var Fz=B(Mz,[[`render`,Pz]]),Iz={},Lz={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Rz(e,t){return S(),V(`svg`,Lz,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M4.25 1.25H5H15H15.75V2V5.25H18H18.75V6V15V15.75H18H15V17.5V19H13.5H6.5H5V17.5V15.75H2H1.25V15V6V5.25H2H4.25V2V1.25ZM14.25 2.75V5.25H5.75V2.75H14.25ZM15 14.25H17.25V6.75H2.75V14.25H5V12.5V11H6.5H13.5H15V12.5V14.25ZM6.5 12.5H13.5V17.5H6.5V12.5ZM15 10C15.5523 10 16 9.55229 16 9C16 8.44772 15.5523 8 15 8C14.4477 8 14 8.44772 14 9C14 9.55229 14.4477 10 15 10Z`,fill:`currentColor`},null,-1)]])}var zz=B(Iz,[[`render`,Rz]]),Bz={},Vz={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Hz(e,t){return S(),V(`svg`,Vz,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M20 3H0V17H20V3ZM9.5918 10.3271C9.5918 12.3794 8.41406 13.6626 6.54199 13.6626C4.65674 13.6626 3.48779 12.3794 3.48779 10.3271C3.48779 8.27051 4.67432 6.99609 6.54199 6.99609C8.40967 6.99609 9.5918 8.2749 9.5918 10.3271ZM4.8457 10.3271C4.8457 11.6719 5.49609 12.5376 6.54199 12.5376C7.57471 12.5376 8.23389 11.6719 8.23389 10.3271C8.23389 8.97803 7.57031 8.12109 6.54199 8.12109C5.50928 8.12109 4.8457 8.97803 4.8457 10.3271ZM12.1758 13.5V11.562L12.8042 10.8062L14.6455 13.5H16.2363L13.7622 9.93604L16.0737 7.15869H14.5972L12.2549 10.0063H12.1758V7.15869H10.8486V13.5H12.1758Z`,fill:`currentColor`},null,-1)]])}var Uz=B(Bz,[[`render`,Hz]]),Wz={},Gz={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Kz(e,t){return S(),V(`svg`,Gz,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10 1.25C5.16751 1.25 1.25 5.16751 1.25 10C1.25 14.8325 5.16751 18.75 10 18.75C14.8325 18.75 18.75 14.8325 18.75 10C18.75 5.16751 14.8325 1.25 10 1.25ZM10 2.75C14.0041 2.75 17.25 5.99594 17.25 10C17.25 14.0041 14.0041 17.25 10 17.25C5.99594 17.25 2.75 14.0041 2.75 10C2.75 5.99594 5.99594 2.75 10 2.75ZM10 13C11.6569 13 13 11.6569 13 10C13 8.34315 11.6569 7 10 7C8.34315 7 7 8.34315 7 10C7 11.6569 8.34315 13 10 13Z`,fill:`currentColor`},null,-1)]])}var qz=B(Wz,[[`render`,Kz]]),Jz={},Yz={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Xz(e,t){return S(),V(`svg`,Yz,[...t[0]||=[c(`path`,{d:`M13.5224 10.8835L10.6558 17.3333C10.0856 17.3333 9.53871 17.1068 9.13551 16.7036C8.73232 16.3004 8.5058 15.7536 8.5058 15.1834V12.3168H4.44954C4.24178 12.3191 4.03598 12.2763 3.84642 12.1912C3.65686 12.1061 3.48807 11.9808 3.35173 11.8241C3.21539 11.6673 3.11477 11.4827 3.05684 11.2832C2.99891 11.0836 2.98505 10.8739 3.01623 10.6685L4.00521 4.21857C4.05704 3.87679 4.23065 3.56526 4.49404 3.34138C4.75743 3.1175 5.09286 2.99635 5.43852 3.00026H13.5224M13.5224 10.8835V3.00026M13.5224 10.8835H15.4359C15.8415 10.8906 16.2356 10.7486 16.5434 10.4844C16.8512 10.2202 17.0513 9.85215 17.1057 9.45015V4.43357C17.0513 4.03157 16.8512 3.66352 16.5434 3.39931C16.2356 3.13509 15.8415 2.99309 15.4359 3.00026H13.5224`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Zz=B(Jz,[[`render`,Xz]]),Qz={},$z={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function eB(e,t){return S(),V(`svg`,$z,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0.904297 1.60429H0.404297V2.10429V11.5177V12.0177H0.904297H3.57684V13.2072V14.2072H4.57684H9.59007V13.532L9.59996 12.8L6.91751 11.5177L4.57684 12.9057V5.7938H14.6032V10.1729H15.6032V5.7938V4.7938H14.6032H13.4307V2.10429V1.60429H12.9307H0.904297ZM12.4307 4.7938V2.60429H1.4043V11.0177H3.57684V5.7938V4.7938H4.57684H12.4307ZM11.7263 8.42116C12.1681 8.42116 12.5263 8.06071 12.5263 7.61607C12.5263 7.17143 12.1681 6.81098 11.7263 6.81098C11.2845 6.81098 10.9263 7.17143 10.9263 7.61607C10.9263 8.06071 11.2845 8.42116 11.7263 8.42116ZM12.3683 9.91808L12.0502 9.53231L12.8218 8.89613L13.1399 9.2819L14.3095 10.7004L14.9841 11.5185H13.9237H10.3999H9.89994V10.5185H10.3999H12.8634L12.3683 9.91808ZM12.5638 13.9004L12.8819 14.2861L12.1104 14.9223L11.7923 14.5365L10.6227 13.1181L9.94808 12.3H11.0084H14.5322H15.0322V13.3H14.5322H12.0688L12.5638 13.9004Z`,fill:`currentColor`},null,-1)]])}var tB=B(Qz,[[`render`,eB]]),nB={},rB={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function iB(e,t){return S(),V(`svg`,rB,[...t[0]||=[c(`path`,{d:`M12.8 9.86666C12.8 10.1613 12.683 10.444 12.4746 10.6523C12.2662 10.8607 11.9836 10.9778 11.6889 10.9778H5.02227L2.80005 13.2V4.31111C2.80005 4.01642 2.91711 3.73381 3.12549 3.52543C3.33386 3.31706 3.61647 3.2 3.91116 3.2H11.6889C11.9836 3.2 12.2662 3.31706 12.4746 3.52543C12.683 3.73381 12.8 4.01642 12.8 4.31111V9.86666Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var aB=B(nB,[[`render`,iB]]),oB={},sB={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function cB(e,t){return S(),V(`svg`,sB,[...t[0]||=[c(`path`,{d:`M6.36661 7L3.19995 10.1667L6.36661 13.3333`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1),c(`path`,{d:`M13.3333 3.2V7.63332C13.3333 8.3052 13.0664 8.94957 12.5913 9.42466C12.1162 9.89975 11.4718 10.1667 10.7999 10.1667H3.19995`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var lB=B(oB,[[`render`,cB]]),uB={},dB={width:`14`,height:`16`,viewBox:`0 0 14 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function fB(e,t){return S(),V(`svg`,dB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M6.14645 2.26779L5.79289 2.62134L6.14645 2.97489L8.26777 5.09621L8.97487 4.38911L7.63584 3.05007L7.94232 3.0735C10.8082 3.52528 13 6.00714 13 9C13 12.3137 10.3137 15 7 15C3.68629 15 1 12.3137 1 9C1 7.01498 1.96344 5.25507 3.45037 4.16209L2.85811 3.35635C1.12586 4.62964 0 6.68338 0 9C0 12.866 3.13401 16 7 16C10.866 16 14 12.866 14 9C14 5.49977 11.4314 2.60038 8.0763 2.08231C7.97978 2.0674 7.88263 2.05447 7.78489 2.04356L8.97487 0.853572L8.26777 0.146465L6.14645 2.26779Z`,fill:`currentColor`},null,-1)]])}var pB=B(uB,[[`render`,fB]]),mB={},hB={width:`17`,height:`16`,viewBox:`0 0 17 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function gB(e,t){return S(),V(`svg`,hB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M9.35355 2.26779L9.70711 2.62134L9.35355 2.97489L7.23223 5.09621L6.52513 4.38911L7.86416 3.05007L7.55768 3.0735C4.69176 3.52528 2.5 6.00714 2.5 9C2.5 12.3137 5.18629 15 8.5 15C11.8137 15 14.5 12.3137 14.5 9C14.5 7.01498 13.5366 5.25507 12.0496 4.16209L12.6419 3.35635C14.3741 4.62964 15.5 6.68338 15.5 9C15.5 12.866 12.366 16 8.5 16C4.63401 16 1.5 12.866 1.5 9C1.5 5.49977 4.06855 2.60038 7.4237 2.08231C7.52022 2.0674 7.61737 2.05447 7.71511 2.04356L6.52513 0.853572L7.23223 0.146465L9.35355 2.26779Z`,fill:`currentColor`},null,-1)]])}var _B=B(mB,[[`render`,gB]]),vB={},yB={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function bB(e,t){return S(),V(`svg`,yB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11.0429 3L14.0429 5V3.60029C15.6255 3.62241 16.9016 4.91218 16.9016 6.5C16.9016 6.94619 16.8011 7.37666 16.611 7.76704L16.5086 7.95877L17.5451 8.56346C17.9076 7.94208 18.1016 7.23449 18.1016 6.5C18.1016 4.30425 16.3755 2.51164 14.2062 2.40502L14.0429 2.40101V1L11.0429 3ZM14.1016 6.4H2.90156V17.6H14.1016V6.4ZM4.10221 16.4V7.6H12.9022V16.4H4.10221Z`,fill:`currentColor`},null,-1)]])}var xB=B(vB,[[`render`,bB]]),SB={},CB={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function wB(e,t){return S(),V(`svg`,CB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8.95855 3L5.95855 5V3.60029C4.37599 3.62241 3.0999 4.91218 3.0999 6.5C3.0999 6.94619 3.20041 7.37666 3.39043 7.76704L3.49285 7.95877L2.45634 8.56346C2.09384 7.94208 1.8999 7.23449 1.8999 6.5C1.8999 4.30425 3.62597 2.51164 5.79527 2.40502L5.95855 2.40101V1L8.95855 3ZM5.8999 6.4H17.0999V17.6H5.8999V6.4ZM15.8993 16.4V7.6H7.09926V16.4H15.8993Z`,fill:`currentColor`},null,-1)]])}var TB=B(SB,[[`render`,wB]]),EB={},DB={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function OB(e,t){return S(),V(`svg`,DB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M5.10986 13.9354C2.71178 11.5373 2.71178 7.64923 5.10986 5.25114C7.50795 2.85306 11.396 2.85306 13.7941 5.25114C16.1922 7.64923 16.1922 11.5373 13.7941 13.9354C11.396 16.3335 7.50795 16.3335 5.10986 13.9354ZM4.0492 4.19048C1.06533 7.17436 1.06533 12.0122 4.0492 14.996C6.85416 17.801 11.2974 17.9692 14.2988 15.5006L17.1989 18.4006C17.4918 18.6935 17.9666 18.6935 18.2595 18.4006C18.5524 18.1078 18.5524 17.6329 18.2595 17.34L15.3595 14.4399C17.8279 11.4385 17.6597 6.99539 14.8548 4.19048C11.8709 1.20661 7.03307 1.20661 4.0492 4.19048Z`,fill:`currentColor`},null,-1)]])}var kB=B(EB,[[`render`,OB]]),AB={},jB={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function MB(e,t){return S(),V(`svg`,jB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M5.11004 13.9353C2.71196 11.5372 2.71196 7.64917 5.11004 5.25108C7.50813 2.853 11.3962 2.853 13.7943 5.25108C16.1924 7.64917 16.1924 11.5372 13.7943 13.9353C11.3962 16.3334 7.50813 16.3334 5.11004 13.9353ZM4.04938 4.19042C1.06551 7.17429 1.06551 12.0121 4.04938 14.996C6.85434 17.8009 11.2976 17.9691 14.299 15.5005L17.1991 18.4006C17.4919 18.6935 17.9668 18.6935 18.2597 18.4006C18.5526 18.1077 18.5526 17.6328 18.2597 17.3399L15.3596 14.4399C17.8281 11.4384 17.6598 6.99532 14.8549 4.19042C11.8711 1.20655 7.03325 1.20655 4.04938 4.19042Z`,fill:`currentColor`},null,-1)]])}var NB=B(AB,[[`render`,MB]]),PB={},FB={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function IB(e,t){return S(),V(`svg`,FB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M4.33187 3.41643C4.74608 3.41643 5.08187 3.08064 5.08187 2.66643C5.08187 2.25221 4.74608 1.91643 4.33187 1.91643L1.66643 1.91643C1.25221 1.91643 0.916428 2.25221 0.916428 2.66643C0.916428 3.08064 1.25221 3.41643 1.66643 3.41643L2.35645 3.41643V3.8183L2.35645 15.3384V15.7404H1.66643C1.25221 15.7404 0.916428 16.0762 0.916428 16.4904C0.916428 16.9047 1.25221 17.2404 1.66643 17.2404H4.33187C4.74608 17.2404 5.08187 16.9047 5.08187 16.4904C5.08187 16.0762 4.74608 15.7404 4.33187 15.7404H3.85645V15.3384L3.85645 3.8183V3.41643H4.33187ZM7.30219 4.09613C7.10328 4.09613 6.91251 4.17515 6.77186 4.3158C6.63121 4.45645 6.55219 4.64722 6.55219 4.84613V12.8425C6.55219 13.1458 6.73492 13.4193 7.01518 13.5354C7.29543 13.6514 7.61802 13.5873 7.83252 13.3728L9.88684 11.3185L14.7821 16.2137C15.075 16.5066 15.5498 16.5066 15.8427 16.2137L18.6699 13.3866C18.8105 13.2459 18.8895 13.0551 18.8895 12.8562C18.8895 12.6573 18.8105 12.4665 18.6699 12.3259L13.7746 7.43067L15.8288 5.37646C16.0433 5.16196 16.1075 4.83937 15.9914 4.55912C15.8753 4.27886 15.6019 4.09613 15.2985 4.09613L7.30219 4.09613ZM9.35651 9.72747L8.05219 11.0318V5.59613L13.4879 5.59613L12.1836 6.90034C12.043 7.041 11.964 7.23176 11.964 7.43067C11.964 7.62959 12.043 7.82035 12.1836 7.961L17.0789 12.8562L15.3124 14.6227L10.4172 9.72747C10.1243 9.43458 9.64941 9.43458 9.35651 9.72747Z`,fill:`currentColor`},null,-1)]])}var LB=B(PB,[[`render`,IB]]),RB={},zB={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function BB(e,t){return S(),V(`svg`,zB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.70581 6.36601L10 2.73204L16.2943 6.36601V13.634L10 17.2679L3.70581 13.634V6.36601ZM9.43754 1.32475C9.78562 1.12379 10.2145 1.12379 10.5625 1.32475L17.2318 5.17523C17.5798 5.37619 17.7943 5.74758 17.7943 6.14951V13.8505C17.7943 14.2524 17.5798 14.6238 17.2318 14.8247L10.5625 18.6752C10.2145 18.8762 9.78561 18.8762 9.43754 18.6752L2.76831 14.8247C2.42023 14.6238 2.20581 14.2524 2.20581 13.8505V6.14951C2.20581 5.74758 2.42023 5.37619 2.76831 5.17523L9.43754 1.32475ZM11.875 9.99999C11.875 11.0355 11.0356 11.875 10 11.875C8.96451 11.875 8.12504 11.0355 8.12504 9.99999C8.12504 8.96445 8.96451 8.12499 10 8.12499C11.0356 8.12499 11.875 8.96445 11.875 9.99999ZM13.375 9.99999C13.375 11.8639 11.864 13.375 10 13.375C8.13608 13.375 6.62504 11.8639 6.62504 9.99999C6.62504 8.13603 8.13608 6.62499 10 6.62499C11.864 6.62499 13.375 8.13603 13.375 9.99999Z`,fill:`currentColor`},null,-1)]])}var VB=B(RB,[[`render`,BB]]),HB={},UB={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function WB(e,t){return S(),V(`svg`,UB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M12.0663 1.73124C11.8457 1.51066 11.4792 1.54371 11.3017 1.80019L8.50221 5.84387C8.47541 5.88258 8.43581 5.9106 8.39039 5.92299L4.70212 6.92888C4.62329 6.95038 4.56548 7.01679 4.55485 7.0978C4.49741 7.53536 4.28835 8.98634 3.86452 10.5C3.50509 11.7837 2.41361 14.2634 1.80715 15.6014C1.43791 15.4319 0.986657 15.4992 0.682542 15.8033C0.292017 16.1938 0.292017 16.827 0.682542 17.2175C1.07307 17.6081 1.70623 17.6081 2.09676 17.2175C2.40731 16.907 2.4709 16.443 2.28754 16.0696C3.47428 15.503 5.62248 14.5333 7.40006 14.0355C9.40855 13.4732 10.4209 13.3576 10.7798 13.3342C10.8716 13.3282 10.9526 13.266 10.9768 13.1773L11.9771 9.50966C11.9895 9.46424 12.0175 9.42465 12.0562 9.39785L16.0999 6.59838C16.3563 6.42081 16.3894 6.05431 16.1688 5.83373L12.0663 1.73124ZM7.84432 8.82278C7.79831 8.77678 7.72133 8.78626 7.68786 8.84204L5.83823 11.9248C5.78467 12.014 5.88616 12.1155 5.97543 12.062L9.05814 10.2123C9.11392 10.1789 9.1234 10.1019 9.0774 10.0559L7.84432 8.82278ZM15.5271 16.5933C15.4522 16.5981 15.3767 16.6005 15.3006 16.6005C15.2254 16.6005 15.1508 16.5982 15.0768 16.5935L13.531 19.2708C13.4525 19.4067 13.2553 19.4035 13.1814 19.2651L12.5771 18.1343C12.5412 18.0671 12.4703 18.0261 12.3942 18.0286L11.1127 18.0707C10.9559 18.0759 10.8545 17.9067 10.9329 17.7708L12.4536 15.1369C12.0425 14.5632 11.8006 13.8601 11.8006 13.1005C11.8006 11.1675 13.3676 9.60052 15.3006 9.60052C17.2336 9.60052 18.8006 11.1675 18.8006 13.1005C18.8006 13.8592 18.5592 14.5614 18.1491 15.1347L19.671 17.7708C19.7495 17.9067 19.6481 18.0759 19.4912 18.0707L18.2098 18.0286C18.1336 18.0261 18.0627 18.0671 18.0268 18.1343L17.4225 19.2651C17.3486 19.4035 17.1514 19.4067 17.0729 19.2708L15.5271 16.5933Z`,fill:`currentColor`},null,-1)]])}var GB=B(HB,[[`render`,WB]]),KB={},qB={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function JB(e,t){return S(),V(`svg`,qB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M7.15125 14.4995C8.30837 14.4995 9.2063 13.7913 9.7756 12.6064H16.4175C16.6582 12.6064 16.8433 12.4074 16.8433 12.1713C16.8433 11.9353 16.6582 11.7409 16.4175 11.7409H10.1089C10.3264 11.0327 10.4514 10.2135 10.4838 9.31556C10.7754 9.25076 11.0762 9.21836 11.3863 9.21836C11.4928 9.21836 11.5483 9.26465 11.5483 9.3387C11.5483 9.68584 11.3169 9.98207 11.3169 10.431C11.3169 10.8476 11.6224 11.1207 12.0528 11.1207C13.0572 11.1207 14.256 9.5655 14.5568 9.5655C14.816 9.5655 14.5661 10.9309 15.7464 10.9309C15.9824 10.9309 16.2601 10.8661 16.4684 10.7273C16.6212 10.6208 16.7276 10.4681 16.7276 10.269C16.7276 10.0098 16.5517 9.77841 16.2786 9.77841C16.1305 9.77841 15.9963 9.88024 15.8852 9.88024C15.5288 9.88024 15.876 8.38986 14.8346 8.38986C13.9783 8.38986 12.8628 9.75527 12.599 9.75527C12.5573 9.75527 12.5342 9.73676 12.5342 9.69047C12.5342 9.5655 12.636 9.36185 12.636 9.13968C12.636 8.54723 12.2102 8.20009 11.5205 8.20009C11.1595 8.20009 10.8078 8.23249 10.4699 8.29266C10.2986 5.78865 9.0443 3.93262 7.26696 3.93262C5.91544 3.93262 4.97122 4.96014 4.97122 6.39035C4.97122 7.95941 5.96635 9.26465 7.04479 10.1209C6.54028 10.6301 6.14686 11.1901 5.90155 11.7409H2.856C2.61532 11.7409 2.43018 11.9353 2.43018 12.1713C2.43018 12.4028 2.61994 12.6064 2.856 12.6064H5.64235C5.62847 12.7221 5.61921 12.8378 5.61921 12.9443C5.61921 13.8978 6.15612 14.4995 7.15125 14.4995ZM7.81306 9.45897C6.93828 8.78784 5.99406 7.74643 5.99406 6.38565C5.99406 5.55715 6.51708 4.95544 7.27153 4.95544C8.50271 4.95544 9.38213 6.50599 9.46544 8.56567C8.85911 8.78784 8.29906 9.09795 7.81306 9.45897ZM3.15682 10.9678L3.67521 10.4494L4.1936 10.9631C4.35097 11.1159 4.5824 11.1159 4.73977 10.9631C4.89251 10.8104 4.89251 10.5697 4.73977 10.417L4.22137 9.90321L4.73977 9.38482C4.89251 9.23208 4.89251 8.99602 4.73977 8.84328C4.58703 8.68591 4.34634 8.68591 4.1936 8.83865L3.67521 9.35705L3.15682 8.84328C2.99945 8.69054 2.7634 8.69054 2.61066 8.84328C2.45329 8.99139 2.45329 9.2367 2.61066 9.38945L3.12442 9.90321L2.61066 10.417C2.45329 10.5743 2.45792 10.8058 2.61066 10.9631C2.7634 11.1205 3.00408 11.1159 3.15682 10.9678ZM9.01653 11.7409H7.07256C7.28084 11.3984 7.5678 11.0374 7.91957 10.7041C7.99826 10.7504 8.07231 10.7875 8.14637 10.8245C8.23894 10.8754 8.32688 10.8939 8.41482 10.8939C8.67402 10.8939 8.89156 10.7041 8.89156 10.4542C8.89156 10.3153 8.84064 10.1858 8.71567 10.0747C8.94247 9.92193 9.18315 9.78307 9.44235 9.66736C9.38218 10.4496 9.23406 11.1531 9.01653 11.7409ZM7.27156 13.481C6.88739 13.481 6.69299 13.231 6.69299 12.8423C6.69299 12.7682 6.70225 12.6895 6.71614 12.6062H8.59068C8.22965 13.1616 7.77606 13.481 7.27156 13.481Z`,fill:`currentColor`},null,-1),c(`rect`,{x:`10.625`,y:`10.625`,width:`7.5`,height:`7.5`,rx:`3.64583`,fill:`#BF3030`},null,-1),c(`path`,{d:`M15.625 13.125L13.125 15.625`,stroke:`white`,"stroke-width":`0.9375`,"stroke-linecap":`square`,"stroke-linejoin":`round`},null,-1),c(`path`,{d:`M13.125 13.125L15.625 15.625`,stroke:`white`,"stroke-width":`0.9375`,"stroke-linecap":`square`,"stroke-linejoin":`round`},null,-1)]])}var YB=B(KB,[[`render`,JB]]),XB={},ZB={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function QB(e,t){return S(),V(`svg`,ZB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M7.15125 14.4995C8.30837 14.4995 9.2063 13.7913 9.7756 12.6064H16.4175C16.6582 12.6064 16.8433 12.4074 16.8433 12.1713C16.8433 11.9353 16.6582 11.7409 16.4175 11.7409H10.1089C10.3264 11.0327 10.4514 10.2135 10.4838 9.31556C10.7754 9.25076 11.0762 9.21836 11.3863 9.21836C11.4928 9.21836 11.5483 9.26465 11.5483 9.3387C11.5483 9.68584 11.3169 9.98207 11.3169 10.431C11.3169 10.8476 11.6224 11.1207 12.0528 11.1207C13.0572 11.1207 14.256 9.5655 14.5568 9.5655C14.816 9.5655 14.5661 10.9309 15.7464 10.9309C15.9824 10.9309 16.2601 10.8661 16.4684 10.7273C16.6212 10.6208 16.7276 10.4681 16.7276 10.269C16.7276 10.0098 16.5517 9.77841 16.2786 9.77841C16.1305 9.77841 15.9963 9.88024 15.8852 9.88024C15.5288 9.88024 15.876 8.38986 14.8346 8.38986C13.9783 8.38986 12.8628 9.75527 12.599 9.75527C12.5573 9.75527 12.5342 9.73676 12.5342 9.69047C12.5342 9.5655 12.636 9.36185 12.636 9.13968C12.636 8.54723 12.2102 8.20009 11.5205 8.20009C11.1595 8.20009 10.8078 8.23249 10.4699 8.29266C10.2986 5.78865 9.0443 3.93262 7.26696 3.93262C5.91544 3.93262 4.97122 4.96014 4.97122 6.39035C4.97122 7.95941 5.96635 9.26465 7.04479 10.1209C6.54028 10.6301 6.14686 11.1901 5.90155 11.7409H2.856C2.61532 11.7409 2.43018 11.9353 2.43018 12.1713C2.43018 12.4028 2.61994 12.6064 2.856 12.6064H5.64235C5.62847 12.7221 5.61921 12.8378 5.61921 12.9443C5.61921 13.8978 6.15612 14.4995 7.15125 14.4995ZM7.81306 9.45897C6.93828 8.78784 5.99406 7.74643 5.99406 6.38565C5.99406 5.55715 6.51708 4.95544 7.27153 4.95544C8.50271 4.95544 9.38213 6.50599 9.46544 8.56567C8.85911 8.78784 8.29906 9.09795 7.81306 9.45897ZM3.15682 10.9678L3.67521 10.4494L4.1936 10.9631C4.35097 11.1159 4.5824 11.1159 4.73977 10.9631C4.89251 10.8104 4.89251 10.5697 4.73977 10.417L4.22137 9.90321L4.73977 9.38482C4.89251 9.23208 4.89251 8.99602 4.73977 8.84328C4.58703 8.68591 4.34634 8.68591 4.1936 8.83865L3.67521 9.35705L3.15682 8.84328C2.99945 8.69054 2.7634 8.69054 2.61066 8.84328C2.45329 8.99139 2.45329 9.2367 2.61066 9.38945L3.12442 9.90321L2.61066 10.417C2.45329 10.5743 2.45792 10.8058 2.61066 10.9631C2.7634 11.1205 3.00408 11.1159 3.15682 10.9678ZM9.01653 11.7409H7.07256C7.28084 11.3984 7.5678 11.0374 7.91957 10.7041C7.99826 10.7504 8.07231 10.7875 8.14637 10.8245C8.23894 10.8754 8.32688 10.8939 8.41482 10.8939C8.67402 10.8939 8.89156 10.7041 8.89156 10.4542C8.89156 10.3153 8.84064 10.1858 8.71567 10.0747C8.94247 9.92193 9.18315 9.78307 9.44235 9.66736C9.38218 10.4496 9.23406 11.1531 9.01653 11.7409ZM7.27156 13.481C6.88739 13.481 6.69299 13.231 6.69299 12.8423C6.69299 12.7682 6.70225 12.6895 6.71614 12.6062H8.59068C8.22965 13.1616 7.77606 13.481 7.27156 13.481Z`,fill:`currentColor`},null,-1),c(`rect`,{x:`10.625`,y:`10.625`,width:`7.5`,height:`7.5`,rx:`3.64583`,fill:`#FFA400`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M14.625 15.247V15.3482H13.9881V15.247C13.9881 15.0268 14.0238 14.8363 14.1071 14.6815C14.1845 14.5149 14.4107 14.2708 14.7798 13.9435L14.881 13.8304C14.9881 13.6935 15.0476 13.5506 15.0476 13.3958C15.0476 13.1875 14.9881 13.0268 14.875 12.9077C14.756 12.7887 14.5833 12.7292 14.369 12.7292C14.1012 12.7292 13.9048 12.8125 13.7857 12.9851C13.6786 13.128 13.625 13.3304 13.625 13.5923H13C13 13.1577 13.125 12.8185 13.375 12.5685C13.625 12.3125 13.9702 12.1875 14.4107 12.1875C14.7917 12.1875 15.1012 12.2887 15.3393 12.503C15.5774 12.7113 15.6964 12.997 15.6964 13.3542C15.6964 13.6458 15.619 13.8899 15.4702 14.0804C15.4167 14.1458 15.25 14.3006 14.9702 14.5446C14.8571 14.6399 14.7738 14.747 14.7202 14.8542C14.6548 14.9732 14.625 15.1042 14.625 15.247ZM14.6131 16.4017C14.5298 16.4791 14.4227 16.5207 14.3036 16.5207C14.1846 16.5207 14.0774 16.4791 13.9941 16.3957C13.9108 16.3124 13.8691 16.2112 13.8691 16.0922C13.8691 15.9672 13.9108 15.866 13.9941 15.7886C14.0774 15.7053 14.1846 15.6696 14.3036 15.6696C14.4286 15.6696 14.5358 15.7053 14.6191 15.7886C14.7024 15.866 14.7441 15.9672 14.7441 16.0922C14.7441 16.2172 14.6965 16.3184 14.6131 16.4017Z`,fill:`white`},null,-1)]])}var $B=B(XB,[[`render`,QB]]),eV={},tV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function nV(e,t){return S(),V(`svg`,tV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M7.15125 14.4995C8.30837 14.4995 9.2063 13.7913 9.7756 12.6064H16.4175C16.6582 12.6064 16.8433 12.4074 16.8433 12.1713C16.8433 11.9353 16.6582 11.7409 16.4175 11.7409H10.1089C10.3264 11.0327 10.4514 10.2135 10.4838 9.31556C10.7754 9.25076 11.0762 9.21836 11.3863 9.21836C11.4928 9.21836 11.5483 9.26465 11.5483 9.3387C11.5483 9.68584 11.3169 9.98207 11.3169 10.431C11.3169 10.8476 11.6224 11.1207 12.0528 11.1207C13.0572 11.1207 14.256 9.5655 14.5568 9.5655C14.816 9.5655 14.5661 10.9309 15.7464 10.9309C15.9824 10.9309 16.2601 10.8661 16.4684 10.7273C16.6212 10.6208 16.7276 10.4681 16.7276 10.269C16.7276 10.0098 16.5517 9.77841 16.2786 9.77841C16.1305 9.77841 15.9963 9.88024 15.8852 9.88024C15.5288 9.88024 15.876 8.38986 14.8346 8.38986C13.9783 8.38986 12.8628 9.75527 12.599 9.75527C12.5573 9.75527 12.5342 9.73676 12.5342 9.69047C12.5342 9.5655 12.636 9.36185 12.636 9.13968C12.636 8.54723 12.2102 8.20009 11.5205 8.20009C11.1595 8.20009 10.8078 8.23249 10.4699 8.29266C10.2986 5.78865 9.0443 3.93262 7.26696 3.93262C5.91544 3.93262 4.97122 4.96014 4.97122 6.39035C4.97122 7.95941 5.96635 9.26465 7.04479 10.1209C6.54028 10.6301 6.14686 11.1901 5.90155 11.7409H2.856C2.61532 11.7409 2.43018 11.9353 2.43018 12.1713C2.43018 12.4028 2.61994 12.6064 2.856 12.6064H5.64235C5.62847 12.7221 5.61921 12.8378 5.61921 12.9443C5.61921 13.8978 6.15612 14.4995 7.15125 14.4995ZM7.81306 9.45897C6.93828 8.78784 5.99406 7.74643 5.99406 6.38565C5.99406 5.55715 6.51708 4.95544 7.27153 4.95544C8.50271 4.95544 9.38213 6.50599 9.46544 8.56567C8.85911 8.78784 8.29906 9.09795 7.81306 9.45897ZM3.15682 10.9678L3.67521 10.4494L4.1936 10.9631C4.35097 11.1159 4.5824 11.1159 4.73977 10.9631C4.89251 10.8104 4.89251 10.5697 4.73977 10.417L4.22137 9.90321L4.73977 9.38482C4.89251 9.23208 4.89251 8.99602 4.73977 8.84328C4.58703 8.68591 4.34634 8.68591 4.1936 8.83865L3.67521 9.35705L3.15682 8.84328C2.99945 8.69054 2.7634 8.69054 2.61066 8.84328C2.45329 8.99139 2.45329 9.2367 2.61066 9.38945L3.12442 9.90321L2.61066 10.417C2.45329 10.5743 2.45792 10.8058 2.61066 10.9631C2.7634 11.1205 3.00408 11.1159 3.15682 10.9678ZM9.01653 11.7409H7.07256C7.28084 11.3984 7.5678 11.0374 7.91957 10.7041C7.99826 10.7504 8.07231 10.7875 8.14637 10.8245C8.23894 10.8754 8.32688 10.8939 8.41482 10.8939C8.67402 10.8939 8.89156 10.7041 8.89156 10.4542C8.89156 10.3153 8.84064 10.1858 8.71567 10.0747C8.94247 9.92193 9.18315 9.78307 9.44235 9.66736C9.38218 10.4496 9.23406 11.1531 9.01653 11.7409ZM7.27156 13.481C6.88739 13.481 6.69299 13.231 6.69299 12.8423C6.69299 12.7682 6.70225 12.6895 6.71614 12.6062H8.59068C8.22965 13.1616 7.77606 13.481 7.27156 13.481Z`,fill:`currentColor`},null,-1),c(`rect`,{x:`10.625`,y:`10.625`,width:`7.5`,height:`7.5`,rx:`3.64583`,fill:`#30BF83`},null,-1),c(`path`,{d:`M12.8125 14.6875L14.2969 15.625L16.25 13.125`,stroke:`white`,"stroke-width":`0.9375`},null,-1)]])}var rV=B(eV,[[`render`,nV]]),iV={},aV={width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function oV(e,t){return S(),V(`svg`,aV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M6 4H14L18 8.2V20H6V4Z`,fill:`currentColor`},null,-1)]])}var sV=B(iV,[[`render`,oV]]),cV={},lV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function uV(e,t){return S(),V(`svg`,lV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13 14H13.9922L12.8923 11.25H7.10772L6.00776 14H7V15H3V14H4.39223L9.30364 1.72146H10.6964L15.6078 14H17V15H13V14ZM7.5077 10.25H12.4923L10 4.019L7.5077 10.25Z`,fill:`currentColor`},null,-1),c(`path`,{d:`M5.08299 17.9328L5.22219 18.0199C6.28806 18.7527 7.65967 18.7912 8.75772 18.1356L8.93809 18.0199C9.52914 17.6135 10.2863 17.5845 10.9011 17.9328L11.0403 18.0199C12.1062 18.7527 13.4778 18.7912 14.5759 18.1356L14.7562 18.0199C15.3473 17.6135 16.1045 17.5845 16.7193 17.9328L16.8585 18.0199C17.0638 18.161 17.2824 18.2777 17.5107 18.3686C17.8854 18.5177 18.3064 18.3253 18.451 17.9389C18.5956 17.5525 18.4091 17.1183 18.0344 16.9692C17.9483 16.9349 17.8647 16.8942 17.784 16.8471L17.6653 16.7718C16.5994 16.039 15.2278 16.0004 14.1298 16.6561L13.9494 16.7718C13.3584 17.1781 12.6011 17.2072 11.9864 16.8589L11.8472 16.7718C10.7813 16.039 9.40969 16.0004 8.31164 16.6561L8.13126 16.7718C7.54022 17.1781 6.78301 17.2072 6.16823 16.8589L6.02902 16.7718C4.96316 16.039 3.59155 16.0004 2.4935 16.6561L2.31312 16.7718C2.23868 16.823 2.16125 16.8684 2.08133 16.908L1.95963 16.9629C1.5862 17.1154 1.40339 17.5513 1.55131 17.9364C1.69922 18.3215 2.12186 18.51 2.49529 18.3575C2.64087 18.298 2.78242 18.228 2.91898 18.1478L3.11995 18.0199C3.711 17.6135 4.46821 17.5845 5.08299 17.9328Z`,fill:`#FF0000`},null,-1)]])}var dV=B(cV,[[`render`,uV]]),fV={},pV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function mV(e,t){return S(),V(`svg`,pV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.6964 3L14.6078 12.7785H15.6004V13.7785H12.4004V12.7785H12.9923L12.1923 10.7785H7.80779L7.00783 12.7785H7.60039V13.7785H4.40039V12.7785H5.39229L9.30371 3H10.6964ZM10.0001 5.29754L11.7924 9.77853H8.20777L10.0001 5.29754ZM5.22219 16.9266L5.08299 16.8542C4.46821 16.565 3.711 16.5891 3.11995 16.9266L2.91898 17.0328C2.78242 17.0994 2.64087 17.1575 2.49529 17.2069C2.12186 17.3336 1.69922 17.177 1.55131 16.8572C1.40339 16.5374 1.5862 16.1755 1.95963 16.0488L2.08133 16.0032C2.16125 15.9703 2.23868 15.9326 2.31312 15.8901L2.4935 15.794C3.59155 15.2495 4.96316 15.2815 6.02902 15.8901L6.16823 15.9624C6.78301 16.2516 7.54022 16.2275 8.13126 15.8901L8.31164 15.794C9.40969 15.2495 10.7813 15.2815 11.8472 15.8901L11.9864 15.9624C12.6011 16.2516 13.3584 16.2275 13.9494 15.8901L14.1298 15.794C15.2278 15.2495 16.5994 15.2815 17.6653 15.8901L17.784 15.9526C17.8647 15.9917 17.9483 16.0256 18.0344 16.054C18.4091 16.1778 18.5956 16.5384 18.451 16.8593C18.3064 17.1802 17.8854 17.34 17.5107 17.2161C17.2824 17.1407 17.0638 17.0438 16.8585 16.9266L16.7193 16.8542C16.1045 16.565 15.3473 16.5891 14.7562 16.9266L14.5759 17.0226C13.4778 17.5671 12.1062 17.5351 11.0403 16.9266L10.9011 16.8542C10.2863 16.565 9.52914 16.5891 8.93809 16.9266L8.75772 17.0226C7.65967 17.5671 6.28806 17.5351 5.22219 16.9266Z`,fill:`currentColor`},null,-1)]])}var hV=B(fV,[[`render`,mV]]),gV={},_V={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function vV(e,t){return S(),V(`svg`,_V,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11.982 9.97521C13.1875 9.28619 14 7.98798 14 6.5C14 4.29086 12.2091 2.5 10 2.5C7.79086 2.5 6 4.29086 6 6.5C6 7.98798 6.81248 9.2862 8.018 9.97522C8.10745 10.1032 8.5 10.6962 8.5 11.25C8.5 11.875 8 12.5 8 12.5H2V14H18V12.5H12C12 12.5 11.5 11.875 11.5 11.25C11.5 10.6962 11.8926 10.1032 11.982 9.97521ZM18 17.5V16H2V17.5H18Z`,fill:`currentColor`},null,-1)]])}var yV=B(gV,[[`render`,vV]]),bV={},xV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function SV(e,t){return S(),V(`svg`,xV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M14.3494 15.3928H13.2139V16.3928H17.4996V15.3928H15.9649L10.6964 2.22146H9.30364L4.03508 15.3929H2.5V16.3929H6.78571V15.3929H5.65062L10 4.519L14.3494 15.3928Z`,fill:`currentColor`},null,-1),c(`rect`,{y:`10.5`,width:`20`,height:`1.5`,fill:`#FF0000`},null,-1)]])}var CV=B(bV,[[`render`,SV]]),wV={},TV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function EV(e,t){return S(),V(`svg`,TV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.696 3L13.8882 10.6785H18V12.1785H14.5118L15.8006 15.2785H17V16.2785H13V15.2785H14.1738L12.8773 12.1785H7.12195L5.82551 15.2785H7V16.2785H3V15.2785H4.19873L5.48749 12.1785H2V10.6785H6.11109L9.30329 3H10.696ZM9.99965 5.29754L12.25 10.6785H7.74927L9.99965 5.29754Z`,fill:`currentColor`},null,-1)]])}var DV=B(wV,[[`render`,EV]]),OV={},kV={width:`20`,height:`21`,viewBox:`0 0 20 21`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function AV(e,t){return S(),V(`svg`,kV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10 18C14.1421 18 17.5 14.6421 17.5 10.5C17.5 6.35786 14.1421 3 10 3C5.85786 3 2.5 6.35786 2.5 10.5C2.5 14.6421 5.85786 18 10 18ZM9.74283 13.4801L13.9095 8.48014L12.7572 7.51986L9.11627 11.8889L7.197 9.96967L6.13634 11.0303L8.63634 13.5303L9.21707 14.1111L9.74283 13.4801Z`,fill:`#3CCD75`},null,-1)]])}var jV=B(OV,[[`render`,AV]]),MV={},NV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function PV(e,t){return S(),V(`svg`,NV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M16.75 2.75V6H15.25V4.25H10.75V16.25H12.3337V17.75H7.66699V16.25H9.25V4.25H4.75V6H3.25V2.75H16.75Z`,fill:`currentColor`},null,-1)]])}var FV=B(MV,[[`render`,PV]]),IV={},LV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function RV(e,t){return S(),V(`svg`,LV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0.25 2.25H19.75V17.75H0.25V2.25ZM18.25 11.75V3.75H1.75V16.25H13.75L18.25 11.75ZM11.25 5.5V8H9.75V7H8V13H8.75V14.5H5.75V13H6.5V7H4.75V8H3.25V5.5H11.25Z`,fill:`currentColor`},null,-1)]])}var zV=B(IV,[[`render`,RV]]),BV={},VV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function HV(e,t){return S(),V(`svg`,VV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M18 6.5V5H2V6.5H18ZM15 11V9.5H5V11H15ZM18 14V15.5H2V14H18Z`,fill:`currentColor`},null,-1)]])}var UV=B(BV,[[`render`,HV]]),WV={},GV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function KV(e,t){return S(),V(`svg`,GV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M15 6.5V5H2V6.5H15ZM18 11V9.5H2V11H18ZM12 14V15.5H2V14H12Z`,fill:`currentColor`},null,-1)]])}var qV=B(WV,[[`render`,KV]]),JV={},YV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function XV(e,t){return S(),V(`svg`,YV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M18 6.5V5H5V6.5H18Z`,fill:`currentColor`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M18 11V9.5H2V11H18Z`,fill:`currentColor`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M18 15.5V14H8V15.5H18Z`,fill:`currentColor`},null,-1)]])}var ZV=B(JV,[[`render`,XV]]),QV={},$V={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function eH(e,t){return S(),V(`svg`,$V,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.4375 1.4375H2.6875V2.1875V17.8125V18.5625H3.4375H16.5612H17.3112V17.8125V10V7.07031V6.77538L17.1103 6.55944L12.5675 1.67663L12.345 1.4375H12.0184H9.99936H3.4375ZM4.1875 17.0625V2.9375H9.99936H10.5V7.5V8.25H11.25H15.8112V10V17.0625H4.1875ZM15.2388 6.75L12 3.2688V6.75H15.2388Z`,fill:`currentColor`},null,-1)]])}var tH=B(QV,[[`render`,eH]]),nH={},rH={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function iH(e,t){return S(),V(`svg`,rH,[...t[0]||=[c(`path`,{d:`M7.65967 5.07935C8.26189 5.09231 8.57048 5.18327 8.52002 6.68677C8.52002 6.68677 8.4187 11.3074 8.50537 12.1135C8.59333 12.3703 9.43618 11.7875 9.55518 11.6946C9.67354 11.6026 10.7526 10.6278 10.7651 10.6165C10.7588 10.6355 9.86555 13.3126 8.15186 13.9104C7.53909 14.1239 6.90454 14.0208 6.81201 13.3899L6.77979 13.0784C6.72254 12.2825 6.78934 11.0767 6.81201 10.801L6.92627 7.24536C6.94698 6.91536 6.75456 6.99965 6.62256 7.06177C5.98204 7.36721 5.23486 7.92896 5.23486 7.92896C5.23486 7.92896 5.68979 6.69841 6.12842 6.18384C6.45259 5.73154 7.14849 5.12723 7.65967 5.07935ZM7.75244 1.98853C7.90053 1.98853 8.04726 2.0178 8.18408 2.07446C8.32091 2.13114 8.44557 2.21388 8.55029 2.3186C8.65502 2.42333 8.73776 2.54798 8.79443 2.68481C8.85111 2.82164 8.88037 2.96835 8.88037 3.11646C8.88034 3.41553 8.76178 3.70282 8.55029 3.91431C8.3388 4.12574 8.0515 4.24438 7.75244 4.24438C7.4536 4.24435 7.167 4.12549 6.95557 3.91431C6.74408 3.70282 6.62454 3.41553 6.62451 3.11646C6.62451 2.96839 6.6538 2.82162 6.71045 2.68481C6.76713 2.54798 6.85084 2.42333 6.95557 2.3186C7.06017 2.21409 7.1842 2.13107 7.3208 2.07446C7.45759 2.0178 7.60438 1.98854 7.75244 1.98853Z`,fill:`#999999`},null,-1)]])}var aH=B(nH,[[`render`,iH]]),oH={},sH={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function cH(e,t){return S(),V(`svg`,sH,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M6.01025 4L11 8.0041L6 12L6.01025 4Z`,fill:`currentColor`},null,-1)]])}var lH=B(oH,[[`render`,cH]]),uH={},dH={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function fH(e,t){return S(),V(`svg`,dH,[...t[0]||=[c(`rect`,{y:`17`,width:`20`,height:`1.5`,fill:`#FF0000`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13 14H13.9922L12.8923 11.25H7.10772L6.00776 14H7V15H3V14H4.39223L9.30364 1.72146H10.6964L15.6078 14H17V15H13V14ZM7.5077 10.25H12.4923L10 4.019L7.5077 10.25Z`,fill:`currentColor`},null,-1)]])}var pH=B(uH,[[`render`,fH]]),mH={},hH={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function gH(e,t){return S(),V(`svg`,hH,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.6964 3L14.6078 12.7785H15.6004V13.7785H12.4004V12.7785H12.9923L12.1923 10.7785H7.80779L7.00783 12.7785H7.60039V13.7785H4.40039V12.7785H5.39229L9.30371 3H10.6964ZM10.0001 5.29754L11.7924 9.77853H8.20777L10.0001 5.29754ZM18 15.2785H2V16.7785H18V15.2785Z`,fill:`currentColor`},null,-1)]])}var _H=B(mH,[[`render`,gH]]),vH={},yH={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function bH(e,t){return S(),V(`svg`,yH,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.96069 10.2896L2.96069 16.2896L2.96069 17.0396L3.71069 17.0396L9.71069 17.0396L9.71069 15.5396L5.52124 15.5396L9.71582 11.345L8.65516 10.2843L4.46069 14.4788L4.46069 10.2896L2.96069 10.2896Z`,fill:`currentColor`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M17.0393 9.71045L17.0393 3.71045L17.0393 2.96045L16.2893 2.96045L10.2893 2.96045L10.2893 4.46045L14.4788 4.46045L10.2842 8.65503L11.3448 9.71569L15.5393 5.52122L15.5393 9.71045L17.0393 9.71045Z`,fill:`currentColor`},null,-1)]])}var xH=B(vH,[[`render`,bH]]),SH={},CH={width:`10`,height:`11`,viewBox:`0 0 10 11`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function wH(e,t){return S(),V(`svg`,CH,[...t[0]||=[c(`path`,{d:`M5 10.1978C4.7207 10.1978 4.52197 10.0044 4.52197 9.7251V2.65137L4.56494 1.50195L2.95361 3.26904L1.729 4.47217C1.64844 4.55811 1.51953 4.60107 1.39062 4.60107C1.12207 4.60107 0.928711 4.39697 0.928711 4.13379C0.928711 4.00488 0.977051 3.89209 1.0791 3.78467L4.64014 0.212891C4.74219 0.105469 4.86572 0.0517578 5 0.0517578C5.13428 0.0517578 5.25781 0.105469 5.35986 0.212891L8.92627 3.78467C9.02832 3.89209 9.07129 4.00488 9.07129 4.13379C9.07129 4.39697 8.87793 4.60107 8.60938 4.60107C8.48047 4.60107 8.35693 4.55811 8.271 4.47217L7.04639 3.26904L5.44043 1.50732L5.47803 2.65137V9.7251C5.47803 10.0044 5.2793 10.1978 5 10.1978Z`,fill:`currentColor`},null,-1)]])}var TH=B(SH,[[`render`,wH]]),EH={},DH={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function OH(e,t){return S(),V(`svg`,DH,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M12.5663 0.846478C12.3457 0.625895 11.9792 0.658942 11.8017 0.915427L9.00221 4.95911C8.97541 4.99782 8.93581 5.02583 8.89039 5.03822L5.20212 6.04411C5.12329 6.06561 5.06548 6.13203 5.05485 6.21304C4.99741 6.65059 4.78835 8.10157 4.36452 9.61523C4.00509 10.8989 2.91361 13.3787 2.30714 14.7167C1.93791 14.5472 1.48666 14.6144 1.18254 14.9186C0.792017 15.3091 0.792017 15.9423 1.18254 16.3328C1.57307 16.7233 2.20623 16.7233 2.59676 16.3328C2.90731 16.0222 2.9709 15.5582 2.78754 15.1848C3.97427 14.6183 6.12247 13.6485 7.90006 13.1508C9.90855 12.5884 10.9209 12.4728 11.2798 12.4494C11.3716 12.4434 11.4526 12.3813 11.4768 12.2925L12.4771 8.6249C12.4895 8.57948 12.5175 8.53988 12.5562 8.51308L16.5999 5.71361C16.8563 5.53604 16.8894 5.16954 16.6688 4.94896L12.5663 0.846478ZM8.34417 7.93803C8.29817 7.89203 8.22119 7.90151 8.18771 7.95729L6.33809 11.04C6.28453 11.1293 6.38602 11.2308 6.47529 11.1772L9.558 9.32758C9.61378 9.2941 9.62326 9.21712 9.57726 9.17112L8.34417 7.93803ZM12.3814 12.3738C12.3814 12.1505 12.5293 11.9543 12.744 11.893L15.8033 11.0189C15.8931 10.9933 15.9883 10.9933 16.078 11.0189L19.1374 11.893C19.352 11.9543 19.5 12.1505 19.5 12.3738V15.913C19.5 16.0117 19.4713 16.1076 19.4146 16.1884C19.0137 16.7602 17.2809 19.1153 15.9407 19.1153C14.6004 19.1153 12.8677 16.7602 12.4667 16.1884C12.41 16.1076 12.3814 16.0117 12.3814 15.913V12.3738ZM14.9114 15.9254L14.9114 15.9255L15.6305 16.6446L17.9549 14.3201L17.2358 13.601L15.6305 15.2063L14.6993 14.2752L13.9802 14.9943L14.9114 15.9254Z`,fill:`currentColor`},null,-1)]])}var kH=B(EH,[[`render`,OH]]),AH={},jH={width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function MH(e,t){return S(),V(`svg`,jH,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.5 4V20H20.5V4H3.5ZM4 12.5H20V11.5H4V12.5ZM11.4511 9.23649L11.1107 10.25H10.5L11.854 6.5H12.4828L13.8368 10.25H13.2235L12.8857 9.23649H11.4511ZM11.6071 8.76871H12.7297L12.1892 7.15748H12.145L11.6071 8.76871ZM13.8222 16.3923C13.8222 17.0498 13.3415 17.45 12.5411 17.45H11V13.7H12.5073C13.2115 13.7 13.6351 14.0586 13.6351 14.633V14.6382C13.6351 15.028 13.3467 15.3788 12.9777 15.4412V15.4854C13.4844 15.5399 13.8222 15.8986 13.8222 16.3871V16.3923ZM11.5821 15.2956H12.2734C12.7879 15.2956 13.0556 15.1033 13.0556 14.7395V14.7343C13.0556 14.3809 12.8035 14.1756 12.3721 14.1756H11.5821V15.2956ZM12.4241 16.9744H11.5821V15.74H12.3903C12.9387 15.74 13.2271 15.9479 13.2271 16.3507V16.3559C13.2271 16.7587 12.9491 16.9744 12.4241 16.9744Z`,fill:`currentColor`},null,-1)]])}var NH=B(AH,[[`render`,MH]]),PH=[`aria-label`],FH=[`href`],IH=B({__name:`Icon`,props:{glyph:{type:String,required:!0},className:{type:String,default:``},size:{type:[String,Number],default:`20px`},color:{type:String,default:`currentColor`},ariaLabel:{type:String,default:``}},setup(e){let t=e,n=Object.assign({"./Accepted.vue":pA,"./AddDigitalSign.vue":_A,"./AddElectronicSign.vue":xA,"./AddImage.vue":TA,"./AddText.vue":kA,"./Annotation.vue":NA,"./ArcTool.vue":LA,"./Arrow.vue":hk,"./ArrowDown.vue":JT,"./ArrowDownA.vue":$b,"./ArrowNext.vue":VA,"./ArrowPrev.vue":GA,"./ArrowTool.vue":YA,"./Bold.vue":$A,"./BringBackward.vue":rj,"./BringForward.vue":sj,"./BringToBack.vue":dj,"./BringToFront.vue":hj,"./Callout.vue":yj,"./Cancelled.vue":Cj,"./CharacterSpacing.vue":Dj,"./CheckBoxIcon.vue":jj,"./Checkbox.vue":QC,"./CheckboxColor.vue":Fj,"./Circle.vue":zj,"./Circled.vue":Uj,"./Close.vue":Fe,"./CloseA.vue":Le,"./CloseB.vue":Ne,"./CloseModal.vue":qj,"./Cloud.vue":Zj,"./Colorful.vue":tM,"./ComboBoxIcon.vue":aM,"./Completed.vue":lM,"./CopyPage.vue":lD,"./CopyText.vue":aA,"./CreateSignField.vue":pM,"./CropImage.vue":_M,"./CropPageIcon.vue":xM,"./Danger.vue":TM,"./Dark.vue":kM,"./DecreaseFont.vue":NM,"./Decryption.vue":LM,"./DeletePage.vue":xD,"./DocumentPage.vue":VM,"./DoublePage.vue":GM,"./DownArrow.vue":YM,"./Download.vue":$M,"./EditBack.vue":rN,"./EditGo.vue":sN,"./EllipseTool.vue":dN,"./EmptyInput.vue":hN,"./EmptyStamp.vue":xw,"./EmptyStampDark.vue":uw,"./Encryption.vue":yN,"./EraserIcon.vue":CN,"./Export.vue":DN,"./ExportImage.vue":jN,"./ExtractPage.vue":aD,"./EyesInvisible.vue":FN,"./EyesVisible.vue":zN,"./Failed.vue":oT,"./FailedIcon.vue":UN,"./FileFolder.vue":WT,"./FillBlack.vue":qN,"./FillFormIcon.vue":ZN,"./FillWhite.vue":tP,"./Flatten.vue":aP,"./FlipX.vue":lP,"./FlipY.vue":pP,"./Fold.vue":_P,"./Fullscreen.vue":xP,"./HeadArrow.vue":TP,"./HeadButt.vue":kP,"./HeadCircle.vue":NP,"./HeadClose.vue":LP,"./HeadDiamond.vue":VP,"./HeadLine.vue":GP,"./HeadRclose.vue":YP,"./HeadRopen.vue":$P,"./HeadSlash.vue":rF,"./HeadSquare.vue":sF,"./Help.vue":dF,"./Highlight.vue":hF,"./HightlightGray.vue":yF,"./HollowLight.vue":CF,"./HorizontalScrolling.vue":DF,"./Image.vue":jF,"./Img.vue":ow,"./ImgDark.vue":FF,"./Import.vue":zF,"./IncreaseFont.vue":UF,"./Ink.vue":qF,"./InputClose.vue":ZF,"./InsertPage.vue":kD,"./Italic.vue":tI,"./Language.vue":aI,"./LayerEyesInvisible.vue":lI,"./LayerEyesVisible.vue":pI,"./Layers.vue":_I,"./Light.vue":xI,"./LineSpacing.vue":TI,"./LineTool.vue":Nb,"./LinestyleCloudy-1.vue":kI,"./LinestyleCloudy-2..vue":NI,"./LinestyleDash-10-10..vue":LI,"./LinestyleDash-2-2-10-2..vue":VI,"./LinestyleDash-4-4..vue":GI,"./LinestyleDash-6-2-1-2..vue":YI,"./LinestyleDash-6-2-2-2..vue":$I,"./LinestyleDash-6-6..vue":rL,"./LinestyleSolid-line..vue":sL,"./Link.vue":dL,"./ListBoxIcon.vue":hL,"./Loading.vue":uT,"./Lock.vue":yL,"./LockSmall.vue":CL,"./Lockup.vue":DL,"./Logo.vue":jL,"./MeasureArc.vue":FL,"./MeasureCircle.vue":zL,"./MeasureCurve.vue":UL,"./MeasureLine.vue":qL,"./MeasureMultiline.vue":ZL,"./MeasurePolygon.vue":tR,"./MeasureRectangle.vue":aR,"./MergePage.vue":TD,"./Minus.vue":lR,"./More.vue":pR,"./MoreA.vue":_R,"./MoreB.vue":xR,"./MoreC.vue":TR,"./MovePage.vue":ZE,"./Next.vue":kR,"./NoColor.vue":_x,"./None.vue":NR,"./Note.vue":LR,"./OpenFile.vue":VR,"./Outline.vue":GR,"./Pagecover.vue":YR,"./Pageset.vue":$R,"./PanelRight.vue":rz,"./Panelleft.vue":sz,"./Pantool.vue":dz,"./ParagraphSpacing.vue":hz,"./Paste.vue":yz,"./Plus.vue":Cz,"./PolygonTool.vue":Dz,"./PolylineTool.vue":jz,"./Prev.vue":Fz,"./Print.vue":zz,"./PropertyPanel.vue":tA,"./PushButtonIcon.vue":Uz,"./RadioBtnDis.vue":CT,"./RadioBtnSel.vue":DT,"./RadioButtonIcon.vue":qz,"./RectangleTool.vue":Lb,"./Rejected.vue":Zz,"./ReplaceImage.vue":tB,"./ReplacePage.vue":tD,"./Reply.vue":aB,"./ReplyA.vue":lA,"./Return.vue":lB,"./RotateImageLeft.vue":pB,"./RotateImageRight.vue":_B,"./RotatePageLeft.vue":pD,"./RotatePageRight.vue":_D,"./Rotateleft.vue":xB,"./Rotateright.vue":TB,"./Search.vue":kB,"./SearchLeft.vue":NB,"./SelectAll.vue":UE,"./SelectText.vue":LB,"./Settings.vue":VB,"./SettingsA.vue":Zk,"./Signature.vue":GB,"./SignatureInvalid.vue":YB,"./SignatureUnknown.vue":$B,"./SignatureValid.vue":rV,"./SinglePage.vue":sV,"./Slider.vue":nw,"./Squiggle.vue":dV,"./SquiggleGray.vue":hV,"./Stamp.vue":yV,"./Strikeout.vue":CV,"./StrikeoutGray.vue":DV,"./SuccessIcon.vue":jV,"./Text.vue":FV,"./TextCenter.vue":Gb,"./TextFieldIcon.vue":zV,"./TextLeft.vue":Yb,"./TextRight.vue":Vb,"./TextalignCenter.vue":UV,"./TextalignLeft.vue":qV,"./TextalignRight.vue":ZV,"./Thumbnail.vue":tH,"./Tip.vue":aH,"./ToolDate.vue":rx,"./ToolShape.vue":sx,"./ToolsText.vue":px,"./TreeArrow.vue":lH,"./Underline.vue":pH,"./UnderlineGray.vue":_H,"./Unfold.vue":xH,"./UnselectAll.vue":qE,"./UpArrow.vue":TH,"./VerifyDigitalSign.vue":kH,"./VerticalScrolling.vue":NH,"./Warning.vue":JC,"./ZoomIn.vue":sk,"./ZoomOut.vue":dk}),r=T(()=>n[`./${t.glyph}.vue`]||null),i=T(()=>`#${t.glyph}`),a=T(()=>({width:o(t.size),height:o(t.size),color:t.color})),o=e=>typeof e==`number`?`${e}px`:e;return(t,n)=>r.value?(S(),s(ve(r.value),f({key:0,class:e.className,style:a.value,"aria-label":e.ariaLabel,"aria-hidden":`true`},t.$attrs),null,16,[`class`,`style`,`aria-label`])):(S(),V(`svg`,f({key:1,class:[`svg-icon`,e.className],style:a.value,"aria-label":e.ariaLabel,"aria-hidden":`true`},t.$attrs),[c(`use`,{href:i.value},null,8,FH)],16,PH))}},[[`__scopeId`,`data-v-54e86885`]]),LH={key:2},RH={__name:`ToolButton`,props:{toolName:{type:String,default:``},dataElement:{type:String,default:``},title:{type:String,default:``},className:{type:String,default:``},disabled:{type:Boolean,default:!1},icon:{type:String,default:``},text:{type:String,default:``}},setup(e){let t=ye(),n=fw(),r=e,i=[L.HIGHLIGHT,L.UNDERLINE,L.SQUIGGLY,L.STRIKEOUT],a=[L.SQUARE,L.CIRCLE,L.ARROW,L.LINE],o={[L.TEXT]:LR,[L.HIGHLIGHT]:hF,[L.UNDERLINE]:pH,[L.STRIKEOUT]:CV,[L.SQUIGGLY]:dV,[L.INK]:qF,[L.CIRCLE]:dN,[L.ARC]:LA,[L.SQUARE]:Lb,[L.POLYGON]:Dz,[L.CLOUDY]:Zj,[L.POLYLINE]:jz,[L.ARROW]:YA,[L.LINE]:Nb,[L.FREETEXT]:FV,[L.CALLOUT]:yj,[L.IMAGE]:jF,[L.LINK]:dL,[L.TEXTFIELD]:zV,[L.CHECKBOX]:jj,[L.RADIOBUTTON]:qz,[L.LISTBOX]:hL,[L.COMBOBOX]:aM,[L.PUSHBUTTON]:Uz,[L.FILL_FORM]:ZN,[L.ERASER]:CN},c={[L.TEXT]:`toolbar.annotationTools.note`,[L.HIGHLIGHT]:`toolbar.annotationTools.highlight`,[L.UNDERLINE]:`toolbar.annotationTools.underline`,[L.STRIKEOUT]:`toolbar.annotationTools.strikeout`,[L.SQUIGGLY]:`toolbar.annotationTools.squiggly`,[L.INK]:`toolbar.annotationTools.ink`,[L.CIRCLE]:`toolbar.annotationTools.circle`,[L.ARC]:`toolbar.annotationTools.arc`,[L.SQUARE]:`toolbar.annotationTools.square`,[L.POLYGON]:`toolbar.annotationTools.polygon`,[L.CLOUDY]:`toolbar.annotationTools.cloudy`,[L.POLYLINE]:`toolbar.annotationTools.polyline`,[L.ARROW]:`toolbar.annotationTools.arrow`,[L.LINE]:`toolbar.annotationTools.line`,[L.FREETEXT]:`toolbar.annotationTools.freetext`,[L.CALLOUT]:`toolbar.annotationTools.callout`,[L.IMAGE]:`toolbar.annotationTools.image`,[L.LINK]:`toolbar.annotationTools.link`,[L.TEXTFIELD]:`toolbar.formTools.textField`,[L.CHECKBOX]:`toolbar.formTools.checkbox`,[L.RADIOBUTTON]:`toolbar.formTools.radioButton`,[L.LISTBOX]:`toolbar.formTools.listBox`,[L.COMBOBOX]:`toolbar.formTools.comboButton`,[L.PUSHBUTTON]:`toolbar.formTools.button`,fillForm:`toolbar.formTools.FillSign`,[L.ERASER]:`toolbar.annotationTools.eraser`},l=T(()=>n.getActiveTool),u=T(()=>r.toolName===l.value),f=e=>{if(n.setToolState(e),t.toggleActiveHand(!1),U.switchTool(0),U.switchAnnotationEditorMode(0),l.value===L.IMAGE){let e=P?`annotaionImageInput`:`signImageInput`;document.getElementById(e).click()}l.value===L.ADD_IMAGE&&P&&(document.getElementById(`editorImageInput`).click(),n.setToolState(L.ADD_IMAGE))},p=(()=>{let e=r.toolName;if(i.includes(e)&&n.setMarkupToolState(e),a.includes(e)&&n.setShapeToolState(e),e===L.PAN){m();return}f(e)}),m=()=>{let e=t.getActiveHand;window.getSelection().empty(),t.toggleActiveHand(!e),U.switchTool(+!e),U.switchAnnotationEditorMode(0),t.closeActiveStickNote(),U.webViewerNamedAction(`Find`,4),n.setToolState(L.PAN),t.setSearchStatus(!1)};return(t,n)=>{let r=IH,i=lx;return S(),s(i,{"data-element":e.dataElement,isActive:u.value,disabled:e.disabled,className:e.className,onClick:p,title:t.$t(e.title)||t.$t(c[e.toolName])},{default:G(()=>[e.icon?(S(),s(r,{key:0,glyph:e.icon},null,8,[`glyph`])):o[e.toolName]?(S(),s(ve(o[e.toolName]),{key:1})):b(``,!0),e.className.includes(`with-text`)?(S(),V(`span`,LH,d(e.text||t.$t(c[e.toolName])||t.$t(e.title)),1)):b(``,!0)]),_:1},8,[`data-element`,`isActive`,`disabled`,`className`,`title`])}}},zH=[`innerHTML`],BH=[`src`],VH={__name:`ToggleElementButton`,props:{icon:{type:String,default:``},img:{type:String,default:``},text:{type:String,default:``},dataElement:{type:String,default:``},title:{type:String,default:``},className:{type:String,default:``},style:{type:Object,default:{}},element:{type:String,default:``}},setup(e){let t=ye(),n=fw(),r=e,i=r.img?.trim().toLowerCase().startsWith(`<svg`),a=T(()=>t.isElementOpen(r.element)),o=T(()=>t.isElementDisabled(r.dataElement,`style`)),c=()=>{if(r.element===H.STAMP_PANEL&&!U.getPermission(`allowsCommenting`)){t.openElement(`permissionPasswordDialog`);return}t.toggleElement(r.element),r.element===H.STAMP_PANEL&&(n.setToolState(``),t.toggleActiveHand(!1),U.switchTool(0),U.switchAnnotationEditorMode(0))},l=e=>e?Object.entries(e).map(([e,t])=>Number.isInteger(t)?`${e}:${t}px`:`${e}:${t}`).join(`;`):``;return(t,n)=>{let r=IH,u=lx;return S(),s(u,{"data-element":e.dataElement,isActive:a.value,disabled:o.value,className:e.className,onClick:c,title:t.$t(e.title),style:A(l(e.style))},{default:G(()=>[e.img?(S(),V(q,{key:0},[K(i)?(S(),V(`div`,{key:0,innerHTML:e.img,class:`img`},null,8,zH)):(S(),V(`img`,{key:1,src:e.img,alt:``,class:`img`},null,8,BH))],64)):e.icon?(S(),s(r,{key:1,glyph:e.icon},null,8,[`glyph`])):b(``,!0),e.text?(S(),V(`div`,{key:2,class:D({text:e.img||e.icon})},d(t.$t(e.text)),3)):b(``,!0)]),_:1},8,[`data-element`,`isActive`,`disabled`,`className`,`title`,`style`])}}},HH=[`innerHTML`],UH=[`src`],WH={__name:`StatefulButton`,props:{dataElement:{type:String,default:``},title:{type:String,default:``},className:{type:String,default:``},style:{type:Object,default:{}},states:{type:Object,default:{img:{type:String,default:``},getContent:{type:Function,default:null},onClick:{type:Function,default:null}}},mount:{type:Function,default:null},unmount:{type:Function,default:null},initialState:{type:String,default:``}},setup(e){let t=e,n=J(t.initialState),r=t.states[n.value],{img:i}=r,a=i?.trim().toLowerCase().startsWith(`<svg`),o=()=>{c(),r.onClick(r)},c=()=>{n.value=t.initialState},l=T(()=>r.getContent instanceof Function?r.getContent(r):r.getContent),u=e=>e?Object.entries(e).map(([e,t])=>Number.isInteger(t)?`${e}:${t}px`:`${e}:${t}`).join(`;`):``;return t.mount&&M(()=>{t.mount()}),t.unmount&&j(()=>{t.unmount()}),(t,n)=>{let r=lx;return S(),s(r,{"data-element":e.dataElement,className:e.className,onClick:o,title:t.$t(e.title),style:A(u(e.style))},{default:G(()=>[K(i)?(S(),V(q,{key:0},[K(a)?(S(),V(`div`,{key:0,innerHTML:K(i),class:`img`},null,8,HH)):(S(),V(`img`,{key:1,src:K(i),alt:``,class:`img`},null,8,UH))],64)):b(``,!0),y(` `+d(l.value),1)]),_:1},8,[`data-element`,`className`,`title`,`style`])}}},GH=[`innerHTML`],KH=[`src`],qH={__name:`ActionButton`,props:{img:{type:String,default:``},icon:{type:String,default:``},text:{type:String,default:``},dataElement:{type:String,default:``},title:{type:String,default:``},className:{type:String,default:``},style:{type:Object,default:{}},onClick:{type:Function,default:null},isNotClickableSelector:{type:Function,default:null}},setup(e){let t=ye(),n=fw(),r=e,i=r.img?.trim().toLowerCase().startsWith(`<svg`),a=()=>{r.onClick&&r.onClick(t,n)},o=e=>e?Object.entries(e).map(([e,t])=>Number.isInteger(t)?`${e}:${t}px`:`${e}:${t}`).join(`;`):``,c=T(()=>r.isNotClickableSelector&&r.isNotClickableSelector(t,n));return(t,n)=>{let r=IH,l=lx;return S(),s(l,{"data-element":e.dataElement,disabled:c.value,className:e.className,onClick:a,title:t.$t(e.title),style:A(o(e.style))},{default:G(()=>[e.img?(S(),V(q,{key:0},[K(i)?(S(),V(`div`,{key:0,innerHTML:e.img,class:`img`},null,8,GH)):(S(),V(`img`,{key:1,src:e.img,alt:``,class:`img`},null,8,KH))],64)):e.icon?(S(),s(r,{key:1,glyph:e.icon},null,8,[`glyph`])):b(``,!0),e.text?(S(),V(`div`,{key:2,class:D({text:e.img||e.icon})},d(t.$t(e.text)),3)):b(``,!0)]),_:1},8,[`data-element`,`disabled`,`className`,`title`,`style`])}}},JH={__name:`CustomButton`,props:[`item`],setup(e){let{type:t}=e.item;return(n,r)=>{let i=qH,a=WH,o=VH,c=RH;return S(),V(q,null,[K(t)===`actionButton`?(S(),s(i,f({key:0},e.item,{className:`custom-button ${e.item.className||``}`}),null,16,[`className`])):K(t)===`statefulButton`?(S(),s(a,f({key:1},e.item,{className:`custom-button ${e.item.className||``}`}),null,16,[`className`])):K(t)===`toggleElementButton`?(S(),s(o,f({key:2},e.item,{className:`custom-button ${e.item.className||``}`}),null,16,[`className`])):b(``,!0),K(t)===`toolButton`?(S(),s(c,f({key:3},e.item,{className:`custom-button ${e.item.className||``}`}),null,16,[`className`])):b(``,!0)],64)}}},YH=4,XH=4,ZH=(e,t,n,r=1,i=`right`)=>{let{left:a,top:o}=tU(QH(e,t,r),eU(n),r,i);return{left:Math.max(a,YH),top:o}},QH=(e,t,n)=>{let{left:r,top:i,right:a,bottom:o}=e;return{topLeft:$H(r,i,t,n),bottomRight:$H(a,o,t,n)}},$H=(e,t,n,r=1)=>U.pageToWindow({x:e,y:t},n,r),eU=e=>{let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}},tU=(e,t,n)=>{let r=rU(e,t,n);return{left:nU(e,t,n),top:r}},nU=({topLeft:e,bottomRight:t},{width:n},r,i)=>{let{scrollLeft:a}=U.getScrollViewElement(r),o;if(i===`center`){o=(e.x+t.x)/2-a-n/2;let r=window.innerWidth-n-YH;o<YH?o=YH:o>r&&(o=r)}else o=t.x-n-a;return Math.round(o)},rU=({topLeft:e,bottomRight:t},{height:n},r)=>{let i=U.getScrollViewElement(r),{scrollTop:a}=i,o=i.getBoundingClientRect(),s=o.top+a,c=o.bottom+a,l=e.y,u=t.y,d;return d=u+n+XH<=c?u+XH:l-n-XH>=s?l-n-XH:l-s>=c-u?s+YH:c-n-YH,Math.round(d-a)},iU=e=>e?.author??e?.annotation?.author,aU=({isReadOnly:e=!1,isUserAdmin:t=!1,currentAuthor:n,annotations:r=[]}={})=>e?!1:t?!0:r.every(e=>iU(e)===n),oU=t({default:()=>sU}),sU={__name:`AnnotationPopup`,setup(e){let t=fw(),n=ye(),r=[L.TEXTFIELD,L.CHECKBOX,L.RADIOBUTTON,L.LISTBOX,L.COMBOBOX,L.PUSHBUTTON,L.SIGNATURE_FIELDS],i=[L.HIGHLIGHT,L.UNDERLINE,L.SQUIGGLY,L.STRIKEOUT],a=T(()=>t.getSelectedAnnotation),o=T(()=>n.getPopupItems(`annotationPopup`)),l=T(()=>{let e=o.value.filter(e=>!n.isElementDisabled(e.dataElement));if(a.value){let t=a.value.type;if(t===`link`||t===`redaction`&&a.value.annotation.erasure)return e.filter(e=>e.dataElement===H.DELETE_ANNOT_BUTTON);if(t===`redaction`&&!a.value.annotation.erasure)return e.filter(e=>e.dataElement===H.ANNOT_PROPERTY_BUTTON||e.dataElement===H.DELETE_ANNOT_BUTTON);if(r.includes(t))return e.filter(e=>[H.ANNOT_PROPERTY_BUTTON,H.COPY_ANNOTATION_BUTTON,H.DELETE_ANNOT_BUTTON].includes(e.dataElement))}return e}),u=T(()=>n.getActiveElementTab(H.LEFT_PANEL)),d=T(()=>n.isElementOpen(H.STYLE_PANEL)),f=T(()=>n.isElementOpen(H.RIGHT_PANEL)),p=T(()=>n.isElementOpen(H.LEFT_PANEL)),m=T(()=>n.isElementOpen(H.REDACTION_PANEL)),g=T(()=>{let e=a.value?.type;return r.includes(e)?f.value:e===`redaction`?m.value:d.value}),_=T(()=>n.isElementOpen(`measurementSettingsDialog`)),v=T(()=>t.getAnnotator),y=T(()=>n.getUserAdmin),C=T(()=>n.getReadOnly),w=T(()=>n.getPanelTransitionEnd),O=J(null),k=J(!1),N=J(0),P=J(0),ee=J(!y.value&&(C.value||a.value&&v.value!==a.value.author)),F=null,te=J([]),I=J(!1),ne=J([]),re=()=>U.getAnnotationManager()?.getSelectedAnnotations?.()||[],ie=()=>{ne.value=re()},B=T(()=>{let e=ne.value.length?ne.value:a.value?[a.value]:[];return aU({isReadOnly:C.value,isUserAdmin:y.value,currentAuthor:v.value,annotations:e})});W([y,C,a,v],()=>{ee.value=!y.value&&(C.value||a.value&&v.value!==a.value.author)}),W([d,f,p],()=>{k.value&&setTimeout(()=>le(a.value||ce),300)}),W(w,()=>{k.value&&le(a.value||ce)});let ae,oe=!1,se,ce=null,le=async e=>{k.value=!!e,ce=e?.isMultiple?e:null,ie(),await E();let t=O.value?.firstElementChild;if(I.value=!!e?.isMultiple,!e||!k.value||!t)return;let n,r;if(e.isMultiple)n=e.rect,r=e.pageNumber,te.value=e.selectedTypes;else{let{x1:t,y1:i,x2:a,y2:o}=e.getRect();n={left:t,top:i,right:a,bottom:o},r=e.pageIndex+1,te.value.length=0}await E();let i=ZH(n,r,t);N.value=i.top,P.value=i.left};U.addEvent(`showAnnotationPopup`,le);let ue=()=>{let e=a.value?.type||te.value[0],t=r.includes(e),i=e===`redaction`;n.toggleElement(t?H.RIGHT_PANEL:i?H.REDACTION_PANEL:H.STYLE_PANEL)},de=()=>{n.openElement(`measurementSettingsDialog`)},fe=async e=>{let t=U.getAnnotationManager();switch(e){case`reply`:u.value!==H.ANNOTATION_TAB&&n.setActiveElementTab(H.LEFT_PANEL,H.ANNOTATION_TAB),p.value||(k.value=!1,n.openElement(H.LEFT_PANEL)),n.openElement(`reply`),F&&=(clearTimeout(F),null),setTimeout(()=>{let e=document.querySelector(`.annotation-item.selected`);if(e.scrollIntoView({behavior:`smooth`}),e.classList.contains(`flash-border`))e.classList.remove(`flash-border`),clearTimeout(F),F=null;else{e.classList.add(`flash-border`);let t=document.querySelector(`.annotation-item.selected`),n=t.querySelector(`textarea`);n&&n.focus(),F=setTimeout(()=>t?.classList.remove(`flash-border`),2e3)}},300);break;case`delete`:k.value=!1,t.deleteAnnotations([...t.getSelectedAnnotations()]);break;case`copy`:{let e=t.getSelectedAnnotations();if(!aU({isReadOnly:C.value,isUserAdmin:y.value,currentAuthor:v.value,annotations:e}))return;k.value=!1;let n=e.map(e=>{let t=JSON.parse(JSON.stringify(e.annotation));if(delete t.name,delete t.annotPtr,delete t.pagePtr,Object.keys(t).forEach(e=>{t[e]??delete t[e]}),t.rect&&Object.keys(t.rect).forEach(e=>t.rect[e]+=10),t.linePoints&&=t.linePoints.map(e=>e+=10),t.vertices&&t.vertices.forEach(e=>{e.x+=10,e.y+=10}),t.inkPointes)for(let e of t.inkPointes)for(let t of e)t.PointX=Number(t.PointX)+10,t.PointY=Number(t.PointY)+10;return t.arcPoints&&t.arcPoints.forEach(e=>{e.x+=10,e.y+=10}),t.floatPoint&&t.floatPoint.forEach(e=>{e.x+=10,e.y+=10}),t}),r=t.getSelectedAnnotations(),i=r[0]?.PageNumber||r[0]?.getPageNumber?.()||1,a=await U.getDocumentViewer().addAnnotations(n);a&&a.length&&(r.length&&(r.forEach(e=>e.handleOutside?.(null,!0)),t.deselectAnnotations(r)),a.length===1?a[0].selectAnnotation():t.selectAnnotations(a,i));break}}};U.addEvent(`annotationSelected`,()=>{ie(),ee.value=!y.value&&(C.value||a.value&&v.value!==a.value.author)});let pe=()=>{!k.value||[`text`,`freetext`,`callout`].includes(a.value?.type)||(k.value&&(k.value=!1,oe=!0),oe&&(clearTimeout(se),se=setTimeout(()=>{U.showPopup({type:`annotationPopup`}),oe=!1},200)))};return M(()=>{ae=document.querySelector(`.document-container`),ae&&ae.addEventListener(`scroll`,pe)}),j(()=>{ae&&ae.removeEventListener(`scroll`,pe)}),(e,t)=>{let n=JH,o=lA,u=lx,d=aA,f=tA,p=Zk,m=xD;return S(),V(`div`,{ref_key:`annotaitonPopupRef`,ref:O},[R(c(`div`,{class:`annotation-popup popup`,style:A({top:`${N.value}px`,left:`${P.value}px`})},[(S(!0),V(q,null,z(l.value,(c,l)=>(S(),V(q,{key:`${c.dataElement||new Date}-${l}`},[[`actionButton`,`statefulButton`,`toggleElementButton`,`toolButton`].includes(c.type)&&!c.hidden?(S(),s(n,{key:0,item:c},null,8,[`item`])):c.type===`reply`&&!c.hidden&&!C.value&&!te.value.length?(S(),s(u,{key:1,onClick:t[0]||=e=>fe(`reply`),title:e.$t(`common.actions.reply`),"data-element":c.dataElement},{default:G(()=>[x(o)]),_:1},8,[`title`,`data-element`])):c.type===`copy`&&!c.hidden&&B.value&&!te.value.includes(`markup`)&&!i.includes(a.value?.type)?(S(),s(u,{key:2,onClick:t[1]||=e=>fe(`copy`),title:e.$t(`documentEditor.copy`),"data-element":c.dataElement},{default:G(()=>[x(d)]),_:1},8,[`title`,`data-element`])):c.type===`property`&&!c.hidden&&!ee.value&&te.value.length<=1&&!r.includes(te.value[0])?(S(),s(u,{key:3,onClick:ue,title:e.$t(`common.properties`),"data-element":c.dataElement,isActive:g.value},{default:G(()=>[x(f)]),_:1},8,[`title`,`data-element`,`isActive`])):c.type===`settings`&&!c.hidden&&!ee.value&&!I.value&&a.value?.measure?(S(),s(u,{key:4,onClick:de,title:e.$t(`toolbar.settings.title`),"data-element":c.dataElement,isActive:_.value},{default:G(()=>[x(p)]),_:1},8,[`title`,`data-element`,`isActive`])):c.type===`delete`&&!c.hidden&&!ee.value?(S(),s(u,{key:5,onClick:t[2]||=e=>fe(`delete`),title:e.$t(`common.actions.delete`),"data-element":c.dataElement},{default:G(()=>[x(m)]),_:1},8,[`title`,`data-element`])):[`spacer`,`divider`].includes(c.type)?(S(),V(`div`,{key:6,class:D(c.type)},null,2)):b(``,!0)],64))),128))],4),[[Re,k.value&&(a.value&&![`text`,`freetext`,`callout`].includes(a.value?.type)||I.value)]])],512)}}},cU={},lU={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function uU(e,t){return S(),V(`svg`,lU,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11.9596 4.80005L13.2 5.88792L8 11.2L2.8 5.88792L4.0404 4.80005L8 8.84446L11.9596 4.80005Z`,fill:`currentColor`},null,-1)]])}var dU=B(cU,[[`render`,uU]]),fU={class:`measurements-settings`},pU={class:`subtitle`},mU={class:`scale`},hU={class:`left-text`},gU={class:`right-text`},_U={class:`form-box`},vU={class:`form-box`},yU={value:`pt`},bU={value:`in`},xU={value:`mm`},SU={value:`cm`},CU={value:`m`},wU={value:`km`},TU={value:`ft`},EU={value:`yd`},DU={value:`mi`},OU={class:`form-box`},kU={class:`form-box`},AU={value:`pt`},jU={value:`in`},MU={value:`mm`},NU={value:`cm`},PU={value:`m`},FU={value:`km`},IU={value:`ft`},LU={value:`yd`},RU={value:`mi`},zU={key:0,class:`error`},BU={class:`discription`},VU={class:`form-box`},HU={key:0,class:`caption`},UU={class:`subtitle`},WU={class:`check-content`},GU=[`onClick`],KU=`measurementSettingsDialog`,qU={__name:`MeasurementSettingsDialog`,setup(e){let t=ye(),n=fw(),r=T(()=>t.isElementOpen(KU)),i=T(()=>n.getActiveTool),a=N({scale:{base:1,baseUnit:`cm`,translate:1,translateUnit:`cm`},precision:.1}),o=N({showRadius:!0,showPerimeter:!0,showArea:!0,showArcLength:!0,showAngle:!0}),s={polygon:[`showPerimeter`,`showArea`],rectangle:[`showPerimeter`,`showArea`],circle:[`showPerimeter`,`showArea`,`showRadius`],arc:[`showRadius`,`showArcLength`,`showAngle`]},l=[{key:`showRadius`,types:[`circle`,`arc`],label:`measurement.dimensions.radius`},{key:`showPerimeter`,types:[`circle`,`polygon`,`rectangle`],label:`measurement.dimensions.perimeter`},{key:`showArea`,types:[`circle`,`polygon`,`rectangle`],label:`measurement.dimensions.area`},{key:`showArcLength`,types:[`arc`],label:`measurement.dimensions.arcLength`},{key:`showAngle`,types:[`arc`],label:`measurement.dimensions.angle`}],u={scale:{base:1,baseUnit:`cm`,translate:1,translateUnit:`cm`},precision:.1},f={showPerimeter:!0,showArea:!0,showRadius:!0,showArcLength:!0,showAngle:!0},p=J(!1),m=J(``),g=``,_=J(!1);W(r,(e,t)=>{e&&(_.value=!1,u||f?w({...u,...f}):(a.scale={base:1,baseUnit:`cm`,translate:1,translateUnit:`cm`},a.precision=1,o.showPerimeter=!0,o.showArea=!0,o.showRadius=!0,o.showArcLength=!0,o.showAngle=!0),p.value=!1,m.value=g||i.value)}),W([a,o],e=>{if(e[0].scale.base===u.scale.base&&e[0].scale.baseUnit===u.scale.baseUnit&&e[0].scale.translate===u.scale.translate&&e[0].scale.translateUnit===u.scale.translateUnit&&e[0].precision===u.precision&&e[1].showPerimeter===f.showPerimeter&&e[1].showArea===f.showArea&&e[1].showRadius===f.showRadius&&e[1].showArcLength===f.showArcLength&&e[1].showAngle===f.showAngle){_.value=!1;return}_.value=!0});let v=()=>{t.closeElement(KU)},y=()=>{a.scale.base.toString().length>6&&(a.scale.base=a.scale.base.toString().slice(0,6)),a.scale.translate.toString().length>6&&(a.scale.translate=a.scale.translate.toString().slice(0,6)),p.value=a.scale.base<=0||a.scale.translate<=0},C=()=>{let e=(s[m.value]||[]).reduce((e,t)=>({...e,[t]:o[t]}),{});JSON.stringify(u)===JSON.stringify(a)?U.setMeasurementDefaults({...e}):U.setMeasurementDefaults({...JSON.parse(JSON.stringify(a)),...e}),v()},w=e=>{Object.entries(e).forEach(([e,t])=>{if(e===`scale`){Object.assign(a.scale,t);return}e in a&&(a[e]=t),e in o&&(o[e]=t)}),u=JSON.parse(JSON.stringify(a)),f=JSON.parse(JSON.stringify(o))};return U.addEvent(`updateMeasureData`,w),U.addEvent(`measurePropertyChange`,e=>{if(g=``,e.hasOwnProperty(`type`)){if(e.type===`ink`&&e.arcPoints){g=`arc`;return}g=e.type}}),(e,t)=>{let n=dU,i=QC,s=WC;return R((S(),V(`div`,fU,[x(s,{show:r.value,dialogName:KU},{header:G(()=>[c(`p`,null,d(e.$t(`measurement.settings`)),1)]),footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:v},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:D([`rect-button blue`,{disabled:p.value||!_.value}]),onClick:C},d(e.$t(`measurement.done`)),3)]),default:G(()=>[c(`p`,pU,d(e.$t(`measurement.scale`)),1),c(`div`,mU,[c(`span`,hU,d(e.$t(`measurement.drawingDimensions`)),1),c(`span`,gU,d(e.$t(`measurement.actualSize`)),1),c(`div`,_U,[R(c(`input`,{type:`number`,min:`1`,max:`999999`,"onUpdate:modelValue":t[0]||=e=>a.scale.base=e,onInput:y},null,544),[[Me,a.scale.base]])]),c(`div`,vU,[R(c(`select`,{class:`unit-input`,"onUpdate:modelValue":t[1]||=e=>a.scale.baseUnit=e},[c(`option`,yU,d(e.$t(`measurement.units.pt`)),1),c(`option`,bU,d(e.$t(`measurement.units.in`)),1),c(`option`,xU,d(e.$t(`measurement.units.mm`)),1),c(`option`,SU,d(e.$t(`measurement.units.cm`)),1),c(`option`,CU,d(e.$t(`measurement.units.m`)),1),c(`option`,wU,d(e.$t(`measurement.units.km`)),1),c(`option`,TU,d(e.$t(`measurement.units.ft`)),1),c(`option`,EU,d(e.$t(`measurement.units.yd`)),1),c(`option`,DU,d(e.$t(`measurement.units.mi`)),1)],512),[[Oe,a.scale.baseUnit]]),x(n)]),t[5]||=c(`span`,null,`=`,-1),c(`div`,OU,[R(c(`input`,{type:`number`,min:`1`,max:`999999`,"onUpdate:modelValue":t[2]||=e=>a.scale.translate=e,onInput:y},null,544),[[Me,a.scale.translate]])]),c(`div`,kU,[R(c(`select`,{class:`unit-input`,"onUpdate:modelValue":t[3]||=e=>a.scale.translateUnit=e},[c(`option`,AU,d(e.$t(`measurement.units.pt`)),1),c(`option`,jU,d(e.$t(`measurement.units.in`)),1),c(`option`,MU,d(e.$t(`measurement.units.mm`)),1),c(`option`,NU,d(e.$t(`measurement.units.cm`)),1),c(`option`,PU,d(e.$t(`measurement.units.m`)),1),c(`option`,FU,d(e.$t(`measurement.units.km`)),1),c(`option`,IU,d(e.$t(`measurement.units.ft`)),1),c(`option`,LU,d(e.$t(`measurement.units.yd`)),1),c(`option`,RU,d(e.$t(`measurement.units.mi`)),1)],512),[[Oe,a.scale.translateUnit]]),x(n)]),p.value?(S(),V(`p`,zU,d(e.$t(`measurement.scaleError`)),1)):b(``,!0)]),c(`p`,BU,d(e.$t(`measurement.precision`)),1),c(`div`,VU,[R(c(`select`,{"onUpdate:modelValue":t[4]||=e=>a.precision=e},[...t[6]||=[c(`option`,{value:1},`1`,-1),c(`option`,{value:.1},`0.1`,-1),c(`option`,{value:.01},`0.01`,-1),c(`option`,{value:.001},`0.001`,-1),c(`option`,{value:1e-4},`0.0001`,-1)]],512),[[Oe,a.precision]]),x(n)]),[`polygon`,`rectangle`,`circle`,`arc`].includes(m.value)?(S(),V(`div`,HU,[c(`p`,UU,d(e.$t(`measurement.showCaption`)),1),c(`div`,WU,[(S(),V(q,null,z(l,t=>(S(),V(q,{key:t.key},[t.types.includes(m.value)?(S(),V(`div`,{key:0,class:`check-box`,onClick:e=>o[t.key]=!o[t.key]},[c(`div`,{class:D([`check`,{active:o[t.key]}])},[R(x(i,null,null,512),[[Re,o[t.key]]])],2),c(`span`,null,d(e.$t(t.label)),1)],8,GU)):b(``,!0)],64))),64))])])):b(``,!0)]),_:1},8,[`show`])],512)),[[Re,r.value]])}}},JU={class:`header-container`},YU={key:0,class:`title`},XU={key:1,class:`title`},ZU={key:2,class:`title`},QU={key:3,class:`title`},$U={key:4,class:`title`},eW={key:5,class:`title`},tW={key:6,class:`title`},nW={class:`content`},rW={class:`has-input`},iW={class:`has-tip`},aW={class:`has-input`},oW={class:`has-tip`},sW={class:`has-tip`},cW={class:`has-tip`},lW={class:`has-tip`},uW={class:`has-input`},dW={class:`has-tip`},fW={class:`has-input`},pW={class:`has-tip`},mW={class:`has-input`},hW={class:`setting`},gW={__name:`MeasurementBoard`,setup(e){let t=ye(),n=fw(),{t:r}=It(),i=T(()=>n.getActiveTool),a=T(()=>t.getReadOnly),o=T(()=>{let e=i.value.includes(`Measurement`);return!a.value&&(C.value||e)}),l=T(()=>{let e=i.value.replace(`Measurement`,``),t=f.includes(e)?e:``;return w.value||t}),u=T(()=>t.isElementOpen(H.STYLE_PANEL)),f=[`line`,`polyline`,`polygon`,`rectangle`,`circle`,`curve`,`arc`],p=N({scale:{base:1,baseUnit:`cm`,translate:1,translateUnit:`cm`},precision:.1,length:0,angle:0,radius:0,perimeter:0,area:0,X:0,Y:0,arcLength:0,width:0}),m=J(),g=J(!1),_=N({right:30,y:100}),v=N({x:0,y:0}),C=J(!1),w=J(``),E=J(!1),O=J(0),k=null,j=T(()=>`${p.scale.base} ${r(`measurement.units.`+p.scale.baseUnit)} = ${p.scale.translate} ${r(`measurement.units.`+p.scale.translateUnit)}`);W(u,(e,t)=>{e&&_.right<260?O.value=_.right-260-30:O.value=0}),W([o,i],(e,t)=>{(e[0]||e[1])&&!C.value&&te()}),U.addEvent(`updateMeasureData`,e=>{for(let t in e)for(let n in p)if(t===n){if(t===`scale`){Object.assign(p.scale,e.scale);continue}p[n]=e[t]}}),U.addEvent(`annotationSelected`,e=>{let t=e.length===1?e[0]:null;if(k=t,t){if(C.value=!!t.measure,!t.measure){w.value=``;return}t.type===`ink`?w.value=t.arcPoints?`arc`:`curve`:w.value=t.type}}),U.addEvent(`annotationDeselected`,e=>{e.length===1&&e[0].name!==k?.name||(k=null,C.value&&(C.value=!1,w.value=``,te()))});let M=()=>{t.openElement(`measurementSettingsDialog`)},P=e=>{g.value=!0,v.x=window.innerWidth-e.clientX-_.right,v.y=e.clientY-_.y,document.addEventListener(`mousemove`,F),document.addEventListener(`mouseup`,ee)},ee=()=>{g.value=!1,document.removeEventListener(`mousemove`,F),document.removeEventListener(`mouseup`,ee)},F=e=>{if(g.value){let t=m.value.offsetWidth,n=m.value.offsetHeight,r=window.innerWidth-e.clientX-v.x,i=e.clientY-v.y,a=window.innerWidth-t,o=window.innerHeight-n;_.right=Math.min(Math.max(r,0),a),_.y=Math.min(Math.max(i,0),o)}},te=()=>{p.length=0,p.angle=0,p.radius=0,p.perimeter=0,p.area=0,p.X=0,p.Y=0,p.arcLength=0,p.width=0},I=(e,t)=>{U.setPropertyPanel({[t]:e})};return(e,t)=>{let n=qL,r=ZL,i=tR,a=aR,u=zL,f=FL,g=UL,v=_P,C=xH,T=dF;return R((S(),V(`div`,{ref_key:`measurementBoard`,ref:m,class:D([`measurement-board`,{fold:E.value}]),style:A({top:_.y+`px`,right:_.right+`px`,transform:`translateX(${O.value}px)`}),onMousedown:P},[c(`div`,JU,[l.value===`line`?(S(),V(`div`,YU,[x(n),c(`span`,null,d(e.$t(`toolbar.measurementTools.measureLine`)),1)])):l.value===`polyline`?(S(),V(`div`,XU,[x(r),c(`span`,null,d(e.$t(`toolbar.measurementTools.measureMultiline`)),1)])):l.value===`polygon`?(S(),V(`div`,ZU,[x(i),c(`span`,null,d(e.$t(`toolbar.measurementTools.measurePolygon`)),1)])):l.value===`rectangle`?(S(),V(`div`,QU,[x(a),c(`span`,null,d(e.$t(`toolbar.measurementTools.measureRectangle`)),1)])):l.value===`circle`?(S(),V(`div`,$U,[x(u),c(`span`,null,d(e.$t(`toolbar.measurementTools.measureCircle`)),1)])):l.value===`arc`?(S(),V(`div`,eW,[x(f),c(`span`,null,d(e.$t(`toolbar.measurementTools.measureArc`)),1)])):l.value===`curve`?(S(),V(`div`,tW,[x(g),c(`span`,null,d(e.$t(`toolbar.measurementTools.measureCurve`)),1)])):b(``,!0),c(`div`,{onClick:t[0]||=e=>E.value=!E.value,class:`fold-button`},[E.value?(S(),s(C,{key:1})):(S(),s(v,{key:0}))])]),R(c(`div`,nW,[c(`span`,null,d(e.$t(`measurement.scale`))+`:`,1),c(`span`,null,d(j.value),1),c(`span`,null,d(e.$t(`measurement.precision`))+`:`,1),c(`span`,null,d(p.precision),1),l.value===`line`?(S(),V(q,{key:0},[c(`span`,null,d(e.$t(`measurement.dimensions.distance`))+`:`,1),c(`span`,rW,[x(K(gb),{value:p.length,"onUpdate:value":[t[1]||=e=>p.length=e,t[2]||=e=>I(e,`length`)],placeholder:`1`,min:`1`,max:`100`,step:1,"update-value-on-input":!1,"show-button":!1,disabled:!w.value},null,8,[`value`,`disabled`]),y(` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1)]),c(`span`,iW,[y(d(e.$t(`measurement.dimensions.angle`))+`: `,1),x(K(Nv),{trigger:`hover`,style:{padding:`2px 10px`,"background-color":`#414960`,"box-shadow":`none`,"max-width":`280px`,"text-align":`center`},"arrow-style":`background-color: #414960;`},{trigger:G(()=>[x(T)]),default:G(()=>[y(` `+d(e.$t(`measurement.tooltips.lineAngle`)),1)]),_:1})]),c(`span`,aW,[x(K(gb),{value:p.angle,"onUpdate:value":[t[3]||=e=>p.angle=e,t[4]||=e=>I(e,`angle`)],placeholder:`1`,min:`-180`,max:`180`,step:1,"update-value-on-input":!1,"show-button":!1,disabled:!w.value},null,8,[`value`,`disabled`]),t[11]||=y(`° `,-1)]),c(`span`,oW,[t[12]||=y(` X: `,-1),x(K(Nv),{trigger:`hover`,style:{padding:`2px 10px`,"background-color":`#414960`,"box-shadow":`none`,"max-width":`280px`,"text-align":`center`},"arrow-style":`background-color: #414960;`},{trigger:G(()=>[x(T)]),default:G(()=>[y(` `+d(e.$t(`measurement.tooltips.xAxis`)),1)]),_:1})]),c(`span`,null,d(p.X)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1),c(`span`,sW,[t[13]||=y(` Y: `,-1),x(K(Nv),{trigger:`hover`,style:{padding:`2px 10px`,"background-color":`#414960`,"box-shadow":`none`,"max-width":`280px`,"text-align":`center`},"arrow-style":`background-color: #414960;`},{trigger:G(()=>[x(T)]),default:G(()=>[y(` `+d(e.$t(`measurement.tooltips.yAxis`)),1)]),_:1})]),c(`span`,null,d(p.Y)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1)],64)):b(``,!0),l.value===`polyline`?(S(),V(q,{key:1},[c(`span`,null,d(e.$t(`measurement.dimensions.distance`))+`:`,1),c(`span`,null,d(p.length)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1),c(`span`,cW,[y(d(e.$t(`measurement.dimensions.angle`))+`: `,1),x(K(Nv),{trigger:`hover`,style:{padding:`2px 10px`,"background-color":`#414960`,"box-shadow":`none`,"max-width":`250px`,"text-align":`center`},"arrow-style":`background-color: #414960;`},{trigger:G(()=>[x(T)]),default:G(()=>[y(` `+d(e.$t(`measurement.tooltips.multilineAngle`)),1)]),_:1})]),c(`span`,null,d(p.angle)+`°`,1)],64)):b(``,!0),l.value===`curve`?(S(),V(q,{key:2},[c(`span`,null,d(e.$t(`measurement.dimensions.distance`))+`:`,1),c(`span`,null,d(p.length)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1)],64)):b(``,!0),l.value===`circle`?(S(),V(q,{key:3},[c(`span`,lW,[y(d(e.$t(`measurement.dimensions.radius`))+`: `,1),x(K(Nv),{trigger:`hover`,style:{padding:`2px 10px`,"background-color":`#414960`,"box-shadow":`none`,"max-width":`280px`,"text-align":`center`},"arrow-style":`background-color: #414960;`},{trigger:G(()=>[x(T)]),default:G(()=>[y(` `+d(e.$t(`measurement.tooltips.circleRadius`)),1)]),_:1})]),c(`span`,uW,[x(K(gb),{value:p.radius,"onUpdate:value":[t[5]||=e=>p.radius=e,t[6]||=e=>I(e,`radius`)],placeholder:`1`,min:`1`,max:`100`,step:1,"update-value-on-input":!1,"show-button":!1,disabled:!w.value},null,8,[`value`,`disabled`]),y(` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1)]),c(`span`,null,d(e.$t(`measurement.dimensions.perimeter`))+`:`,1),c(`span`,null,d(p.perimeter)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1),c(`span`,null,d(e.$t(`measurement.dimensions.area`))+`:`,1),c(`span`,null,d(p.area)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`))+`²`,1)],64)):b(``,!0),l.value===`arc`?(S(),V(q,{key:4},[c(`span`,null,d(e.$t(`measurement.dimensions.radius`))+`:`,1),c(`span`,null,d(p.radius)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1),c(`span`,null,d(e.$t(`measurement.dimensions.arcLength`))+`:`,1),c(`span`,null,d(p.arcLength)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1),c(`span`,null,d(e.$t(`measurement.dimensions.angle`))+`:`,1),c(`span`,null,d(p.angle)+`°`,1)],64)):b(``,!0),l.value===`rectangle`?(S(),V(q,{key:5},[c(`span`,null,d(e.$t(`measurement.dimensions.perimeter`))+`:`,1),c(`span`,null,d(p.perimeter)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1),c(`span`,null,d(e.$t(`measurement.dimensions.area`))+`:`,1),c(`span`,null,d(p.area)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`))+`²`,1),c(`span`,dW,[y(d(e.$t(`measurement.dimensions.height`))+`: `,1),x(K(Nv),{trigger:`hover`,style:{padding:`2px 10px`,"background-color":`#414960`,"box-shadow":`none`,"max-width":`280px`,"text-align":`center`},"arrow-style":`background-color: #414960;`},{trigger:G(()=>[x(T)]),default:G(()=>[y(` `+d(e.$t(`measurement.tooltips.horizontally`)),1)]),_:1})]),c(`span`,fW,[x(K(gb),{value:p.length,"onUpdate:value":[t[7]||=e=>p.length=e,t[8]||=e=>I(e,`length`)],placeholder:`1`,min:`1`,max:`100`,step:1,"update-value-on-input":!1,"show-button":!1,disabled:!w.value},null,8,[`value`,`disabled`]),y(` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1)]),c(`span`,pW,[y(d(e.$t(`measurement.dimensions.width`))+`: `,1),x(K(Nv),{trigger:`hover`,style:{padding:`2px 10px`,"background-color":`#414960`,"box-shadow":`none`,"max-width":`280px`,"text-align":`center`},"arrow-style":`background-color: #414960;`},{trigger:G(()=>[x(T)]),default:G(()=>[y(` `+d(e.$t(`measurement.tooltips.vertically`)),1)]),_:1})]),c(`span`,mW,[x(K(gb),{value:p.width,"onUpdate:value":[t[9]||=e=>p.width=e,t[10]||=e=>I(e,`width`)],placeholder:`1`,min:`1`,max:`100`,step:1,"update-value-on-input":!1,"show-button":!1,disabled:!w.value},null,8,[`value`,`disabled`]),y(` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1)])],64)):b(``,!0),l.value===`polygon`?(S(),V(q,{key:6},[c(`span`,null,d(e.$t(`measurement.dimensions.perimeter`))+`:`,1),c(`span`,null,d(p.perimeter)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1),c(`span`,null,d(e.$t(`measurement.dimensions.area`))+`:`,1),c(`span`,null,d(p.area)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`))+`²`,1)],64)):b(``,!0)],512),[[Re,!E.value]]),R(c(`div`,hW,[c(`span`,{onClick:M},d(e.$t(`toolbar.settings.title`)),1)],512),[[Re,!E.value]])],38)),[[Re,o.value]])}}},_W={key:0,class:`redaction-tip-dialog`},vW={class:`title`},yW=`redactionTipDialog`,bW={__name:`RedactionTipDialog`,setup(e){let t=ye(),n=fw(),r=T(()=>t.isElementOpen(yW)),i=T(()=>n.getFirstEnterRedactionTool),a=()=>{n.setRedactionPrompted(!0),n.setToolState(i.value),t.setDisableHeader(!0),t.resetPanels(),t.closeElement(yW)};return(e,t)=>{let n=JC,i=WC;return r.value?(S(),V(`div`,_W,[x(i,{show:r.value,dialogName:yW,close:!0},{default:G(()=>[x(n),c(`p`,vW,d(e.$t(`redaction.caution`)),1),c(`p`,null,d(e.$t(`redaction.warning`)),1),c(`div`,{class:`rect-button blue`,onClick:a},d(e.$t(`redaction.understand`)),1)]),_:1},8,[`show`])])):b(``,!0)}}},xW={key:0,class:`layer-locked-tip-popup`},SW=`unsupportedMobileDialog`,CW={__name:`UnsupportedMobileDialog`,setup(e){let t=ye(),n=T(()=>t.isElementOpen(SW)),r=()=>{t.closeElement(SW)};return(e,t)=>{let i=JC,a=WC;return n.value?(S(),V(`div`,xW,[x(a,{class:`layer-locked-tip-popup`,show:n.value,dialogName:SW},{footer:G(()=>[c(`div`,{class:`rect-button blue`,onClick:t[0]||=e=>r()},d(e.$t(`common.actions.ok`)),1)]),default:G(()=>[x(i),c(`p`,null,d(e.$t(`colorSeparation.mobileWarning`)),1)]),_:1},8,[`show`])])):b(``,!0)}}},wW={__name:`ContentEditorPopup`,setup(e){let t=ye(),n=T(()=>t.getPopupItems(`contentEditorPopup`)),r=T(()=>n.value.filter(e=>!t.isElementDisabled(e.dataElement))),i=T(()=>t.isElementOpen(H.CONTENT_EDITOR_PANEL)),a=T(()=>t.getContentEditorType),o=J(!1),l=J(0),u=J(0),d=J(null),f,p=!1,m,g=!1,_=null,v=async e=>{o.value=!1;let n=U.getContentEditManager(),r=n.getSelectedEditBoxes();if(r.length){if(e===`delete`){if(!U.getPermission(`allowsCopying`)){t.openElement(`permissionPasswordDialog`);return}await n.deleteEditBoxes(r)}else if(e===`copy`){let e=[];n.setCopyAreas([]);for(let t of r){let r=await n.copyArea({editPagePtr:t.editPagePtr,editAreaPtr:t.editAreaPtr});e.push({editAreaInfoPtr:r,rect:t.frame})}await n.pasteAreaInPage(r[0].pageNumber,e)}}},y=async(e={})=>{let{rect:t,pageNumber:n}=e;if(o.value=!!t,await E(),g){_=e;return}let r=d.value.children[0];!t||!o.value||!r||requestAnimationFrame(()=>{let e=document.querySelector(`.page.page-number${n} .contentContainer`)?.getBoundingClientRect();if(!e){o.value=!1;return}let a=e.left+t.left,s=e.top+t.top,c={left:a,top:s,right:a+t.width,bottom:s+t.height},d=r.offsetWidth,f=r.offsetHeight+10,p=c.right-d,m=c.bottom,g=window.innerWidth,_=window.innerHeight;p>g-d&&(p=g-d),p<0&&(p=0),m+f>_&&(m=Math.max(0,c.top-f)),l.value=m,u.value=i.value?p+130:p})};U.addEvent(`showContentEditorPopup`,y);let C=()=>{o.value&&(o.value=!1,p=!0),p&&(clearTimeout(m),m=setTimeout(()=>{U.showPopup({type:`contentEditorPupop`}),p=!1},200))},w=()=>{t.toggleElement(H.CONTENT_EDITOR_PANEL)};return W(i,(e,t)=>{if(e!==t){let e=document.querySelector(`.editor-panel`)?.parentElement;if(e){let t=getComputedStyle(e);parseFloat(t.transitionDuration)*1e3>0&&(g=!0)}}}),M(()=>{f=document.querySelector(`.document-container`),f&&f.addEventListener(`scroll`,C);let e=document.querySelector(`.editor-panel`)?.parentElement;e&&(e.addEventListener(`transitionstart`,()=>g=!0),e.addEventListener(`transitionend`,()=>{if(g=!1,_){let e=_;_=null,y(e)}}))}),j(()=>{f&&f.removeEventListener(`scroll`,C)}),(e,t)=>{let n=JH,f=aA,p=lx,m=xD,g=tA;return S(),V(`div`,{ref_key:`contentEditorPopupRef`,ref:d},[R(c(`div`,{class:`content-editor-popup popup`,style:A({top:`${l.value}px`,left:`${u.value}px`,transform:`translateX(${!K(P)&&i.value?-130:0}px) translateY(5px)`})},[(S(!0),V(q,null,z(r.value,(r,o)=>(S(),V(q,{key:`${r.dataElement||new Date}-${o}`},[[`actionButton`,`statefulButton`,`toggleElementButton`,`toolButton`].includes(r.type)&&!r.hidden?(S(),s(n,{key:0,item:r},null,8,[`item`])):r.type===`copy`&&!r.hidden?(S(),s(p,{key:1,onClick:t[0]||=e=>v(`copy`),title:e.$t(`documentEditor.copy`),"data-element":r.dataElement},{default:G(()=>[x(f)]),_:1},8,[`title`,`data-element`])):r.type===`delete`&&!r.hidden?(S(),s(p,{key:2,onClick:t[1]||=e=>v(`delete`),title:e.$t(`common.actions.delete`),"data-element":r.dataElement},{default:G(()=>[x(m)]),_:1},8,[`title`,`data-element`])):r.type===`property`&&!r.hidden&&a.value!==`mix`?(S(),s(p,{key:3,onClick:w,title:e.$t(`common.properties`),"data-element":r.dataElement,isActive:i.value},{default:G(()=>[x(g)]),_:1},8,[`title`,`data-element`,`isActive`])):[`spacer`,`divider`].includes(r.type)?(S(),V(`div`,{key:4,class:D(r.type)},null,2)):b(``,!0)],64))),128))],4),[[Re,o.value&&r.value.length]])],512)}}},TW={__name:`CropPagePopup`,setup(e){let t=ye(),n=T(()=>t.getPopupItems(`cropPagePopup`)),r=T(()=>n.value.filter(e=>!t.isElementDisabled(e.dataElement))),i=J(!1),a=J(0),o=J(0),c=J(null),l=J(!0),u,d=!1,f,p=0,m=e=>{U.handlePopup({type:`cropPage`,tool:e})};U.addEvent(`snipSelected`,async e=>{let{rect:n}=e;if(p=e.pageNumber,i.value=!!n,await E(),t.setDisableHeader(i.value),i.value&&t.resetPanels(),n&&i.value){let t=U.pageToWindow({x:n.left,y:n.top},e.pageNumber),r=U.pageToWindow({x:n.right,y:n.bottom},e.pageNumber),i=U.getScrollViewElement();n={left:t.x-i.scrollLeft,top:t.y-i.scrollTop,right:r.x-i.scrollLeft,bottom:r.y-i.scrollTop};let s=c.value?.children[0];if(!s)return;let u=n.left+(n.right-n.left)/2,d=n.bottom,f=s.offsetWidth,p=s.offsetHeight+10,m=window.innerWidth,g=window.innerHeight;l.value=!0,u-f/2<0?(u=0,l.value=!1):u+f/2>m&&(u=m-f,l.value=!1),d+p>g&&(d=Math.max(0,n.top-p)),a.value=d,o.value=u}});let g=async()=>{_(await U.getCropedPageImage(p)),m(`close`)},_=(e,t)=>{let n=document.createElement(`a`);n.href=e,n.download=t||`image`,document.body.appendChild(n),n.click(),document.body.removeChild(n)},v=()=>{i.value&&(i.value=!1,d=!0),d&&(clearTimeout(f),f=setTimeout(()=>{U.showPopup({type:`cropPagePupop`,pageIndex:p-1}),d=!1},200))};return M(()=>{u=document.querySelector(`.document-container`),u&&u.addEventListener(`scroll`,v)}),j(()=>{u&&u.removeEventListener(`scroll`,v)}),(e,t)=>{let n=JH,u=$M,d=lx,f=Le;return S(),V(`div`,{ref_key:`cropPagePopupRef`,ref:c,onMousedown:t[1]||=Ae(()=>{},[`stop`]),onTouchstart:t[2]||=Ae(()=>{},[`stop`])},[i.value&&r.value.length?(S(),V(`div`,{key:0,class:D([`crop-page-popup popup`,{transform:l.value}]),style:A({top:`${a.value}px`,left:`${o.value}px`})},[(S(!0),V(q,null,z(r.value,(r,i)=>(S(),V(q,{key:`${r.dataElement||new Date}-${i}`},[[`actionButton`,`statefulButton`,`toggleElementButton`,`toolButton`].includes(r.type)&&!r.hidden?(S(),s(n,{key:0,item:r},null,8,[`item`])):r.type===`cropPage`&&!r.hidden?(S(),s(d,{key:1,onClick:g,title:e.$t(`toolbar.fileOperations.download`),"data-element":r.dataElement},{default:G(()=>[x(u)]),_:1},8,[`title`,`data-element`])):r.type===`close`&&!r.hidden?(S(),s(d,{key:2,onClick:t[0]||=e=>m(`close`),title:e.$t(`common.actions.exit`),"data-element":r.dataElement},{default:G(()=>[x(f)]),_:1},8,[`title`,`data-element`])):[`spacer`,`divider`].includes(r.type)?(S(),V(`div`,{key:3,class:D(r.type)},null,2)):b(``,!0)],64))),128))],6)):b(``,!0)],544)}}},EW=typeof window<`u`,DW=e=>typeof e==`string`,OW=()=>{},kW=EW&&(window==null?void 0:window.navigator)?.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function AW(e){return typeof e==`function`?e():K(e)}function jW(e){return e}function MW(e){return he()?(ie(e),!0):!1}function NW(e){let t=AW(e);return t?.$el??t}var PW=EW?window:void 0;EW&&window.document,EW&&window.navigator,EW&&window.location;function FW(...e){let t,n,r,i;if(DW(e[0])||Array.isArray(e[0])?([n,r,i]=e,t=PW):[t,n,r,i]=e,!t)return OW;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);let a=[],o=()=>{a.forEach(e=>e()),a.length=0},s=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),c=W(()=>[NW(t),AW(i)],([e,t])=>{o(),e&&a.push(...n.flatMap(n=>r.map(r=>s(e,n,r,t))))},{immediate:!0,flush:`post`}),l=()=>{c(),o()};return MW(l),l}var IW=!1;function LW(e,t,n={}){let{window:r=PW,ignore:i=[],capture:a=!0,detectIframe:o=!1}=n;if(!r)return;kW&&!IW&&(IW=!0,Array.from(r.document.body.children).forEach(e=>e.addEventListener(`click`,OW)));let s=!0,c=e=>i.some(t=>{if(typeof t==`string`)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=NW(t);return n&&(e.target===n||e.composedPath().includes(n))}}),l=[FW(r,`click`,n=>{let r=NW(e);if(!(!r||r===n.target||n.composedPath().includes(r))){if(n.detail===0&&(s=!c(n)),!s){s=!0;return}t(n)}},{passive:!0,capture:a}),FW(r,`pointerdown`,t=>{let n=NW(e);n&&(s=!t.composedPath().includes(n)&&!c(t))},{passive:!0}),o&&FW(r,`blur`,n=>{let i=NW(e);r.document.activeElement?.tagName===`IFRAME`&&!i?.contains(r.document.activeElement)&&t(n)})].filter(Boolean);return()=>l.forEach(e=>e())}var RW=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},zW=`__vueuse_ssr_handlers__`;RW[zW]=RW[zW]||{},RW[zW];var BW;(function(e){e.UP=`UP`,e.RIGHT=`RIGHT`,e.DOWN=`DOWN`,e.LEFT=`LEFT`,e.NONE=`NONE`})(BW||={});var VW=Object.defineProperty,HW=Object.getOwnPropertySymbols,UW=Object.prototype.hasOwnProperty,WW=Object.prototype.propertyIsEnumerable,GW=(e,t,n)=>t in e?VW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;((e,t)=>{for(var n in t||={})UW.call(t,n)&&GW(e,n,t[n]);if(HW)for(var n of HW(t))WW.call(t,n)&&GW(e,n,t[n]);return e})({linear:jW},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});var KW={class:`popup-container`},qW={class:`color-picker`},JW={class:`preview-container active`},YW={class:`text-font`},XW={__name:`FreetextPopup`,emits:[`setActiveColor`],setup(e,{emit:t}){let n=fw(),r=ye(),i=J(null),a=J(null),o=J(null),l=J(`top`),u=J(0),d=J(!1),f=J(!1),p=T(()=>r.isElementOpen(H.STYLE_PANEL)),m=T(()=>r.isElementOpen(H.LEFT_PANEL)),g=T(()=>r.getIsAnnotationPopup),_=T(()=>n.getActiveTool),v=T(()=>r.getCustomFonts),y=T(()=>r.getUserAdmin),C=T(()=>r.getReadOnly),w=T(()=>n.getAnnotator),O=J(0),k=J(0),ee=J(null),F=!1,te=null,I,z=null,ne=J(!y.value&&(C.value||z&&w.value!==z.author));U.addEvent(`LoadFont`,e=>{let t=e.fontFamily;r.setCustomFonts(t)}),W([y,C],()=>{ne.value=!y.value&&(C.value||z&&w!==z.author)}),W(()=>v.value,(e,t)=>{ie.value=re(e)},{deep:!0});let re=e=>{if(e.length)return e.map(e=>({label:e.fontFamily,value:e.fontName}))},ie=J([]);ie.value=re(v.value);let B=N({fontName:`Helvetica`,fontStyle:`normal`,fontWeight:`normal`,fontSize:14,color:`rgb(0, 0, 0)`,textAlignment:`left`});LW(o,()=>{d.value=!1});let ae=()=>{r.toggleElement(H.STYLE_PANEL)},oe=()=>{B.fontWeight=B.fontWeight===`bold`?`normal`:`bold`,_e({fontWeight:B.fontWeight})},se=e=>{let t=B.fontSize;e===`increase`?t+=1:e===`decrease`&&--t,t=Math.max(6,t),t=Math.min(72,t),B.fontSize=t,_e({fontSize:B.fontSize})},ce=()=>{B.fontStyle=B.fontStyle===`oblique`?`normal`:`oblique`,_e({fontStyle:B.fontStyle})},le=async e=>{let{rect:t,pageNumber:n}=e,r=U.pageToWindow({x:t.x1,y:t.y1},n),i=U.pageToWindow({x:t.x2,y:t.y2},n),a=i.x-r.x,o={x:r.x+a/2,y:r.y};if(f.value=!0,await E(),!ee.value)return;let s=ee.value,c=s.offsetWidth,u=s.offsetHeight+10,d=Math.max(o.x-c/2-I.scrollLeft,0);d+c>I.offsetWidth+I.offsetLeft+(!P&&p.value?260:0)&&(d=I.offsetWidth-c);let m=o.y-u-8-I.scrollTop;l.value=`top`,m<=150&&(m=i.y+15-I.scrollTop,l.value=`bottom`),k.value=d,O.value=m},ue=async()=>{if(d.value=!d.value,!d.value)return;let e=o.value.offsetLeft-i.value.scrollLeft,t=o.value.offsetWidth;await E();let n=a.value.offsetWidth;u.value=e+t/2-n/2},de=()=>{f.value=!1};W([m,p],()=>{z&&setTimeout(()=>{le({rect:z.getRect(),pageNumber:z.getPageNumber()},!0)},320)}),U.addEvent(`annotationDeselected`,e=>{z&&(e.length===1&&e[0].name!==z.name?f.value=!0:(z=null,de()))}),U.addEvent(`annotationSelected`,e=>{let t=e.length===1?e[0]:null;if(!t||t.type!==`freetext`){z=null,de();return}ge(t),le({rect:t.getRect(),pageNumber:t.getPageNumber()}),z=t,ne.value=!y.value&&(C.value||z&&w.value!==z.author)}),U.addEvent(`mouseMoving`,e=>{le(e)}),U.addEvent(`annotationChanged`,e=>{e=Array.isArray(e)?e[0]:e,z&&z===e&&ge(e)});let fe=()=>{f.value&&(f.value=!1,F=!0),F&&(clearTimeout(te),te=setTimeout(()=>{z&&le({rect:z.getRect(),pageNumber:z.getPageNumber()}),F=!1},200))};M(()=>{I=document.querySelector(`.document-container`),I&&I.addEventListener(`scroll`,fe),i.value.addEventListener(`scroll`,()=>{d.value&&=!1})}),j(()=>{I&&I.removeEventListener(`scroll`,fe)});let pe=e=>{_w(e,B.color)||(B.color=e)},me=e=>{B.color=e=e};W(()=>B.color,e=>{e&&_e({color:e})}),W(()=>B.fontName,e=>{e&&_e({fontName:e})}),W(()=>_.value,(e,t)=>{t===L.FREETEXT&&e!==L.FREETEXT&&p.value&&r.closeElement(H.STYLE_PANEL)});let he=e=>{B.textAlignment=e,_e({textAlignment:B.textAlignment}),d.value=!1},ge=e=>{B.fontSize=e.fontSize,B.fontName=e.fontName,B.fontStyle=e.fontStyle,B.fontWeight=e.fontWeight,B.color=e.color,B.textAlignment=e.textAlignment},_e=e=>{if(z){let t={};Object.keys(e).forEach(n=>{e[n]!==z[n]&&z[n]!==void 0&&(t[n]=e[n])}),Object.keys(t).length>0&&U.setAnnotationStyles(z,t)}},ve=e=>{z&&z.handleDelete()};return(e,t)=>{let n=lx,r=UV,m=ZV,_=$b,v=NM,y=$A,C=tI,w=tA,T=xD;return R((S(),V(`div`,{ref_key:`freetextPopupRef`,ref:ee,class:`freetext-popup popup`,style:A({top:`${O.value}px`,left:`${k.value}px`})},[c(`div`,{ref_key:`popupWrapperRef`,ref:i,class:`popup-wrapper`},[R(c(`div`,{ref_key:`alignContainerRef`,ref:a,class:D([`align-container`,l.value]),style:A({left:u.value+`px`}),onClick:t[3]||=Ae(()=>{},[`stop`])},[x(n,{isActive:B.textAlignment===`left`,onClick:t[0]||=e=>he(`left`)},{default:G(()=>[x(qV)]),_:1},8,[`isActive`]),x(n,{isActive:B.textAlignment===`center`,onClick:t[1]||=e=>he(`center`)},{default:G(()=>[x(r)]),_:1},8,[`isActive`]),x(n,{isActive:B.textAlignment===`right`,onClick:t[2]||=e=>he(`right`)},{default:G(()=>[x(m)]),_:1},8,[`isActive`])],6),[[Re,d.value]]),c(`div`,KW,[c(`div`,qW,[c(`div`,JW,[c(`div`,{class:`preview`,style:A({backgroundColor:B.color})},null,4)]),x(K(gv),{to:`.freetext-popup`,onComplete:pe,"onUpdate:value":me,value:B.color,"show-alpha":!1},{label:G(()=>[...t[9]||=[c(`img`,{src:``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,alt:`colorPicker`},null,-1)]]),_:1},8,[`value`])]),c(`div`,YW,[x(K(kv),{"consistent-menu-width":!1,value:B.fontName,"onUpdate:value":t[4]||=e=>B.fontName=e,options:ie.value,to:`.freetext-popup`,class:`text-family`},{arrow:G(()=>[x(_)]),_:1},8,[`value`,`options`])]),x(n,{onClick:t[5]||=e=>se(`increase`),class:`button`},{default:G(()=>[x(UF)]),_:1}),x(n,{onClick:t[6]||=e=>se(`decrease`),class:`button`},{default:G(()=>[x(v)]),_:1}),x(n,{isActive:B.fontWeight===`bold`,onClick:t[7]||=e=>oe()},{default:G(()=>[x(y)]),_:1},8,[`isActive`]),x(n,{isActive:B.fontStyle===`oblique`,onClick:t[8]||=e=>ce(),class:`button`},{default:G(()=>[x(C)]),_:1},8,[`isActive`]),c(`div`,{ref_key:`alignRef`,ref:o},[x(n,{isActive:d.value,class:`alignment`,onClick:ue},{default:G(()=>[B.textAlignment===`left`?(S(),s(qV,{key:0})):B.textAlignment===`center`?(S(),s(r,{key:1})):B.textAlignment===`right`?(S(),s(m,{key:2})):b(``,!0)]),_:1},8,[`isActive`])],512),t[10]||=c(`div`,{class:`divider`},null,-1),x(n,{onClick:ae,isActive:p.value,class:`property sidebar-style`},{default:G(()=>[x(w)]),_:1},8,[`isActive`]),x(n,{onClick:ve,class:`property sidebar-style`},{default:G(()=>[x(T)]),_:1})])],512)],4)),[[Re,f.value&&g.value&&!ne.value]])}}},ZW=r(((e,t)=>{t.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case`INPUT`:case`TEXTAREA`:t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type===`Caret`&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}})),QW=e(r(((e,t)=>{var n=ZW(),r={"text/plain":`Text`,"text/html":`Url`,default:`Text`},i=`Copy to clipboard: #{key}, Enter`;function a(e){var t=(/mac os x/i.test(navigator.userAgent)?`⌘`:`Ctrl`)+`+C`;return e.replace(/#{\s*key\s*}/g,t)}function o(e,t){var o,s,c,l,u,d,f=!1;t||={},o=t.debug||!1;try{if(c=n(),l=document.createRange(),u=document.getSelection(),d=document.createElement(`span`),d.textContent=e,d.ariaHidden=`true`,d.style.all=`unset`,d.style.position=`fixed`,d.style.top=0,d.style.clip=`rect(0, 0, 0, 0)`,d.style.whiteSpace=`pre`,d.style.webkitUserSelect=`text`,d.style.MozUserSelect=`text`,d.style.msUserSelect=`text`,d.style.userSelect=`text`,d.addEventListener(`copy`,function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),n.clipboardData===void 0){o&&console.warn(`unable to use e.clipboardData`),o&&console.warn(`trying IE specific stuff`),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),l.selectNodeContents(d),u.addRange(l),!document.execCommand(`copy`))throw Error(`copy command was unsuccessful`);f=!0}catch(n){o&&console.error(`unable to copy using execCommand: `,n),o&&console.warn(`trying IE specific stuff`);try{window.clipboardData.setData(t.format||`text`,e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){o&&console.error(`unable to copy using clipboardData: `,n),o&&console.error(`falling back to prompt`),s=a(`message`in t?t.message:i),window.prompt(s,e)}}finally{u&&(typeof u.removeRange==`function`?u.removeRange(l):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}t.exports=o}))()),$W={__name:`TextPopup`,setup(e){let t=ye(),n=fw(),r=T(()=>t.getPopupItems(`textPopup`)),i=T(()=>r.value.filter(e=>!t.isElementDisabled(e.dataElement))),a=T(()=>t.getReadOnly),o=J(!1),c=J(0),l=J(0),u=J(null),d=J(!0),f=J(null),p,m=!1,g,_=0,v=e=>{if(e===`copy`&&f.value){if(!U.getPermission(`allowsCopying`)){t.openElement(H.PERMISSION_PASSWORD_DIALOG);return}(0,QW.default)(f.value),o.value=!1,f.value=null;return}let r={tool:e},i=n[e]?.color;i&&(r.color=i),U.handlePopup({type:`text`,tool:r})};U.addEvent(`showTextPopup`,async e=>{let{show:t,rect:n,text:r}=e;if(o.value=t,f.value=r,await E(),n&&o.value){let e=u.value.children[0];if(!e)return;let t=n.left+(n.right-n.left)/2,r=n.bottom,i=e.offsetWidth,a=e.offsetHeight+10,o=window.innerWidth,s=window.innerHeight;d.value=!0,t-i/2<0?(t=0,d.value=!1):t+i/2>o&&(t=o-i,d.value=!1),r+a>s&&(r=Math.max(0,n.top-a)),c.value=r,l.value=t}});let y=()=>{o.value&&(o.value=!1,m=!0),m&&(clearTimeout(g),g=setTimeout(()=>{U.showPopup({type:`textPupop`,pageIndex:_}),m=!1},200))};return M(()=>{p=document.querySelector(`.document-container`),p&&p.addEventListener(`scroll`,y)}),j(()=>{p&&p.removeEventListener(`scroll`,y)}),U.addEvent(`textSelected`,e=>{_=e.pageNumber-1}),(e,t)=>{let n=JH,r=aA,f=lx,p=yF,m=_H,g=DV,_=hV;return S(),V(`div`,{ref_key:`textPopupRef`,ref:u},[o.value&&i.value.length?(S(),V(`div`,{key:0,class:D([`text-popup popup`,{transform:d.value}]),style:A({top:`${c.value}px`,left:`${l.value}px`})},[(S(!0),V(q,null,z(i.value,(i,o)=>(S(),V(q,{key:`${i.dataElement||new Date}-${o}`},[[`actionButton`,`statefulButton`,`toggleElementButton`,`toolButton`].includes(i.type)&&!i.hidden?(S(),s(n,{key:0,item:i},null,8,[`item`])):i.type===`copy`&&!i.hidden?(S(),s(f,{key:1,onClick:t[0]||=e=>v(`copy`),title:e.$t(`documentEditor.copy`),"data-element":i.dataElement},{default:G(()=>[x(r)]),_:1},8,[`title`,`data-element`])):i.type===`highlight`&&!i.hidden&&!a.value?(S(),s(f,{key:2,onClick:t[1]||=e=>v(`highlight`),title:e.$t(`toolbar.annotationTools.highlight`),"data-element":i.dataElement},{default:G(()=>[x(p)]),_:1},8,[`title`,`data-element`])):i.type===`underline`&&!i.hidden&&!a.value?(S(),s(f,{key:3,onClick:t[2]||=e=>v(`underline`),title:e.$t(`toolbar.annotationTools.underline`),"data-element":i.dataElement},{default:G(()=>[x(m)]),_:1},8,[`title`,`data-element`])):i.type===`strikeout`&&!i.hidden&&!a.value?(S(),s(f,{key:4,onClick:t[3]||=e=>v(`strikeout`),title:e.$t(`toolbar.annotationTools.strikeout`),"data-element":i.dataElement},{default:G(()=>[x(g)]),_:1},8,[`title`,`data-element`])):i.type===`squiggly`&&!i.hidden&&!a.value?(S(),s(f,{key:5,onClick:t[4]||=e=>v(`squiggly`),title:e.$t(`toolbar.annotationTools.squiggly`),"data-element":i.dataElement},{default:G(()=>[x(_)]),_:1},8,[`title`,`data-element`])):[`spacer`,`divider`].includes(i.type)?(S(),V(`div`,{key:6,class:D(i.type)},null,2)):b(``,!0)],64))),128))],6)):b(``,!0)],512)}}},eG={key:0,class:`redaction-confirm-dialog`},tG={key:1},nG={__name:`RedactionConfirmDialog`,setup(e){let t=ye(),n=fw(),r=T(()=>t.getRedactionConfirmDialog),i=T(()=>r.value>=0),a=()=>{t.setRedactionConfirmDialog(-1)},o=async()=>{let e=r.value===1?`all`:null;t.setCommonLoading(!0),a(),await U.applyRedactions(e),n.setToolState(``),t.setActiveToolMode(`view`),t.setToolbarGroup(`toolbarGroup-View`),t.setCommonLoading(!1)};return(e,t)=>{let n=WC;return i.value?(S(),V(`div`,eG,[x(n,{show:i.value,close:a,class:`confirm-dialog`},{header:G(()=>[c(`p`,null,d(r.value===1?e.$t(`common.actions.save`):e.$t(`redaction.note`)),1)]),footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:a},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:o},d(r.value===1?e.$t(`common.actions.save`):e.$t(`common.actions.exit`)),1)]),default:G(()=>[r.value===1?(S(),V(q,{key:0},[c(`p`,null,d(e.$t(`redaction.saveWarning`)[0]),1),t[0]||=c(`br`,null,null,-1),c(`p`,null,d(e.$t(`redaction.saveWarning`)[1]),1)],64)):(S(),V(`p`,tG,d(e.$t(`redaction.exitWarning`)),1))]),_:1},8,[`show`])])):b(``,!0)}}},rG={key:0,class:`add-digital-file-dialog`},iG={class:`input-file row`},aG={class:`addition`},oG={class:`icon-file`},sG={class:`input-pwd row`},cG=[`placeholder`],lG={key:0,class:`error-text`},uG={__name:`AddDigitalFileDialog`,setup(e){let t=H.ADD_DIGITAL_FILE_DIALOG,n=ye(),r=fw(),{t:i}=It(),a=i,o=T(()=>n.isElementOpen(t)),s=J(null),l=J(!1),u=J(``),f=J(null);W(()=>o.value,(e,t)=>{e&&(s.value=null,l.value=!1)});let p=e=>{e&&(document.body.style.overflow=``),n.closeElement(t),u.value=``},m=async()=>{if(!s.value)return;let e=await g();if(!e)return;n.setCommonLoading(!0);let t=e.subject,r=new Date,i=`${r.getFullYear()}.${r.getMonth()+1<10?`0${r.getMonth()+1}`:r.getMonth()+1}.${r.getDate()<10?`0${r.getDate()}`:r.getDate()} ${r.getHours()<10?`0${r.getHours()}`:r.getHours()}:${r.getMinutes()<10?`0${r.getMinutes()}`:r.getMinutes()}:${r.getSeconds()<10?`0${r.getSeconds()}`:r.getSeconds()}`,o=`${a(`signatures.appearance.name`)}: ${t.CN}\n${a(`signatures.appearance.date`)}: ${i}`,c=await U.getSignature({rect:{width:582,height:187,top:0,left:0,right:582,bottom:187},content:o,text:t.CN,isDrawLogo:!0,logoBase64:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAEYCAYAAACHjumMAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA9kSURBVHgB7d1vbJXlGcfx635KpUWqJWgiZGgxg2ZG52k1pmqmJdYl6kZwW8S5F4hlKvGFmG3RZWYU4wuX7QUsMdpsSn3j3LJMo3FLJobqMmMWpDUuS4BkdpKAyWAFi4JAz737Oj2Hlv45PX+e+/x57u8nOZ4/Lbw4nvPjuq77fp7HSAy67x9tPSWyzhhJpSNzhbGSsmJa3fNWAeqBtSNiZMSk7YfWyLCkZfD9gSUjgrIYKVEmVKLoUTG22/013QIkjBE7bK3dQdiUruiAyQWLFdlChYJgWBmQdHobQVOcogKm64HjWwkWBM1K3/svXrxNUJCCAqbr/tE20xC96sIlJUDorIy4amYN1cz8ovl+oav3sw02ioYIFyDLSJttiIZu7B1dJ8grb8BoS+TieoCWCDifK/1brUSvTnxHMJc5W6TMG2ekTwDkx1xmTrMGjJZ+ms4CoEDm/vdfuOglwXlmBIwOdHXmQlsEFM7NKI+Z8XQHg9/zzZzBRNFuwgUojs5kdKVVcJ7zAiY7d2kTAEXTldauB0b7BOeca5G0NZKG6GMBUDJtlZrH0ysHB5YcE0ypYFgxAsqmrdKpSLYIMjIVDNULEB+qmElR9r/dAiAWVDGTMgFjTPSoAIiPabhVIIb2CPCjaTy9JPQ2KaI9AvxwbVLwB0NGenpLARA7vlsuYGxkrhUAsUtHUZsELnJraisFQOxcBRP8P96RW0K6QgDEznJM3/xntANQGt0PI4EjYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAmwUCFGjZUiOXXRLJMr0tjTLPFy8y0uJu+ppa3DzxHBM6v/+8lTpgjYyIdbe0fOieDcu4DA7fsXlEykTAYAYNiK+uiGTVigZZ7e5XX94gl7lAITiSy1hpc3dtrqfpds8yvU1qV/+wpNM7ygkbAgaZ4PhGxwIXJg1yi7vX6gQwYlMSmZ0TYfP8gJyx24oNGtPVe7wuSjjEq6O9QW7taJROd6+VCvzofLtfksQa0zd820PbCv19AiYguVC586ZG2p0KSVrAZI3YM3ZNIdUMLVLCESrwoM00ypCb0Wwc7nnotXy/SMAkkAbJHS5QbnXzlM52/hfDB9PqZjSvpt7uz9sy8elLEA2We3oaZX3PQqoVVISxts+FjMwVMgRMAugelN61C+UuV7UAlZYJmV39I65demn6z1iPrGMaLM/+ZJH86ZnFhAuqykh6e+ovz7VNf50Kpg5RsaD2uJlMo3nVPeiY+ioVTB3RuUrv2gvkpZ9fSLigBtlU6q3n+qa+QsDUCd1h+9LWC2XT2iYGuKhZxsijqd07W3PPaZFqnLZDT25sYrkZdcK0ytlTW9yDPn1GBVPD1vdMtEOEC+rJ1CqGT24NompBfZusYvgE1xitWnSFiDkL6pkx5la9J2BqRG6FSHfhAgnQrW0SAVMDchvmOA8LEuXMqXUETJXp8vOTG5tpiZA8kUkRMFW0aa3OW5oESCJjbRsBUyVb7l3IvAXJZsy1BEyFaSv0zCPNLEEjAJYhbyXpMPcXLlw4By7CYAiYSmGlCCHi014BhAtCxSfeM8IFIeNT7xHhgtDxyfdEV4t0oEu4IGR8+j352cYmVosQPALGA91Epxc7A0JHwMRsE0dEA+cQMDHSAxc5tgiYRMDEZOIsdM0CYBIBEwNdMdLlaE65AJyPgImBnomO5WhgJr4VZbrz5kaGusAcCJgy6Nxly3qGusBcCJgy6KVFmLsAcyNgSqT7XThpFJAfAVMCbY3uYe4CzIuAKQEXRgMKQ8AUSVeN7rqJ44yAQhAwRdCqZdNaWiOgUARMEdb3NLKhDigC35YC6WCXAxmB4hAwBeqlNQKKRsAUQKsXBrtA8QiYAlC9AKUhYOZB9QKUjoCZB9ULUDoCJg+qF6A8BEweVC9AeQiYPDrbua4RUA4CZg56zBG7doHy8A2aw709FwiA8nDGpFmsXtHAZV8LdPjUmOz53yHZd+Jo5vEhdxs7czpzDxAws7jndqqXfD4YPSS7/zsig+5GkCAfAmYWDHdnGjv7pbx88J/y8icfZR4DhSBgptFwYbg7iWBBOQiYae68mfYoR0Ol/+MPCBaUjICZhvZIMnOVvn8Nyh43awHKQcBMQXtE1YJ4ETBT3NIR9nFHvzrwXiZggLgQMFOE3B5tdS3RG4f3CRAnAiZLj5wOdXPdvf/4o+wfOypA3FiPzVq1Isy3QisXwgW+EDBZIc5f+v+9h7YIXhEwWasDq2Byq0WATwSMTFyxMaT5i+5zIVxQCQSMhDd/+eHeN9jngoogYESCql5edzOXwyc5AhqVQcCI7n8JY7We1giVRsCI7oExEoKXD35E9YKKImAkjBZJq5c3Du0XoJKCDxjdwRsCPTKawS4qjYBZGkZ7xOwF1RB8wFx2SfLbIz2HLrMXVAMVTAAVzOuHmb2gOgiYAGYwe45xZjpUR/AB09Kc7ApGV49oj1AtwQfM4kWSaPvHjghQLVQwi5JdwezjXC+oIiqYRcl+C/SSrkC1EDDNkmiHubQrqogWKeEt0mdnTgtQLRyLlHBUMKgmAgaANwQMAG8IGADeEDAJt6ypRYBqCT5gxr6wkmQXNV4gQLUEHzAnTkqiUcGgmmiREm45AYMqCj5gDh8ZlyRbvXipANVCi/SFJNr1S5YLUC0MeU8me8i7vLmFOQyqhhbpSFqSbs2lbQJUAwFzNNkVjOomYFAlwQfMpwkf8iqdw7QsWChApVHBBFDBqPtWXC1ApREwbgaT9N286r7Lr6GKQcWx0c759GjyB70aLlQxqDQCxtl/MPkBo6hiUGkEjHPgk+QPepWGy4MrOwWoFALGOXAwjIBRP7j863Jd6zIBKoGAEQ2YMFqknG1XraFVQkUQMDJxTphQlquVHj5Aq4RKIGCy3h06IyHRVum+FdcI4BMBkxXKStJUP159k3xrWbsAvhAwWX8LrILJeeqqblndwjlj4AcBk6VzmJBWk6Z65YbvUcnACwJmir37wgwYpZXMgyuvEyBOBMwUoQ16p3v4yuvlR6tuZAkbsSFgptAKJoQDH/PR1aXf3fBdzoKHWBAw0/z5vbCrGKX7ZN68+T7p+1o3QYOyEDDThN4mTbV2ebv8pvPbmf0ytE0ohenqPR52TzCLv/66RVoWGcGkQyfHZM/oIen/+AM5fGpMgEI0fKXzp32C8yy9OJKrr2wQTGppXCjtLZe4Gc01cl32UihjZ0/LCXcD5rJAMIO2Set7uKbzXPQcv7nrLWlls+/EEdk/dtTdH8081+ChyoEiYGahq0l7952VznbenvnoQFhvay5dKZip8+1+CRlD3jm8O3RWAJSHgJmDLleHvicGKBcBMwcNlz/sYoAJlIOAyeP3BAxQFgImD61i3mRnL1AyAmYeL7z+pQAoDQEzD73yoy5ZAygeAVOAp3eeEgDFI2AKoFUMsxigeARMgXQWw74YoDgETIG0imFfDFAcAqYIui/m8NHwLm8ClIqAKYK2SNtfYeALFIqAKZIeBMmyNVAYAqYEumzNwBeYHwFTAh34vsgOX2BeBEyJXnEDX1olID8Cpgy0SkB+BEwZaJWA/AiYMmmrxHljgNkRMDHQwwjYgAfMRMDEQOcwj/zyC+YxwDQETEx0HvP0zpMCYBIBEyPd5csZ8IBJBEzMfusChqEvMIGA8UAPiGQTHkDAePPEsyflwMFxAUJGwHiiK0qPu5Bh+RohI2A80pUlXb4mZBAqAsYzQgYhI2AqgJBBqAiYCsmFDINfhCSyIscEFZELmXeGuMYSwhAZa48LKkZXl3QJm814CEFkjB0WVJxuxuOwAiRdJGkZEVSFHlbw+LMchY3kiqwRKpgq0gMkNzz1OStMSKSoKS2vCapKh78btn3OXAaJEw0OLHGrSGZQUFW5q0bqOWVomZAUE/tg7Pg7gprw5t/PZFomjsZGEmQCxrVJ29kPUzty+2V0lYlqBvUsEzDaJhmb3iGoKbrKpNXMm++xMQ/16dyhAlQxtSlzrt8XT2ZmM6w0od6cCxiqmNqWmc24lSY256GemOkv3Nh7fMhVMilBzVp2SSS9axfKXTc1Cmpb59v9ErIZR1PbxvTdtEq1Ldc2feeJE8xnUNPMbC92PTB6v5hop6AuUNHUrtArGDPXD7o2He8TK1sFdSMXNJ3tDbJsKaf6qQUETB6ETP266+ZGWd+zUFatIGiqiYCZx429o+vSEu10v9gqqDurVjTI+tsvoKqpEgKmAF0Pj7bJmWi3e9gmqFud7QvkTlfZEDaVQ8AUgZYpOTRsbulYkLmnjfKHgClStprpcw83CBJBh8PaSmngrHb3BE58CJgSZYLmtHS7v2KLGHOtIDFaFplM4GjQdLgKZ3kmgAidUhAwMciFjTFRylqru4DbXOhcIUgUndtotXOZuy1bajLPF7swasne9PHi5omAwgQCJnAdu57nfAiAJ9S9ALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANASP2mADwgoAROS4AfBgJPmCsNcMCIH7W/ocKxsiIAIidNWaYgDGWCgbwwX23CJio6TUBEL9IBoMPmOE1G3UVaVAAxGl4eM1mhrzKWvuOAIiNNXaH3hMwakHTdvbDADGKJroCAkYm2iRrZYcAKJsxMqDtkT4mYHKoYoBYpCO7LfeYgMmiigHKZ6zdlqteMs8F5+nY1T/kKpmUACiOkZGh2x5eOfUlKphpbEP6bloloEjGHrORXTP9ZQJmGi3vrJHHBEDBrI02Tm2NcgiYWQzftnlAe0kBMK/M3KXnoVl3xDODyaPzref6rDFbBcCsNFz23r65b86fC/JK7epfZyS9071VrQJggpu5mHF5bO83Nw/k/TXBvFK7n2szabNbrLQJEDwzrIshs81cZvymoGC0TAiaVi1p2ZGvJZrxRwRFyVQz49Ln3roNAoQgGyzpBU3bs2cfKPyPCkqiQSNp6TbWbHFPrxUgaax9xwXEYCnBkkPAxCAXNpE1KWttyr2rbe6tvUKAeuAqFDdfPO5uw8aYkbSe5TFqeq3UUJnq/zPmsRQ9GquGAAAAAElFTkSuQmCC`});n.setCertSubject(t),n.setDigitalSignaturePreview(c),n.setCommonLoading(!1),p(),n.openElement(H.SIGNATURE_APPEARANCE_DIALOG)},g=async()=>{let e=new FileReader,t=await new Promise((t,n)=>{e.addEventListener(`load`,async e=>{t(new Uint8Array(e.target.result))}),e.addEventListener(`error`,()=>{n(`Error reading the local certificate`)}),e.readAsArrayBuffer(s.value)}),n=await U.loadCertificates({pkcs12Buffer:t,password:u.value});return l.value=!n,n&&r.setPkcs12({pkcs12Buffer:t,password:u.value}),n},_=()=>{f.value.click()},v=e=>{let t=e.target.files[0],n=t?.name.split(`.`).pop().toLowerCase();n!==`pfx`&&n!==`p12`||(s.value=t,f.value.value=``)};return(e,n)=>{let r=WT,i=WC;return o.value?(S(),V(`div`,rG,[x(i,{show:o.value,dialogName:K(t),close:!0,onMousedown:n[3]||=Ae(()=>{},[`stop`])},{header:G(()=>[y(d(K(a)(`signatures.digitalDialog.title`)),1)]),footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:n[2]||=e=>p(`cancel`)},d(K(a)(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:m},d(K(a)(`common.actions.continue`)),1)]),default:G(()=>[c(`p`,null,d(K(a)(`signatures.digitalDialog.description`)),1),c(`div`,iG,[c(`span`,null,d(K(a)(`signatures.digitalDialog.certificateFile`)),1),c(`div`,aG,[c(`div`,{class:`file-input-underbox`,onClick:_},[c(`span`,{class:D({uploaded:s.value?.name})},d(s.value?.name||K(a)(`signatures.digitalDialog.uploadFile`)),3),c(`span`,oG,[x(r)])]),c(`input`,{ref_key:`uploadFileEl`,ref:f,type:`file`,onChange:v,accept:`.pfx,.p12`,name:`digital-signature`},null,544)])]),c(`div`,sG,[c(`span`,null,d(K(a)(`signatures.digitalDialog.password`)),1),c(`div`,null,[R(c(`input`,{"onUpdate:modelValue":n[0]||=e=>u.value=e,type:`password`,placeholder:K(a)(`signatures.digitalDialog.enterPassword`),onInput:n[1]||=e=>l.value&&=!1,name:`digital-signature`},null,40,cG),[[Me,u.value]]),l.value?(S(),V(`p`,lG,d(K(a)(`signatures.digitalDialog.invalidPassword`)),1)):b(``,!0)])])]),_:1},8,[`show`,`dialogName`])])):b(``,!0)}}},dG={key:0,class:`delete-page-popup`},fG=`deleteConfirmDialog`,pG={__name:`DeleteSignatureDialog`,setup(e){let t=ye(),n=fw(),r=T(()=>t.isElementOpen(fG)),i=T(()=>n.getSelectedSignature),a=()=>{t.closeElement(fG),n.setSelectedSignature(null)},o=()=>{U.deleteSignature(JSON.parse(JSON.stringify(i.value))),a(),t.setSignatureVerify(0)};return(e,t)=>{let n=JC,i=WC;return r.value?(S(),V(`div`,dG,[x(i,{show:r.value,dialogName:fG},{footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:a},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:o},d(e.$t(`common.actions.ok`)),1)]),default:G(()=>[x(n),c(`p`,null,d(e.$t(`signatures.deleteConfirm`)),1)]),_:1},8,[`show`])])):b(``,!0)}}},mG={key:0,class:`certification-details-dialog`},hG={class:`title`},gG={class:`desc`},_G={class:`container`},vG={class:`left`},yG=[`onFocus`],bG={class:`right`},xG={class:`tabs`},SG={class:`panel`},CG={class:`summary`},wG={class:`title`},TG={class:`info`},EG={class:`abstracts`},DG={class:`details`},OG={class:`trust`},kG={class:`trust-button`},AG=`certificateViewerDialog`,jG={__name:`CertificationViewerDialog`,setup(e){let t=ye(),n=fw(),r=T(()=>t.isElementOpen(AG)),i=T(()=>n.getSelectedSignature),a=T(()=>i.value.signerList[0].certificateList[l.value]),o=J(1),l=J(0),u=()=>{t.closeElement(AG)},f=e=>`${e.slice(0,4)}/${e.slice(4,6)}/${e.slice(6,8)} ${e.slice(8,10)}:${e.slice(10,12)}:${e.slice(12,14)}`,p=()=>{if(a.value.isTrusted)return;let e=U.addToTrustedCertificateLists(l.value);a.value.isTrusted=!!e,e&&n.setTrustedCertificateLists(e)};return(e,t)=>{let n=jV,m=UN,g=WC;return r.value?(S(),V(`div`,mG,[x(g,{show:r.value,dialogName:AG},{header:G(()=>[c(`p`,hG,d(e.$t(`signatures.certificateViewer.title`)),1),c(`p`,gG,d(e.$t(`signatures.certificateViewer.title`)),1)]),footer:G(()=>[c(`div`,{class:`rect-button blue`,onClick:u},d(e.$t(`signatures.certificateViewer.trust.done`)),1)]),default:G(()=>[c(`div`,_G,[c(`div`,vG,[(S(!0),V(q,null,z(i.value.signerList,(e,n)=>(S(),V(`p`,{key:n,class:D({highlighted:l.value===n}),onFocus:e=>l.value=n,onBlur:t[0]||=e=>l.value=0,tabindex:`-1`},d(e.certificateList[0].subject.CN),43,yG))),128))]),c(`div`,bG,[c(`div`,xG,[c(`div`,{onClick:t[1]||=e=>o.value=1,class:D({active:o.value===1})},d(e.$t(`signatures.certificateViewer.abstracts`)),3),c(`div`,{onClick:t[2]||=e=>o.value=2,class:D({active:o.value===2})},d(e.$t(`signatures.certificateViewer.details.title`)),3),c(`div`,{onClick:t[3]||=e=>o.value=3,class:D({active:o.value===3})},d(e.$t(`signatures.certificateViewer.trust.title`)),3)]),c(`div`,SG,[c(`div`,CG,[c(`div`,wG,d(o.value===3?e.$t(`signatures.certificateViewer.trust.sign`):e.$t(`signatures.certificateViewer.summary`)),1),c(`div`,TG,[R(c(`div`,EG,[c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.issuedTo`))+` `,1),c(`span`,null,d(a.value.issuer.CN)+` <`+d(a.value.issuer.email)+`>`,1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.issuer`))+` `,1),c(`span`,null,d(a.value.issuer.CN),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.validFrom`))+` `,1),c(`span`,null,d(f(a.value.validDateStart)),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.validTo`))+` `,1),c(`span`,null,d(f(a.value.validDateEnd)),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.intendedUsage`))+` `,1),t[4]||=c(`span`,null,`Digital Signature, Non-Repudiation`,-1)])],512),[[Re,o.value===1]]),R(c(`div`,DG,[c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.version`))+` `,1),c(`span`,null,d(a.value.version),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.algorithm`))+` `,1),c(`span`,null,d(a.value.signAlgOidType)+` (`+d(a.value.signAlgOid)+`)`,1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.subject`))+` `,1),c(`span`,null,`C=`+d(a.value.subject.C)+`,ST=`+d(a.value.subject.ST)+`,L=`+d(a.value.subject.L)+`,O=`+d(a.value.subject.O)+`,OU=`+d(a.value.subject.OU)+`,CN=`+d(a.value.subject.CN)+`,emailAddress=`+d(a.value.subject.email),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.issuer`))+` `,1),c(`span`,null,`C=`+d(a.value.issuer.C)+`,ST=`+d(a.value.issuer.ST)+`,L=`+d(a.value.issuer.L)+`,O=`+d(a.value.issuer.O)+`,OU=`+d(a.value.issuer.OU)+`,CN=`+d(a.value.issuer.CN)+`,emailAddress=`+d(a.value.issuer.email),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.serialNumber`))+` `,1),c(`span`,null,d(a.value.serialNumber),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.validFrom`))+` `,1),c(`span`,null,d(f(a.value.validDateStart)),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.validTo`))+` `,1),c(`span`,null,d(f(a.value.validDateEnd)),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.certificatePolicy`))+` `,1),c(`span`,null,d(a.value.certificatePolicies[0]),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.crlDistribution`))+` `,1),c(`span`,null,d(a.value.CRLDistributionPoints),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.issuerInfoAccess`))+` `,1),(S(!0),V(q,null,z(a.value.sccessInfo,(e,t)=>(S(),V(`span`,{key:t},d(e.Key)+`=`+d(e.AccessInfo)+d(t===a.value.sccessInfo.length-1?``:`,`),1))),128))]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.issuerKeyIdentifier`))+` `,1),c(`span`,null,d(a.value.authorityKeyIdentifier),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.subjectKeyIdentifier`))+` `,1),c(`span`,null,d(a.value.subjectKeyIdentifier),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.constraints`))+` `,1),c(`span`,null,d(a.value.basicConstraints),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.keyUsage`))+` `,1),c(`span`,null,d(a.value.keyUsage),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.publicKey`))+` `,1),c(`span`,null,d(a.value.publicKey),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.x509`))+` `,1),c(`span`,null,d(a.value.X509Data),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.sha1Digests`))+` `,1),c(`span`,null,d(a.value.SHA1Digest),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.md5Digests`))+` `,1),c(`span`,null,d(a.value.MD5Digest),1)])],512),[[Re,o.value===2]]),R(c(`div`,OG,[c(`p`,null,[a.value.isTrusted?(S(),s(n,{key:0})):(S(),s(m,{key:1})),c(`span`,null,d(e.$t(`signatures.certificateViewer.trust.sign`)),1)]),c(`p`,null,[a.value.isTrusted?(S(),s(n,{key:0})):(S(),s(m,{key:1})),c(`span`,null,d(e.$t(`signatures.certificateViewer.trust.certify`)),1)])],512),[[Re,o.value===3]])]),R(c(`div`,kG,[c(`div`,{class:D(a.value.isTrusted&&`disabled`),onClick:p},d(e.$t(`signatures.certificateViewer.trust.addToTrust`)),3)],512),[[Re,o.value===3]])])])])])]),_:1},8,[`show`])])):b(``,!0)}}},MG={key:0,class:`signature-details-dialog`},NG={class:`info`},PG={class:`title`},FG={class:`desc`},IG={class:`summary`},LG={class:`title`},RG={class:`content`},zG={key:3},BG={__name:`SignatureDetailsDialog`,setup(e){let t=H.SIGNATURE_DETAILS_DIALOG,n=ye(),r=fw(),i=T(()=>n.isElementOpen(t)),a=T(()=>r.getSelectedSignature),o=T(()=>{let e=a.value.signerList[0].certificateList[0].validDateEnd,t=e.substring(0,4),n=e.substring(4,6),r=e.substring(6,8),i=e.substring(8,10),o=e.substring(10,12),s=e.substring(12,14),c=e.substring(14);return new Date(`${t}-${n}-${r}T${i}:${o}:${s}${c}`)<new Date}),l=()=>{n.closeElement(t)},u=()=>{l(),n.openElement(H.CERTIFICATE_VIEWER_DIALOG)};return(e,n)=>{let r=Ne,f=rV,p=YB,m=$B,g=WC;return i.value?(S(),V(`div`,MG,[x(g,{show:i.value,dialogName:K(t)},{header:G(()=>[c(`p`,null,d(e.$t(`signatures.details.title`)),1),x(r,{class:`close`,onClick:l})]),footer:G(()=>[c(`div`,{class:`view-button`,onClick:u},d(e.$t(`signatures.details.viewCertificate`)),1)]),default:G(()=>[c(`div`,NG,[a.value.signerList[0].isCertTrusted&&a.value.signerList[0].isSignVerified?(S(),s(f,{key:0})):a.value.signerList[0].isCertTrusted||a.value.signerList[0].isSignVerified?(S(),s(p,{key:1})):(S(),s(m,{key:2})),c(`div`,null,[c(`p`,PG,d(e.$t(`signatures.details.signer`))+` "`+d(a.value.signerList[0].certificateList[0].subject.CN)+d(a.value.signerList[0].certificateList[0].subject.email?`<`+a.value.signerList[0].certificateList[0].subject.email+`>`:``)+`"`,1),c(`p`,FG,d(e.$t(`signatures.details.signingTime`))+` `+d(K(xx.default)(a.value.date).format(`YYYY-MM-DD HH:mm:ss`)),1)])]),c(`div`,IG,[c(`div`,LG,[n[0]||=c(`div`,{class:`line-left`},null,-1),c(`span`,null,d(e.$t(`signatures.details.validitySummary`)),1),n[1]||=c(`div`,{class:`line-right`},null,-1)]),c(`div`,RG,[!a.value.signerList[0].isCertTrusted&&!a.value.signerList[0].isSignVerified?(S(),V(q,{key:0},[c(`p`,null,d(e.$t(`signatures.details.invalidIdentity`)),1),c(`p`,null,d(e.$t(`signatures.details.invalidSignature`)),1),c(`p`,null,d(e.$t(`signatures.details.altered`)),1)],64)):(S(),V(q,{key:1},[a.value.signerList[0].isCertTrusted&&a.value.signerList[0].isSignVerified?(S(),V(q,{key:0},[c(`p`,null,d(e.$t(`signatures.details.validIdentity`)),1),c(`p`,null,d(e.$t(`signatures.details.validSignature`)),1)],64)):!a.value.signerList[0].isCertTrusted&&a.value.signerList[0].isSignVerified?(S(),V(q,{key:1},[c(`p`,null,d(e.$t(`signatures.details.invalidIdentity`)),1),c(`p`,null,d(e.$t(`signatures.details.validSignature`)),1),c(`p`,null,d(e.$t(`signatures.details.unknownIdentity`)),1)],64)):a.value.signerList[0].isCertTrusted&&!a.value.signerList[0].isSignVerified?(S(),V(q,{key:2},[c(`p`,null,d(e.$t(`signatures.details.validIdentity`)),1),c(`p`,null,d(e.$t(`signatures.details.invalidSignature`)),1)],64)):b(``,!0),o.value?(S(),V(`p`,zG,d(e.$t(`signatures.details.expiredCertificate`)),1)):b(``,!0),c(`p`,null,d(a.value.signerList[0].diffInfo.length?e.$t(`signatures.details.altered`):e.$t(`signatures.details.notModified`)),1)],64))])])]),_:1},8,[`show`,`dialogName`])])):b(``,!0)}}},VG={class:`paint-container`},HG={class:`keyboard-paint`,style:{}},UG=[`placeholder`],WG=`digitalKeyboardCreatePanel`,GG={__name:`DigitalKeyboardCreatePanel`,props:[`text`],emits:[`modifyText`],setup(e,{emit:t}){let n=t,r=J(e.text),i=ye();T(()=>i.isElementOpen(WG));let a=()=>{i.closeElement(WG),o()},o=()=>{r.value=``},l=()=>{n(`modifyText`,r.value),a()};return(e,t)=>{let n=Ne,i=WC;return S(),s(i,{class:`digital-signature-dialog keyboard`,show:!0,dialogName:WG},{header:G(()=>[x(n,{class:`close`,onClick:a})]),footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:o},d(e.$t(`common.actions.clear`)),1),c(`div`,{class:`rect-button white`,onClick:a},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:l},d(e.$t(`common.actions.ok`)),1)]),default:G(()=>[c(`div`,VG,[c(`div`,HG,[R(c(`input`,{"onUpdate:modelValue":t[0]||=e=>r.value=e,type:`text`,placeholder:e.$t(`signatures.appearance.signHere`),name:`signature`},null,8,UG),[[Me,r.value]])])])]),_:1})}}},KG=[`width`,`height`],qG=`digitalSignCreatePanel`,JG={__name:`DigitalSignCreatePanel`,emits:[`modifyImage`],setup(e,{emit:t}){let n=t,r=ye(),i=T(()=>r.isElementOpen(qG)),a=J(578),o=J(oe?0:270),l=J();W(()=>i.value,e=>{e&&oe&&E(()=>{let{clientWidth:e,clientHeight:t}=l.value;e&&a.value!==e&&(a.value=e),t&&o.value!==t&&(o.value=t)})});let u=()=>{r.closeElement(qG),f()},f=()=>{U.handleSign({flag:`clear`})},p=async()=>{n(`modifyImage`,await U.handleSign({type:1,flag:`image`})),u()};return(e,t)=>{let n=Ne,r=WC;return S(),s(r,{class:`digital-signature-dialog trackpad`,show:!0,dialogName:qG},{header:G(()=>[x(n,{class:`close`,onClick:u})]),footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:f},d(e.$t(`common.actions.clear`)),1),c(`div`,{class:`rect-button white`,onClick:u},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:p},d(e.$t(`common.actions.ok`)),1)]),default:G(()=>[c(`div`,{class:`paint-container`,ref_key:`paintContainer`,ref:l},[c(`canvas`,{id:`digitalTrackpadCanvas`,width:a.value,height:o.value},null,8,KG)],512)]),_:1})}}},YG={class:`sign-content`},XG={class:`sign-popup-header`},ZG={key:0,class:`signatures-popup-lists`},QG={key:0,class:`signatures-popup-empty`},$G={class:`no-signatures`},eK={key:1,class:`signatures-popup-list-container`},tK=[`onClick`,`src`],nK={key:1,class:`signatures-popup-create`},rK={class:`create-sign-header`},iK=[`src`],aK={class:`preview-options`},oK={class:`title`},sK={class:`configurations`},cK={class:`left`},lK={class:`checkboxes`},uK={class:`right`},dK={class:`text-align`},fK={class:`buttons`},pK={key:0,class:`addition`},mK={key:0},hK={class:`select-box`},gK=[`value`],_K=[`value`],vK=[`value`],yK=[`value`],bK={key:1},xK={class:`left-btns`},SK={key:0},CK={key:1},wK={class:`right-btns`},TK={key:1,class:`delete-page-popup`},EK={__name:`SignatureAppearanceDialog`,setup(e){let{t}=It(),n=H.SIGNATURE_APPEARANCE_DIALOG,r=ye(),i=fw(),a=J(!1),o=J(0),l=T(()=>r.isElementOpen(n)),u=T(()=>r.getActiveElementTab(`signPanel`)),f=T(()=>i.getActiveTool),p=T(()=>r.getDigitalSignaturePreview),m=T(()=>r.isElementOpen(H.DIGITAL_SIGN_CREATE_PANEL)),g=T(()=>r.isElementOpen(`digitalKeyboardCreatePanel`)),_=T(()=>i.getDisableDigitalSignature),v=T(()=>i.getDisableElectronicSignature),C=T(()=>r.getCertSubject),O=T(()=>r.getTheme),k=J(null),A=T(()=>r.getDigitalSignaturesList),j=J(``),M=J(``),P=J(`create`),ee=J(!0);A.value.length>=5&&(ee.value=!1);let F=N({name:!0,dName:!1,date:!0,version:!1,logo:!0,location:!1,reason:!1,labels:!0,alignment:`left`,reasonText:t(`signatures.none`),locationText:``});W(l,(e,t)=>{e&&(j.value=C.value?.CN)}),W(F,async(e,t)=>{await ae(B())},{deep:!0}),W(()=>A.value,e=>{e&&e.length>=5?ee.value=!1:ee.value||=!0},{deep:!0}),W(()=>l.value,e=>{e&&A.value.length>0?P.value=`list`:e&&A.value.length===0&&(P.value=`create`)});let te=e=>{a.value=!0,o.value=e},I=()=>{r.removeDigitalSignature(o.value),a.value=!1};function L(e){let t=new Image;return t.src=e,new Promise(e=>{t.onload=function(){let{width:n,height:r}=t;e({width:n,height:r})}})}let ne=async e=>{let{width:t,height:n}=await L(e);r.setCommonLoading(!0);let a=ce(B());a.imageBase64=e,a.width=t,a.height=n;let o=i.getPkcs12;await U.handleSign({type:1,flag:`save`,param:{annotation:w(r.getSelectedSignatureField),...a,appearance:`image`},pkcs12Buffer:o.pkcs12Buffer,password:o.password}),ue(),r.setCommonLoading(!1)},re=async e=>{M.value=e,await ae(B())},ie=async e=>{j.value=e,await ae(B())},B=()=>{let e=``;return F.name&&(e+=oe(`name`)+`
2501
+ `&&a>0?(n=0,r++,t++):!this.splitByGrapheme&&this._reSpaceAndTab.test(e.graphemeText[r])&&a>0&&(n++,r++),i[a]={line:t,offset:n},r+=e.graphemeLines[a].length,n+=e.graphemeLines[a].length;return i},styleHas:function(e,n){if(this._styleMap&&!this.isWrapping){var r=this._styleMap[n];r&&(n=r.line)}return t.Text.prototype.styleHas.call(this,e,n)},isEmptyStyles:function(e){if(!this.styles)return!0;var t=0,n=e+1,r,i,a=!1,o=this._styleMap[e],s=this._styleMap[e+1];for(var c in o&&(e=o.line,t=o.offset),s&&(n=s.line,a=n===e,r=s.offset),i=e===void 0?this.styles:{line:this.styles[e]},i)for(var l in i[c])if(l>=t&&(!a||l<r))for(var u in i[c][l])return!1;return!0},_getStyleDeclaration:function(e,t){if(this._styleMap&&!this.isWrapping){var n=this._styleMap[e];if(!n)return null;e=n.line,t=n.offset+t}return this.callSuper(`_getStyleDeclaration`,e,t)},_setStyleDeclaration:function(e,t,n){var r=this._styleMap[e];e=r.line,t=r.offset+t,this.styles[e][t]=n},_deleteStyleDeclaration:function(e,t){var n=this._styleMap[e];e=n.line,t=n.offset+t,delete this.styles[e][t]},_getLineStyle:function(e){var t=this._styleMap[e];return!!this.styles[t.line]},_setLineStyle:function(e){var t=this._styleMap[e];this.styles[t.line]={}},_wrapText:function(e,t){var n=[],r;for(this.isWrapping=!0,r=0;r<e.length;r++)n=n.concat(this._wrapLine(e[r],r,t));return this.isWrapping=!1,n},_measureWord:function(e,t,n){var r=0,i,a=!0;n||=0;for(var o=0,s=e.length;o<s;o++){var c=this._getGraphemeBox(e[o],t,o+n,i,a);r+=c.kernedWidth,i=e[o]}return r},_wrapLine:function(e,n,r,i){var a=0,o=this.splitByGrapheme,s=[],c=[],l=o?t.util.string.graphemeSplit(e):e.split(this._wordJoiners),u=``,d=0,f=o?``:` `,p=0,m=0,g=0,_=!0,v=this._getWidthOfCharSpacing(),i=i||0;l.length===0&&l.push([]),r-=i;for(var y=0;y<l.length;y++)u=o?l[y]:t.util.string.graphemeSplit(l[y]),p=this._measureWord(u,n,d),d+=u.length,a+=m+p-v,a>r&&!_?(s.push(c),c=[],a=p,_=!0):a+=v,!_&&!o&&c.push(f),c=c.concat(u),m=o?0:this._measureWord([f],n,d),d++,_=!1,p>g&&(g=p);return y&&s.push(c),g+i>this.dynamicMinWidth&&(this.dynamicMinWidth=g-v+i),s},isEndOfWrapping:function(e){return!this._styleMap[e+1]||this._styleMap[e+1].line!==this._styleMap[e].line},missingNewlineOffset:function(e,t){return this.splitByGrapheme&&!t?+!!this.isEndOfWrapping(e):1},_splitTextIntoLines:function(e){for(var n=t.Text.prototype._splitTextIntoLines.call(this,e),r=this._wrapText(n.lines,this.width),i=Array(r.length),a=0;a<r.length;a++)i[a]=r[a].join(``);return n.lines=i,n.graphemeLines=r,n},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var e={};for(var t in this._styleMap)this._textLines[t]&&(e[this._styleMap[t].line]=1);for(var t in this.styles)e[t]||delete this.styles[t]},toObject:function(e){return this.callSuper(`toObject`,[`minWidth`,`splitByGrapheme`].concat(e))}}),t.Textbox.fromObject=function(e,n){var r=t.util.stylesFromArray(e.styles,e.text),i=Object.assign({},e,{styles:r});return delete i.path,t.Object._fromObject(`Textbox`,i,function(r){e.path?t.Object._fromObject(`Path`,e.path,function(e){r.set(`path`,e),n(r)},`path`):n(r)},`text`)}})(e),(function(){var e=t.controlsUtils,n=e.scaleSkewCursorStyleHandler,r=e.scaleCursorStyleHandler,i=e.scalingEqually,a=e.scalingYOrSkewingX,o=e.scalingXOrSkewingY,s=e.scaleOrSkewActionName,c=t.Object.prototype.controls;if(c.ml=new t.Control({x:-.5,y:0,cursorStyleHandler:n,actionHandler:o,getActionName:s}),c.mr=new t.Control({x:.5,y:0,cursorStyleHandler:n,actionHandler:o,getActionName:s}),c.mb=new t.Control({x:0,y:.5,cursorStyleHandler:n,actionHandler:a,getActionName:s}),c.mt=new t.Control({x:0,y:-.5,cursorStyleHandler:n,actionHandler:a,getActionName:s}),c.tl=new t.Control({x:-.5,y:-.5,cursorStyleHandler:r,actionHandler:i}),c.tr=new t.Control({x:.5,y:-.5,cursorStyleHandler:r,actionHandler:i}),c.bl=new t.Control({x:-.5,y:.5,cursorStyleHandler:r,actionHandler:i}),c.br=new t.Control({x:.5,y:.5,cursorStyleHandler:r,actionHandler:i}),c.mtr=new t.Control({x:0,y:-.5,actionHandler:e.rotationWithSnapping,cursorStyleHandler:e.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:`rotate`}),t.Textbox){var l=t.Textbox.prototype.controls={};l.mtr=c.mtr,l.tr=c.tr,l.br=c.br,l.tl=c.tl,l.bl=c.bl,l.mt=c.mt,l.mb=c.mb,l.mr=new t.Control({x:.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:n,actionName:`resizing`}),l.ml=new t.Control({x:-.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:n,actionName:`resizing`})}})()})),Sx=e(yx()),Cx=xx(),wx=()=>{fabric.FText=fabric.util.createClass(fabric.Textbox,{type:`f-text`,padding:0,paintFirst:`stroke`,initDimensions:function(){if(this.__skipDimension)return;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();let e=this.calcTextHeight();this.path?this.height=this.path.height>e?this.path.height:e:this.height=e,this.saveState({propertySet:`_dimensionAffectingProps`})}})},Tx=Cx.fabric.util.object.extend,Ex=()=>{Cx.fabric.FLine=Cx.fabric.util.createClass(Cx.fabric.Line,{type:`f-line`,padding:6,borderColor:`#00000000`,setStrokeWidth(e){this.set(`strokeWidth`,e)},setStrokeDashArray(e){this.set(`strokeDashArray`,e)},setStrokeLineCap(e){this.set(`strokeLineCap`,e?`round`:`butt`)},toObject(e){return Tx(this.callSuper(`toObject`,e),{x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2})}}),Cx.fabric.FLine.fromObject=(e,t)=>{function n(e){delete e.points,t&&t(e)}let r={...e};r.points=[e.x1,e.y1,e.x2,e.y2],Cx.fabric.Object._fromObject(`FLine`,r,n,`points`)}};function Dx(){wx(),Ex()}var Ox={editingBorderColor:`#1460F3`,fontFamily:`Arial`,fill:`#000000`,fontStyle:`normal`,fontWeight:`normal`,fontSize:14,textAlign:`left`,backgroundColor:``,opacity:1,width:100,zoomX:1,zoomY:1,splitByGrapheme:!0},kx={stroke:`rgb(0, 0, 0)`,fill:``,strokeWidth:1,opacity:1},Ax={format:`DD/MM/YYYY hh:mm:ss`,editingBorderColor:`#1460F3`,fontFamily:`Arial`,fill:`#000000`,fontStyle:`normal`,fontWeight:`normal`,fontSize:12,textAlign:`left`,backgroundColor:``,opacity:1,zoomX:1,zoomY:1,width:100,splitByGrapheme:!0},jx={mode:`Light`},Mx=(e,t,n,r,i)=>{var a=e.target,o=a.controls[e.corner],s=a.canvas.getZoom(),c=a.padding/s,l=a.toLocalPoint(new Cx.fabric.Point(r,i),t,n);return l.x>=c&&(l.x-=c),l.x<=-c&&(l.x+=c),l.y>=c&&(l.y-=c),l.y<=c&&(l.y+=c),l.x-=o.offsetX,l.y-=o.offsetY,l};function Nx(e){return e.originX===`center`&&e.originY===`center`}var Px=(e,t,n,r)=>{let i=t.target,a=Mx(t,t.originX,t.originY,n,r),o=i.strokeWidth/(i.strokeUniform?i.scaleX:1),s=Nx(t)?2:1,c=i.height,l=Math.abs(a.y*s/i.scaleY)-o;return i.set(`height`,Math.max(l,0)),c!==l},Fx=Cx.fabric.controlsUtils,Ix=Fx.wrapWithFireEvent(`resizing`,Fx.wrapWithFixedAnchor(Px)),Lx=Cx.fabric.controlsUtils,Rx=()=>{let e=Cx.fabric.Object.prototype.controls;if(Cx.fabric.Rect){let t=Cx.fabric.Rect.prototype.controls={};t.del=e.del,t.tr=e.tr,t.br=e.br,t.tl=e.tl,t.bl=e.bl,t.ml=new Cx.fabric.Control({x:-.5,y:0,actionHandler:Lx.changeWidth,cursorStyleHandler:e.ml.cursorStyleHandler,actionName:`resizing`,render:e.ml.render}),t.mr=new Cx.fabric.Control({x:.5,y:0,actionHandler:Lx.changeWidth,cursorStyleHandler:e.mr.cursorStyleHandler,actionName:`resizing`,render:e.mr.render}),t.mt=new Cx.fabric.Control({x:0,y:-.5,offsetY:-1,actionHandler:Ix,cursorStyleHandler:e.mt.cursorStyleHandler,actionName:`resizing`,render:e.mt.render}),t.mb=new Cx.fabric.Control({x:0,y:.5,offsetY:1,actionHandler:Ix,cursorStyleHandler:e.mb.cursorStyleHandler,actionName:`resizing`,render:e.mb.render})}},zx=(e,t,n,r)=>{let{target:i}=t;return i.set({x2:n,y2:r}),!0},Bx=(e,t,n,r)=>{let{target:i}=t;return i.set({x1:n,y1:r}),!0},Vx=(e,t)=>(n,r,i)=>{if(i?.canvas){let n=i.calcLinePoints(),r=new Cx.fabric.Point(n[e],n[t]);return Cx.fabric.util.transformPoint(r,Cx.fabric.util.multiplyTransformMatrices(i.canvas.viewportTransform,i.calcTransformMatrix()))}else return new Cx.fabric.Point(0,0)},Hx=()=>{let e=Cx.fabric.Object.prototype.controls;if(Cx.fabric.Line){let t=Cx.fabric.Line.prototype.controls={};t.del=e.del,t.l1=new Cx.fabric.Control({positionHandler:Vx(`x1`,`y1`),actionHandler:Bx,cursorStyleHandler:()=>`crosshair`,actionName:`line-points-change`,render:e.br.render}),t.l2=new Cx.fabric.Control({positionHandler:Vx(`x2`,`y2`),actionHandler:zx,cursorStyleHandler:()=>`crosshair`,actionName:`line-points-change`,render:e.br.render})}},Ux=fabric.controlsUtils,Wx=()=>{let e=fabric.Object.prototype.controls;if(fabric.Rect){let t=fabric.FText.prototype.controls={};t.del=e.del,t.tr=e.tr,t.br=e.br,t.tl=e.tl,t.bl=e.bl,t.ml=new fabric.Control({x:-.5,y:0,offsetX:-1,actionHandler:Ux.changeWidth,cursorStyleHandler:e.ml.cursorStyleHandler,actionName:`resizing`,render:e.ml.render}),t.mr=new fabric.Control({x:.5,y:0,offsetX:1,actionHandler:Ux.changeWidth,cursorStyleHandler:e.mr.cursorStyleHandler,actionName:`resizing`,render:e.mr.render})}},Gx=(e,t)=>{if(e||=t.getActiveObject(),e)return e.type===`activeSelection`?(e.getObjects().forEach(e=>{t.remove(e)}),t.discardActiveObject()):t.remove(e),cS(e),t.requestRenderAll(),t.fire(`fabritor:del`,{target:null}),!0},Kx=(e,t,n,r,i,a)=>{e.save(),e.strokeStyle=`#1460F3`,e.fillStyle=`#FFFFFF`,e.lineWidth=2,e.translate(t,n),e.rotate(Cx.fabric.util.degreesToRadians(i.angle)),e.beginPath(),e.rect(-3,-3,6,6),e.fill(),e.stroke(),e.restore()},qx=(e,t,n)=>{e.save(),e.strokeStyle=`#1460F3`,e.fillStyle=`#FFFFFF`,e.lineWidth=2,e.beginPath(),e.rect(t-4,n-4,6,6),e.fill(),e.stroke(),e.restore()},Jx=(e,t,n)=>{e.save(),e.strokeStyle=`#1460F3`,e.fillStyle=`#FFFFFF`,e.lineWidth=2,e.beginPath(),e.rect(t-4,n-2,6,6),e.fill(),e.stroke(),e.restore()},Yx=(e,t,n)=>{e.save(),e.strokeStyle=`#1460F3`,e.fillStyle=`#FFFFFF`,e.lineWidth=2,e.beginPath(),e.rect(t-2,n-4,6,6),e.fill(),e.stroke(),e.restore()},Xx=(e,t,n)=>{e.save(),e.strokeStyle=`#1460F3`,e.fillStyle=`#FFFFFF`,e.lineWidth=2,e.beginPath(),e.rect(t-2,n-2,6,6),e.fill(),e.stroke(),e.restore()};function Zx(e){return function(t,n,r,i,a){t.save(),t.translate(n,r),t.fillStyle=jx.mode===`Light`?`rgba(255, 255, 255, 1)`:`#54575C`,t.roundRect(-25,-20,50,42,4),t.shadowColor=`rgba(0, 0, 0, 0.1)`,t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowBlur=8,t.fill(),t.rotate(Cx.fabric.util.degreesToRadians(a.angle)),t.drawImage(e,-30/2,-13,30,30),t.restore()}}var Qx=(e,t,n,r,i)=>{Kx(e,t,n,r,i,`LR`)},$x=(e,t,n,r,i)=>{Kx(e,t,n,r,i,`TB`)},eS=()=>{let e={x:0,y:-.5,offsetY:-1,render:$x};Object.keys(e).forEach(t=>{Cx.fabric.Object.prototype.controls.mt[t]=e[t]});let t={x:0,y:.5,offsetY:1,render:$x};Object.keys(t).forEach(e=>{Cx.fabric.Object.prototype.controls.mb[e]=t[e]});let n={x:-.5,y:0,offsetX:-1,render:Qx};Object.keys(n).forEach(e=>{Cx.fabric.Object.prototype.controls.ml[e]=n[e]});let r={x:.5,y:0,offsetX:1,render:Qx};Object.keys(r).forEach(e=>{Cx.fabric.Object.prototype.controls.mr[e]=r[e]}),Cx.fabric.Object.prototype.borderOpacityWhenMoving=1,Cx.fabric.Object.prototype.borderColor=`#1460F3`,Cx.fabric.Object.prototype.padding=5,Cx.fabric.Object.prototype.setControlsVisibility({mtr:!1});let i={x:-.5,y:-.5,render:qx};Object.keys(i).forEach(e=>{Cx.fabric.Object.prototype.controls.tl[e]=i[e]});let a={x:.5,y:-.5,render:Yx};Object.keys(a).forEach(e=>{Cx.fabric.Object.prototype.controls.tr[e]=a[e]});let o={x:-.5,y:.5,render:Jx};Object.keys(o).forEach(e=>{Cx.fabric.Object.prototype.controls.bl[e]=o[e]});let s={x:.5,y:.5,render:Xx};Object.keys(s).forEach(e=>{Cx.fabric.Object.prototype.controls.br[e]=s[e]})},tS=(e,t)=>{let n=t.target,r=n.canvas;return Gx(n,r),!0},nS=document.createElement(`img`);nS.src=`data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2231%22%20height%3D%2230%22%20viewBox%3D%220%200%2031%2030%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18.3333%208.15275V6.73608H12.6667V8.15275H18.3333ZM24%2010.9861V9.56942H21.875H9.125H7V10.9861H9.125V23.2639H21.875V10.9861H24ZM10.5417%2021.8472V10.9861H20.4583V21.8472H10.5417ZM14.3194%2013.5833V19.25H12.9028V13.5833H14.3194ZM18.0972%2013.5833V19.25H16.6806V13.5833H18.0972Z%22%20fill%3D%22%2343474D%22%2F%3E%3C%2Fsvg%3E`;var rS=document.createElement(`img`);rS.src=`data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2230%22%20height%3D%2230%22%20viewBox%3D%220%200%2030%2030%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20x%3D%220%22%20width%3D%2230%22%20height%3D%2230%22%20rx%3D%224%22%20fill%3D%22%2354575C%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M17.8333%208.15275V6.73608H12.1667V8.15275H17.8333ZM23.5%2010.9861V9.56941H21.375H8.625H6.5V10.9861H8.625V23.2639H21.375V10.9861H23.5ZM10.0417%2021.8472V10.9861H19.9583V21.8472H10.0417ZM13.8194%2013.5833V19.25H12.4028V13.5833H13.8194ZM17.5972%2013.5833V19.25H16.1806V13.5833H17.5972Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E`;var iS=`data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2231%22%20height%3D%2230%22%20viewBox%3D%220%200%2031%2030%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20x%3D%220.436768%22%20width%3D%2230%22%20height%3D%2230%22%20rx%3D%224%22%20fill%3D%22%23DDE9FF%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18.2701%208.15275V6.73608H12.6034V8.15275H18.2701ZM23.9368%2010.9861V9.56942H21.8118H9.06177H6.93677V10.9861H9.06177V23.2639H21.8118V10.9861H23.9368ZM10.4784%2021.8472V10.9861H20.3951V21.8472H10.4784ZM14.2562%2013.5833V19.25H12.8395V13.5833H14.2562ZM18.034%2013.5833V19.25H16.6173V13.5833H18.034Z%22%20fill%3D%22%2343474D%22%2F%3E%3C%2Fsvg%3E`,aS=document.createElement(`img`);aS.src=iS;var oS=()=>{let e=new Cx.fabric.Control({x:.5,y:.5,offsetX:-18,offsetY:25,cursorStyle:`pointer`,mouseUpHandler:tS,render:Zx(jx.mode===`Light`?nS:rS)});Cx.fabric.Object.prototype.controls.del=e},sS=(e,t)=>{e===`del`&&(t.controls[e].render=Zx(aS)),t.canvas.requestRenderAll()},cS=e=>{e&&e.controls?.del&&(e.controls.del.render=Zx(jx.mode===`Light`?nS:rS))};function lS(){eS(),oS(),Rx(),Hx(),Wx()}var uS=class{constructor(e,t){this.options=t||{},this.canvasEl=e,this.canvas=null,this.activeObject=null,this.tool=`text`,this.shape=`rect`}init(){this._initObject(),this.canvas=new Cx.fabric.Canvas(this.canvasEl,this.options),this._initEvents()}_initObject(){Dx(),lS()}_initEvents(){let e=this.canvas;e.on(`mouse:move`,e=>{this.creatingElement&&this.creatingElement.type===`rect`&&this.updateRect(e),e.target&&console.log(`Mouse move:`,e.target.type),this.creatingElement&&this.creatingElement.type===`line`&&this.creatingElement&&this.updateLine(e)}),e.on(`mouse:up`,t=>{if(this.creatingElement){let n=this.creatingElement;if(e.setActiveObject(this.creatingElement),this.activeObject=this.creatingElement,n&&n.type===`rect`&&this.tool===`text`){this.canvas.remove(n);let{left:e,top:t,width:r,height:i}=n;this.createTextbox({text:``,scaleX:1,scaleY:1,left:e,top:t,width:r<1?100:r,height:i<1?16:i})}else n.type===`rect`?(this.updateRect(t),n.width<1&&n.height<1&&this.canvas.remove(n)):n.type===`line`&&(this.updateLine(t),n.width<1&&n.height<1&&this.canvas.remove(n));this.creatingElement=null;return}let{target:n}=t;if(!n)return;let r=n.getScaledWidth(),i=n.getScaledHeight(),a=t.transform.action;n.left<0&&((a===`resizing`||a===`scale`)&&(n.scaleX=1,n.width=r+n.left-1),n.set(`left`,0),n.setCoords()),n.top<0&&((a===`resizing`||a===`scale`)&&(n.scaleY=1,n.height=i+n.top-1),n.set(`top`,0),n.setCoords());let o=e.calcViewportBoundaries();n.left+r>o.br.x&&(a===`resizing`||a===`scale`?(n.scaleX=1,n.width=o.br.x-n.left-1):a===`drag`&&n.set(`left`,o.br.x-r+10),n.setCoords()),n.top+i>o.br.y&&(a===`resizing`||a===`scale`?(n.scaleY=1,n.height=o.br.y-n.top-1):a===`drag`&&n.set(`top`,o.br.y-i+10),n.setCoords()),e.renderAll()}),e.on(`mouse:down`,e=>{let{target:t}=e;if(!t&&this.activeObject){this.activeObject=null;return}if(t||this.activeObject)return;let n=this.tool,r=this.shape;n===`text`?this.createTextboxRect({left:e.absolutePointer.x,top:e.absolutePointer.y}):n===`shape`?r===`rect`?this.createRect({left:e.absolutePointer.x,top:e.absolutePointer.y}):r===`line`&&this.createLine({x:e.absolutePointer.x,y:e.absolutePointer.y}):n===`date`&&this.createDatetime({left:e.absolutePointer.x,top:e.absolutePointer.y,editable:!1})}),e.on(`mouse:over`,e=>{let{target:t}=e,n=t?.__corner;n&&sS(n,e.target)}),this.canvas.on(`mouse:out`,t=>{let{target:n}=t;n&&(cS(n),e.requestRenderAll())}),e.on(`selection:created`,this.selectionHandler.bind(this)),e.on(`object:scaling`,e=>{let t=e.target,n=t.canvas.width,r=t.canvas.height;t.setCoords();let i=t.getBoundingRect(),a=t.getScaledWidth();if(t.getScaledHeight(),t.left+a>n){t.scaleX=1,t.setCoords();let e=t.getScaledWidth();t.scaleX=(n-i.left)/e,t.type===`f-text`&&(t.scaleY=t.scaleX),t.setCoords(),t.canvas.renderAll()}if(i.top+i.height>r){t.scaleY=1,t.setCoords();let e=t.getScaledHeight();t.scaleY=(r-i.top)/e,t.type===`f-text`&&(t.scaleX=t.scaleY),t.setCoords(),t.canvas.renderAll()}if(i.top<0){t.scaleY=1,t.setCoords();let e=t.getScaledHeight();t.scaleY=(i.height+i.top)/e,t.type===`f-text`&&(t.scaleX=t.scaleY),t.set(`top`,0),t.setCoords(),t.canvas.renderAll()}if(i.left<0){t.scaleX=1,t.setCoords();let e=t.getScaledWidth();t.scaleX=(i.width+i.left)/e,t.type===`f-text`&&(t.scaleY=t.scaleX),t.set(`left`,0),t.setCoords(),t.canvas.renderAll()}})}updateRect(e){let t=this.creatingElement,{left:n,top:r}=t,{x:i,y:a}=e.absolutePointer,o=this.canvas;if(i<=this.originalPoint.x)t.set(`width`,this.originalPoint.x-i),t.set(`left`,i);else if(i>n){let e=Math.min(i-n,o.width-n-3);t.set(`width`,e)}if(a<=this.originalPoint.y)t.set(`height`,this.originalPoint.y-a),t.set(`top`,a);else if(a>r){let e=Math.min(a-r,o.height-r-3);t.set(`height`,e)}t.setCoords(),o.renderAll()}updateLine(e){let t=this.creatingElement,{x:n,y:r}=e.absolutePointer;t.set(`x2`,n),t.set(`y2`,r),t.setCoords(),this.canvas.renderAll()}selectionHandler(e){let{selected:t}=e;if(t&&t.length){let e=this.canvas.getActiveObject();this.activeObject=e}else this.activeObject=null}createTextboxRect(e){let t=this.canvas,n=new Cx.fabric.Rect({fill:``,stroke:`#1460F3`,strokeWidth:1,opacity:1,...e});return this.creatingElement=n,this.originalPoint={x:e.left,y:e.top},t.add(n),n}createTextbox(e){let t=this.canvas,{text:n=``,...r}=e||{},i={hasPath:!1,offset:100},a=new Cx.fabric.FText(n||``,{...Ox,...r});return a.on(`editing:entered`,e=>{}),a.on(`editing:exited`,e=>{i.hasPath&&(drawTextPath(a,i.offset),t.requestRenderAll())}),t.add(a),t.setActiveObject(a),this.activeObject=a,a.enterEditing(),t.requestRenderAll(),a}createRect(e){if(this.creating)return;let t=this.canvas,n=new Cx.fabric.Rect({...kx,...e});return this.creatingElement=n,this.originalPoint={x:e.left,y:e.top},t.add(n),n}createDatetime(e){let t=this.canvas,{text:n=``}=e||{},r=n||(0,Sx.default)(new Date().toLocaleString()).format(Ax.format),i=new Cx.fabric.FText(r,{...Ax,...e});return this.creatingElement=i,t.add(i),t.setActiveObject(i),this.activeObject=i,t.requestRenderAll(),i}createLine(e){let t=this.canvas,{x:n,y:r}=e,i=new Cx.fabric.Line([n,r,n,r],{...kx});return this.creatingElement=i,t.add(i),i}destroy(){this.canvas&&=(this.canvas.dispose(),null)}clear(){this.canvas&&this.canvas.clear()}},dS={class:`custom-stamp-wrapper`},fS={class:`signatures-popup-wrapper`},pS={class:`custom-stamp-popup`},mS={class:`title`},hS={class:`stamp-container`},gS={class:`stamp-preview`},_S={class:`preview-title`},vS={class:`preview-container`},yS={class:`custom-category`},bS={class:`preview`},xS={class:`canvas-container`},SS={key:0,class:`canvas-placeholder`},CS={ref:`workspaceEl`},wS={class:`stamp-properties`},TS={class:`properties-title`},ES={key:0,class:`text-properties properties-container`},DS={class:`font property`},OS={class:`property-name`},kS={class:`font-color property`},AS={class:`property-name`},jS={class:`property-container`},MS={class:`color-picker`},NS={class:`preview-container active`},PS={class:`font-weight property`},FS={class:`property-name`},IS={class:`font-size property`},LS={class:`property-name`},RS={class:`text-align property`},zS={class:`property-name`},BS={class:`text-align property-container`},VS={class:`text-align-content`},HS={class:`border`},US={class:`border`},WS={class:`fill-color property`},GS={class:`property-name`},KS={class:`property-container`},qS={class:`color-picker`},JS={class:`opacity property`},YS={class:`property-name`},XS={key:1,class:`shape-properties properties-container`},ZS={class:`shape property`},QS={class:`property-name`},$S={class:`property-container`},eC={class:`border-color property`},tC={class:`property-name`},nC={class:`property-container`},rC={class:`color-picker`},iC={class:`preview-container active`},aC={class:`border-width property`},oC={class:`property-name`},sC={key:0,class:`fill-color property`},cC={class:`property-name`},lC={class:`property-container`},uC={class:`color-picker`},dC={class:`fill-opacity property`},fC={class:`property-name`},pC={key:2,class:`date-properties properties-container`},mC={class:`date property`},hC={class:`property-name`},gC={class:`font property`},_C={class:`property-name`},vC={class:`font-color property`},yC={class:`property-name`},bC={class:`property-container`},xC={class:`color-picker`},SC={class:`preview-container active`},CC={class:`font-weight property`},wC={class:`property-name`},TC={class:`font-size property`},EC={class:`property-name`},DC={class:`text-align property`},OC={class:`property-name`},kC={class:`text-align property-container`},AC={class:`text-align-content`},jC={class:`border`},MC={class:`border`},NC={class:`fill-color property`},PC={class:`property-name`},FC={class:`property-container`},IC={class:`color-picker`},LC={class:`opacity property`},RC={class:`property-name`},zC={class:`footer`},BC={class:`buttons-container`},VC={__name:`CustomStamp`,setup(e){let{t}=It(),n=J(null),r=ye(),i=J(`rgb(255, 255, 255)`),a=J(`rgb(255, 255, 255)`),o=J(`rgb(255, 255, 255)`),s=Ee(null),l=J(0),u=J(`text`),f=()=>{let e=s.value.canvas.toDataURL({format:`png`,multiplier:2});r.addCustomStamps(e),_()};M(()=>{C();let e=new uS(n.value,{width:300,height:300,selection:!1});e.init(),e.canvas.on(`selection:updated`,()=>{m()}),e.canvas.on(`selection:created`,()=>{m()}),e.canvas.on(`selection:cleared`,()=>{C()}),e.canvas.on(`object:added`,()=>{l.value=e.canvas.getObjects().length}),e.canvas.on(`object:removed`,()=>{l.value=e.canvas.getObjects().length,s.value.activeObject=null}),s.value=e});let p=(e,t)=>e===`bold`&&t===`oblique`?`boldOblique`:e===`bold`?`bold`:t===`oblique`?`oblique`:`normal`,m=()=>{let e=s.value.canvas.getActiveObject();if(e&&e.type===`f-text`&&e.editable){u.value=`text`;let t=e.fontSize,n=e.fontFamily,r=e.fill,i=e.textAlign,a=e.opacity,o=p(e.fontWeight,e.fontStyle);v.text.fontFamily=n,v.text.fill=r,v.text.fontStyle=o,v.text.fontSize=t,v.text.textAlign=i,v.text.backgroundColor=e.backgroundColor,v.text.opacity=a*100+`%`}else if(e&&e.type===`f-text`&&!e.editable){u.value=`date`;let t=e.format,n=e.fontSize,r=e.fontFamily,i=e.fill,a=e.textAlign,o=e.opacity,s=p(e.fontWeight,e.fontStyle);v.date.format=t,v.date.fontFamily=r,v.date.fill=i,v.date.fontStyle=s,v.date.fontSize=n,v.date.textAlign=a,v.date.backgroundColor=e.backgroundColor,v.date.opacity=o*100+`%`}else if(e&&e.type===`rect`){u.value=`shape`,v.shape.tool=`rect`;let t=e.fill,n=e.stroke,r=e.strokeWidth,i=e.opacity;v.shape.fill=t,v.shape.stroke=n,v.shape.strokeWidth=r,v.shape.opacity=i*100+`%`}else if(e&&e.type===`line`){u.value=`shape`,v.shape.tool=`line`;let t=e.stroke,n=e.strokeWidth,r=e.opacity;v.shape.stroke=t,v.shape.strokeWidth=n,v.shape.opacity=r*100+`%`}},g=()=>{s.value&&s.value.clear()},_=()=>{r.closeElement(H.CREATE_CUSTOM_STAMP_DIALOG)},v=N({text:{fontFamily:`Arial`,fill:`rgb(0, 0, 0)`,fontSize:12,fontStyle:`normal`,textAlign:`left`,backgroundColor:``,borderWidth:1,opacity:`100%`},shape:{tool:`rect`,stroke:`rgb(0, 0, 0)`,strokeWidth:1,fill:``,opacity:`100%`},date:{fontFamily:`Arial`,fill:`rgb(0, 0, 0)`,fontSize:12,fontStyle:`normal`,textAlign:`left`,backgroundColor:``,opacity:`100%`,format:`DD/MM/YYYY hh:mm:ss`}}),y=[{label:`Arial`,value:`Arial`},{label:`Times-Roman`,value:`Times-Roman`},{label:`Courier`,value:`Courier`},{label:`Helvetica`,value:`Helvetica`}],C=()=>{let e={fontSize:Ox.fontSize,fontFamily:Ox.fontFamily,fill:Ox.fill,textAlign:Ox.textAlign,opacity:Ox.opacity,fontStyle:p(Ox.fontWeight,Ox.fontStyle),backgroundColor:Ox.backgroundColor};e.backgroundColor&&(i.value=e.backgroundColor),v.text.fontFamily=e.fontFamily,v.text.fill=e.fill,v.text.fontStyle=e.fontStyle,v.text.fontSize=e.fontSize,v.text.textAlign=e.textAlign,v.text.backgroundColor=e.backgroundColor,v.text.opacity=e.opacity*100+`%`;let t={stroke:kx.stroke,strokeWidth:kx.strokeWidth,fill:kx.fill,opacity:kx.opacity};t.fill&&(a.value=t.fill),v.shape.stroke=t.stroke,v.shape.strokeWidth=t.strokeWidth,v.shape.fill=t.fill,v.shape.opacity=t.opacity*100+`%`;let n={fontSize:Ax.fontSize,fontFamily:Ax.fontFamily,fill:Ax.fill,textAlign:Ax.textAlign,opacity:Ax.opacity,fontStyle:p(Ax.fontWeight,Ax.fontStyle),backgroundColor:Ax.backgroundColor,format:Ax.format};n.backgroundColor&&(o.value=n.backgroundColor),v.date.fontSize=n.fontSize,v.date.fontFamily=n.fontFamily,v.date.fill=n.fill,v.date.textAlign=n.textAlign,v.date.opacity=n.opacity*100+`%`,v.date.fontStyle=n.fontStyle,v.date.backgroundColor=n.backgroundColor,v.date.format=n.format},w=T(()=>[{label:t(`common.fontStyles.regular`),value:`normal`},{label:t(`common.fontStyles.bold`),value:`bold`},{label:t(`common.fontStyles.boldOblique`),value:`boldOblique`},{label:t(`common.fontStyles.oblique`),value:`oblique`}]),E=(e,t)=>{v[u.value][t]=e,t===`backgroundColor`?u.value===`text`?i.value=e:u.value===`date`&&(o.value=e):t===`fill`&&u.value===`shape`&&(a.value=e)},O=(e,t)=>{v[u.value][t]=e,t===`backgroundColor`?u.value===`text`?i.value=e:u.value===`date`&&(o.value=e):t===`fill`&&u.value===`shape`&&(a.value=e)},k=e=>{v[u.value].textAlign=e},j=[{label:`6 pt`,value:6},{label:`7 pt`,value:7},{label:`8 pt`,value:8},{label:`9 pt`,value:9},{label:`10 pt`,value:10},{label:`11 pt`,value:11},{label:`12 pt`,value:12},{label:`13 pt`,value:13},{label:`14 pt`,value:14},{label:`15 pt`,value:15},{label:`16 pt`,value:16},{label:`17 pt`,value:17},{label:`18 pt`,value:18},{label:`24 pt`,value:20},{label:`36 pt`,value:36},{label:`48 pt`,value:48},{label:`72 pt`,value:72}],P=[{label:`1 pt`,value:1},{label:`2 pt`,value:2},{label:`3 pt`,value:3},{label:`4 pt`,value:4},{label:`5 pt`,value:5},{label:`6 pt`,value:6},{label:`7 pt`,value:7},{label:`8 pt`,value:8},{label:`9 pt`,value:9},{label:`10 pt`,value:10}],ee=[{label:`25%`,value:`25%`},{label:`50%`,value:`50%`},{label:`75%`,value:`75%`},{label:`100%`,value:`100%`}],F=[{label:`dd/mm/yyyy`,value:`DD/MM/YYYY`},{label:`dd.mm.yyyy`,value:`DD.MM.YYYY`},{label:`dd-mm-yyyy`,value:`DD-MM-YYYY`},{label:`dd mm yyyy`,value:`DD MM YYYY`},{label:`yyyy/mm/dd`,value:`YYYY/MM/DD`},{label:`yyyy.mm.dd`,value:`YYYY.MM.DD`},{label:`yyyy-mm-dd`,value:`YYYY-MM-DD`},{label:`yyyy mm dd`,value:`YYYY MM DD`},{label:`dd/mm/yyyy hh:mm:ss`,value:`DD/MM/YYYY hh:mm:ss`},{label:`dd.mm.yyyy hh:mm:ss`,value:`DD.MM.YYYY hh:mm:ss`},{label:`dd-mm-yyyy hh:mm:ss`,value:`DD-MM-YYYY hh:mm:ss`},{label:`dd mm yyyy hh:mm:ss`,value:`DD MM YYYY hh:mm:ss`},{label:`yyyy/mm/dd hh:mm:ss`,value:`YYYY/MM/DD hh:mm:ss`},{label:`yyyy.mm.dd hh:mm:ss`,value:`YYYY.MM.DD hh:mm:ss`},{label:`yyyy-mm-dd hh:mm:ss`,value:`YYYY-MM-DD hh:mm:ss`},{label:`yyyy mm dd hh:mm:ss`,value:`YYYY MM DD hh:mm:ss`}],te=e=>{let t=s.value.canvas.getActiveObject();t&&(s.value.canvas.discardActiveObject(t),s.value.canvas.renderAll(),s.value.activeObject=null),u.value=e},I=e=>{let t=s.value.canvas.getActiveObject();t&&(s.value.canvas.discardActiveObject(t),s.value.canvas.renderAll(),s.value.activeObject=null),v.shape.tool=e};return W(()=>u.value,(e,t)=>{s.value.tool=e}),W(()=>v.shape.tool,(e,t)=>{s.value.shape=e}),W(()=>v.text.fontFamily,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&t.editable?(t.set(`fontFamily`,e),s.value.canvas.renderAll()):Ox.fontFamily=e}}),W(()=>v.text.fill,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&t.editable?(t.set(`fill`,e),s.value.canvas.renderAll()):Ox.fill=e}}),W(()=>v.text.fontSize,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&t.editable?(t.set(`fontSize`,e),s.value.canvas.renderAll()):Ox.fontSize=e}}),W(()=>v.text.fontStyle,e=>{if(s.value){let t=s.value.canvas.getActiveObject(),n=e.toLowerCase().indexOf(`oblique`)>-1?`oblique`:`normal`,r=e.indexOf(`bold`)>-1?`bold`:`normal`;t&&t.type===`f-text`&&t.editable?(t.set(`fontStyle`,n),t.set(`fontWeight`,r),s.value.canvas.renderAll()):(Ox.fontStyle=n,Ox.fontWeight=r)}}),W(()=>v.text.textAlign,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&t.editable?(t.set(`textAlign`,e),s.value.canvas.renderAll()):Ox.textAlign=e}}),W(()=>v.text.backgroundColor,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&t.editable?(t.set(`backgroundColor`,e),s.value.canvas.renderAll()):Ox.backgroundColor=e}}),W(()=>v.text.opacity,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&t.editable?(t.set(`opacity`,parseInt(e)/100),s.value.canvas.renderAll()):Ox.opacity=parseInt(e)/100}}),W(()=>v.shape.stroke,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&(t.type===`rect`&&v.shape.tool===`rect`||t.type===`line`&&v.shape.tool===`line`)?(t.set(`stroke`,e),s.value.canvas.renderAll()):kx.stroke=e}}),W(()=>v.shape.strokeWidth,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&(t.type===`rect`&&v.shape.tool===`rect`||t.type===`line`&&v.shape.tool===`line`)?(t.set(`strokeWidth`,e),s.value.canvas.renderAll()):kx.strokeWidth=e}}),W(()=>v.shape.fill,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`rect`&&v.shape.tool===`rect`?(t.set(`fill`,e),s.value.canvas.renderAll()):kx.fill=e}}),W(()=>v.shape.opacity,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&(t.type===`rect`&&v.shape.tool===`rect`||t.type===`line`&&v.shape.tool===`line`)?(t.set(`opacity`,parseInt(e)/100),s.value.canvas.renderAll()):kx.opacity=parseInt(e)/100}}),W(()=>v.date.format,e=>{if(s.value){let t=s.value.canvas.getActiveObject();if(t&&t.type===`f-text`&&!t.editable){let n=(0,Sx.default)().format(e);t.set(`text`,n),s.value.canvas.renderAll()}else Ax.format=e}}),W(()=>v.date.fontFamily,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&!t.editable?(t.set(`fontFamily`,e),s.value.canvas.renderAll()):Ax.fontFamily=e}}),W(()=>v.date.fill,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&!t.editable?(t.set(`fill`,e),s.value.canvas.renderAll()):Ax.fill=e}}),W(()=>v.date.fontSize,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&!t.editable?(t.set(`fontSize`,e),s.value.canvas.renderAll()):Ax.fontSize=e}}),W(()=>v.date.fontStyle,e=>{if(s.value){let t=s.value.canvas.getActiveObject(),n=e.toLowerCase().indexOf(`oblique`)>-1?`oblique`:`normal`,r=e.indexOf(`bold`)>-1?`bold`:`normal`;t&&t.type===`f-text`&&!t.editable?(t.set(`fontStyle`,n),t.set(`fontWeight`,r),s.value.canvas.renderAll()):(Ax.fontStyle=n,Ax.fontWeight=r)}}),W(()=>v.date.textAlign,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&!t.editable?(t.set(`textAlign`,e),s.value.canvas.renderAll()):Ax.textAlign=e}}),W(()=>v.date.backgroundColor,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&!t.editable?(t.set(`backgroundColor`,e),s.value.canvas.renderAll()):Ax.backgroundColor=e}}),W(()=>v.date.opacity,e=>{if(s.value){let t=s.value.canvas.getActiveObject();t&&t.type===`f-text`&&!t.editable?(t.set(`opacity`,parseInt(e)/100),s.value.canvas.renderAll()):Ax.opacity=parseInt(e)/100}}),(e,t)=>{let r=px,s=lx,p=sx,m=rx,C=$b,T=Yb,M=Gb,N=Vb,L=Lb,R=Nb;return S(),V(`div`,dS,[c(`div`,fS,[c(`div`,pS,[c(`div`,mS,d(e.$t(`panels.customStamp.title`)),1),c(`div`,hS,[c(`div`,gS,[c(`div`,_S,d(e.$t(`panels.customStamp.preview`)),1),c(`div`,vS,[c(`div`,yS,[x(s,{onClick:t[0]||=e=>te(`text`),class:D({active:u.value===`text`}),title:e.$t(`panels.customStamp.addText`)},{default:G(()=>[x(r)]),_:1},8,[`class`,`title`]),x(s,{onClick:t[1]||=e=>te(`shape`),class:D({active:u.value===`shape`}),title:e.$t(`panels.customStamp.addShape`)},{default:G(()=>[x(p)]),_:1},8,[`class`,`title`]),x(s,{onClick:t[2]||=e=>te(`date`),class:D({active:u.value===`date`}),title:e.$t(`panels.customStamp.addDateTime`)},{default:G(()=>[x(m)]),_:1},8,[`class`,`title`])]),c(`div`,bS,[c(`div`,xS,[l.value?b(``,!0):(S(),V(`div`,SS,d(e.$t(`panels.customStamp.createHere`)),1)),c(`div`,CS,[c(`canvas`,{ref_key:`canvasElement`,ref:n,width:`300`,height:`300`},null,512)],512)])])])]),c(`div`,wS,[c(`div`,TS,d(e.$t(`panels.customStamp.properties`)),1),u.value===`text`?(S(),V(`div`,ES,[c(`div`,DS,[c(`div`,OS,d(e.$t(`panels.customStamp.fontFamily`)),1),x(K(kv),{value:v.text.fontFamily,"onUpdate:value":t[3]||=e=>v.text.fontFamily=e,options:y,to:`.text-properties`,class:`font-family property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`])]),c(`div`,kS,[c(`div`,AS,d(e.$t(`panels.customStamp.fontColor`)),1),c(`div`,jS,[c(`div`,MS,[c(`div`,NS,[c(`div`,{class:`preview`,style:A({backgroundColor:v.text.fill})},null,4)]),x(K(gv),{to:`.font-color`,onComplete:t[4]||=e=>E(e,`fill`),"onUpdate:value":t[5]||=e=>O(e,`fill`),value:v.text.fill,"show-alpha":!1},{label:G(()=>[...t[37]||=[c(`img`,{src:``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,alt:`colorPicker`},null,-1)]]),_:1},8,[`value`])])])]),c(`div`,PS,[c(`div`,FS,d(e.$t(`panels.customStamp.fontStyle`)),1),x(K(kv),{value:v.text.fontStyle,"onUpdate:value":t[6]||=e=>v.text.fontStyle=e,options:w.value,to:`.font-weight`,class:`font-weight property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`,`options`])]),c(`div`,IS,[c(`div`,LS,d(e.$t(`panels.customStamp.fontSize`)),1),x(K(kv),{value:v.text.fontSize,"onUpdate:value":t[7]||=e=>v.text.fontSize=e,options:j,to:`.font-size`,class:`font-size property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`])]),c(`div`,RS,[c(`div`,zS,d(e.$t(`panels.customStamp.alignment`)),1),c(`div`,BS,[c(`div`,VS,[c(`div`,{class:D({active:v.text.textAlign===`left`}),onClick:t[8]||=e=>k(`left`)},[c(`span`,HS,[x(T)])],2),c(`div`,{class:D({active:v.text.textAlign===`center`}),onClick:t[9]||=e=>k(`center`)},[c(`span`,US,[x(M)])],2),c(`div`,{class:D({active:v.text.textAlign===`right`}),onClick:t[10]||=e=>k(`right`)},[c(`span`,null,[x(N)])],2)])])]),c(`div`,WS,[c(`div`,GS,d(e.$t(`panels.customStamp.fillColor`)),1),c(`div`,KS,[c(`span`,{class:D([`no-color`,{active:v.text.backgroundColor===``}]),onClick:t[11]||=e=>v.text.backgroundColor=``},[x(vx)],2),c(`div`,qS,[c(`div`,{class:D([`preview-container`,{active:v.text.backgroundColor===i.value}])},[c(`div`,{class:`preview`,style:A({backgroundColor:i.value})},null,4)],2),x(K(gv),{to:`.fill-color`,onComplete:t[12]||=e=>E(e,`backgroundColor`),"onUpdate:value":t[13]||=e=>O(e,`backgroundColor`),value:i.value,"show-alpha":!1},{label:G(()=>[...t[38]||=[c(`img`,{src:``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,alt:`colorPicker`},null,-1)]]),_:1},8,[`value`])])])]),c(`div`,JS,[c(`div`,YS,d(e.$t(`panels.customStamp.opacity`)),1),x(K(kv),{value:v.text.opacity,"onUpdate:value":t[14]||=e=>v.text.opacity=e,options:ee,to:`.text-properties`,class:`opacity property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`])])])):b(``,!0),u.value===`shape`?(S(),V(`div`,XS,[c(`div`,ZS,[c(`div`,QS,d(e.$t(`panels.customStamp.shape`)),1),c(`div`,$S,[x(s,{onClick:t[15]||=e=>I(`rect`),class:D({active:v.shape.tool===`rect`})},{default:G(()=>[x(L)]),_:1},8,[`class`]),x(s,{onClick:t[16]||=e=>I(`line`),class:D({active:v.shape.tool===`line`})},{default:G(()=>[x(R)]),_:1},8,[`class`])])]),c(`div`,eC,[c(`div`,tC,d(e.$t(`panels.customStamp.borderColor`)),1),c(`div`,nC,[c(`div`,rC,[c(`div`,iC,[c(`div`,{class:`preview`,style:A({backgroundColor:v.shape.stroke})},null,4)]),x(K(gv),{to:`.shape-properties`,onComplete:t[17]||=e=>E(e,`stroke`),"onUpdate:value":t[18]||=e=>O(e,`stroke`),value:v.shape.stroke,"show-alpha":!1},{label:G(()=>[...t[39]||=[c(`img`,{src:``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,alt:`colorPicker`},null,-1)]]),_:1},8,[`value`])])])]),c(`div`,aC,[c(`div`,oC,d(e.$t(`panels.customStamp.borderWidth`)),1),x(K(kv),{value:v.shape.strokeWidth,"onUpdate:value":t[19]||=e=>v.shape.strokeWidth=e,options:P,to:`.shape-properties`,class:`border-width property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`])]),v.shape.tool===`rect`?(S(),V(`div`,sC,[c(`div`,cC,d(e.$t(`panels.customStamp.fillColor`)),1),c(`div`,lC,[c(`span`,{class:D([`no-color`,{active:v.shape.fill===``}]),onClick:t[20]||=e=>v.shape.fill=``},[x(vx)],2),c(`div`,uC,[c(`div`,{class:D([`preview-container`,{active:v.shape.fill===a.value}])},[c(`div`,{class:`preview`,style:A({backgroundColor:a.value})},null,4)],2),x(K(gv),{to:`.shape-properties`,onComplete:t[21]||=e=>E(e,`fill`),"onUpdate:value":t[22]||=e=>O(e,`fill`),value:a.value,"show-alpha":!1},{label:G(()=>[...t[40]||=[c(`img`,{src:``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,alt:`colorPicker`},null,-1)]]),_:1},8,[`value`])])])])):b(``,!0),c(`div`,dC,[c(`div`,fC,d(e.$t(`panels.customStamp.opacity`)),1),x(K(kv),{value:v.shape.opacity,"onUpdate:value":t[23]||=e=>v.shape.opacity=e,options:ee,to:`.shape-properties`,class:`fill-opacity property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`])])])):b(``,!0),u.value===`date`?(S(),V(`div`,pC,[c(`div`,mC,[c(`div`,hC,d(e.$t(`panels.customStamp.dateTime`)),1),x(K(kv),{"consistent-menu-width":!1,value:v.date.format,"onUpdate:value":t[24]||=e=>v.date.format=e,options:F,to:`.date-properties`,class:`text-family property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`])]),c(`div`,gC,[c(`div`,_C,d(e.$t(`panels.customStamp.fontFamily`)),1),x(K(kv),{value:v.date.fontFamily,"onUpdate:value":t[25]||=e=>v.date.fontFamily=e,options:y,to:`.date-properties`,class:`text-family property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`])]),c(`div`,vC,[c(`div`,yC,d(e.$t(`panels.customStamp.fontColor`)),1),c(`div`,bC,[c(`div`,xC,[c(`div`,SC,[c(`div`,{class:`preview`,style:A({backgroundColor:v.date.fill})},null,4)]),x(K(gv),{to:`.date-properties`,onComplete:t[26]||=e=>E(e,`fill`),"onUpdate:value":t[27]||=e=>O(e,`fill`),value:v.date.fill,"show-alpha":!1},{label:G(()=>[...t[41]||=[c(`img`,{src:``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,alt:`colorPicker`},null,-1)]]),_:1},8,[`value`])])])]),c(`div`,CC,[c(`div`,wC,d(e.$t(`panels.customStamp.fontStyle`)),1),x(K(kv),{value:v.date.fontStyle,"onUpdate:value":t[28]||=e=>v.date.fontStyle=e,options:w.value,to:`.date-properties`,class:`text-family property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`,`options`])]),c(`div`,TC,[c(`div`,EC,d(e.$t(`panels.customStamp.fontSize`)),1),x(K(kv),{value:v.date.fontSize,"onUpdate:value":t[29]||=e=>v.date.fontSize=e,options:j,to:`.date-properties`,class:`font-size property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`])]),c(`div`,DC,[c(`div`,OC,d(e.$t(`panels.customStamp.alignment`)),1),c(`div`,kC,[c(`div`,AC,[c(`div`,{class:D({active:v.date.textAlign===`left`}),onClick:t[30]||=e=>k(`left`)},[c(`span`,jC,[x(T)])],2),c(`div`,{class:D({active:v.date.textAlign===`center`}),onClick:t[31]||=e=>k(`center`)},[c(`span`,MC,[x(M)])],2),c(`div`,{class:D({active:v.date.textAlign===`right`}),onClick:t[32]||=e=>k(`right`)},[c(`span`,null,[x(N)])],2)])])]),c(`div`,NC,[c(`div`,PC,d(e.$t(`panels.customStamp.fillColor`)),1),c(`div`,FC,[c(`span`,{class:D([`no-color`,{active:v.date.backgroundColor===``}]),onClick:t[33]||=e=>v.date.backgroundColor=``},[x(vx)],2),c(`div`,IC,[c(`div`,{class:D([`preview-container`,{active:v.date.backgroundColor===o.value}])},[c(`div`,{class:`preview`,style:A({backgroundColor:o.value})},null,4)],2),x(K(gv),{to:`.date-properties`,onComplete:t[34]||=e=>E(e,`backgroundColor`),"onUpdate:value":t[35]||=e=>O(e,`backgroundColor`),value:o.value,"show-alpha":!1},{label:G(()=>[...t[42]||=[c(`img`,{src:``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,alt:`colorPicker`},null,-1)]]),_:1},8,[`value`])])])]),c(`div`,LC,[c(`div`,RC,d(e.$t(`panels.customStamp.opacity`)),1),x(K(kv),{value:v.date.opacity,"onUpdate:value":t[36]||=e=>v.date.opacity=e,options:ee,to:`.date-properties`,class:`opacity property-container`},{arrow:G(()=>[x(C)]),_:1},8,[`value`])])])):b(``,!0)])]),c(`div`,zC,[c(`span`,{onClick:g},d(e.$t(`common.actions.clear`)),1),c(`div`,BC,[c(`span`,{class:`cancel-container`,onClick:_},d(e.$t(`common.actions.cancel`)),1),c(`span`,{class:D({disabled:l.value===0}),onClick:f},d(e.$t(`common.actions.ok`)),3)])])])])])}}},HC={key:0,class:`dialog`},UC={class:`dialog-wrapper`},WC={key:0,class:`close`},GC={__name:`Dialog`,props:[`show`,`dialogName`,`close`],setup(e){let t=ye(),n=()=>{e.dialogName&&t.closeElement(e.dialogName)},r=t=>{typeof e.close==`function`?e.close(t):n()};return(t,n)=>{let i=Le,a=Ne,o=Fe;return e.show?(S(),V(`div`,HC,[c(`div`,UC,[c(`div`,{class:`dialog-container`,onClick:n[0]||=Ae(()=>{},[`stop`])},[e.close?(S(),V(`div`,WC,[e.close===`A`?(S(),s(i,{key:0,onClick:r})):b(``,!0),e.close===`B`?(S(),s(a,{key:1,onClick:r})):(S(),s(o,{key:2,onClick:r}))])):b(``,!0),c(`header`,null,[be(t.$slots,`header`)]),c(`main`,null,[be(t.$slots,`default`)]),c(`footer`,null,[be(t.$slots,`footer`)])])])])):b(``,!0)}}},KC={},qC={width:`40`,height:`40`,viewBox:`0 0 40 40`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function JC(e,t){return S(),V(`svg`,qC,[...t[0]||=[c(`path`,{d:`M20 36.6667C29.2047 36.6667 36.6667 29.2047 36.6667 20C36.6667 10.7952 29.2047 3.33333 20 3.33333C10.7952 3.33333 3.33333 10.7952 3.33333 20C3.33333 29.2047 10.7952 36.6667 20 36.6667Z`,fill:`#FFC061`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M21.6667 12.5C21.6667 11.5795 20.9205 10.8333 20 10.8333C19.0795 10.8333 18.3333 11.5795 18.3333 12.5L18.3333 22.5C18.3333 23.4205 19.0795 24.1667 20 24.1667C20.9205 24.1667 21.6667 23.4205 21.6667 22.5L21.6667 12.5ZM20.1667 29.3333C21.0871 29.3333 21.8333 28.5871 21.8333 27.6667C21.8333 26.7462 21.0871 26 20.1667 26C19.2462 26 18.5 26.7462 18.5 27.6667C18.5 28.5871 19.2462 29.3333 20.1667 29.3333Z`,fill:`white`},null,-1)]])}var YC=B(KC,[[`render`,JC]]),XC={},ZC={width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function QC(e,t){return S(),V(`svg`,ZC,[...t[0]||=[c(`rect`,{width:`14`,height:`14`,rx:`1`,fill:`#2D77FA`},null,-1),c(`path`,{d:`M10.2784 5.27848L5.84653 9.71032L4.20261 8.06642`,stroke:`white`,"stroke-width":`1.5`,"stroke-linecap":`square`},null,-1)]])}var $C=B(XC,[[`render`,QC]]),ew={},tw={width:`8`,height:`16`,viewBox:`0 0 8 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function nw(e,t){return S(),V(`svg`,tw,[...t[0]||=[c(`g`,{id:`.base / Sliders`},[c(`rect`,{id:`Rectangle`,width:`8`,height:`16`,rx:`4`,fill:`#1460F3`})],-1)]])}var rw=B(ew,[[`render`,nw]]),iw={},aw={width:`112`,height:`112`,viewBox:`0 0 112 112`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function ow(e,t){return S(),V(`svg`,aw,[...t[0]||=[v(`<rect x="20" y="30" width="58" height="44" rx="3.168" fill="#4982E6" fill-opacity="0.15"></rect><rect x="20.5" y="30.5" width="57" height="43" rx="2.668" stroke="#4982E6" stroke-dasharray="4 4"></rect><path fill-rule="evenodd" clip-rule="evenodd" d="M30 41.168C30 39.4184 31.4184 38 33.168 38H84.832C86.5816 38 88 39.4184 88 41.168V78.832C88 80.5816 86.5816 82 84.832 82H33.168C31.4184 82 30 80.5816 30 78.832L30 41.168Z" fill="#FCFDFF"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M77 54C79.7614 54 82 51.7614 82 49C82 46.2386 79.7614 44 77 44C74.2386 44 72 46.2386 72 49C72 51.7614 74.2386 54 77 54ZM36 76H79.1397L61.8379 61L54.3148 68.1755L38.7391 56L36 58.8801V76Z" fill="#E2E3E6"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M92.2373 71.6307L81.4619 68.3981L84.6945 79.1734C84.902 79.865 85.8082 80.0262 86.2414 79.4485L87.8623 77.2874L89.5512 78.9764C89.8949 79.32 90.4521 79.32 90.7957 78.9764L92.0402 77.7319C92.3839 77.3882 92.3839 76.831 92.0402 76.4874L90.3513 74.7984L92.5124 73.1775C93.09 72.7443 92.9289 71.8381 92.2373 71.6307Z" fill="#273C62" fill-opacity="0.6"></path>`,5)]])}var sw=B(iw,[[`render`,ow]]),cw={},lw={width:`112`,height:`112`,viewBox:`0 0 112 112`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function uw(e,t){return S(),V(`svg`,lw,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M27.2002 22.4002C27.2002 20.6329 28.6329 19.2002 30.4002 19.2002H68.8002L81.6002 32.0002V88.0002C81.6002 89.7675 80.1675 91.2002 78.4002 91.2002H30.4002C28.6329 91.2002 27.2002 89.7675 27.2002 88.0002V22.4002Z`,fill:`#54575C`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M68.7998 19.2002L81.5998 32.0002H71.9998C70.2325 32.0002 68.7998 30.5675 68.7998 28.8002V19.2002Z`,fill:`#606773`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M34.4002 36.7998C33.9584 36.7998 33.6002 37.158 33.6002 37.5998V41.5998C33.6002 42.0416 33.9584 42.3998 34.4002 42.3998H74.4002C74.842 42.3998 75.2002 42.0416 75.2002 41.5998V37.5998C75.2002 37.158 74.842 36.7998 74.4002 36.7998H34.4002ZM34.4001 47.2C33.9583 47.2 33.6001 47.5582 33.6001 48V52C33.6001 52.4418 33.9583 52.8 34.4001 52.8H74.4001C74.8419 52.8 75.2001 52.4418 75.2001 52V48C75.2001 47.5582 74.8419 47.2 74.4001 47.2H34.4001ZM33.6001 58.4C33.6001 57.9582 33.9583 57.6 34.4001 57.6H74.4001C74.8419 57.6 75.2001 57.9582 75.2001 58.4V62.4C75.2001 62.8418 74.8419 63.2 74.4001 63.2H34.4001C33.9583 63.2 33.6001 62.8418 33.6001 62.4V58.4ZM34.4001 68C33.9583 68 33.6001 68.3582 33.6001 68.8V72.8C33.6001 73.2418 33.9583 73.6 34.4001 73.6H55.2001C55.6419 73.6 56.0001 73.2418 56.0001 72.8V68.8C56.0001 68.3582 55.6419 68 55.2001 68H34.4001Z`,fill:`#606773`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M77.6 67.2002C74.2863 67.2002 71.6 69.8865 71.6 73.2002C71.6 75.4018 72.7857 77.3264 74.5534 78.3703C74.7147 78.8387 74.8174 79.3262 74.8174 79.8082C74.8174 82.0522 72.5913 82.263 72.5913 82.263L67.2 82.2631C65.4327 82.2631 64 83.6958 64 85.4631V89.6002H91.2V85.4631C91.2 83.6958 89.7673 82.2631 88 82.2631L82.6087 82.263C82.6087 82.263 80.3826 82.0522 80.3826 79.8082C80.3826 79.3262 80.4853 78.8387 80.6466 78.3703C82.4143 77.3264 83.6 75.4018 83.6 73.2002C83.6 69.8865 80.9137 67.2002 77.6 67.2002ZM64 93.6002V91.2002H91.2V93.6002C91.2 94.042 90.8418 94.4002 90.4 94.4002H64.8C64.3582 94.4002 64 94.042 64 93.6002Z`,fill:`#6499FF`},null,-1)]])}var dw=B(cw,[[`render`,uw]]),fw=[L.INK,L.LINE,L.SQUARE,L.ARC,L.POLYGON,L.POLYLINE,L.CIRCLE,L.FREETEXT,L.TEXT,L.HIGHLIGHT,L.UNDERLINE,L.SQUIGGLY,L.STRIKEOUT,L.IMAGE,L.STAMP,L.POLYGON,`rectangle`,L.POLYLINE],pw=xe(`document`,{state:()=>({totalPages:0,loadingProgress:0,annotationsCount:0,info:null,optionUrl:null,markupTool:L.HIGHLIGHT,selected:{data:null},highlight:{color:`#FFEC66`},underline:{color:`#FF0000`},squiggly:{color:`#FF0000`},strikeout:{color:`#FF0000`},shapeTool:L.SQUARE,square:{color:`#FF0000`,opacity:`0.8`,stroke:`1pt`},arc:{color:`#FF0000`,opacity:`0.8`,stroke:`1pt`},polygon:{color:`#FF0000`,opacity:`0.8`,stroke:`1pt`},polyline:{color:`#FF0000`,opacity:`0.8`,stroke:`1pt`},circle:{color:`#FF0000`,opacity:`0.8`,stroke:`1pt`},arrow:{color:`#FF0000`,opacity:`0.8`,stroke:`1pt`},line:{color:`#FF0000`,opacity:`0.8`,stroke:`1pt`},ink:{color:`#FF0000`,opacity:`0.8`,stroke:`2pt`},freetext:{color:`#000000`},text:{color:`#FF0000`},activeTool:``,annotations:null,textfield:{color:`#DDE9FF`},checkbox:{color:`#DDE9FF`,borderColor:`#43474D`},radiobutton:{color:`#DDE9FF`,borderColor:`#43474D`},listbox:{color:`#DDE9FF`,borderColor:`#43474D`},combobox:{color:`#DDE9FF`,borderColor:`#43474D`},pushbutton:{color:`#DDE9FF`,borderColor:`#43474D`},link:{color:`#DDE9FF`},signatureFields:{color:`#DDE9FF`},redaction:{color:`#000000`},remove:{color:`#FF0000`},propertyPanel:{fieldName:``,isHidden:`0`,title:``,fillColor:`#DDE9FF`,color:`#000000`,fontName:`Helvetica`,fontStyle:`normal`,fontWeight:`normal`,fontSize:`14`,textAlignment:`0`,contents:``,isMultiLine:!1,project:``,projectList:``,checkStyle:0,isChecked:``,actionType:`0`,text:`OK`,url:``,destPage:``,items:[],item:null,deleteItemIndex:null,moveOption:null,indicator:!1,indicatorText:`Fill`},compareFiles:{oldFile:null,oldFilePassword:``,newFile:null,newFilePassword:``},compareSettings:{oldFileColor:`#FBBDBF`,newFileColor:`#93B9FD`},currentPdfData:null,fileHasPwd:!1,pwd:null,compareResult:null,outlines:[],activeOutlineId:null,searchResults:[],activeSearchResult:null,signatures:[],selectedSignature:null,trustedCertificateLists:[],author:`ComPDF`,annotator:`Guest`,highlightLink:!0,highlightForm:!0,redactionPrompted:!1,autoJumpNextSign:!0,disableDigitalSignature:!1,disableElectronicSignature:!1,layers:[],selectedLayer:null,firstEnterRedactionTool:``,measure:{scale:{base:1,baseUnit:`cm`,translate:1,translateUnit:`cm`},precision:.1},documentEditor:{operationList:[],pageList:[],selectedPageList:[]},canUndo:{content:!1,annotation:!1},canRedo:{content:!1,annotation:!1}}),getters:{getTotalPages(){return this.totalPages},getLoadingProgress(){return this.loadingProgress},getAnnotationsCount(){return this.annotationsCount+` annotation`+(this.annotationsCount>1?`s`:``)},getMeasure(){return this.measure},getPrecision(){return this.measure.precision===1?.1:.01},getInfo(){return this.info},getOptionUrl(){return this.optionUrl},getMarkupToolState(){return this.markupTool},getLineType(){return this.line.type},getActiveToolColor(){if(this.activeTool)return this[this.activeTool].color},getActiveTool(){return this.activeTool},getShapeToolState(){return this.shapeTool},getAllAnnotations(){let e={annotations:{},annotationsCount:0},t=this.annotations;if(!t)return e;let n=t.length;for(let r=0;r<n;r++){let n=t[r];if(fw.includes(n.type)&&!n.inReplyTo){let t=n.PageNumber-1;e.annotations[t]||(e.annotations[t]={pageAnnotationsCount:0,annotations:[]}),e.annotations[t].pageAnnotationsCount++,e.annotationsCount++,e.annotations[t].annotations.push(n)}}return e},getAnnotations(e){return this.annotations&&this.annotations[e]},getCompareFile(e){return t=>e.compareFiles[t]},getCompareFiles(){return this.compareFiles},getCompareSetting(e){return t=>e.compareSettings[t]},getCurrentPdfData(){return this.currentPdfData},getFilehasPwd(){return this.fileHasPwd},getPassword(){return this.pwd},getCompareResult(){return this.compareResult},getOutlines(){return this.outlines},getActiveOutlineId(){return this.activeOutlineId},getSearchResults(){return this.searchResults},getActiveSearchResult(){return this.activeSearchResult},getDocEditorOperationList(){return this.documentEditor.operationList},getSignatures(){let e=this.annotations;return e?e.filter(e=>e.type===`signatureFields`&&e.annotation.isSignedDigitally):[]},getSelectedSignature(){return this.selectedSignature},getPkcs12(){return this.pkcs12},getTrustedCertificateLists(){return this.trustedCertificateLists},getAuthor(){return this.author},getAnnotator(){return this.annotator},getHighlightLink(){return this.highlightLink},getHighlightForm(){return this.highlightForm},getRedactionPrompted(){return this.redactionPrompted},getAutoJumpNextSign(){return this.autoJumpNextSign},getDisableDigitalSignature(){return this.disableDigitalSignature},getDisableElectronicSignature(){return this.disableElectronicSignature},getLayers(){return this.layers},getSelectedLayer(){return this.selectedLayer},getFirstEnterRedactionTool(){return this.firstEnterRedactionTool},getSelectedAnnotation(){return this.selectedAnnotation},getSelect(){return this.selected},getDocEditorPageList(){return this.documentEditor.pageList},getDocEditorSelectedPageList(){return this.documentEditor.selectedPageList},getCanUndo(e){return t=>e.canUndo[t]},getCanRedo(e){return t=>e.canRedo[t]}},actions:{resetSetting(){this.totalPages=0,this.loadingProgress=0,this.annotationsCount=0,this.annotations=null,this.outlines=[],this.activeOutlineId=null,this.searchResults=[],this.documentEditor.operationList.length=0,this.documentEditor.pageList.length=0,this.documentEditor.selectedPageList.length=0,this.signatures=[],this.layers=[],this.selectedAnnotation=null},setTotalPages(e){this.totalPages=e},setLoadingProgress(e){this.loadingProgress=e},setAnnotationsCount(e){this.annotationsCount=e},setOptionUrl(e){this.optionUrl=e},setToken(e){this.info=e},setDistance(e){this.measure.distance=Math.round(e*10)/10},setMarkupToolState(e){this.markupTool=e},setMarkupToolColor(e){this[this.markupTool]=e},setShapeToolState(e){this.shapeTool=e},setLineType(e){this.line.type=e},setLineColor(e){this.line.color=e},setActiveTool(e){this.activeTool=e},setActiveToolColor(e){this.activeTool&&(this[this.activeTool].color=e,U.setTool(this.activeTool))},setToolState(e){if(this.activeTool===e||!e){this.activeTool=``,U.setTool(``);return}let t=ne[e];U.setTool(t.tool,t.toolName)&&(this.activeTool=t.toolName||t.tool,[L.TEXTFIELD,L.CHECKBOX,L.RADIOBUTTON,L.PUSHBUTTON].includes(t.tool)&&U.setInitProperty())},initAnnotations(e){this.annotations=null,this.annotations=F(e)},setAnnotations(e,t){let n=this.annotations;if(t===`add`)n[e[page]]||(n[page]=[]),n[page].push(e);else{let r=n[e[page]],i=r.findIndex(t=>t.index===e.index);t===`delete`?r[i].isDelete=!0:r[i]={...r[i],...e}}},setPropertyPanel(e){let t={};for(let n in e)for(let r in this.propertyPanel)n===r&&(t[r]=e[n]);U.setPropertyPanel(t)},setProperty(e,t){this.propertyPanel[e]=t},setCompareFiles(e,t){this.compareFiles[e]=t},initCompareFiles(){this.compareFiles.oldFile=null,this.compareFiles.oldFilePassword=``,this.compareFiles.newFile=null,this.compareFiles.newFilePassword=``},setCompareSetting(e,t){this.compareSettings[e]=t},initCompareSetting(){this.compareSettings={oldFileColor:`#FBBDBF`,newFileColor:`#93B9FD`}},setCurrentPdfData(e,t){e&&t?(this.currentPdfData||={},this.currentPdfData.pdf=e,this.currentPdfData.options=t):e?this.currentPdfData.pdf=e:this.currentPdfData=null},setFileHasPwd(e){this.fileHasPwd=e},setPassword(e){this.pwd=e},setCompareResult(e){this.compareResult=e},setOutline(e){this.outlines=e},setActiveOutlineId(e){this.activeOutlineId=e},setSearchResults(e){this.searchResults=e},setActiveSearchResult(e){this.activeSearchResult=e},setDocEditorOperationList(e){this.documentEditor.operationList.push(e)},setSelectedSignature(e){this.selectedSignature=e},setPkcs12(e){this.pkcs12=e},setTrustedCertificateLists(e){this.trustedCertificateLists.push(e)},setAuthor(e){this.author=e},setCurrentUser(e){this.annotator=e,U.setCurrentUser(e)},setHighlightLink(e){this.highlightLink=e,U.setHighlightLink(e)},setHighlightForm(e){this.highlightForm=e,U.setHighlightForm(e)},dispatch(e){return this[e]},getState(e){return e?this.$state[e]:this.$state},setRedactionPrompted(e){this.redactionPrompted=e},setAutoJumpNextSign(e){this.autoJumpNextSign=e,U.setAutoJumpNextSign(e)},setDisableDigitalSignature(e){this.disableDigitalSignature=e},setDisableElectronicSignature(e){this.disableElectronicSignature=e},setLayers(e){this.layers=e},setSelectedLayer(e){this.selectedLayer=e},setFirstEnterRedactionTool(e){this.firstEnterRedactionTool=e},setSelectedAnnotation(e){this.selectedAnnotation=e,this.selected.data=e},setCanUndo(e,t){!t&&this.canUndo.hasOwnProperty(t)||(this.canUndo[t]=e)},setCanRedo(e,t){!t&&this.canRedo.hasOwnProperty(t)||(this.canRedo[t]=e)}}}),mw=`data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='&%23229;&%23133;&%23179;&%23233;&%23151;&%23173;_close-one%20(1)%201'%3e%3cpath%20id='Vector'%20d='M12%2022C17.5228%2022%2022%2017.5228%2022%2012C22%206.47715%2017.5228%202%2012%202C6.47715%202%202%206.47715%202%2012C2%2017.5228%206.47715%2022%2012%2022Z'%20fill='%23F87171'%20stroke='%23F87171'%20stroke-width='1.04167'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M15%209L9%2015'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_3'%20d='M9%209L15%2015'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e`,hw=e=>new Promise((t,n)=>{let r=document.createElement(`input`);r.type=`file`,r.style.display=`none`,r.accept=e,r.onchange=()=>{r.files&&(t(r.files[0]),r.remove())},document.body.appendChild(r),r.click()}),gw=(e,t,n)=>{let r,i,a;if(t===0)r=i=a=n;else{let o=function(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e},s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=Math.round(o(c,s,e+1/3)*255),i=Math.round(o(c,s,e)*255),a=Math.round(o(c,s,e-1/3)*255)}return{R:r,G:i,B:a}},_w=e=>{if(!e)return null;if(e.startsWith(`#`)){let t=e.slice(1).match(/.{2}/g);if(t)return{R:parseInt(t[0],16),G:parseInt(t[1],16),B:parseInt(t[2],16)}}if(e.startsWith(`rgb`)){let t=e.match(/\d+/g);if(t&&t.length===3)return{R:parseInt(t[0]),G:parseInt(t[1]),B:parseInt(t[2])}}if(e.startsWith(`hsl`)){let t=e.match(/(\d+),\s*(\d+%),\s*(\d+%)/);if(t){let[e,n,r]=[parseInt(t[1]),parseInt(t[2])/100,parseInt(t[3])/100],{R:i,G:a,B:o}=gw(e/360,n,r);return{R:i,G:a,B:o}}}},vw=(e,t,n=10)=>{let r=_w(e),i=_w(t);if(!r||!i)return!1;let a=Math.abs(r.R-i.R),o=Math.abs(r.G-i.G),s=Math.abs(r.B-i.B);return a<=n&&o<=n&&s<=n},yw={},bw={width:`112`,height:`112`,viewBox:`0 0 112 112`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function xw(e,t){return S(),V(`svg`,bw,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M27.2 22.4002C27.2 20.6329 28.6327 19.2002 30.4 19.2002H68.8L81.6 32.0002V88.0002C81.6 89.7675 80.1673 91.2002 78.4 91.2002H30.4C28.6327 91.2002 27.2 89.7675 27.2 88.0002V22.4002Z`,fill:`#F5F6FA`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M68.8 19.2002L81.6 32.0002H72C70.2327 32.0002 68.8 30.5675 68.8 28.8002V19.2002Z`,fill:`#E2E3E6`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M34.4 36.7998C33.9582 36.7998 33.6 37.158 33.6 37.5998V41.5998C33.6 42.0416 33.9582 42.3998 34.4 42.3998H74.4C74.8418 42.3998 75.2 42.0416 75.2 41.5998V37.5998C75.2 37.158 74.8418 36.7998 74.4 36.7998H34.4ZM34.4 47.2C33.9582 47.2 33.6 47.5582 33.6 48V52C33.6 52.4418 33.9582 52.8 34.4 52.8H74.4C74.8418 52.8 75.2 52.4418 75.2 52V48C75.2 47.5582 74.8418 47.2 74.4 47.2H34.4ZM33.6 58.4C33.6 57.9582 33.9582 57.6 34.4 57.6H74.4C74.8418 57.6 75.2 57.9582 75.2 58.4V62.4C75.2 62.8418 74.8418 63.2 74.4 63.2H34.4C33.9582 63.2 33.6 62.8418 33.6 62.4V58.4ZM34.4 68C33.9582 68 33.6 68.3582 33.6 68.8V72.8C33.6 73.2418 33.9582 73.6 34.4 73.6H55.2C55.6418 73.6 56 73.2418 56 72.8V68.8C56 68.3582 55.6418 68 55.2 68H34.4Z`,fill:`#E2E3E6`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M77.6 67.2002C74.2863 67.2002 71.6 69.8865 71.6 73.2002C71.6 75.4018 72.7857 77.3264 74.5534 78.3703C74.7147 78.8387 74.8174 79.3262 74.8174 79.8082C74.8174 82.0522 72.5913 82.263 72.5913 82.263L67.2 82.2631C65.4327 82.2631 64 83.6958 64 85.4631V89.6002H91.2V85.4631C91.2 83.6958 89.7673 82.2631 88 82.2631L82.6087 82.263C82.6087 82.263 80.3826 82.0522 80.3826 79.8082C80.3826 79.3262 80.4853 78.8387 80.6466 78.3703C82.4143 77.3264 83.6 75.4018 83.6 73.2002C83.6 69.8865 80.9137 67.2002 77.6 67.2002ZM64 93.6002V91.2002H91.2V93.6002C91.2 94.042 90.8418 94.4002 90.4 94.4002H64.8C64.3582 94.4002 64 94.042 64 93.6002Z`,fill:`#273C62`,"fill-opacity":`0.6`},null,-1)]])}var Sw=B(yw,[[`render`,xw]]),Cw={class:`signatures-popup`},ww={class:`sign-title`},Tw={class:`sign-content`},Ew={key:0,class:`sign-popup-header`},Dw={class:`signatures-popup-lists`},Ow={key:0,class:`signatures-popup-empty`},kw={class:`no-signatures`},Aw={key:1,class:`signatures-popup-list-container`},jw=[`onClick`],Mw=[`src`],Nw={class:`signatures-popup-create`},Pw={class:`create-sign-header`},Fw=[`onClick`],Iw=[`width`,`height`],Lw={class:`keyboard-paint`},Rw=[`placeholder`],zw={key:0,class:`property-container`},Bw={class:`width-tool`},Vw={key:0},Hw={class:`font-tool`},Uw={key:0},Ww={class:`color-tool`},Gw={key:0},Kw={class:`colors-container`},qw=[`onClick`],Jw={key:0,class:`color-picker`},Yw={class:`footer`},Xw={class:`clear-container`},Zw={key:0,class:`left-btns`},Qw={key:0},$w={key:1},eT={class:`buttons-container`},tT={class:`right-btns`},nT={key:0,class:`delete-page-popup`},rT={__name:`SignCreatePanel`,setup(e){let{t}=It(),n=ye(),r=pw(),i=T(()=>n.isElementOpen(H.SIGN_CREATE_PANEL)),a=T(()=>n.getActiveElementTab(`signPanel`)),o=T(()=>n.getToolMode),l=T(()=>n.getSignatureDialogTabs),u=T(()=>n.getSignatureDialogProperties),f=T(()=>r.getDisableDigitalSignature),p=T(()=>r.getDisableElectronicSignature),m=T(()=>n.getElectronicSignaturesList),g=T(()=>n.getTheme),_=T(()=>r.getActiveTool),v=T(()=>n.getEnableSignatureTemplates),C=J(!1),O=J(0),k=J(``),j=J(``),M=J(u.value.trackpad.lineWidth||5),N=J(u.value[a.value].colors[0].value||`#000000`),P=J(u.value.keyboard.fonts[0].fontFamily||`Courier New`),ee=J(u.value.keyboard.fonts.map(e=>({label:e.label,value:e.fontFamily,style:{fontFamily:e.fontFamily}}))),F=J(),te=J(oe?289:578),I=J(270),ne=J(`rgb(0, 0, 0)`),re=J(`create`),ie=J(!0);m.value.length>=5&&(ie.value=!1);let B=(e,t)=>{e.stopPropagation(),C.value=!0,O.value=t},ae=()=>{n.removeElectronicSignature(O.value),C.value=!1};W(()=>u.value.keyboard.fonts,(e,t)=>{P.value=e[0].fontFamily||`Courier New`,ee.value=e.map(e=>({label:e.label,value:e.fontFamily,style:{fontFamily:e.fontFamily}}))}),W(()=>o.value,(e,t)=>{if(!(t===`sign`&&e===`view`)&&e!==t){let e=document.getElementById(`sign-image-save`);e&&e.remove()}}),W(()=>M.value,(e,t)=>{e!==``&&(e>10||e<=0||!/^\d+$/.test(e))&&(M.value=t),a.value===`trackpad`&&U.handleSign({flag:`update`,param:{width:M.value,color:N.value}})}),W(()=>N.value,(e,t)=>{if(U.handleSign({flag:`update`,param:{width:M.value,color:N.value}}),a.value===`keyboard`){ne.value=N.value;let e=document.querySelector(`.keyboard-paint input`);e&&(e.style.color=N.value)}}),W(()=>i.value,(e,t)=>{e&&(oe&&E(()=>{let{clientWidth:e,clientHeight:t}=F.value;e&&te.value!==e&&(te.value=e),t&&I.value!==t&&(I.value=t)}),n.setActiveSignWay(`keyboard`),k.value=``,U.handleSign({flag:`create`}))}),W(()=>re.value,(e,t)=>{e===`create`&&oe&&E(()=>{let{clientWidth:e,clientHeight:t}=F.value;e&&te.value!==e&&(te.value=e),t&&I.value!==t&&(I.value=t)})}),W(()=>m.value,e=>{e&&e.length>=5?ie.value=!1:ie.value||=!0},{deep:!0}),W(()=>i.value,e=>{v.value&&(e&&m.value.length>0?re.value=`list`:e&&m.value.length===0&&(re.value=`create`))}),W(()=>a.value,(e,t)=>{t===`trackpad`&&U.handleSign({flag:`clear`}),k.value=``,j.value=``});let se=e=>{a.value!==e&&(n.setActiveSignWay(e),le(),ue())},ce=e=>{n.toggleElement(`signCreatePanel`),U.handleSign({flag:`reset`}),a.value!==`trackpad`&&le(),ue(),document.body.style.overflow=``,e===`cancel`&&f.value&&p.value&&n.openElement(H.SELECT_SIGN_TYPE_DIALOG)},le=()=>{if(a.value===`keyboard`&&(k.value=``),a.value===`image`){j.value=``;let e=document.querySelector(`.image-paint`),t=document.querySelector(`.image-paint input`),n=document.querySelector(`.image-paint a`),r=document.querySelector(`.image-paint img`);e&&(r&&(e.removeChild(r),t.value=``),n&&(n.style.display=`block`))}a.value===`trackpad`&&U.handleSign({flag:`clear`})},ue=()=>{let e=u.value.trackpad.lineWidth||5,t=[`trackpad`,`keyboard`].includes(a.value)&&u.value[a.value].colors[0].value||`#000000`,n=u.value.keyboard.fonts[0].fontFamily||`Courier New`;N.value!==t&&(N.value=t),P.value!==n&&(P.value=n),M.value!==e&&(M.value=e,U.handleSign({flag:`update`,param:{width:M.value,color:N.value}}))},de=e=>{e.preventDefault(),e.stopPropagation();let t=e.dataTransfer.files[0];pe(t)},fe=e=>{let n=e.target.files[0];if(n.size>1024*1024){window.$message.error(t(`signatures.uploadError`),{duration:5e3,icon:()=>Y(`img`,{src:mw})}),e.target.value=``;return}e.target.value=``,pe(n)},pe=e=>{o.value===`annotation`&&(r.setToolState(L.IMAGE),U.handleCreateStatus({bool:!0,fileData:e}));let t=new FileReader;t.readAsDataURL(e),t.onload=function(){j.value=t.result;let e=document.querySelector(`.image-paint`),n=document.querySelector(`.image-paint a`);if(e){let t=document.createElement(`img`);t.setAttribute(`src`,j.value),t.style.maxHeight=`220px`,t.style.maxWidth=`568px`,n.style.display=`none`,e.append(t)}if(_.value===L.IMAGE){let e=new Image;e.onload=function(){he()},e.src=j.value}}},me=e=>{o.value===`annotation`&&r.setToolState(L.IMAGE)},he=async()=>{let e=``,t=0,i=0,o=n.getSelectedSignatureField;if((a.value===`image`&&j.value!==``||j.value!==``)&&(e=j.value),a.value===`keyboard`&&k.value!==``){let n=document.createElement(`canvas`).getContext(`2d`);n.font=`46px ${P.value}`;let r=n.measureText(k.value),a=r.width,o=r.actualBoundingBoxAscent||46*.6,s=o+(r.actualBoundingBoxDescent||46*.6),c=document.createElement(`canvas`);c.width=a+16,c.height=s+16;let l=c.getContext(`2d`);l.font=`46px ${P.value}`,l.fillStyle=N.value,l.textBaseline=`alphabetic`,l.fillText(k.value,8,8+o),t=a,i=s,e=c.toDataURL()}e&&a.value!==`trackpad`&&(U.handleSign({flag:`save`,param:{imageBase64:e,annotation:w(o)}}),m.value.length<5&&ie.value&&n.addElectronicSignature(e));let s=document.querySelector(`.content`);if(s&&_.value===L.IMAGE){let n=document.getElementById(`sign-image-save`);n||(n=document.createElement(`img`),n.style.position=`absolute`,n.style.zIndex=10,n.style.pointerEvents=`none`,n.style.maxHeight=`220px`,n.style.maxWidth=`568px`,n.style.border=`2px solid blue`,n.style.cursor=`crosshair`,n.id=`sign-image-save`),n.setAttribute(`src`,e),n.style.left=`50%`,n.style.top=`50%`,n.style.display=`hidden`,s.append(n),n.offsetWidth>0&&n.offsetHeight>0&&(t=n.offsetWidth,i=n.offsetHeight);let a=Math.min(parseInt(t/2),568/2),o=Math.min(parseInt(i/2),220/2);n.style.left=`calc(50% -`+a+`)`,n.style.top=`calc(50% -`+o+`)`,n.style.display=`block`,s.onmousemove=function(e){n.style.left=e.clientX-a+`px`,n.style.top=e.clientY-o+`px`},r.setToolState(L.IMAGE);return}if(a.value===`trackpad`){let e=await U.handleSign({flag:`save`,param:{width:M.value,color:N.value,annotation:w(o)}});m.value.length<5&&ie.value&&n.addElectronicSignature(e)}ce()},ge=e=>{let t=n.getSelectedSignatureField;t&&U.handleSign({flag:`save`,param:{imageBase64:e,annotation:w(t)}}),n.toggleElement(H.SIGN_CREATE_PANEL)},_e=e=>{e.target.value||(M.value=1)},ve=e=>{N.value=e},be=e=>{vw(e,N.value)||ve(e)},xe=e=>{ne.value=e};U.addEvent(`signaturesImageChanged`,e=>{j.value=e.imageBase64});let Se=({option:e})=>Y(`div`,{style:{fontFamily:e.style.fontFamily}},{default:()=>e.label});return(e,t)=>{let n=Fe,r=dw,i=lx,o=sw,f=rw,p=$b,_=$C,w=YC,T=GC;return S(),V(q,null,[c(`div`,{class:`signatures-popup-wrapper`,onMousedown:t[11]||=Ae(()=>{},[`stop`])},[c(`div`,Cw,[c(`div`,ww,d(e.$t(`signatures.electronicSignature.title`)),1),c(`div`,{onClick:t[0]||=e=>ce(`cancel`),class:`close-button`},[x(n)]),c(`div`,Tw,[v.value?(S(),V(`div`,Ew,[c(`div`,{onClick:t[1]||=e=>re.value=`list`,class:D({active:re.value===`list`})},d(e.$t(`signatures.electronicSignature.mySignatures`)),3),c(`div`,{onClick:t[2]||=e=>re.value=`create`,class:D({active:re.value===`create`})},d(e.$t(`signatures.electronicSignature.create`)),3)])):b(``,!0),R(c(`div`,Dw,[m.value.length===0?(S(),V(`div`,Ow,[c(`div`,kw,[g.value===`light`?(S(),s(Sw,{key:0})):(S(),s(r,{key:1})),c(`div`,{onClick:t[3]||=e=>re.value=`create`},d(e.$t(`signatures.electronicSignature.empty`)),1)])])):(S(),V(`div`,Aw,[(S(!0),V(q,null,z(m.value,(e,t)=>(S(),V(`div`,{class:`signatures-popup-list`,onClick:t=>ge(e),key:t},[c(`img`,{src:e},null,8,Mw),x(i,{class:D([`close-button`,{show:K(oe)}]),onClick:e=>B(e,t)},{default:G(()=>[x(n)]),_:1},8,[`class`,`onClick`])],8,jw))),128))]))],512),[[Re,re.value===`list`]]),R(c(`div`,Nw,[c(`div`,Pw,[(S(!0),V(q,null,z(l.value,(t,n)=>(S(),V(`div`,{key:n,onClick:e=>se(t),class:D({active:a.value===t})},d(e.$t(`signatures.`+t)),11,Fw))),128))]),c(`div`,{class:D([`sign-create-container`,{mobile:K(oe)}])},[c(`div`,{class:`paint-container`,ref_key:`paintContainer`,ref:F},[R(c(`canvas`,{id:`electronicTrackpadCanvas`,width:te.value,height:I.value},null,8,Iw),[[Re,a.value===`trackpad`]]),R(c(`div`,Lw,[R(c(`input`,{type:`text`,placeholder:e.$t(`signatures.signHere`),"onUpdate:modelValue":t[4]||=e=>k.value=e,name:`signature`,style:A({fontFamily:P.value})},null,12,Rw),[[Me,k.value]])],512),[[Re,a.value===`keyboard`]]),R(c(`div`,{class:`image-paint`,onDrop:de,onDragover:t[5]||=Ae(()=>{},[`prevent`])},[R(c(`div`,null,[x(o),c(`div`,null,d(e.$t(`signatures.electronicSignature.dropFile`)),1),c(`a`,null,[y(d(e.$t(`signatures.selectFile`)),1),c(`input`,{type:`file`,id:`signImageInput`,onChange:fe,accept:`.png, .jpg, .jpeg`,onClick:me,name:`signature`},null,32)])],512),[[Re,!j.value]])],544),[[Re,a.value===`image`]])],512),[`trackpad`,`keyboard`].includes(a.value)?(S(),V(`div`,zw,[R(c(`div`,Bw,[K(oe)?b(``,!0):(S(),V(`span`,Vw,d(e.$t(`signatures.lineWidth`)),1)),x(K(xb),{value:M.value,"onUpdate:value":t[6]||=e=>M.value=e,step:1,max:10,min:1,class:`width-slider`},{thumb:G(()=>[x(f)]),_:1},8,[`value`]),R(c(`input`,{"onUpdate:modelValue":t[7]||=e=>M.value=e,type:`text`,pattern:`\\d*`,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,onBlur:_e,name:`signature`},null,544),[[Me,M.value]])],512),[[Re,a.value===`trackpad`&&u.value.trackpad.enableLineWidth]]),R(c(`div`,Hw,[K(oe)?b(``,!0):(S(),V(`span`,Uw,d(e.$t(`common.uiElements.font`)),1)),x(K(kv),{value:P.value,"onUpdate:value":t[8]||=e=>P.value=e,options:ee.value,"render-tag":Se,to:`.font-tool`,class:`font-family-select`},{arrow:G(()=>[x(p)]),_:1},8,[`value`,`options`])],512),[[Re,a.value===`keyboard`]]),R(c(`div`,Ww,[K(oe)?b(``,!0):(S(),V(`span`,Gw,d(e.$t(`common.uiElements.color`)),1)),c(`div`,Kw,[(S(!0),V(q,null,z(u.value[a.value].colors,(e,t)=>(S(),V(`span`,{class:D([`cell-container`,{mobile:K(oe),show:!u.value[a.value].enableCustomColor}]),key:t},[c(`span`,{class:D([`cell-outer`,{active:K(vw)(N.value,e.value)}]),onClick:t=>ve(e.value)},[c(`span`,{class:`cell`,style:A(`background-color: ${e.value}`)},null,4)],10,qw)],2))),128)),u.value[a.value].enableCustomColor?(S(),V(`div`,Jw,[c(`div`,{class:`preview`,style:A({backgroundColor:ne.value})},null,4),x(K(gv),{onComplete:be,"onUpdate:value":xe,value:ne.value,"show-alpha":!1},{label:G(()=>[...t[13]||=[c(`img`,{src:``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,alt:`colorPicker`},null,-1)]]),_:1},8,[`value`])])):b(``,!0)])],512),[[Re,a.value===`trackpad`||a.value===`keyboard`]])])):b(``,!0)],2),c(`div`,Yw,[c(`div`,Xw,[c(`span`,{class:`clear top`,onClick:le},d(e.$t(`common.actions.clear`)),1),v.value?(S(),V(`div`,Zw,[c(`div`,{class:D([`check`,{active:ie.value,disabled:m.value.length>=5}]),onClick:t[9]||=e=>m.value.length<5&&(ie.value=!ie.value)},[R(x(_,null,null,512),[[Re,ie.value]])],2),m.value.length<5?(S(),V(`span`,Qw,d(e.$t(`signatures.electronicSignature.saveTemplate`)),1)):(S(),V(`span`,$w,d(e.$t(`signatures.fullStorage`)),1))])):b(``,!0)]),c(`div`,eT,[c(`span`,{class:`clear bottom`,onClick:le},d(e.$t(`common.actions.clear`)),1),c(`div`,tT,[c(`div`,{class:`button`,onClick:t[10]||=e=>ce(`cancel`)},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:D([`button blue`,{disabled:!k.value&&!j.value}]),onClick:he},d(e.$t(`common.actions.apply`)),3)])])])],512),[[Re,re.value===`create`]])])])],32),C.value?(S(),V(`div`,nT,[x(T,{show:C.value,dialogName:e.dialogName},{footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:t[12]||=e=>C.value=!1},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:ae},d(e.$t(`common.actions.ok`)),1)]),default:G(()=>[x(w),c(`p`,null,d(e.$t(`signatures.deleteConfirm`)),1)]),_:1},8,[`show`,`dialogName`])])):b(``,!0)],64)}}},iT={},aT={width:`48`,height:`48`,viewBox:`0 0 48 48`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function oT(e,t){return S(),V(`svg`,aT,[...t[0]||=[c(`path`,{d:`M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z`,fill:`#FF5050`,stroke:`#FF5050`,"stroke-linejoin":`round`},null,-1),c(`path`,{d:`M30 18L18 30`,stroke:`white`,"stroke-width":`3`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1),c(`path`,{d:`M18 18L30 30`,stroke:`white`,"stroke-width":`3`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var sT=B(iT,[[`render`,oT]]),cT={},lT={width:`60`,height:`60`,viewBox:`0 0 60 60`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function uT(e,t){return S(),V(`svg`,lT,[...t[0]||=[v(`<circle cx="47.0455" cy="16.3636" r="2.04545" fill="white"></circle><circle cx="53.1819" cy="32.0454" r="2.72727" fill="white"></circle><circle cx="47.0453" cy="47.0456" r="3.40909" fill="white"></circle><circle cx="31.3639" cy="53.8636" r="4.09091" fill="white"></circle><circle cx="15.6819" cy="47.7273" r="4.77273" fill="white"></circle><circle cx="9.54537" cy="32.0454" r="5.45455" fill="white"></circle><circle cx="15.6818" cy="17.0455" r="6.13636" fill="white"></circle><circle cx="31.3636" cy="9.54548" r="6.81818" fill="white"></circle>`,8)]])}var dT=B(cT,[[`render`,uT]]),fT=[`data-element`],pT={__name:`Panel`,props:{dataElement:String,location:String,isFullHeight:Boolean,close:Boolean},setup(e){let t=e,n=ye(),r=pw(),i=J(null),a=T(()=>n.isElementOpen(t.dataElement)),o=T(()=>n.isElementDisabled(t.dataElement)),s=T(()=>n.isElementDisabled(H.HEADER)),c=T(()=>n.getOpenedPanelsNum),l=T(()=>r.getActiveTool),u=T(()=>({"modular-panel":!0,closed:!a.value||o.value,mobile:P,left:t.location===`left`||t.location===`start`,right:t.location===`right`||t.location===`end`,full:t.isFullHeight})),d=T(()=>{let e;if(P)e=t.isFullHeight?`calc(100% - 44px)`:`70%`;else{let t=[L.REDACTION,L.REMOVE].includes(l.value)?136:88;e=s.value?`100%`:`calc(100% - ${t}px)`}return{height:e}}),f=()=>{n.closeElement(t.dataElement)};W(()=>a.value,e=>{if(P)return;n.setPanelTransitionEnd(!1);let r=t.location,i=c.value;n.setOpenedPanelsNum(r,Math.max(0,i[r]+(e?1:-1))),n.setPanelSpace(r,i[r]>0?260:0)});let p=()=>{n.setPanelTransitionEnd(!0)};return M(()=>{i.value.addEventListener(`transitionend`,p)}),j(()=>{i.value.removeEventListener(`transitionend`,p)}),(t,n)=>{let r=Fe;return S(),V(`div`,{ref_key:`panelRef`,ref:i,class:D(u.value),style:A(d.value),"data-element":e.dataElement},[e.close?(S(),V(`div`,{key:0,class:`close-container`,onClick:f},[x(r)])):b(``,!0),be(t.$slots,`default`)],14,fT)}}},mT=[`data-element`],hT={__name:`CustomElement`,props:{className:{type:String,default:`CustomElement`},dataElement:{type:String,required:!0},display:{type:String,default:`block`},render:{type:Function,required:!0},renderArguments:{type:Array,default:()=>[]},mediaQueryClassName:{type:String,default:``},style:{type:Object,default:()=>({})}},setup(e){let t=e,n=ye(),r=J(null),i=J(null),a=T(()=>n.isElementDisabled(t.dataElement)),o=T(()=>({[t.className]:!0,[t.mediaQueryClassName]:!!t.mediaQueryClassName})),c=T(()=>({display:t.display,...t.style})),l=e=>{try{return e instanceof window.Element||e instanceof window.parent?.Element}catch{return!1}},u=()=>{let e=r.value;if(e)for(;e.firstChild;)e.removeChild(e.firstChild)},d=async()=>{if(a.value){f();return}let e;try{e=t.renderArguments.length?t.render(...t.renderArguments):t.render()}catch(e){console.error(`[CustomElement] render error:`,e),f();return}if(!e){f();return}let n=r.value;if(n){if(l(e)){i.value=null,u(),n.appendChild(e);return}if(O(e)){u(),i.value=e;return}console.warn(`[CustomElement] render() must return a DOM Element or Vue VNode`),f()}},f=()=>{i.value=null,u()};return W(()=>[a.value,t.render,t.renderArguments],async()=>{await E(),d()},{deep:!0}),M(()=>{d()}),j(()=>{f()}),(t,n)=>a.value?b(``,!0):(S(),V(`div`,{key:0,class:D(o.value),ref_key:`wrapperRef`,ref:r,"data-element":e.dataElement,style:A(c.value)},[i.value?(S(),s(ve(i.value),{key:0})):be(t.$slots,`default`,{key:1})],14,mT))}},gT={__name:`LazyLoadWrapper`,props:[`Component`,`dataElement`,`onOpenHook`],setup(e){let t=e,n=ye(),r=T(()=>t.onOpenHook?t.onOpenHook():{}),i=T(()=>n.isElementOpen(t.dataElement)),a=T(()=>n.isElementDisabled(t.dataElement));return(t,n)=>i.value&&!a.value?(S(),s(ee,{key:0},{fallback:G(()=>[...n[0]||=[c(`div`,null,`Loading...`,-1)]]),default:G(()=>[x(K(e.Component),f({"data-element":e.dataElement},r.value),null,16,[`data-element`])]),_:1})):b(``,!0)}},_T={key:0,class:`move-page-popup`},vT=[`placeholder`],yT=`movePageSettingDialog`,bT={__name:`MovePageSettingDialog`,props:[`totalPages`,`selectedPageList`],emits:[`movePage`],setup(e,{emit:t}){let n=e,r=t,i=ye(),a=T(()=>i.isElementOpen(yT)),o=J(``),s=!1,l=T(()=>{if(typeof o.value!=`number`)return!0;let e=n.selectedPageList;return!!(e.length===1&&(e[0]===o.value||e[0]===o.value-1)||e.length>1&&u(e)&&(e.includes(o.value)||e.includes(o.value-1)))}),u=e=>{e.sort(function(e,t){return e-t});for(var t=0;t<e.length-1;t++)if(e[t]+1!==e[t+1])return!1;return!0},f=()=>{i.closeElement(yT),o.value=``},p=async()=>{r(`movePage`,o.value),f()},m=e=>{if(s)return;let t=e.target.valueAsNumber;isNaN(t)&&(e.target.value=``),t>n.totalPages&&(o.value=n.totalPages),t===0&&(e.target.value=t.toFixed(0))},g=()=>{s=!0},_=()=>{s=!1};return(e,t)=>{let n=GC;return a.value?(S(),V(`div`,_T,[x(n,{show:a.value,dialogName:yT,close:!0},{header:G(()=>[c(`p`,null,d(e.$t(`documentEditor.moveTo`)),1)]),footer:G(()=>[c(`div`,{class:D([`rect-button blue`,{disabled:l.value}]),onClick:p},d(e.$t(`common.actions.ok`)),3)]),default:G(()=>[R(c(`input`,{"onUpdate:modelValue":t[0]||=e=>o.value=e,type:`number`,pattern:`\\d*`,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,onInput:m,placeholder:e.$t(`documentEditor.pageInputTip`),onCompositionstart:g,onCompositionend:_,name:`document-editor`},null,40,vT),[[Me,o.value,void 0,{number:!0}]])]),_:1},8,[`show`])])):b(``,!0)}}},xT={},ST={width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function CT(e,t){return S(),V(`svg`,ST,[...t[0]||=[c(`g`,{id:`ic_btn_radio_dis`},[c(`circle`,{id:`ic`,cx:`7`,cy:`7`,r:`5.625`,fill:`white`,stroke:`#666666`})],-1)]])}var wT=B(xT,[[`render`,CT]]),TT={},ET={width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function DT(e,t){return S(),V(`svg`,ET,[...t[0]||=[c(`g`,{id:`ic_btn_radio_sel`},[c(`circle`,{id:`Radio`,cx:`7`,cy:`7`,r:`6.125`,fill:`#1460F3`}),c(`circle`,{id:`Radio_2`,cx:`7`,cy:`7`,r:`2.625`,fill:`white`})],-1)]])}var OT=B(TT,[[`render`,DT]]),kT={key:0,class:`extract-page-setting-popup`},AT={class:`title`},jT={class:`container`},MT={class:`select-content`},NT={key:0,class:`disabled-btn`},PT={class:`addition`},FT=[`placeholder`],IT={class:`check-content`},LT=`extractPageSettingDialog`,RT={__name:`ExtractPageSettingDialog`,props:[`selectedPageList`,`totalPages`],emits:[`extractPage`],setup(e,{emit:t}){let n=e,r=t,i=ye(),a=T(()=>i.isElementOpen(LT)),o=J(`custom`),l=J(``),u=J(``),f=J(!1),p=J(!1),m=``;W(()=>a.value,(e,t)=>{e&&(m=C(n.selectedPageList.map(function(e){return e+1}).join(`,`)),l.value=u.value=m)});let g=()=>{i.closeElement(LT),o.value=`custom`},_=async()=>{r(`extractPage`,{range:o.value===`custom`?l.value:o.value,separateFile:f.value,deleteAfter:o.value===`all`?!1:p.value}),g()},v=()=>{u.value=C(l.value),l.value=u.value},C=e=>{let t=n.totalPages,r=e.replace(/\s/g,``).match(/\d+-\d+|\d+|\d+/g);if(r){let e=r.flatMap(e=>{if(e.includes(`-`)){let[n,r]=e.split(`-`),i=Math.min(n,r),a=Math.min(Math.max(n,r),t);return Array.from({length:a-i+1},(e,t)=>String(Number(i)+t))}else return Math.min(Math.max(e,1),t)}).sort((e,t)=>e-t),n=[],i=e[0],a=e[0];for(let t=1;t<e.length;t++){let r=e[t],o=Number(a);Number(r)-o>1&&(n.push(w(i,a)),i=r),a=r}return n.push(w(i,a)),n.join(`, `)}return m},w=(e,t)=>e===t?e.toString():`${e}-${t}`,E=T(()=>{if(o.value===`all`||n.totalPages===1&&o.value!==`even`||n.totalPages>1&&o.value===`custom`&&l.value===`1-`+n.totalPages)return!0});return(t,n)=>{let r=OT,i=wT,m=$C,C=GC;return a.value?(S(),V(`div`,kT,[x(C,{show:a.value,dialogName:LT,close:!1},{header:G(()=>[c(`p`,null,d(t.$t(`documentEditor.extract`)),1)]),footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:g},d(t.$t(`common.actions.cancel`)),1),c(`div`,{class:D([`rect-button blue`,{disabled:o.value===`pdf`&&(!t.inputFile||o.value===`custom`&&!u.value)}]),onClick:_},d(t.$t(`documentEditor.extract`)),3)]),default:G(()=>[c(`p`,AT,d(t.$t(`documentEditor.dialog.pageRange`)),1),c(`div`,jT,[c(`div`,MT,[c(`div`,{onClick:n[0]||=e=>o.value=`all`,class:`option`},[o.value===`all`?(S(),s(r,{key:0})):(S(),s(i,{key:1})),y(d(t.$t(`documentEditor.dialog.allPages`)),1)]),c(`div`,{onClick:n[1]||=e=>o.value=`odd`,class:`option`},[o.value===`odd`?(S(),s(r,{key:0})):(S(),s(i,{key:1})),y(d(t.$t(`documentEditor.dialog.oddPage`)),1)]),c(`div`,{onClick:n[2]||=e=>o.value=`even`,class:D([`option`,{disabled:e.totalPages===1}])},[e.totalPages===1?(S(),V(`div`,NT)):o.value===`even`?(S(),s(r,{key:1})):(S(),s(i,{key:2})),y(` `+d(t.$t(`documentEditor.dialog.evenPage`)),1)],2),c(`div`,{onClick:n[4]||=e=>o.value=`custom`,class:`option custom-page`},[o.value===`custom`?(S(),s(r,{key:0})):(S(),s(i,{key:1})),y(d(t.$t(`documentEditor.dialog.page`))+` `,1),c(`div`,PT,[R(c(`input`,{type:`text`,"onUpdate:modelValue":n[3]||=e=>l.value=e,placeholder:t.$t(`documentEditor.dialog.tip`),onBlur:v,name:`document-editor`},null,40,FT),[[Me,l.value]]),c(`span`,null,`/ `+d(e.totalPages),1)])])])]),c(`div`,IT,[c(`div`,{class:`check-box`,onClick:n[5]||=e=>f.value=!f.value},[c(`div`,{class:D([`check`,{active:f.value}])},[R(x(m,null,null,512),[[Re,f.value]])],2),c(`span`,null,d(t.$t(`documentEditor.separateFiles`)),1)]),c(`div`,{class:D([`check-box`,{disabled:E.value}]),onClick:n[6]||=()=>{E.value||(p.value=!p.value)}},[c(`div`,{class:D([`check`,{active:p.value}])},[R(x(m,null,null,512),[[Re,p.value&&!E.value]])],2),c(`span`,null,d(t.$t(`documentEditor.deleteAfter`)),1)],2)])]),_:1},8,[`show`])])):b(``,!0)}}},zT={key:0,class:`delete-page-popup`},BT=`deletePageDialog`,VT={__name:`DeletePageDialog`,props:[`selectedPageList`],emits:[`deletePage`],setup(e,{emit:t}){let{i18next:n}=It(),r=e,i=t,a=ye(),o=T(()=>a.isElementOpen(BT)),s=T(()=>r.selectedPageList.sort((e,t)=>e-t).map(e=>e+1).join(`, `)),l=()=>{a.closeElement(BT)},u=async()=>{i(`deletePage`),l()};return(e,t)=>{let r=YC,i=GC;return o.value?(S(),V(`div`,zT,[x(i,{show:o.value,dialogName:BT,close:!1},{footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:l},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:u},d(e.$t(`common.actions.delete`)),1)]),default:G(()=>[x(r),c(`p`,null,d(e.$t(`documentEditor.deleteConfirmation`))+d(K(n).language===`en`?` ${s.value}?`:``),1)]),_:1},8,[`show`])])):b(``,!0)}}},HT={},UT={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function WT(e,t){return S(),V(`svg`,UT,[...t[0]||=[c(`path`,{d:`M6.82225 3.96144L6.99439 4.05909H7.19231H11.75V13.25H1.25V2.75H4.6867L6.82225 3.96144Z`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M1.55867 13.25L3.84383 6.75H14.4413L12.1562 13.25H1.55867Z`,fill:`transparent`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var GT=B(HT,[[`render`,WT]]),KT={},qT={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function JT(e,t){return S(),V(`svg`,qT,[...t[0]||=[c(`g`,{id:`ic_btn_arrow_down`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11.0596 5.90869L11.9398 6.72429L8.24969 10.7068L4.55957 6.72429L5.4398 5.90869L8.24969 8.94084L11.0596 5.90869Z`,fill:`currentColor`})],-1)]])}var YT=B(KT,[[`render`,JT]]),XT={key:0,class:`merge-page-setting-popup`},ZT={class:`title`},QT={class:`container`},$T={class:`select-content`},eE={key:0,class:`addition`},tE={key:1,class:`addition`},nE={class:`file-input-underbox`},rE={key:2,class:`file-list`},iE=[`title`],aE=[`onClick`],oE={key:3,class:`addition from-pdf`},sE={class:`addition`},cE={value:`all`},lE={value:`odd`},uE={value:`even`},dE={value:`custom`},fE=[`placeholder`],pE=`mergePageSettingDialog`,mE={__name:`MergePageSettingDialog`,props:[`selectedPageList`,`totalPages`],emits:[`mergePage`],setup(e,{emit:t}){let n=e,r=t,i=ye(),a=T(()=>i.isElementOpen(pE)),o=J(`blank`),l=J(`A4`),u=J([]),f=J(`all`),p=J(``),m=J(``),g=T(()=>o.value===`pdf`?!u.value.length||f.value===`custom`&&!m.value:!1),_=()=>{i.closeElement(pE),o.value=`blank`,l.value=`A4`,u.value=[],f.value=`all`,p.value=``,m.value=``},v=async()=>{if(g.value)return;let e={type:o.value===`pdf`?`pdf`:`blank`,place:n.totalPages};if(o.value===`custom`){let t={A3:{width:297,height:420},A4:{width:210,height:297},A5:{width:148,height:210}};e.size={width:t[l.value].width/25.4*72,height:t[l.value].height/25.4*72}}if(o.value===`pdf`){let t=C();e.files=u.value.map((e,n)=>{let r=f.value;if(f.value===`custom`){let e=t[n];r=e!==void 0&&e.trim()!==``?e.trim():`all`}return{file:e.file,range:r,password:e.password||``}})}r(`mergePage`,e),_()},C=()=>f.value===`custom`?p.value.split(`;`):[],w=async e=>{let t=Array.from(e.target.files);if(t.length){for(let e of t){let t=URL.createObjectURL(e),n=await U.checkPassword(t,!0);n!==!1&&u.value.push({file:e,password:n})}e.target.value=``}},E=e=>{u.value.splice(e,1)},O=()=>{let e=p.value.split(`;`).map(e=>k(e.trim())).join(`; `);m.value=e,p.value=e},k=e=>{if(!e)return``;let t=e.replace(/\s/g,``).match(/\d+-\d+|\d+/g);if(t){let e=t.flatMap(e=>{if(e.includes(`-`)){let[t,n]=e.split(`-`),r=Math.max(1,Math.min(t,n)),i=Math.max(1,t,n);return Array.from({length:i-r+1},(e,t)=>String(Number(r)+t))}else return Math.max(1,e)}).sort((e,t)=>e-t),n=[],r=e[0],i=e[0];for(let t=1;t<e.length;t++){let a=e[t],o=Number(i);Number(a)-o>1&&(n.push(A(r,i)),r=a),i=a}return n.push(A(r,i)),n.join(`, `)}return``},A=(e,t)=>e===t?e.toString():`${e}-${t}`;return(e,t)=>{let n=OT,r=wT,i=YT,m=GT,C=GC;return a.value?(S(),V(`div`,XT,[x(C,{show:a.value,dialogName:pE,close:!1},{footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:_},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:D([`rect-button blue`,{disabled:g.value}]),onClick:v},d(e.$t(`documentEditor.merge`)),3)]),default:G(()=>[c(`p`,ZT,d(e.$t(`documentEditor.dialog.mergePages`)),1),c(`div`,QT,[c(`div`,$T,[c(`div`,{onClick:t[0]||=e=>o.value=`blank`,class:`option`},[o.value===`blank`?(S(),s(n,{key:0})):(S(),s(r,{key:1})),y(d(e.$t(`documentEditor.dialog.blankPage`)),1)]),c(`div`,{onClick:t[1]||=e=>o.value=`custom`,class:`option`},[o.value===`custom`?(S(),s(n,{key:0})):(S(),s(r,{key:1})),y(d(e.$t(`documentEditor.dialog.customPage`)),1)]),o.value===`custom`?(S(),V(`div`,eE,[R(c(`select`,{name:`customPageSize`,"onUpdate:modelValue":t[2]||=e=>l.value=e},[...t[6]||=[c(`option`,{value:`A3`},`A3`,-1),c(`option`,{value:`A4`},`A4`,-1),c(`option`,{value:`A5`},`A5`,-1)]],512),[[Oe,l.value]]),x(i)])):b(``,!0),c(`div`,{onClick:t[3]||=e=>o.value=`pdf`,class:`option`},[o.value===`pdf`?(S(),s(n,{key:0})):(S(),s(r,{key:1})),y(d(e.$t(`documentEditor.dialog.fromPdf`)),1)]),o.value===`pdf`?(S(),V(`div`,tE,[c(`div`,nE,[c(`span`,null,d(e.$t(`documentEditor.dialog.selectFiles`)),1),x(m)]),c(`input`,{type:`file`,onChange:w,accept:`.pdf`,multiple:``,name:`document-editor`},null,32)])):b(``,!0),o.value===`pdf`&&u.value.length?(S(),V(`div`,rE,[(S(!0),V(q,null,z(u.value,(e,t)=>(S(),V(`div`,{key:t,class:`file-item`},[c(`span`,{class:`file-name`,title:e.file.name},d(e.file.name),9,iE),c(`span`,{class:`file-remove`,onClick:e=>E(t)},`×`,8,aE)]))),128))])):b(``,!0),o.value===`pdf`&&u.value.length?(S(),V(`div`,oE,[c(`span`,null,d(e.$t(`documentEditor.dialog.pageRange`)),1),c(`div`,null,[c(`div`,sE,[R(c(`select`,{name:`inputFileRange`,"onUpdate:modelValue":t[4]||=e=>f.value=e},[c(`option`,cE,d(e.$t(`documentEditor.dialog.allPages`)),1),c(`option`,lE,d(e.$t(`documentEditor.dialog.oddPage`)),1),c(`option`,uE,d(e.$t(`documentEditor.dialog.evenPage`)),1),c(`option`,dE,d(e.$t(`documentEditor.dialog.customRange`)),1)],512),[[Oe,f.value]]),x(i)]),f.value===`custom`?R((S(),V(`input`,{key:0,type:`text`,"onUpdate:modelValue":t[5]||=e=>p.value=e,placeholder:e.$t(`documentEditor.dialog.mergeTip`),onBlur:O,name:`document-editor`},null,40,fE)),[[Me,p.value]]):b(``,!0)])])):b(``,!0)])])]),_:1},8,[`show`])])):b(``,!0)}}},hE={key:0,class:`add-page-setting-popup`},gE={class:`title`},_E={class:`container`},vE={class:`select-content`},yE={key:0,class:`addition`},bE={key:1,class:`addition`},xE={class:`file-input-underbox`},SE={key:2,class:`addition from-pdf`},CE={class:`addition`},wE={value:`all`},TE={value:`odd`},EE={value:`even`},DE={value:`custom`},OE=[`placeholder`],kE={class:`title`},AE={class:`container`},jE={class:`select-content`},ME={class:`left`},NE={key:0,class:`right`},PE={class:`addition`},FE=[`max`],IE={class:`addition`},LE={value:0},RE={value:1},zE=`insertPageSettingDialog`,BE={__name:`InsertPageSettingDialog`,props:[`selectedPageList`,`totalPages`],emits:[`insertPage`],setup(e,{emit:t}){let n=e,r=t,i=ye(),a=T(()=>i.isElementOpen(zE)),o=J(`blank`),l=J(`A4`),u=J(null),f=J(`all`),p=J(``),m=J(``),g=J(`first`),_=J(1),v=J(1),C=J(``);W(()=>a.value,(e,t)=>{e&&(n.selectedPageList.length>0&&(g.value=`custom`),_.value=(n.selectedPageList[0]??0)+1)});let w=()=>{i.closeElement(zE),o.value=`blank`,l.value=`A4`,u.value=null,f.value=`all`,p.value=``,m.value=``,g.value=`first`,v.value=1,C.value=``},E=async()=>{let e={type:o.value===`pdf`?`pdf`:`blank`};if(o.value===`custom`){let t={A3:{width:297,height:420},A4:{width:210,height:297},A5:{width:148,height:210}};e.size={width:t[l.value].width/25.4*72,height:t[l.value].height/25.4*72}}o.value===`pdf`&&u.value&&(e.file=u.value,e.range=f.value===`custom`?p.value:f.value,e.password=C.value),g.value===`custom`?(e.place=_.value-1+v.value,e.targetPlace=v.value):g.value===`last`?e.place=n.totalPages:e.place=0,r(`insertPage`,e),w()},O=async e=>{if(!e.target.files[0])return;let t=URL.createObjectURL(e.target.files[0]),n=await U.checkPassword(t,!0);if(n===!1){e.target.value=``;return}u.value=e.target.files[0],C.value=n},k=e=>{let t=e.target.valueAsNumber;t>n.totalPages?_.value=n.totalPages:t<1&&(_.value=1)},A=()=>{_.value||=1},j=()=>{m.value=M(p.value),p.value=m.value},M=e=>{let t=e.replace(/\s/g,``).match(/\d+-\d+|\d+|\d+/g);if(t){let e=t.flatMap(e=>{if(e.includes(`-`)){let[t,n]=e.split(`-`),r=Math.max(1,Math.min(t,n)),i=Math.max(1,t,n);return Array.from({length:i-r+1},(e,t)=>String(Number(r)+t))}else return Math.max(1,e)}).sort((e,t)=>e-t),n=[],r=e[0],i=e[0];for(let t=1;t<e.length;t++){let a=e[t],o=Number(i);Number(a)-o>1&&(n.push(N(r,i)),r=a),i=a}return n.push(N(r,i)),n.join(`, `)}return`1`},N=(e,t)=>e===t?e.toString():`${e}-${t}`;return(t,n)=>{let r=OT,i=wT,C=YT,T=GT,M=GC;return a.value?(S(),V(`div`,hE,[x(M,{show:a.value,dialogName:zE,close:!1},{footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:w},d(t.$t(`common.actions.cancel`)),1),c(`div`,{class:D([`rect-button blue`,{disabled:o.value===`pdf`&&(!u.value||f.value===`custom`&&!m.value)}]),onClick:E},d(t.$t(`documentEditor.insert`)),3)]),default:G(()=>[c(`p`,gE,d(t.$t(`documentEditor.dialog.insertPages`)),1),c(`div`,_E,[c(`div`,vE,[c(`div`,{onClick:n[0]||=e=>o.value=`blank`,class:`option`},[o.value===`blank`?(S(),s(r,{key:0})):(S(),s(i,{key:1})),y(d(t.$t(`documentEditor.dialog.blankPage`)),1)]),c(`div`,{onClick:n[1]||=e=>o.value=`custom`,class:`option`},[o.value===`custom`?(S(),s(r,{key:0})):(S(),s(i,{key:1})),y(d(t.$t(`documentEditor.dialog.customPage`)),1)]),o.value===`custom`?(S(),V(`div`,yE,[R(c(`select`,{name:`customPageSize`,"onUpdate:modelValue":n[2]||=e=>l.value=e},[...n[11]||=[c(`option`,{value:`A3`},`A3`,-1),c(`option`,{value:`A4`},`A4`,-1),c(`option`,{value:`A5`},`A5`,-1)]],512),[[Oe,l.value]]),x(C)])):b(``,!0),c(`div`,{onClick:n[3]||=e=>o.value=`pdf`,class:`option`},[o.value===`pdf`?(S(),s(r,{key:0})):(S(),s(i,{key:1})),y(d(t.$t(`documentEditor.dialog.fromPdf`)),1)]),o.value===`pdf`?(S(),V(`div`,bE,[c(`div`,xE,[c(`span`,{class:D({uploaded:u.value?.name})},d(u.value?.name||t.$t(`documentEditor.dialog.selectFile`)),3),x(T)]),c(`input`,{type:`file`,onChange:O,accept:`.pdf`,name:`document-editor`},null,32)])):b(``,!0),o.value===`pdf`?(S(),V(`div`,SE,[c(`span`,null,d(t.$t(`documentEditor.dialog.pageRange`)),1),c(`div`,null,[c(`div`,CE,[R(c(`select`,{name:`inputFileRange`,"onUpdate:modelValue":n[4]||=e=>f.value=e},[c(`option`,wE,d(t.$t(`documentEditor.dialog.allPages`)),1),c(`option`,TE,d(t.$t(`documentEditor.dialog.oddPage`)),1),c(`option`,EE,d(t.$t(`documentEditor.dialog.evenPage`)),1),c(`option`,DE,d(t.$t(`documentEditor.dialog.customRange`)),1)],512),[[Oe,f.value]]),x(C)]),f.value===`custom`?R((S(),V(`input`,{key:0,type:`text`,"onUpdate:modelValue":n[5]||=e=>p.value=e,placeholder:t.$t(`documentEditor.dialog.tip`),onBlur:j,name:`document-editor`},null,40,OE)),[[Me,p.value]]):b(``,!0)])])):b(``,!0)])]),c(`p`,kE,d(t.$t(`documentEditor.dialog.insertTo`)),1),c(`div`,AE,[c(`div`,jE,[c(`div`,{onClick:n[6]||=e=>g.value=`first`,class:`option`},[g.value===`first`?(S(),s(r,{key:0})):(S(),s(i,{key:1})),y(d(t.$t(`documentEditor.dialog.firstPage`)),1)]),c(`div`,{onClick:n[7]||=e=>g.value=`last`,class:`option`},[g.value===`last`?(S(),s(r,{key:0})):(S(),s(i,{key:1})),y(d(t.$t(`documentEditor.dialog.lastPage`)),1)]),c(`div`,{onClick:n[10]||=e=>g.value=`custom`,class:D([`option`,{"custom-page":g.value===`custom`}])},[c(`div`,ME,[g.value===`custom`?(S(),s(r,{key:0})):(S(),s(i,{key:1})),y(d(t.$t(`documentEditor.dialog.page`)),1)]),g.value===`custom`?(S(),V(`div`,NE,[c(`div`,PE,[R(c(`input`,{"onUpdate:modelValue":n[8]||=e=>_.value=e,type:`number`,max:e.totalPages,min:`1`,pattern:`\\d*`,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,onInput:k,onBlur:A,name:`document-editor`},null,40,FE),[[Me,_.value,void 0,{number:!0}]]),c(`span`,null,`/ `+d(e.totalPages),1)]),c(`div`,IE,[R(c(`select`,{name:`targetPlace`,"onUpdate:modelValue":n[9]||=e=>v.value=e},[c(`option`,LE,d(t.$t(`documentEditor.dialog.before`)),1),c(`option`,RE,d(t.$t(`documentEditor.dialog.after`)),1)],512),[[Oe,v.value]]),x(C)])])):b(``,!0)],2)])])]),_:1},8,[`show`])])):b(``,!0)}}},VE={},HE={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function UE(e,t){return S(),V(`svg`,HE,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / all select`},[c(`path`,{id:`Union`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M17.5 2.5H6.5V13.5H17.5V2.5ZM6.5 1H5V2.5V2.9342H2H1.25V3.6842V18V18.75H2H16.3158H17.0658V18V15H17.5H19V13.5V2.5V1H17.5H6.5ZM2.75 4.4342H5V13.5V15H6.5H15.5658V17.25H2.75V4.4342ZM15.4446 6.94453L15.9749 6.4142L14.9142 5.35355L14.3839 5.88388L11.1016 9.16615L10.2177 8.28227L9.68734 7.75195L8.62667 8.8126L9.15701 9.34293L10.5712 10.7571L11.1016 11.2875L11.6319 10.7571L15.4446 6.94453Z`,fill:`currentColor`})],-1)]])}var WE=B(VE,[[`render`,UE]]),GE={},KE={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function qE(e,t){return S(),V(`svg`,KE,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / unselect`},[c(`path`,{id:`Union`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M17.5 2.5H6.5V13.5H17.5V2.5ZM6.5 1H5V2.5V2.9342H2H1.25V3.6842V18V18.75H2H16.3158H17.0658V18V15H17.5H19V13.5V2.5V1H17.5H6.5ZM2.75 4.4342H5V13.5V15H6.5H15.5658V17.25H2.75V4.4342ZM8 8.75H16V7.25H8V8.75Z`,fill:`currentColor`})],-1)]])}var JE=B(GE,[[`render`,qE]]),YE={},XE={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function ZE(e,t){return S(),V(`svg`,XE,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / reverse`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.9019 1.75H1.25V18.25H14.75V5.95882L10.9019 1.75ZM10.24 3.25L13.25 6.542V16.75H2.75V3.25H10.24ZM19.624 6.83397L16.25 1.77292V18.25H17.75V6.729L18.376 7.66603L19.624 6.83397Z`,fill:`currentColor`})],-1)]])}var QE=B(YE,[[`render`,ZE]]),$E={},eD={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function tD(e,t){return S(),V(`svg`,eD,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / replace`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.25 1H13.3107L17.75 5.43934V10.75H16.25V6.061L12.689 2.5H3.75V17H10V18.5H2.25V1ZM14.3454 12.7983L15.3689 11.7017L18.9028 15H11V13.5H15.097L14.3454 12.7983ZM14.5339 19.5L15.5574 18.4034L14.8058 17.7017H18.9028V16.2017H11L14.5339 19.5Z`,fill:`currentColor`})],-1)]])}var nD=B($E,[[`render`,tD]]),rD={},iD={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function aD(e,t){return S(),V(`svg`,iD,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / extract`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.25 1.25H13.3107L17.75 5.68934V11H16.25V6.311L12.689 2.75H3.75V17.25H10V18.75H2.25V1.25ZM16.0174 16.25L15.1768 17.091L16.2374 18.1516L18.8891 15.5L16.2374 12.8483L15.1768 13.909L16.0174 14.75H11V16.25H16.0174Z`,fill:`currentColor`})],-1)]])}var oD=B(rD,[[`render`,aD]]),sD={},cD={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function lD(e,t){return S(),V(`svg`,cD,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / copy`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M4.75 0.75H14.3866L18.25 4.69386V16.25H15.25V19.25H1.75V3.75H4.75V0.75ZM4.75 16.25H13.75V17.75H3.25V5.25H4.75V16.25ZM16.75 5.306L13.756 2.25H6.25V14.75H16.75V5.306ZM14.1974 7.35361C13.8798 6.13053 12.7917 5.25 11.5202 5.25C9.98499 5.25 8.75 6.52361 8.75 8.08333V8.91667L8.75503 9.08874C8.84189 10.569 10.0418 11.75 11.5202 11.75C12.8491 11.75 13.9777 10.7882 14.2357 9.47867L12.764 9.18872L12.7319 9.3182C12.5675 9.86695 12.0782 10.25 11.5202 10.25C10.8239 10.25 10.25 9.65813 10.25 8.91667V8.08333L10.2566 7.94617C10.3222 7.2702 10.8674 6.75 11.5202 6.75C12.1213 6.75 12.6427 7.19453 12.7641 7.81182L14.2359 7.52247L14.1974 7.35361Z`,fill:`currentColor`})],-1)]])}var uD=B(sD,[[`render`,lD]]),dD={},fD={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function pD(e,t){return S(),V(`svg`,fD,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / rotate left`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10 9.75V1.75H18.5V9.75V10.5V18.25H2V9.75H10ZM11.5 9.75V3.25H17V9.75H11.5ZM3.5 11.25V16.75H17.001V11.25H3.5ZM1.53769 5.46967L0.477028 6.53033L3.12868 9.18198L5.78033 6.53033L4.71967 5.46967L3.80559 6.38355C3.89386 5.03216 4.82757 3.82648 6.20838 3.4565C6.98256 3.24905 7.78597 3.33465 8.48622 3.68044L8.67454 3.78117L9.42454 2.48213C8.34118 1.85665 7.05293 1.67728 5.82015 2.00761C3.81662 2.54445 2.45713 4.28512 2.31137 6.24287L1.53769 5.46967Z`,fill:`currentColor`})],-1)]])}var mD=B(dD,[[`render`,pD]]),hD={},gD={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function _D(e,t){return S(),V(`svg`,gD,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / rotate left`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10 9.75V1.75H1.5V9.75V10.5V18.25H18V9.75H10ZM8.5 9.75V3.25H3V9.75H8.5ZM16.5 11.25V16.75H2.999V11.25H16.5ZM18.4623 5.46967L19.523 6.53033L16.8713 9.18198L14.2197 6.53033L15.2803 5.46967L16.1944 6.38355C16.1061 5.03216 15.1724 3.82648 13.7916 3.4565C13.0174 3.24905 12.214 3.33465 11.5138 3.68044L11.3255 3.78117L10.5755 2.48213C11.6588 1.85665 12.9471 1.67728 14.1798 2.00761C16.1834 2.54445 17.5429 4.28512 17.6886 6.24287L18.4623 5.46967Z`,fill:`currentColor`})],-1)]])}var vD=B(hD,[[`render`,_D]]),yD={},bD={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function xD(e,t){return S(),V(`svg`,bD,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / delete`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13 2.75V1.25H7V2.75H13ZM19 5.75V4.25H16.75H3.25H1V5.75H3.25V18.75H16.75V5.75H19ZM4.75 17.25V5.75H15.25V17.25H4.75ZM8.75 8.5V14.5H7.25V8.5H8.75ZM12.75 8.5V14.5H11.25V8.5H12.75Z`,fill:`currentColor`})],-1)]])}var SD=B(yD,[[`render`,xD]]),CD={},wD={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function TD(e,t){return S(),V(`svg`,wD,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M4.75 0.75H14.3866L18.25 4.69386V16.25H15.25V19.25H1.75V3.75H4.75V0.75ZM4.75 16.25H13.75V17.75H3.25V5.25H4.75V16.25ZM16.75 5.306L13.756 2.25H6.25V14.75H16.75V5.306ZM10.75 8.5L10.7449 8.68442C10.6492 10.3935 9.23303 11.75 7.5 11.75V13.25L7.71743 13.2451C9.30636 13.1735 10.692 12.3213 11.5 11.0628C12.3446 12.3784 13.8205 13.25 15.5 13.25V11.75L15.3156 11.7449C13.6065 11.6492 12.25 10.233 12.25 8.5V6.31093L13.4697 7.53044L14.5304 6.46978L11.5001 3.43945L8.46973 6.46978L9.53039 7.53044L10.75 6.31104V8.5Z`,fill:`currentColor`},null,-1)]])}var ED=B(CD,[[`render`,TD]]),DD={},OD={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function kD(e,t){return S(),V(`svg`,OD,[...t[0]||=[c(`g`,{id:`toolbar / pageedit / insert`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.25 1.25H13.3107L17.75 5.68934V11H16.25V6.311L12.689 2.75H3.75V17.25H10V18.75H2.25V1.25ZM14.75 18H13.25V15.75H11V14.25H13.25V12H14.75V14.25H17V15.75H14.75V18Z`,fill:`currentColor`})],-1)]])}var AD=B(DD,[[`render`,kD]]),jD=[`onClick`],MD=[`src`],ND={__name:`DocumentEditorContainer`,props:[`Sortable`],setup(e){let t=ye(),n=pw(),r=T(()=>n.getDocEditorPageList),i=T(()=>n.getDocEditorSelectedPageList),a=J(null),o=J(-2),l=J(-2),u=J(!1),f=J(null),p=J(0),m=J(null),g=window.devicePixelRatio||1,_=window.innerWidth<768,v=null;M(()=>{e.Sortable.create(a.value,{multiDrag:!0,selectedClass:`sortable-selected`,dragClass:`sortable-drag`,sort:!1,forceFallback:!0,fallbackTolerance:P?0:20,onStart:ie,onEnd:ae,delay:P?200:0});let{width:t,height:n}=f.value[0].getBoundingClientRect(),r={width:t,height:n};U.getDocEditorPages(r),window.addEventListener(`resize`,ce),ce()}),j(()=>{U.removeEvent(`getDocEditorPages`,C),window.addEventListener(`resize`,ce)});let y=U.getPagesCount();for(let e=0;e<y;e++)r.value.push({type:`page`});let C=e=>{let{index:t,pageData:n}=e;r.value[t]=n};U.addEvent(`getDocEditorPages`,C);let w=async e=>{let t={type:`insert`,pageIndex:e.place};if(e.type===`blank`){let n=e.targetPlace?r.value[e.place-1]:r.value[e.place]||r.value[e.place-1],i={type:e.type,rotation:0,size:e.size||{width:n.size.width,height:n.size.height}};r.value.splice(e.place,0,i),t.size=i.size,U.saveDocumentEdit(t)}else if(e.type===`pdf`){t.file=e.file,t.range=e.range,t.password=e.password||``;let{width:n,height:i}=f.value[0].getBoundingClientRect(),a=await U.saveDocumentEdit(t);if(!a)return;let o=r.value.length;for(let t=0;t<a-o;t++)r.value.splice(e.place+t,0,{type:`page`});let s={width:n,height:i};U.getDocEditorPages(s,e.place,a-o)}n.setDocEditorOperationList(t),i.value.length=0},E=async e=>{let t=r.value.length,a={type:`insert`,pageIndex:t};if(e.type===`blank`){let o=r.value[t-1]||r.value[0],s={type:e.type,rotation:0,size:e.size||{width:o.size.width,height:o.size.height}};r.value.splice(t,0,s),a.size=s.size,U.saveDocumentEdit(a),n.setDocEditorOperationList(a),i.value.length=0;return}if(!e.files||!e.files.length)return;let{width:o,height:s}=f.value[0].getBoundingClientRect(),c={width:o,height:s};for(let t of e.files){let e={type:`insert`,pageIndex:r.value.length,file:t.file,range:t.range,password:t.password||``},i=await U.saveDocumentEdit(e);if(!i)continue;let a=r.value.length;for(let t=0;t<i-a;t++)r.value.splice(e.pageIndex+t,0,{type:`page`});U.getDocEditorPages(c,e.pageIndex,i-a),n.setDocEditorOperationList(e)}i.value.length=0},O=e=>{let{width:t,height:n}=e,r=_?140:204,i=_?141:216,a=t/g,o=n/g,s=r/a,c=i/o,l=Math.min(s,c);return l>1&&(l=1),{width:a*l,height:o*l}},k=e=>{let t=i.value.indexOf(e);t===-1?i.value.push(e):i.value.splice(t,1)},N=()=>{if(i.value.length<r.value.length){i.value.length=0;for(let e=0;e<r.value.length;e++)i.value.push(e)}else i.value.length=0},ee=e=>{ue()&&t.openElement(e)},F=()=>{i.value.sort((e,t)=>t-e),i.value.forEach(e=>{r.value.splice(e,1)});let e={type:`delete`,selectedPageIndexArray:Array.from(i.value)};U.saveDocumentEdit(e),n.setDocEditorOperationList(e),i.value.length=0},te=e=>{if(!ue())return;i.value.forEach(t=>{let n=r.value[t];n.rotation+=e,(n.rotation>3||n.rotation<-3)&&(n.rotation=0)});let t={type:`rotate`,selectedPageIndexArray:Array.from(i.value),rotation:e};U.saveDocumentEdit(t),n.setDocEditorOperationList(t)},I=e=>new Map([[-3,-270],[-2,180],[-1,-90],[0,0],[1,90],[2,180],[3,270]]).get(e),L=()=>{if(!ue())return;i.value.sort((e,t)=>t-e),i.value.forEach(e=>{r.value.splice(e,0,{...r.value[e]})});let e={type:`copy`,selectedPageIndexArray:Array.from(i.value)};U.saveDocumentEdit(e),n.setDocEditorOperationList(e),i.value.length=0},R=()=>{if(!ue())return;let e=document.createElement(`input`);e.type=`file`,e.accept=`.pdf`,e.click(),e.addEventListener(`change`,async function(e){let t=e.target.files[0],n=i.value[0],r=URL.createObjectURL(t),a=await U.checkPassword(r,!0);a!==!1&&(w({type:`pdf`,file:t,range:`all`,place:n,password:a}),F())})},ne=async e=>{let t=e.range.replace(/\s/g,``),a=r.value.length;e.range===`all`?t=`1-`+a:e.range===`odd`?t=Array.from({length:a},(e,t)=>t+1).filter(e=>e%2!=0).join(`,`):e.range===`even`&&(t=Array.from({length:a},(e,t)=>t+1).filter(e=>e%2==0).join(`,`));let o=t.split(`,`),s=[];o.forEach(e=>{if(e.includes(`-`)){let[t,n]=e.split(`-`).map(e=>parseInt(e));for(let e=t;e<=n;e++)s.push(e-1)}else e&&s.push(parseInt(e)-1)});let c={type:`extract`,range:e.separateFile?s:t,separateFile:e.separateFile};if(await U.saveDocumentEdit(c),n.setDocEditorOperationList(c),e.deleteAfter){s.reverse().forEach(e=>{r.value.splice(e,1)});let e={type:`delete`,selectedPageIndexArray:s};U.saveDocumentEdit(e),n.setDocEditorOperationList(e),i.value.length=0}},re=e=>{if(i.value.length===1||i.value.length<2&&o.value>=0||i.value.length>1&&o.value>=0&&!i.value.includes(o.value)){let t=i.value.length===1&&i.value.includes(o.value)||i.value.length===1&&o.value<0,a=t?i.value[0]:[o.value],s=a>e?e:e-1;if(a===s)return;let[c]=r.value.splice(a,1);r.value.splice(s,0,c);let l={type:`move`,pageIndex:a,targetPageIndex:s};U.saveDocumentEdit(l),n.setDocEditorOperationList(l),t&&(i.value[0]=s)}else{i.value.sort((e,t)=>e-t);for(let t=0;t<i.value.length;t++){let a,o;if(i.value[t]===e)a=i.value[t],o=e;else if(i.value[t]>e)if(a=i.value[t],i.value.includes(e)){o=e;for(let e=0;e<i.value.length;e++)i.value[e]===o&&a!==o&&o++}else o=e;else a=i.value[t]-t,o=e-1;if(i.value.includes(a)&&i.value.includes(o)&&a===o)continue;let[s]=r.value.splice(a,1);r.value.splice(o,0,s);let c={type:`move`,pageIndex:a,targetPageIndex:o};U.saveDocumentEdit(c),n.setDocEditorOperationList(c),i.value[t]=i.value[t]>e?o:o-t}}},ie=e=>{o.value=e.oldIndex,a.value.addEventListener(P?`touchmove`:`mousemove`,B),P&&(document.body.style.overscrollBehavior=`none`,document.body.style.userSelect=`none`,document.getElementById(`app`).style.touchAction=`none`,m.value.style.overflow=`hidden`)},B=e=>{i.value.length>1&&i.value.includes(o.value)&&a.value.querySelector(`.sortable-drag`).style.setProperty(`--after-content`,`'`+i.value.length+`'`);let t=P?document.elementFromPoint(e.touches[0].clientX,e.touches[0].clientY):e.target,n=a.value.children;for(let r=0;r<n.length;r++){let i=n[r];if(i.contains(t)){let t=i.getBoundingClientRect();u.value=(P?e.touches[0].clientX-t.left:e.offsetX+30)<t.width/2,u.value?l.value=r-1:l.value=r}}P&&le(e.touches[0].clientY)},ae=()=>{clearInterval(v),a.value.removeEventListener(P?`touchmove`:`mousemove`,B),ue()&&l.value>-2&&!oe(l.value)&&re(l.value+1),o.value=-2,l.value=-2,P&&(document.body.style.overscrollBehavior=`auto`,document.body.style.userSelect=`auto`,document.getElementById(`app`).style.touchAction=`auto`,m.value.style.overflow=`auto`)},oe=e=>{if(![e-1,e,e+1].includes(l.value+1))return!1;if(i.value.includes(o.value)){if(i.value.length===1&&(i.value[0]===l.value+1||i.value[0]===l.value)||i.value.length>1&&se(i.value)&&(i.value.includes(l.value+1)||i.value.includes(l.value)))return!0}else if([o.value,o.value-1].includes(l.value))return!0;return!1},se=e=>{e.sort(function(e,t){return e-t});for(var t=0;t<e.length-1;t++)if(e[t]+1!==e[t+1])return!1;return!0},ce=()=>{let e=window.innerWidth;p.value=parseInt(e%(e>767?280:170)/2)},le=e=>{let t=m.value,n=t.getBoundingClientRect().height,r=e,i=t.scrollHeight;r<=100||r>=n-100?(clearInterval(v),v=setInterval(()=>{r<=100?(t.scrollTop-=10,t.scrollTop<=0&&clearInterval(v)):r>=n-100&&(t.scrollTop+=10,t.scrollTop+n>=i&&clearInterval(v))},10)):clearInterval(v)},ue=()=>{let e=U.getPermission(`allowsDocumentAssembly`);return!e&&t.openElement(H.PERMISSION_PASSWORD_DIALOG),e};return(e,t)=>{let n=AD,g=lx,_=ED,v=SD,y=vD,C=mD,T=uD,j=oD,M=nD,ie=QE,B=JE,ae=WE,se=BE,ce=mE,le=VT,H=RT,ue=bT;return S(),V(q,null,[c(`div`,{class:`document-editor-container`,ref_key:`docEditorContainer`,ref:m},[c(`div`,{class:D([`tools-container`,{mobile:K(P)}])},[x(g,{class:D({"with-text":!K(P)}),onClick:t[0]||=e=>ee(`insertPageSettingDialog`)},{default:G(()=>[x(n),c(`span`,null,d(e.$t(`documentEditor.insert`)),1)]),_:1},8,[`class`]),x(g,{class:D({"with-text":!K(P)}),onClick:t[1]||=e=>ee(`mergePageSettingDialog`)},{default:G(()=>[x(_),c(`span`,null,d(e.$t(`documentEditor.merge`)),1)]),_:1},8,[`class`]),x(g,{class:D({"with-text":!K(P),disabled:!i.value.length||i.value.length==r.value.length}),onClick:t[2]||=e=>ee(`deletePageDialog`)},{default:G(()=>[x(v),c(`span`,null,d(e.$t(`common.actions.delete`)),1)]),_:1},8,[`class`]),x(g,{class:D({"with-text":!K(P),disabled:!i.value.length}),onClick:t[3]||=e=>te(1)},{default:G(()=>[x(y),c(`span`,null,d(e.$t(`documentEditor.rotateRight`)),1)]),_:1},8,[`class`]),x(g,{class:D({"with-text":!K(P),disabled:!i.value.length}),onClick:t[4]||=e=>te(-1)},{default:G(()=>[x(C),c(`span`,null,d(e.$t(`documentEditor.rotateLeft`)),1)]),_:1},8,[`class`]),x(g,{class:D({"with-text":!K(P),disabled:!i.value.length}),onClick:L},{default:G(()=>[x(T),c(`span`,null,d(e.$t(`documentEditor.copy`)),1)]),_:1},8,[`class`]),x(g,{class:D({"with-text":!K(P),disabled:!i.value.length}),onClick:t[5]||=e=>ee(`extractPageSettingDialog`)},{default:G(()=>[x(j),c(`span`,null,d(e.$t(`documentEditor.extract`)),1)]),_:1},8,[`class`]),x(g,{class:D({"with-text":!K(P),disabled:!i.value.length}),onClick:R},{default:G(()=>[x(M),c(`span`,null,d(e.$t(`documentEditor.replace`)),1)]),_:1},8,[`class`]),x(g,{class:D({"with-text":!K(P),disabled:!i.value.length}),onClick:t[6]||=e=>ee(`movePageSettingDialog`)},{default:G(()=>[x(ie),c(`span`,null,d(e.$t(`documentEditor.move`)),1)]),_:1},8,[`class`]),x(g,{class:`select-all`,onClick:N,title:i.value.length===r.value.length?e.$t(`documentEditor.unselectAll`):e.$t(`documentEditor.selectAll`)},{default:G(()=>[i.value.length===r.value.length?(S(),s(B,{key:0})):(S(),s(ae,{key:1}))]),_:1},8,[`title`])],2),c(`div`,{class:`page-container`,ref_key:`dragContainer`,ref:a,style:A({"margin-left":p.value+`px`})},[(S(!0),V(q,null,z(r.value,(e,t)=>(S(),V(`div`,{key:`${e.type} - ${t}`,class:D([`page`,{selected:i.value.includes(t),"drag-indicate-right":l.value===t&&!u.value,"drag-indicate-left":l.value+1===t&&u.value,"drag-indicate-disable":o.value>=0&&l.value>=-1&&oe(t),"has-hover":!K(P)&&o.value<0&&!i.value.includes(t)}]),ref_for:!0,ref_key:`imgBoxEl`,ref:f},[c(`div`,{class:`img-box`,onClick:e=>k(t)},[e.img?(S(),V(`img`,{key:0,src:e.img,style:A(`transform: rotate(${I(e.rotation)}deg);`)},null,12,MD)):e.type===`blank`?(S(),V(`div`,{key:1,class:D({"blank-page":e.type===`blank`}),style:A({transform:`rotate(`+I(e.rotation)+`deg)`,width:O(e.size).width+`px`,height:O(e.size).height+`px`})},null,6)):b(``,!0)],8,jD),c(`p`,null,d(t+1),1)],2))),128))],4)],512),x(se,{onInsertPage:w,selectedPageList:i.value,totalPages:r.value.length},null,8,[`selectedPageList`,`totalPages`]),x(ce,{onMergePage:E,selectedPageList:i.value,totalPages:r.value.length},null,8,[`selectedPageList`,`totalPages`]),x(le,{onDeletePage:F,selectedPageList:i.value},null,8,[`selectedPageList`]),x(H,{onExtractPage:ne,totalPages:r.value.length,selectedPageList:i.value},null,8,[`totalPages`,`selectedPageList`]),x(ue,{onMovePage:re,totalPages:r.value.length,selectedPageList:i.value},null,8,[`totalPages`,`selectedPageList`])],64)}}},PD={key:0,class:`print-setting-popup`},FD={class:`select-content`},ID=`printSettingDialog`,LD={__name:`PrintSettingDialog`,setup(e){let{triggerPrinting:t}=U,n=ye(),r=pw(),i=T(()=>n.isElementOpen(ID)),a=T(()=>r.getCompareResult),o=J(`old`),l=()=>{n.closeElement(ID)},u=async()=>{let e=null;o.value===`old`?e=a.value.oldFile.url:o.value===`new`&&(e=a.value.newFile.url),l(),n.setDownloading(!0);try{await t(e),n.setDownloading(!1)}catch(e){console.log(e)}};return(e,t)=>{let n=OT,r=wT,a=GC;return i.value?(S(),V(`div`,PD,[x(a,{show:i.value,dialogName:ID,close:!0},{header:G(()=>[c(`p`,null,d(e.$t(`compare.printSettings`)),1)]),footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:l},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:u},d(e.$t(`common.actions.ok`)),1)]),default:G(()=>[c(`div`,FD,[c(`div`,{onClick:t[0]||=e=>o.value=`old`,class:`option`},[o.value===`old`?(S(),s(n,{key:0})):(S(),s(r,{key:1})),y(d(e.$t(`compare.printOld`)),1)]),c(`div`,{onClick:t[1]||=e=>o.value=`new`,class:`option`},[o.value===`new`?(S(),s(n,{key:0})):(S(),s(r,{key:1})),y(d(e.$t(`compare.printNew`)),1)])])]),_:1},8,[`show`])])):b(``,!0)}}},RD=de(),zD={key:0,class:`download-setting-popup`},BD={class:`select-content`},VD=`downloadSettingDialog`,HD={__name:`DownloadSettingDialog`,setup(e){let t=ye(),n=pw(),r=T(()=>t.isElementOpen(VD)),i=T(()=>n.getCompareResult),a=J(1),o=()=>{t.closeElement(VD)},l=async()=>{let e=[];a.value===1?e.push(i.value.mergeFile):a.value===2&&e.push(i.value.oldFile,i.value.newFile),o(),t.setDownloading(!0);try{e.forEach(e=>{(0,RD.saveAs)(e.url,e.filename)}),t.setDownloading(!1)}catch(e){console.log(e)}};return(e,t)=>{let n=OT,i=wT,u=GC;return r.value?(S(),V(`div`,zD,[x(u,{show:r.value,dialogName:VD,close:!0},{header:G(()=>[c(`p`,null,d(e.$t(`compare.downloadOptions`)),1)]),footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:o},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:l},d(e.$t(`common.actions.ok`)),1)]),default:G(()=>[c(`div`,BD,[c(`div`,{onClick:t[0]||=e=>a.value=2,class:`option`},[a.value===2?(S(),s(n,{key:0})):(S(),s(i,{key:1})),y(d(e.$t(`compare.separateFiles`)),1)]),c(`div`,{onClick:t[1]||=e=>a.value=1,class:`option`},[a.value===1?(S(),s(n,{key:0})):(S(),s(i,{key:1})),y(d(e.$t(`compare.mergedFile`)),1)])])]),_:1},8,[`show`])])):b(``,!0)}}};function UD(){let e=window.location.href,t=e?e.indexOf(`#`):-1;return 0<=t?e.substring(t+1):``}function WD(e,t){let n=typeof t,r=UD().split(`&`).reduce(function(e,t){return t=t.split(`=`),e[decodeURIComponent(t[0])]=decodeURIComponent(t[1]),e},{});if(n===`boolean`&&r[e]!==void 0){if(n=r[e],n===`true`||n===`1`)return!0;if(n===`false`||n===`0`)return!1}return r[e]||t}var GD={key:0,class:`compare-setting-popup`},KD={class:`mode pc`},qD={class:`dialog-content`},JD={class:`mode mobile`},YD={class:`compare-items`},XD={class:`title`},ZD={class:`row`},QD={class:`row`},$D={class:`opacity`},eO={class:`title`},tO={class:`row`},nO={class:`percent-input`},rO={class:`row`},iO={class:`percent-input`},aO={class:`mark-color`},oO={class:`title`},sO={class:`row`},cO={class:`select color-select`},lO={class:`colors-container mark`},uO={class:`cell-container`},dO={class:`cell-outer`},fO={class:`drop-down`},pO={class:`colors-container mark`},mO={class:`cell-container`},hO=[`onClick`],gO={class:`row`},_O={class:`select color-select`},vO={class:`colors-container mark`},yO={class:`cell-container`},bO={class:`cell-outer`},xO={class:`drop-down`},SO={class:`colors-container mark`},CO={class:`cell-container`},wO=[`onClick`],TO={class:`row`},EO={class:`select`},DO={class:`row`},OO={class:`select color-select`},kO={class:`colors-container mark`},AO={class:`cell-container`},jO={class:`cell-outer`},MO={class:`drop-down`},NO={class:`colors-container mark`},PO={class:`cell-container`},FO=[`onClick`],IO={class:`row`},LO={class:`select color-select`},RO={class:`colors-container mark`},zO={class:`cell-container`},BO={class:`cell-outer`},VO={class:`drop-down`},HO={class:`colors-container mark`},UO={class:`cell-container`},WO=[`onClick`],GO={class:`row`},KO={class:`select color-select`},qO={class:`colors-container mark`},JO={class:`cell-container`},YO={class:`cell-outer`},XO={class:`drop-down`},ZO={class:`colors-container mark`},QO={class:`cell-container`},$O=[`onClick`],ek={class:`dialog-footer mobile`},tk={class:`loading`},nk={class:`loading-compare-tip`},rk=`compareSettingDialog`,ik={__name:`CompareSettingDialog`,setup(e){let{t}=It(),{compare:n,loadDocument:r}=U,i=ye(),a=pw(),o=T(()=>i.isElementOpen(rk)),s=T(()=>a.getCompareFiles),l=T(()=>i.getCompareMode),u=J(50),f=J(50),p=T(()=>a.getCompareSetting(`oldFileColor`)),m=T(()=>a.getCompareSetting(`newFileColor`)),g=J(`0`),_=[{label:t(`compare.overlayDialog.normal`),value:`0`},{label:t(`compare.overlayDialog.multiply`),value:`1`},{label:t(`compare.overlayDialog.screen`),value:`2`},{label:t(`compare.overlayDialog.overlay`),value:`3`},{label:t(`compare.overlayDialog.darken`),value:`4`},{label:t(`compare.overlayDialog.lighten`),value:`5`},{label:t(`compare.overlayDialog.colorDodge`),value:`6`},{label:t(`compare.overlayDialog.colorBurn`),value:`7`},{label:t(`compare.overlayDialog.hardLight`),value:`8`},{label:t(`compare.overlayDialog.softLight`),value:`9`},{label:t(`compare.overlayDialog.difference`),value:`10`},{label:t(`compare.overlayDialog.exclusion`),value:`11`},{label:t(`compare.overlayDialog.hue`),value:`12`},{label:t(`compare.overlayDialog.saturation`),value:`13`},{label:t(`compare.overlayDialog.colour`),value:`14`},{label:t(`compare.overlayDialog.luminosity`),value:`15`}],v=J(!0),y=J(!0),C=J(`#93B9FD`),w=J(`#C0FFEC`),E=J(`#FBBDBF`),O=[`#FBBDBF`,`#93B9FD`,`#FFF6B3`,`#C0FFEC`],k=J(null),j=J(null),M=J(null),N=J(null),P=J(null),ee=J(!1),F=J(null),te=J(null);W(()=>u.value,(e,t)=>{e!==``&&(e>100||e<0||!/^\d+$/.test(e))&&(u.value=t)}),W(()=>f.value,(e,t)=>{e!==``&&(e>100||e<0||!/^\d+$/.test(e))&&(f.value=t)});let I=async()=>{let e=await U.getDocumentViewer(2)?.pdfDocument?.getData(),o=await U.getDocumentViewer(3)?.pdfDocument?.getData();if(!e||!o)return;let c=new File([e],U.getDocumentViewer(2)?._docName),d=new File([o],U.getDocumentViewer(3)?._docName),_={leftFile:c,leftFilePassword:s.value.oldFilePassword,rightFile:d,rightFilePassword:s.value.newFilePassword};if(l.value===`content`){let e=v.value,t=y.value;!e&&!t&&(e=t=!0);let n={type:1,textCompare:e,imgCompare:t,replaceColor:C.value,insertColor:w.value,deleteColor:E.value};Object.assign(_,n)}else{let e={type:2,inTransparency:u.value+``,newTransparency:f.value+``,coverType:g.value,inColor:p.value,newColor:m.value};Object.assign(_,e)}try{i.closeElement(rk),ee.value=!0;let e=await n(_);if(e&&e.url){a.resetSetting();let n={filename:t(`compare.credit`)+`.pdf`,progress:a.setLoadingProgress,pageChangedCallback:i.setCurrentPage,scaleChangedCallback:i.setCurrentScale,annotationsNumChangedCallback:a.setAnnotationsCount,distanceChangedCallback:a.setDistance,notUpdatePwd:!0};await r(e.url,n),ee.value=!1;let o=U.getPagesCount(),s=U.getScale();a.setTotalPages(o),i.setCurrentScale(s),i.setCurrentPage(1),i.setUpload(!0),i.setCompareStatus(`finished`)}else if(e&&Array.isArray(e)){let t=e[0],n=e[1];a.setCompareResult({oldFile:t,newFile:n,mergeFile:e[2]}),B(t.url,t.fileName,2),B(n.url,n.fileName,3),ee.value=!1,i.setCompareStatus(`next`)}else ee.value=!1,i.setDownloadError(`Compared`)}catch(e){if(console.log(e),ee.value=!1,i.setDownloadError(`Compared`),e===`invalid_file_error`||e===`no_password_given`||e===`incorrect_password`){i.setUpload(!1),a.setLoadingProgress(0),i.resetSetting();let e=document.getElementById(`fileInput`);e.value=``}}},L=e=>{e.target.value||(u.value=1)},ne=e=>{e.target.value||(f.value=1)},re=(e,t)=>{e===`old`?a.setCompareSetting(`oldFileColor`,t):e===`new`?a.setCompareSetting(`newFileColor`,t):e===`replace`?C.value=t:e===`insert`?w.value=t:e===`delete`&&(E.value=t),l.value===`content`?(M.value.setShow(!1),N.value.setShow(!1),P.value.setShow(!1)):(k.value.setShow(!1),j.value.setShow(!1))},ie=()=>{i.closeElement(rk)};async function B(e,t=null,n){i.setUploadLoading(!0);let o=null;n===2?o=a.getCompareFile(`oldFilePassword`):n===3&&(o=a.getCompareFile(`newFilePassword`));let s={extension:WD(`extension`,null),filename:t||WD(`filename`,null),externalPath:WD(`p`,``),documentId:WD(`did`,null),progress:a.setLoadingProgress,pageChangedCallback:i.setCurrentPage,scaleChangedCallback:n===2?oe():se(),annotationsNumChangedCallback:a.setAnnotationsCount,distanceChangedCallback:a.setDistance,notUploadPdf:!0};o&&(s.pwd=o);try{await r(e,s,n)}catch(e){console.log(e),i.setDownloadError(`Loaded`)}i.setUploadLoading(!1)}let ae=e=>{i.setCompareMode(e)},oe=e=>{F.value=e},se=e=>{te.value=e};return(e,t)=>{let n=$C,r=rw,i=YT,a=GC,s=dT;return S(),V(q,null,[o.value?(S(),V(`div`,GD,[x(a,{show:o.value,dialogName:rk,close:!1},{header:G(()=>[c(`div`,KD,[c(`div`,{class:D({selected:l.value===`content`}),onClick:t[0]||=e=>ae(`content`)},d(e.$t(`compare.contentDialog.title`)),3),c(`div`,{class:D({selected:l.value===`cover`}),onClick:t[1]||=e=>ae(`cover`)},d(e.$t(`compare.overlayDialog.title`)),3)])]),footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:ie},d(e.$t(`compare.return`)),1),c(`div`,{class:`rect-button blue`,onClick:I},d(e.$t(`compare.compare`)),1)]),default:G(()=>[c(`div`,qD,[c(`div`,JD,[c(`div`,{class:D({selected:l.value===`content`}),onClick:t[2]||=e=>ae(`content`)},d(e.$t(`compare.contentDialog.title`)),3),c(`div`,{class:D({selected:l.value===`cover`}),onClick:t[3]||=e=>ae(`cover`)},d(e.$t(`compare.overlayDialog.title`)),3)]),R(c(`div`,YD,[c(`p`,XD,d(e.$t(`compare.contentDialog.items`)),1),c(`div`,ZD,[c(`div`,{class:`check-box`,onClick:t[4]||=e=>v.value=!v.value},[c(`div`,{class:D([`check`,{active:v.value}])},[R(x(n,null,null,512),[[Re,v.value]])],2),c(`span`,null,d(e.$t(`compare.contentDialog.text`)),1)])]),c(`div`,QD,[c(`div`,{class:`check-box`,onClick:t[5]||=e=>y.value=!y.value},[c(`div`,{class:D([`check`,{active:y.value}])},[R(x(n,null,null,512),[[Re,y.value]])],2),c(`span`,null,d(e.$t(`compare.contentDialog.images`)),1)])])],512),[[Re,l.value===`content`]]),R(c(`div`,$D,[c(`p`,eO,d(e.$t(`common.uiElements.opacity`)),1),c(`div`,tO,[c(`span`,null,d(e.$t(`compare.oldFile`)),1),x(K(xb),{value:u.value,"onUpdate:value":t[6]||=e=>u.value=e,step:10,max:100,min:0},{thumb:G(()=>[x(r)]),_:1},8,[`value`]),c(`div`,nO,[R(c(`input`,{"onUpdate:modelValue":t[7]||=e=>u.value=e,type:`number`,step:`10`,pattern:`\\d*`,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,onBlur:L,name:`compare`},null,544),[[Me,u.value]])])]),c(`div`,rO,[c(`span`,null,d(e.$t(`compare.newFile`)),1),x(K(xb),{value:f.value,"onUpdate:value":t[8]||=e=>f.value=e,step:10,max:100,min:0},{thumb:G(()=>[x(r)]),_:1},8,[`value`]),c(`div`,iO,[R(c(`input`,{"onUpdate:modelValue":t[9]||=e=>f.value=e,type:`number`,step:`10`,pattern:`\\d*`,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,onBlur:ne,name:`compare`},null,544),[[Me,f.value]])])])],512),[[Re,l.value===`cover`]]),c(`div`,aO,[c(`p`,oO,d(e.$t(`compare.contentDialog.colorMark`)),1),l.value===`cover`?(S(),V(q,{key:0},[c(`div`,sO,[c(`span`,null,d(e.$t(`compare.oldFile`)),1),x(K(Og),{ref_key:`oldColorPopover`,ref:k,placement:`bottom-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,class:`color-popover`},{trigger:G(()=>[c(`div`,cO,[c(`div`,lO,[c(`span`,uO,[c(`span`,dO,[c(`span`,{class:`cell`,style:A(`background-color: ${p.value};`)},null,4)])])]),x(i)])]),default:G(()=>[c(`div`,fO,[(S(),V(q,null,z(O,(e,t)=>c(`div`,{class:`drop-item`,key:t},[c(`div`,pO,[c(`span`,mO,[c(`span`,{class:D([`cell-outer`,{active:p.value===e}]),onClick:t=>re(`old`,e)},[c(`span`,{class:`cell`,style:A(`background-color: ${e};`)},null,4)],10,hO)])])])),64))])]),_:1},512)]),c(`div`,gO,[c(`span`,null,d(e.$t(`compare.newFile`)),1),x(K(Og),{ref_key:`newColorPopover`,ref:j,placement:`bottom-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,class:`color-popover`},{trigger:G(()=>[c(`div`,_O,[c(`div`,vO,[c(`span`,yO,[c(`span`,bO,[c(`span`,{class:`cell`,style:A(`background-color: ${m.value};`)},null,4)])])]),x(i)])]),default:G(()=>[c(`div`,xO,[(S(),V(q,null,z(O,(e,t)=>c(`div`,{class:`drop-item`,key:t},[c(`div`,SO,[c(`span`,CO,[c(`span`,{class:D([`cell-outer`,{active:m.value===e}]),onClick:t=>re(`new`,e)},[c(`span`,{class:`cell`,style:A(`background-color: ${e};`)},null,4)],10,wO)])])])),64))])]),_:1},512)]),c(`div`,TO,[c(`span`,null,d(e.$t(`compare.overlayDialog.blendMode`)),1),x(K(Tv),{value:g.value,"onUpdate:value":t[10]||=e=>g.value=e,options:_,trigger:`click`,placement:`bottom-start`},{default:G(()=>[c(`div`,EO,[c(`span`,null,d(_[parseInt(g.value)].label),1),x(i)])]),_:1},8,[`value`])])],64)):(S(),V(q,{key:1},[c(`div`,DO,[c(`span`,null,d(e.$t(`compare.contentDialog.replaced`)),1),x(K(Og),{ref_key:`replaceColorPopover`,ref:M,placement:`bottom-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,class:`color-popover`},{trigger:G(()=>[c(`div`,OO,[c(`div`,kO,[c(`span`,AO,[c(`span`,jO,[c(`span`,{class:`cell`,style:A(`background-color: ${C.value};`)},null,4)])])]),x(i)])]),default:G(()=>[c(`div`,MO,[(S(),V(q,null,z(O,(e,t)=>c(`div`,{class:`drop-item`,key:t},[c(`div`,NO,[c(`span`,PO,[c(`span`,{class:D([`cell-outer`,{active:C.value===e}]),onClick:t=>re(`replace`,e)},[c(`span`,{class:`cell`,style:A(`background-color: ${e};`)},null,4)],10,FO)])])])),64))])]),_:1},512)]),c(`div`,IO,[c(`span`,null,d(e.$t(`compare.contentDialog.inserted`)),1),x(K(Og),{ref_key:`insertColorPopover`,ref:N,placement:`bottom-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,class:`color-popover`},{trigger:G(()=>[c(`div`,LO,[c(`div`,RO,[c(`span`,zO,[c(`span`,BO,[c(`span`,{class:`cell`,style:A(`background-color: ${w.value};`)},null,4)])])]),x(i)])]),default:G(()=>[c(`div`,VO,[(S(),V(q,null,z(O,(e,t)=>c(`div`,{class:`drop-item`,key:t},[c(`div`,HO,[c(`span`,UO,[c(`span`,{class:D([`cell-outer`,{active:w.value===e}]),onClick:t=>re(`insert`,e)},[c(`span`,{class:`cell`,style:A(`background-color: ${e};`)},null,4)],10,WO)])])])),64))])]),_:1},512)]),c(`div`,GO,[c(`span`,null,d(e.$t(`compare.contentDialog.deleted`)),1),x(K(Og),{ref_key:`deleteColorPopover`,ref:P,placement:`bottom-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,class:`color-popover`},{trigger:G(()=>[c(`div`,KO,[c(`div`,qO,[c(`span`,JO,[c(`span`,YO,[c(`span`,{class:`cell`,style:A(`background-color: ${E.value};`)},null,4)])])]),x(i)])]),default:G(()=>[c(`div`,XO,[(S(),V(q,null,z(O,(e,t)=>c(`div`,{class:`drop-item`,key:t},[c(`div`,ZO,[c(`span`,QO,[c(`span`,{class:D([`cell-outer`,{active:E.value===e}]),onClick:t=>re(`delete`,e)},[c(`span`,{class:`cell`,style:A(`background-color: ${e};`)},null,4)],10,$O)])])])),64))])]),_:1},512)])],64))]),c(`div`,ek,[c(`div`,{class:`rect-button white`,onClick:ie},d(e.$t(`compare.return`)),1),c(`div`,{class:`rect-button blue`,onClick:I},d(e.$t(`compare.compare`)),1)])])]),_:1},8,[`show`])])):b(``,!0),c(`div`,{class:D([`mask`,{active:ee.value}])},[R(c(`div`,tk,[x(s)],512),[[Re,ee.value]]),c(`div`,nk,[c(`span`,null,d(e.$t(`compare.status`)),1)])],2)],64)}}},ak={},ok={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function sk(e,t){return S(),V(`svg`,ok,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.625 9.375V3.75H9.375V9.375H3.75V10.625H9.375V16.25H10.625V10.625H16.25V9.375H10.625Z`,fill:`currentColor`},null,-1)]])}var ck=B(ak,[[`render`,sk]]),lk={},uk={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function dk(e,t){return S(),V(`svg`,uk,[...t[0]||=[c(`rect`,{x:`3.75`,y:`9.375`,width:`12.5`,height:`1.25`,fill:`currentColor`},null,-1)]])}var fk=B(lk,[[`render`,dk]]),pk={},mk={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function hk(e,t){return S(),V(`svg`,mk,[...t[0]||=[c(`rect`,{opacity:`0.01`,width:`16`,height:`16`,transform:`matrix(0 -1 -1 0 16 16)`,fill:`currentColor`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.5 5.51025L7.5041 10.5L11.5 5.5L3.5 5.51025Z`,fill:`currentColor`},null,-1)]])}var gk=B(pk,[[`render`,hk]]),_k={class:`input-container`},vk={class:`drop-down-zoom`},yk={class:`drop-down zoom`},bk={__name:`ZoomOverlay`,props:[`docNum`],setup(e){let t=J(null),{proxy:{$forceUpdate:n}}=_(),r=ye(),i=T(()=>e.docNum===2?r.getOldScale:e.docNum===3?r.getNewScale:r.getScale),a=T(()=>r.getUpload),o=()=>{i.value<=5||U.zoomOut(e.docNum)},s=()=>{i.value>1e3||U.zoomIn(e.docNum)},l=t=>{let i=/^(\d){0,4}$/,a=t.target.value;i.test(a)||a===``?e.docNum===2?r.setOldCurrentScale(a/100):e.docNum===3?r.setNewCurrentScale(a/100):r.setCurrentScale(a/100):(e.docNum===2?r.setOldCurrentScale(r.getOldScale/100):e.docNum===3?r.setNewCurrentScale(r.getNewScale/100):r.setCurrentScale(r.getScale/100),n())},u=a=>{let o=``;if(o=a.target&&a.target.value?a.target.value:a,!o){i.value=r.getScale;return}if(/^(\d){0,4}$/.test(o)){let t=Math.max(5,o);t=Math.min(1e3,t),e.docNum===2?r.setOldCurrentScale(t/100):e.docNum===3?r.setNewCurrentScale(t/100):r.setCurrentScale(t/100),U.scaleChanged(t/100,e.docNum)}else e.docNum===2?r.setOldCurrentScale(r.getOldScale/100):e.docNum===3?r.setNewCurrentScale(r.getNewScale/100):r.setCurrentScale(r.getScale/100),n();t.value.setShow(!1)},d=T(()=>i.value?i.value.toString().length*9:0),f=e=>{e.target.value?u(e):u(`100`)};return(e,n)=>{let r=gk,p=fk,m=lx,g=ck;return S(),V(`div`,null,[c(`div`,{class:D([`zoom-overlay`,{disabled:!a.value}])},[c(`div`,_k,[R(c(`input`,{"onUpdate:modelValue":n[0]||=e=>i.value=e,type:`text`,pattern:`\\d*`,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,onInput:l,onKeydown:ke(u,[`enter`]),onBlur:f,style:A({width:d.value+`px`}),name:`zoom`},null,36),[[Me,i.value]]),c(`div`,vk,[n[11]||=c(`span`,null,`%`,-1),x(K(Og),{ref_key:`popover`,ref:t,placement:`bottom`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,"z-index":5,disabled:!a.value},{trigger:G(()=>[x(r,{class:`arrow-left`})]),default:G(()=>[c(`div`,yk,[c(`div`,{class:`drop-item`,onClick:n[1]||=e=>u(`10`)},`10%`),c(`div`,{class:`drop-item`,onClick:n[2]||=e=>u(`25`)},`25%`),c(`div`,{class:`drop-item`,onClick:n[3]||=e=>u(`50`)},`50%`),c(`div`,{class:`drop-item`,onClick:n[4]||=e=>u(`100`)},`100%`),c(`div`,{class:`drop-item`,onClick:n[5]||=e=>u(`150`)},`150%`),c(`div`,{class:`drop-item`,onClick:n[6]||=e=>u(`200`)},`200%`),c(`div`,{class:`drop-item`,onClick:n[7]||=e=>u(`300`)},`300%`),c(`div`,{class:`drop-item`,onClick:n[8]||=e=>u(`400`)},`400%`),c(`div`,{class:`drop-item`,onClick:n[9]||=e=>u(`500`)},`500%`),c(`div`,{class:`drop-item`,onClick:n[10]||=e=>u(`1000`)},`1000%`)])]),_:1},8,[`disabled`])])]),x(m,{img:`icon-header-zoom-out`,onClick:o,title:e.$t(`toolbar.viewControls.zoomOut`),class:D({disabled:!a.value})},{default:G(()=>[x(p)]),_:1},8,[`title`,`class`]),x(m,{img:`icon-header-zoom-in`,onClick:s,title:e.$t(`toolbar.viewControls.zoomIn`),class:D({disabled:!a.value})},{default:G(()=>[x(g)]),_:1},8,[`title`,`class`])],2)])}}},xk={class:`old`},Sk={class:`file-type`},Ck={class:`upload-tip`},wk={class:`rect-button white`},Tk={key:1,class:`uploaded pc`},Ek={class:`header-info`},Dk={class:`file-name`},Ok={class:`drop-area mobile`},kk={class:`upload-tip mobile`},Ak={class:`text`},jk={class:`rect-button white`},Mk={key:0,class:`file-name`},Nk={class:`new`},Pk={class:`file-type`},Fk={class:`upload-tip`},Ik={class:`rect-button white`},Lk={key:1,class:`uploaded pc`},Rk={class:`header-info`},zk={class:`file-name`},Bk={class:`drop-area mobile`},Vk={class:`upload-tip`},Hk={class:`text`},Uk={class:`rect-button white`},Wk={key:0,class:`file-name`},Gk={__name:`CompareDocumentContainer`,props:{docNum:Number},setup(e){let{loadDocument:t,initializeViewer:n,initConfig:r}=U,{t:i}=It(),a=ye(),o=pw(),s=T(()=>a.getToolMode),l=T(()=>a.getCompareStatus),u=J(),f=J(),p=J(),m=J(),g=T(()=>o.getCompareFile(`oldFile`)),_=T(()=>o.getCompareFile(`newFile`)),v=J(!1),C=J(!1),w=T(()=>a.getVerified);W(()=>s.value,(e,t)=>{t===`compare`&&e!==t&&(O(),N()),e===`compare`&&e!==t&&setTimeout(()=>{w.value||(U.eventBus().dispatch(`message`,{type:`ERROR`,message:`Invalid license`}),console.log(`Invalid license`))},1)});let E=async(e,t)=>{if(!e.target.files[0])return;(!U.getDocumentViewer(2)||!U.getDocumentViewer(3))&&await M();let n=URL.createObjectURL(e.target.files[0]),r=await U.checkPassword(n,!0);if(r===!1){e.target.value=``;return}let i=e.target.files[0].name;t===`old`&&(o.setCompareFiles(`oldFile`,e.target.files[0]),o.setCompareFiles(`oldFilePassword`,r),P(n,i,2)),t===`new`&&(o.setCompareFiles(`newFile`,e.target.files[0]),o.setCompareFiles(`newFilePassword`,r),P(n,i,3))},O=e=>{e===`old`?(o.setCompareFiles(`oldFile`,null),o.setCompareFiles(`oldFilePassword`,``)):e===`new`?(o.setCompareFiles(`newFile`,null),o.setCompareFiles(`newFilePassword`,``)):o.initCompareFiles(),a.setCompareStatus(``)},k=async(e,t)=>{e.preventDefault();let n=e.dataTransfer.files;if(v.value=!1,C.value=!1,n[0].type!==`application/pdf`)return;let r=URL.createObjectURL(n[0]),i=await U.checkPassword(r,!0);if(i===!1){e.target.value=``;return}let a=n[0].name;t===`old`&&(o.setCompareFiles(`oldFile`,n[0]),o.setCompareFiles(`oldFilePassword`,i),P(r,a,2)),t===`new`&&(o.setCompareFiles(`newFile`,n[0]),o.setCompareFiles(`newFilePassword`,i),P(r,a,3))},A=e=>{e===`old`&&(v.value=!0),e===`new`&&(C.value=!0)},j=e=>{let t=document.getElementById(`oldDropArea`),n=document.getElementById(`newDropArea`),r=e.relatedTarget;for(;r;){if(r===t||t.contains(r)||r===n||n.contains(r))return;r=r.parentElement}v.value=!1,C.value=!1},M=async()=>{let e=a.getLicense;e&&(U.setDocumentViewer(2,null,{$t:i}),U.setDocumentViewer(3,null,{$t:i}),await r({license:e},2),n({container:u.value,viewer:f.value},2),await r({license:e},3),n({container:p.value,viewer:m.value},3))},N=()=>{U.deleteDocumentViewer(2),U.deleteDocumentViewer(3)};async function P(e,t,n){a.setUpload(!0),a.setUploadLoading(!0),await ee(e,t,n),a.setUploadLoading(!1)}async function ee(e,n,r){let i=null;r===2?i=o.getCompareFile(`oldFilePassword`):r===3&&(i=o.getCompareFile(`newFilePassword`));let s={extension:WD(`extension`,null),filename:WD(`filename`,null)||n,externalPath:WD(`p`,``),documentId:WD(`did`,null),progress:o.setLoadingProgress,pageChangedCallback:a.setCurrentPage,scaleChangedCallback:r===2?a.setOldCurrentScale:a.setNewCurrentScale,annotationsNumChangedCallback:o.setAnnotationsCount,distanceChangedCallback:o.setDistance,notUploadPdf:!0};i&&(s.pwd=i);try{await t(e,s,r)}catch(e){console.log(e),(e===`invalid_file_error`||e===`no_password_given`||e===`incorrect_password`)&&(a.setUpload(!1),o.setLoadingProgress(0),a.resetSetting())}}return window.instance.UI.loadCompareDocument=async(e,t=``,n=``,r=``)=>{e&&((!U.getDocumentViewer(2)||!U.getDocumentViewer(3))&&await M(),r===`old`&&(o.setCompareFiles(`oldFile`,e),o.setCompareFiles(`oldFilePassword`,n),P(e,t,2)),r===`new`&&(o.setCompareFiles(`newFile`,e),o.setCompareFiles(`newFilePassword`,n),P(e,t,3)))},(e,t)=>{let n=bk,r=Le,i=ik,a=HD,o=LD;return S(),V(q,null,[c(`div`,{class:D([`compare-document-container`,{under:s.value!==`compare`||s.value===`compare`&&l.value===`finished`}])},[c(`div`,xk,[c(`div`,Sk,d(e.$t(`compare.oldFile`)),1),c(`div`,{class:D([`file-content`,{"no-file":!K(g)}])},[K(g)?b(``,!0):(S(),V(`div`,{key:0,class:D([`drop-area pc`,{"drag-over":K(v)}]),id:`oldDropArea`,onDragover:t[1]||=Ae(()=>{},[`prevent`]),onDragenter:t[2]||=e=>A(`old`),onDragleave:j,onDrop:t[3]||=e=>k(e,`old`)},[c(`div`,Ck,[c(`p`,null,[y(d(e.$t(`compare.dropFile`)[0]),1),t[12]||=c(`br`,null,null,-1),y(d(e.$t(`compare.dropFile`)[1]),1)]),c(`div`,wk,[y(d(e.$t(`compare.chooseOld`)),1),c(`input`,{type:`file`,onChange:t[0]||=e=>E(e,`old`),accept:`.pdf`,name:`compare`},null,32)])])],34)),K(g)?(S(),V(`div`,Tk,[c(`div`,Ek,[x(n,{docNum:2}),c(`p`,Dk,d(K(g).name),1),x(r,{class:`close`,onClick:t[4]||=e=>O(`old`)})])])):b(``,!0),c(`div`,{class:D([`old-file-container file-container pc`,{"no-file":!K(g)}]),ref_key:`oldFileContainer`,ref:u},[c(`div`,{ref_key:`oldViewerContainer`,ref:f,class:`document`},null,512)],2),c(`div`,Ok,[c(`div`,kk,[c(`div`,Ak,[c(`p`,null,d(e.$t(`compare.oldFile`)),1)]),c(`div`,jk,[y(d(e.$t(`compare.chooseOld`))+` `,1),c(`input`,{type:`file`,onChange:t[5]||=e=>E(e,`old`),accept:`.pdf`,name:`compare`},null,32),K(g)?(S(),V(`p`,Mk,d(K(g).name),1)):b(``,!0)])])])],2)]),c(`div`,Nk,[c(`div`,Pk,d(e.$t(`compare.newFile`)),1),c(`div`,{class:D([`file-content`,{"no-file":!K(_)}])},[K(_)?b(``,!0):(S(),V(`div`,{key:0,class:D([`drop-area pc`,{"drag-over":K(C)}]),id:`newDropArea`,onDragover:t[7]||=Ae(()=>{},[`prevent`]),onDragenter:t[8]||=e=>A(`new`),onDragleave:j,onDrop:t[9]||=e=>k(e,`new`)},[c(`div`,Fk,[c(`p`,null,[y(d(e.$t(`compare.dropFile`)[0]),1),t[13]||=c(`br`,null,null,-1),y(d(e.$t(`compare.dropFile`)[1]),1)]),c(`div`,Ik,[y(d(e.$t(`compare.chooseNew`)),1),c(`input`,{type:`file`,onChange:t[6]||=e=>E(e,`new`),accept:`.pdf`,name:`compare`},null,32)])])],34)),K(_)?(S(),V(`div`,Lk,[c(`div`,Rk,[x(n,{docNum:3}),c(`p`,zk,d(K(_).name),1),x(r,{class:`close`,onClick:t[10]||=e=>O(`new`)})])])):b(``,!0),c(`div`,{class:D([`new-file-container file-container pc`,{"no-file":!K(_)}]),ref_key:`newFileContainer`,ref:p},[c(`div`,{ref_key:`newViewerContainer`,ref:m,class:`document`},null,512)],2),c(`div`,Bk,[c(`div`,Vk,[c(`div`,Hk,[c(`p`,null,d(e.$t(`compare.newFile`)),1)]),c(`div`,Uk,[y(d(e.$t(`compare.chooseNew`))+` `,1),c(`input`,{type:`file`,onChange:t[11]||=e=>E(e,`new`),accept:`.pdf`,name:`compare`},null,32),K(_)?(S(),V(`p`,Wk,d(K(_).name),1)):b(``,!0)])])])],2)])],2),x(i),x(a),x(o)],64)}}};``+new URL(`../images/curve-guide.gif`,import.meta.url).href;var Kk={class:`title`},qk={class:`got-button`},Jk={__name:`MeasureCurveGuide`,setup(e){let t=pw(),n=T(()=>t.getActiveTool),r=J(!1),i=J(`calc(50% - 155px)`),a=J(`95px`),o=!1;W(n,(e,t)=>{if(e===`curve`&&!o){let e=document.querySelector(`[data-element="${H.MEASURE_CURVE}"]`);if(e){let t=e.getBoundingClientRect();i.value=t.left+t.width/2+`px`,a.value=t.top+t.height+15+`px`}r.value=!0}else r.value=!1});let s=()=>{r.value=!1,o=!0};return(e,t)=>r.value?(S(),V(`div`,{key:0,class:`measure-curve-guide`,style:A({left:i.value,top:a.value})},[t[0]||=c(`img`,{src:``+new URL(`../images/curve-guide.gif`,import.meta.url).href,alt:``},null,-1),c(`p`,Kk,d(e.$t(`measurement.curveMeasurement.title`)),1),c(`p`,null,d(e.$t(`measurement.curveMeasurement.steps`)[0]),1),c(`p`,null,d(e.$t(`measurement.curveMeasurement.steps`)[1]),1),c(`div`,qk,[c(`span`,{onClick:s},d(e.$t(`measurement.curveMeasurement.confirmation`)),1)])],4)):b(``,!0)}},Yk={},Xk={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Zk(e,t){return S(),V(`svg`,Xk,[...t[0]||=[c(`path`,{d:`M2.52442 5.684L10 1.36798L17.4756 5.684V14.3161L10 18.6321L2.52442 14.3161V5.684Z`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M10.0003 6.50003L13.0314 8.25003V11.75L10.0003 13.5L6.96919 11.75V8.25003L10.0003 6.50003Z`,fill:`currentColor`},null,-1)]])}var Qk=B(Yk,[[`render`,Zk]]),$k={},eA={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function tA(e,t){return S(),V(`svg`,eA,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8.18555 2.96288L18.3831 2.96288L18.3831 4.46288L8.18557 4.46288C7.88386 5.24988 7.1212 5.80861 6.22804 5.80861C5.33488 5.80861 4.57222 5.24988 4.27051 4.46288L1.61743 4.46288L1.61743 2.96288L4.27053 2.96288C4.57225 2.1759 5.3349 1.61719 6.22804 1.61719C7.12118 1.61719 7.88383 2.1759 8.18555 2.96288ZM1.61743 10.75L11.6053 10.75C11.907 11.537 12.6697 12.0958 13.5628 12.0958C14.456 12.0958 15.2187 11.537 15.5204 10.75H18.3831L18.3831 9.25002L15.5204 9.25002C15.2186 8.46304 14.456 7.90433 13.5628 7.90433C12.6697 7.90433 11.9071 8.46304 11.6053 9.25002L1.61743 9.25002L1.61743 10.75ZM4.27051 17.0372H1.61743L1.61743 15.5372H4.27053C4.57225 14.7502 5.3349 14.1915 6.22804 14.1915C7.12118 14.1915 7.88383 14.7502 8.18555 15.5372L18.3831 15.5372L18.3831 17.0372L8.18557 17.0372C7.88386 17.8242 7.1212 18.3829 6.22804 18.3829C5.33488 18.3829 4.57222 17.8242 4.27051 17.0372Z`,fill:`currentColor`},null,-1)]])}var nA=B($k,[[`render`,tA]]),rA={},iA={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function aA(e,t){return S(),V(`svg`,iA,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3 2.25H2.25V3V15H3.75V3.75H15V2.25H3ZM7.5 7.5H16.5V16.5H7.5V7.5ZM6 6H7.5H16.5H18V7.5V16.5V18H16.5H7.5H6V16.5V7.5V6Z`,fill:`currentColor`},null,-1)]])}var oA=B(rA,[[`render`,aA]]),sA={},cA={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function lA(e,t){return S(),V(`svg`,cA,[...t[0]||=[c(`path`,{d:`M17.8252 2.743H2.17484V17.4101C2.17484 17.4943 2.27256 17.5408 2.33791 17.4877L6.16578 14.3765H17.8252V2.743Z`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M5.00003 6.77402H14`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M5.00003 10.2973H11`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var uA=B(sA,[[`render`,lA]]),dA={},fA={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function pA(e,t){return S(),V(`svg`,fA,[...t[0]||=[c(`path`,{d:`M6.58333 8.44989L9.44994 1.99999C10.0202 1.99999 10.567 2.22651 10.9702 2.6297C11.3734 3.0329 11.5999 3.57975 11.5999 4.14996V7.01658H15.6562C15.8639 7.01422 16.0697 7.05707 16.2593 7.14215C16.4489 7.22722 16.6176 7.3525 16.754 7.50929C16.8903 7.66608 16.9909 7.85063 17.0489 8.05017C17.1068 8.24971 17.1207 8.45946 17.0895 8.66488L16.1005 15.1148C16.0487 15.4565 15.8751 15.7681 15.6117 15.992C15.3483 16.2158 15.0129 16.337 14.6672 16.3331H6.58333M6.58333 8.44989V16.3331M6.58333 8.44989H4.66986C4.26426 8.44271 3.87015 8.58471 3.56233 8.84893C3.25452 9.11315 3.05443 9.48119 3.00005 9.88319V14.8998C3.05443 15.3018 3.25452 15.6698 3.56233 15.934C3.87015 16.1983 4.26426 16.3403 4.66986 16.3331H6.58333`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var mA=B(dA,[[`render`,pA]]),hA={},gA={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function _A(e,t){return S(),V(`svg`,gA,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M12.5663 1.73124C12.3457 1.51066 11.9792 1.54371 11.8017 1.80019L9.00221 5.84387C8.97541 5.88258 8.93581 5.9106 8.89039 5.92298L5.20212 6.92888C5.12329 6.95038 5.06548 7.01679 5.05485 7.0978C4.99741 7.53536 4.78835 8.98634 4.36452 10.5C4.00509 11.7837 2.91361 14.2634 2.30714 15.6015C1.93791 15.4319 1.48666 15.4992 1.18254 15.8033C0.792017 16.1939 0.792017 16.827 1.18254 17.2175C1.57307 17.6081 2.20623 17.6081 2.59676 17.2175C2.90731 16.907 2.9709 16.443 2.78754 16.0696C3.97427 15.503 6.12247 14.5333 7.90006 14.0355C9.90855 13.4732 10.9209 13.3576 11.2798 13.3342C11.3716 13.3282 11.4526 13.266 11.4768 13.1773L12.4771 9.50966C12.4895 9.46424 12.5175 9.42465 12.5562 9.39785L16.5999 6.59838C16.8563 6.42081 16.8894 6.05431 16.6688 5.83373L12.5663 1.73124ZM8.34417 8.8228C8.29817 8.77679 8.22119 8.78627 8.18771 8.84206L6.33809 11.9248C6.28453 12.014 6.38602 12.1155 6.47529 12.062L9.558 10.2123C9.61378 10.1789 9.62326 10.1019 9.57726 10.0559L8.34417 8.8228ZM16.027 16.5933C15.9522 16.5981 15.8766 16.6005 15.8006 16.6005C15.7254 16.6005 15.6507 16.5982 15.5767 16.5935L14.0309 19.2709C13.9525 19.4067 13.7553 19.4035 13.6813 19.2651L13.0771 18.1343C13.0412 18.0671 12.9702 18.0262 12.8941 18.0287L11.6126 18.0708C11.4558 18.0759 11.3544 17.9067 11.4329 17.7709L12.9536 15.1369C12.5425 14.5632 12.3006 13.8601 12.3006 13.1005C12.3006 11.1675 13.8676 9.60053 15.8006 9.60053C17.7336 9.60053 19.3006 11.1675 19.3006 13.1005C19.3006 13.8592 19.0592 14.5615 18.649 15.1348L20.171 17.7709C20.2494 17.9067 20.148 18.0759 19.9912 18.0708L18.7098 18.0287C18.6336 18.0262 18.5627 18.0671 18.5268 18.1343L17.9225 19.2651C17.8486 19.4035 17.6514 19.4067 17.5729 19.2709L16.027 16.5933Z`,fill:`currentColor`},null,-1)]])}var vA=B(hA,[[`render`,_A]]),yA={},bA={width:`25`,height:`24`,viewBox:`0 0 25 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function xA(e,t){return S(),V(`svg`,bA,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M19.5623 7.9067L14.6557 3L11.5014 7.55623L7.64623 8.60766C7.64623 8.60766 7.44842 10.3155 6.94528 12.1125C6.58896 13.3851 5.50688 15.8434 4.90572 17.1698C4.5396 17.0014 4.09196 17.068 3.79034 17.3696C3.40322 17.7568 3.40322 18.3844 3.79034 18.7715C4.17746 19.1587 4.80511 19.1587 5.19223 18.7715C5.5 18.4638 5.56308 18.004 5.38149 17.6339C6.55777 17.0723 8.68764 16.1107 10.45 15.6172C13.034 14.8937 13.9547 14.9163 13.9547 14.9163L15.0061 11.061L19.5623 7.9067ZM10.7997 10.3601L12.2016 11.762L8.69685 13.8649L10.7997 10.3601ZM17.9547 17.5658C17.6177 16.9944 17.0028 16.7812 16.1476 16.8013C16.0495 16.8036 15.9455 16.8091 15.8353 16.8179L15.4861 16.854L15.0991 16.9101C15.0313 16.9211 14.962 16.933 14.891 16.9457L14.445 17.0323L13.9583 17.1398L13.4299 17.2684L12.8587 17.4186L12.2436 17.5906L11.2363 17.8906L10.5067 18.119L9.32254 18.5051L8.47165 18.7921L7.10044 19.2678L7.68591 21L8.57815 20.6888L9.82355 20.2659L10.5929 20.0127L11.3145 19.782L12.3087 19.4775L12.9138 19.3017L13.737 19.0778L14.2305 18.9546L14.6806 18.8519L15.088 18.7692L15.4535 18.7063L15.7779 18.6628C15.93 18.6459 16.0669 18.636 16.189 18.6332L16.3181 18.6327L16.2761 18.8388C16.2125 19.1636 16.1998 19.3368 16.2394 19.5948C16.324 20.1475 16.6955 20.5595 17.257 20.7155C17.7746 20.8593 18.5301 20.7995 19.6673 20.5229L20.2199 20.3798C20.4134 20.327 20.6166 20.2689 20.8298 20.2057L21.5002 20.0001L20.9702 18.2494L20.3733 18.4324L19.8368 18.5865L19.3603 18.7128L18.9431 18.8123C18.8784 18.8267 18.8163 18.8401 18.7565 18.8524L18.4273 18.9139C18.3273 18.9303 18.237 18.9427 18.1562 18.9514L18.0859 18.9576L18.118 18.7913C18.2062 18.2932 18.1885 17.9622 17.9547 17.5658Z`,fill:`currentColor`},null,-1)]])}var SA=B(yA,[[`render`,xA]]),CA={},wA={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function TA(e,t){return S(),V(`svg`,wA,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.5 3H1.75V3.75V16.25V17H2.5H19H19.75V16.25V10H18.25V15.5H18.2147L12.8718 10.8178L10.5643 13.25L6.29496 9.75L3.25 12.9595V4.5H13.75V3H2.5ZM14.5 8.25C14.5 9.07843 13.8284 9.75 13 9.75C12.1716 9.75 11.5 9.07843 11.5 8.25C11.5 7.42157 12.1716 6.75 13 6.75C13.8284 6.75 14.5 7.42157 14.5 8.25ZM16.75 6.75H14.5V5.25H16.75V3H18.25V5.25H20.5V6.75H18.25V9H16.75V6.75Z`,fill:`currentColor`},null,-1)]])}var EA=B(CA,[[`render`,TA]]),DA={},OA={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function kA(e,t){return S(),V(`svg`,OA,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.25 3H1.5V3.75V16.25V17H2.25H18.75H19.5V16.25V10H18V15.5H3V4.5H13.5V3H2.25ZM12.5 8V5.5H4.5V8H6V7H7.75V13H7V14.5H10V13H9.25V7H11V8H12.5ZM16.75 6.75H14.5V5.25H16.75V3H18.25V5.25H20.5V6.75H18.25V9H16.75V6.75Z`,fill:`currentColor`},null,-1)]])}var AA=B(DA,[[`render`,kA]]),jA={},MA={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function NA(e,t){return S(),V(`svg`,MA,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M20 1.25H2L0 18.75H18L20 1.25ZM10.4361 3.51788L15.0866 15.1442H16.5866V16.3942H12.7404V15.1442H13.7403L12.798 12.7885H6.91309L5.9711 15.1442H6.97115V16.3942H3.125V15.1442H4.62492L9.27547 3.51788H10.4361ZM9.85499 5.43124L12.298 11.5385H7.41292L9.85499 5.43124Z`,fill:`currentColor`},null,-1)]])}var PA=B(jA,[[`render`,NA]]),FA={},IA={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function LA(e,t){return S(),V(`svg`,IA,[...t[0]||=[c(`path`,{d:`M3.25 18C3.25 9.71573 9.96573 3 18.25 3`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var RA=B(FA,[[`render`,LA]]),zA={},BA={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function VA(e,t){return S(),V(`svg`,BA,[...t[0]||=[c(`path`,{d:`M7 4.07123L13 10.071L7 16.0709`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var HA=B(zA,[[`render`,VA]]),UA={},WA={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function GA(e,t){return S(),V(`svg`,WA,[...t[0]||=[c(`path`,{d:`M13 4.07123L7 10.071L13 16.0709`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var KA=B(UA,[[`render`,GA]]),qA={},JA={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function YA(e,t){return S(),V(`svg`,JA,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M9.99164 3.52673L9.24244 3.56122L9.31142 5.05963L10.0606 5.02514L14.0731 4.84043L3.46978 15.4438L2.93945 15.9741L4.00011 17.0348L4.53044 16.5044L15.3467 5.68818L15.5465 10.0282L15.581 10.7774L17.0794 10.7084L17.0449 9.95918L16.769 3.96553L16.7345 3.21632L15.9853 3.25081L9.99164 3.52673Z`,fill:`currentColor`},null,-1)]])}var XA=B(qA,[[`render`,YA]]),ZA={},QA={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function $A(e,t){return S(),V(`svg`,QA,[...t[0]||=[c(`path`,{d:`M10.4934 16H5V4H10.8882C12.3739 4.02171 13.4265 4.44776 14.0461 5.27815C14.4189 5.78833 14.6053 6.39891 14.6053 7.10991C14.6053 7.84261 14.4189 8.43148 14.0461 8.87653C13.8377 9.12619 13.5307 9.35414 13.125 9.56038C13.7445 9.7829 14.2105 10.1357 14.523 10.6187C14.841 11.1018 15 11.6879 15 12.3772C15 13.0882 14.8191 13.7259 14.4572 14.2904C14.227 14.6649 13.9391 14.9796 13.5938 15.2347C13.2045 15.5278 12.744 15.7286 12.2122 15.8372C11.6859 15.9457 11.1129 16 10.4934 16ZM10.4359 10.7164H7.41776V13.9159H10.3947C10.9265 13.9159 11.3405 13.8453 11.6365 13.7042C12.1738 13.4437 12.4424 12.9444 12.4424 12.2062C12.4424 11.5821 12.182 11.1533 11.6612 10.9199C11.3706 10.7897 10.9622 10.7218 10.4359 10.7164ZM11.6941 8.42877C12.023 8.23338 12.1875 7.88331 12.1875 7.37856C12.1875 6.81954 11.9682 6.45047 11.5296 6.27137C11.1513 6.14654 10.6689 6.08412 10.0822 6.08412H7.41776V8.72999H10.3947C10.9265 8.72999 11.3596 8.62958 11.6941 8.42877Z`,fill:`currentColor`},null,-1)]])}var ej=B(ZA,[[`render`,$A]]),tj={},nj={width:`17`,height:`16`,viewBox:`0 0 17 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function rj(e,t){return S(),V(`svg`,nj,[...t[0]||=[c(`path`,{d:`M8.45508 7.53613L15.4551 10.3379L16.5391 10.7725L15.4775 11.2568L8.47754 14.4551L8.26953 14.5498L8.06152 14.4551L1.06152 11.2568L0 10.7725L1.08398 10.3379L8.08398 7.53613L8.26953 7.46094L8.45508 7.53613ZM8.47656 1.54492L15.4766 4.72852L16.4121 5.1543L15.5 5.62793L12 7.44336L11.5391 6.55664L14.1279 5.21387L8.26953 2.5498L2.41211 5.21387L5 6.55664L4.53906 7.44336L1.03906 5.62793L0.126953 5.1543L1.0625 4.72852L8.0625 1.54492L8.26953 1.45117L8.47656 1.54492Z`,fill:`#43474D`},null,-1)]])}var ij=B(tj,[[`render`,rj]]),aj={},oj={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function sj(e,t){return S(),V(`svg`,oj,[...t[0]||=[c(`path`,{d:`M14.793 10.2378L15.7842 10.7173L14.7705 11.1479L8.19531 13.939L8 14.022L7.80469 13.939L1.23047 11.1479L0.216797 10.7173L1.20801 10.2378L4.49512 8.64502L4.93066 9.54541L2.63379 10.6567L8 12.9351L13.3652 10.6567L11.0693 9.54541L11.2881 9.09521L11.5059 8.64502L14.793 10.2378ZM8.20312 2.06396L14.7783 4.98389L15.875 5.47119L14.7568 5.90674L8.18164 8.46533L8 8.53662L7.81934 8.46533L1.24414 5.90674L0.125 5.47119L1.22266 4.98389L7.79785 2.06396L8 1.97412L8.20312 2.06396Z`,fill:`#43474D`},null,-1)]])}var cj=B(aj,[[`render`,sj]]),lj={},uj={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function dj(e,t){return S(),V(`svg`,uj,[...t[0]||=[c(`path`,{d:`M8.20312 1.94287L10.2178 2.8374V3.93115L8 2.94678L2.64551 5.32373L8 7.40771L10.2178 6.54346V7.61768L8.18164 8.41064L8 8.48193L7.81836 8.41064L4.88086 7.26709L4.89062 7.28662L2.55371 8.41748L8 10.729L11.9453 9.0542H14.5039L12.2021 10.0308L14.8721 11.3247L15.8633 11.8052L14.8496 12.2349L8.19531 15.0601L8 15.1431L7.80469 15.0601L1.15039 12.2349L0.136719 11.8052L1.12793 11.3247L3.79688 10.0308L1.15039 8.90771L0.136719 8.47803L1.12793 7.99756L3.63574 6.78271L1.16406 5.8208L0.0449219 5.38525L1.14258 4.89795L7.79688 1.94287L8 1.85303L8.20312 1.94287ZM13.0557 6.92432L13.7842 6.1958L14.4912 6.90283L12.9092 8.48486C12.7139 8.67985 12.3973 8.68003 12.2021 8.48486L10.6201 6.90283L11.3271 6.1958L12.0557 6.92432V2.45361H13.0557V6.92432Z`,fill:`#43474D`},null,-1)]])}var fj=B(lj,[[`render`,dj]]),pj={},mj={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function hj(e,t){return S(),V(`svg`,mj,[...t[0]||=[c(`path`,{d:`M8.20264 2.13086L14.6528 4.99512L15.7505 5.48242L14.6313 5.91797L12.2681 6.83691L14.5913 7.96289H12.2983L11.0073 7.33789L11.0122 7.32617L8.18115 8.42871L8.00049 8.49902L7.81885 8.42871L4.98682 7.32617L4.99268 7.33789L2.7583 8.41895L7.99951 10.6436L10.1499 9.73047V10.8174L8.1958 11.6475L8.00049 11.7305L7.8042 11.6475L4.92627 10.4258L4.99268 10.5625L2.7583 11.6436L7.99951 13.8682L10.1499 12.9551V14.042L8.1958 14.8721L8.00049 14.9551L7.8042 14.8721L1.35498 12.1348L0.341309 11.7041L1.33252 11.2246L3.88916 9.98535L1.35498 8.91016L0.341309 8.47949L1.33252 8L3.73096 6.83691L1.36865 5.91797L0.249512 5.48242L1.34717 4.99512L7.79736 2.13086L8.00049 2.04102L8.20264 2.13086ZM12.062 8.68359C12.2572 8.48872 12.5739 8.48861 12.769 8.68359L14.313 10.2275L13.606 10.9346L12.9155 10.2441V14.5557H11.9155V10.2441L11.2251 10.9346L10.5181 10.2275L12.062 8.68359Z`,fill:`#43474D`},null,-1)]])}var gj=B(pj,[[`render`,hj]]),_j={},vj={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function yj(e,t){return S(),V(`svg`,vj,[...t[0]||=[v(`<mask id="path-1-inside-1_172_2287" fill="white"><rect x="2" y="2" width="16" height="10" rx="1"></rect></mask><rect x="2" y="2" width="16" height="10" rx="1" stroke="currentColor" stroke-width="3" stroke-linejoin="round" mask="url(#path-1-inside-1_172_2287)"></rect><path d="M8.59809 16L8.59809 16.75C8.34414 16.75 8.10745 16.6215 7.96912 16.4085L8.59809 16ZM5.37103 12.4085L4.9625 11.7796L6.22044 10.9625L6.62897 11.5915L6 12L5.37103 12.4085ZM14 16L14 16.75L8.59809 16.75L8.59809 16L8.59809 15.25L14 15.25L14 16ZM8.59809 16L7.96912 16.4085L5.37103 12.4085L6 12L6.62897 11.5915L9.22706 15.5915L8.59809 16Z" fill="currentColor"></path><path d="M12.5 14L14.5 16.065L12.626 18" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"></path>`,4)]])}var bj=B(_j,[[`render`,yj]]),xj={},Sj={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Cj(e,t){return S(),V(`svg`,Sj,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M4 4H15.5V15.5H4V4ZM2.5 2.5H4H15.5H17V4V15.5V17H15.5H4H2.5V15.5V4V2.5ZM7.06066 6L7.59099 6.53033L9.56066 8.5L11.5303 6.53033L12.0607 6L13.1213 7.06066L12.591 7.59099L10.6213 9.56066L12.591 11.5303L13.1213 12.0607L12.0607 13.1213L11.5303 12.591L9.56066 10.6213L7.59099 12.591L7.06066 13.1213L6 12.0607L6.53033 11.5303L8.5 9.56066L6.53033 7.59099L6 7.06066L7.06066 6Z`,fill:`currentColor`},null,-1)]])}var wj=B(xj,[[`render`,Cj]]),Tj={},Ej={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Dj(e,t){return S(),V(`svg`,Ej,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M14.0315 11.1503L10.609 2.59406H9.39038L5.96788 11.1503H5.09998V12.0253H7.89998V11.1503H7.38147L8.08144 9.4003H11.9179L12.6179 11.1503H12.1V12.0253H14.9V11.1503H14.0315ZM11.568 8.5253L9.99969 4.60441L8.43142 8.5253H11.568Z`,fill:`currentColor`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M4.499 17.406L1.80957 14.7147L4.50088 12.0253L5.26929 12.7942L3.8888 14.1737L16.1078 14.1703L14.7306 12.7942L15.499 12.0252L18.1903 14.7146L15.5009 17.4059L14.732 16.6375L16.1106 15.2574L3.89264 15.2607L5.26795 16.6376L4.499 17.406Z`,fill:`currentColor`},null,-1)]])}var Oj=B(Tj,[[`render`,Dj]]),kj={},Aj={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function jj(e,t){return S(),V(`svg`,Aj,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M18.25 1.75H1.75V18.25H18.25V1.75ZM16.75 3.25V16.75H3.25V3.25H16.75ZM15.532 7.52861L14.468 6.47139L9.038 11.935L6.53204 9.41291L5.46796 10.4701L9.03873 14.0641L15.532 7.52861Z`,fill:`currentColor`},null,-1)]])}var Mj=B(kj,[[`render`,jj]]),Nj={},Pj={width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Fj(e,t){return S(),V(`svg`,Pj,[...t[0]||=[c(`rect`,{width:`14`,height:`14`,rx:`1`,fill:`currentColor`},null,-1),c(`path`,{d:`M10.2784 5.27848L5.84653 9.71032L4.20261 8.06642`,stroke:`white`,"stroke-width":`1.5`,"stroke-linecap":`square`},null,-1)]])}var Ij=B(Nj,[[`render`,Fj]]),Lj={},Rj={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function zj(e,t){return S(),V(`svg`,Rj,[...t[0]||=[c(`circle`,{cx:`8`,cy:`8`,r:`6.5`,fill:`white`,stroke:`#666666`},null,-1)]])}var Bj=B(Lj,[[`render`,zj]]),Vj={},Hj={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Uj(e,t){return S(),V(`svg`,Hj,[...t[0]||=[c(`circle`,{cx:`8`,cy:`8`,r:`7`,fill:`#1460F3`},null,-1),c(`circle`,{cx:`8`,cy:`8`,r:`3`,fill:`white`},null,-1)]])}var Wj=B(Vj,[[`render`,Uj]]),Gj={},Kj={width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function qj(e,t){return S(),V(`svg`,Kj,[...t[0]||=[c(`path`,{d:`M13 1L1 13`,stroke:`#BABABA`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1),c(`path`,{d:`M1 1L13 13`,stroke:`#BABABA`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var Jj=B(Gj,[[`render`,qj]]),Yj={},Xj={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Zj(e,t){return S(),V(`svg`,Xj,[...t[0]||=[c(`mask`,{id:`path-1-inside-1_172_2280`,fill:`white`},[c(`path`,{d:`M10 3C13.0376 3 15.5 5.46243 15.5 8.5C15.5 8.66861 15.4904 8.83526 15.4756 9C15.4837 8.99995 15.4919 9 15.5 9C17.7091 9 19.5 10.7909 19.5 13C19.5 15.2091 17.7091 17 15.5 17H5.5C2.73858 17 0.5 14.7614 0.5 12C0.5 9.51456 2.3135 7.45274 4.68945 7.06543C5.32052 4.72359 7.45876 3 10 3Z`})],-1),c(`path`,{d:`M15.4756 9L13.9816 8.86532C13.9437 9.28642 14.0852 9.70398 14.3714 10.0152C14.6575 10.3265 15.0618 10.5025 15.4846 10.5L15.4756 9ZM4.68945 7.06543L4.93078 8.54589C5.51231 8.45109 5.98448 8.02463 6.13779 7.45572L4.68945 7.06543ZM10 3V4.5C12.2091 4.5 14 6.29086 14 8.5H15.5H17C17 4.63401 13.866 1.5 10 1.5V3ZM15.5 8.5H14C14 8.61249 13.9936 8.73267 13.9816 8.86532L15.4756 9L16.9695 9.13468C16.9873 8.93785 17 8.72473 17 8.5H15.5ZM15.4756 9L15.4846 10.5C15.483 10.5 15.4826 10.5 15.4855 10.5C15.4873 10.5 15.4883 10.5 15.4911 10.5C15.4934 10.5 15.4966 10.5 15.5 10.5V9V7.5C15.4972 7.5 15.4973 7.49999 15.49 7.49998C15.4848 7.49998 15.4763 7.49997 15.4666 7.50003L15.4756 9ZM15.5 9V10.5C16.8807 10.5 18 11.6193 18 13H19.5H21C21 9.96243 18.5376 7.5 15.5 7.5V9ZM19.5 13H18C18 14.3807 16.8807 15.5 15.5 15.5V17V18.5C18.5376 18.5 21 16.0376 21 13H19.5ZM15.5 17V15.5H5.5V17V18.5H15.5V17ZM5.5 17V15.5C3.567 15.5 2 13.933 2 12H0.5H-1C-1 15.5899 1.91015 18.5 5.5 18.5V17ZM0.5 12H2C2 10.2617 3.26878 8.81681 4.93078 8.54589L4.68945 7.06543L4.44812 5.58497C1.35821 6.08866 -1 8.76744 -1 12H0.5ZM4.68945 7.06543L6.13779 7.45572C6.59695 5.75182 8.15414 4.5 10 4.5V3V1.5C6.76339 1.5 4.0441 3.69536 3.24112 6.67514L4.68945 7.06543Z`,fill:`currentColor`,mask:`url(#path-1-inside-1_172_2280)`},null,-1)]])}var Qj=B(Yj,[[`render`,Zj]]),$j={},eM={width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`};function tM(e,t){return S(),V(`svg`,eM,[...t[0]||=[v(`<mask id="mask0_3348_1984" style="mask-type:luminance;" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><circle cx="12" cy="12" r="12" fill="white"></circle></mask><g mask="url(#mask0_3348_1984)"><rect x="-22.2856" y="-29.1428" width="65.1427" height="80.5713" fill="url(#pattern0_3348_1984)"></rect></g><defs><pattern id="pattern0_3348_1984" patternContentUnits="objectBoundingBox" width="1" height="1"><use xlink:href="#image0_3348_1984" transform="scale(0.0263158 0.0212766)"></use></pattern><image id="image0_3348_1984" width="38" height="47" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAvCAYAAACPMrhmAAAKs2lDQ1BJQ0MgUHJvZmlsZQAASImVlgdUE9kax+/MpBdaAAEpoTfpLYD0Grp0EJWQUEKJMSGI2FBZVEBRRETAhi6CKLgWQNaCiGJFUSkquiCLirIuFkRFZQd4hLfvnffeeV/ON/d3vtz57n/uzD3nDwClj8Xnp8JSAKTx0gXBXq70yKhoOv45QAAWSAFFoMJiC/kuQUF+AI3Z8e/xqRtAU+MDo6le//7/fw1pTryQDQAUhHIcR8hOQ/kMmq1sviAdACQTrWuuTOdPcQXKsgJUIMonpzhxhtumOG6Ge6fnhAa7oTwCAIHCYgkSASB/Ruv0DHYi2oeigLIpj8PloeyNsiM7icVBeQvKC9LSlk8xqgHoxf1Tn8S/9YwT92SxEsU88yzTQXDnCvmprFX/53b870hLFc2uoYEmJUngHYyOSuieVacs9xUzLy4gcJa5nOn505wk8g6bZbbQLXqWOSx331kWpYS5zDJLMHcvN50ZOsuC5cHi/rzUAD9x/3immOOFHiGznMD1ZM5yVlJoxCxncMMDZlmYEuI7N8dNXBeIgsWaEwSe4mdME85pY7Pm1kpPCvWe0xAp1sOJd/cQ13lh4vn8dFdxT35q0Jz+VC9xXZgRIr43Hf3AZjmZ5RM01ydIvD8gHEQCc2CB/qwBHYQADxAMmOgVXTU9PjN9Srjbcv4qATcxKZ3ugp6ceDqTxzZeQDc3NWMAMHUOZ17zh97p8wXJE+ZqQvQ7X2gJAMZ8rhajBsDJCwBIbZur6TwDgCYBwEUeWyTImKlhpi5YQAKSQBY94apAE+gBI1SrNbAHzqhCHxAIQkEUWArYIAmkAQFYCdaADSAX5IMdYDcoAwfAYVANToBToBGcB5fBNXAL3ANd4AnoB0PgDRgFn8AEBEF4iArRIEVIDdKGDCFziAE5Qh6QHxQMRUGxUCLEg0TQGmgTlA8VQWXQIagG+gU6B12GbkCd0CNoABqG3kNfYQSmwLKwCqwDm8AM2AX2hUPhJXAivALOgnPg7XApXAkfhxvgy/AtuAvuh9/AYwhAyIg8oo4YIQzEDQlEopEERICsQ/KQEqQSqUOakXbkAdKPjCBfMDgMDUPHGGHsMd6YMAwbswKzDlOAKcNUYxowbZgHmAHMKOYHlopVxhpi7bBMbCQ2EbsSm4stwVZhz2KvYruwQ9hPOBxOHqeLs8F546JwybjVuALcPlw9rgXXiRvEjeHxeEW8Id4BH4hn4dPxufi9+OP4S/j7+CH8ZwKZoEYwJ3gSogk8wkZCCeEY4SLhPuElYYIoRdQm2hEDiRziKmIh8QixmXiXOEScIEmTdEkOpFBSMmkDqZRUR7pK6iN9IJPJGmRb8iIyl5xNLiWfJF8nD5C/UGQoBhQ3SgxFRNlOOUppoTyifKBSqTpUZ2o0NZ26nVpDvUJ9Rv0sQZMwlmBKcCTWS5RLNEjcl3grSZTUlnSRXCqZJVkieVryruSIFFFKR8pNiiW1Tqpc6pxUj9SYNE3aTDpQOk26QPqY9A3pVzJ4GR0ZDxmOTI7MYZkrMoM0hKZJc6OxaZtoR2hXaUOyOFldWaZssmy+7AnZDtlRORk5S7lwuUy5crkLcv3yiLyOPFM+Vb5Q/pR8t/zXeSrzXObFz9s6r27e/XnjCvMVnBXiFfIU6hW6FL4q0hU9FFMUdyo2Kj5VwigZKC1SWqm0X+mq0sh82fn289nz8+afmv9YGVY2UA5WXq18WPm28piKqoqXCl9lr8oVlRFVeVVn1WTVYtWLqsNqNDVHNa5asdoltdd0OboLPZVeSm+jj6orq3uri9QPqXeoT2joaoRpbNSo13iqSdJkaCZoFmu2ao5qqWn5a63RqtV6rE3UZmgnae/Rbtce19HVidDZrNOo80pXQZepm6Vbq9unR9Vz0luhV6n3UB+nz9BP0d+nf88ANrAySDIoN7hrCBtaG3IN9xl2LsAusF3AW1C5oMeIYuRilGFUazRgLG/sZ7zRuNH4rYmWSbTJTpN2kx+mVqappkdMn5jJmPmYbTRrNntvbmDONi83f2hBtfC0WG/RZPHO0tAy3nK/Za8VzcrfarNVq9V3axtrgXWd9bCNlk2sTYVND0OWEcQoYFy3xdq62q63PW/7xc7aLt3ulN2f9kb2KfbH7F8t1F0Yv/DIwkEHDQeWwyGHfke6Y6zjQcd+J3UnllOl03NnTWeOc5XzSxd9l2SX4y5vXU1dBa5nXcfd7NzWurW4I+5e7nnuHR4yHmEeZR7PPDU8Ez1rPUe9rLxWe7V4Y719vXd69zBVmGxmDXPUx8ZnrU+bL8U3xLfM97mfgZ/Ar9kf9vfx3+XfF6AdwAtoDASBzMBdgU+DdINWBP26CLcoaFH5ohfBZsFrgttDaCHLQo6FfAp1DS0MfRKmFyYKaw2XDI8Jrwkfj3CPKIrojzSJXBt5K0opihvVFI2PDo+uih5b7LF49+KhGKuY3JjuJbpLMpfcWKq0NHXphWWSy1jLTsdiYyNij8V+YwWyKlljccy4irhRtht7D/sNx5lTzBmOd4gvin+Z4JBQlPAq0SFxV+JwklNSSdII141bxn2X7J18IHk8JTDlaMpkakRqfRohLTbtHE+Gl8JrW666PHN5J9+Qn8vvX2G3YveKUYGvoEoICZcIm9JlUcNzW6Qn+kk0kOGYUZ7xeWX4ytOZ0pm8zNurDFZtXfUyyzPr59WY1ezVrWvU12xYM7DWZe2hddC6uHWt6zXX56wfyvbKrt5A2pCy4c5G041FGz9uitjUnKOSk50z+JPXT7W5ErmC3J7N9psPbMFs4W7p2Gqxde/WH3mcvJv5pvkl+d8K2AU3t5ltK902uT1he0ehdeH+HbgdvB3dO512VhdJF2UVDe7y39VQTC/OK/64e9nuGyWWJQf2kPaI9vSX+pU27dXau2Pvt7Kksq5y1/L6CuWKrRXj+zj77u933l93QOVA/oGvB7kHew95HWqo1KksOYw7nHH4xZHwI+0/M36uqVKqyq/6fpR3tL86uLqtxqam5pjyscJauFZUO3w85vi9E+4nmuqM6g7Vy9fnnwQnRSdf/xL7S/cp31Otpxmn685on6k4Szub1wA1rGoYbUxq7G+Kauo853Outdm++eyvxr8ePa9+vvyC3IXCi6SLORcnL2VdGmvht4xcTrw82Lqs9cmVyCsP2xa1dVz1vXr9mue1K+0u7ZeuO1w/f8PuxrmbjJuNt6xvNdy2un32jtWdsx3WHQ13be423bO919y5sPPifaf7lx+4P7j2kPnwVldAV2d3WHdvT0xPfy+n99Wj1EfvHmc8nniS3Yfty3sq9bTkmfKzyt/0f6vvt+6/MOA+cPt5yPMng+zBN78Lf/82lPOC+qLkpdrLmlfmr84Pew7fe7349dAb/puJkdw/pP+oeKv39syfzn/eHo0cHXoneDf5vuCD4oejHy0/to4FjT37lPZpYjzvs+Ln6i+ML+1fI76+nFj5Df+t9Lv+9+Yfvj/6JtMmJ/ksAWvaCiBowgkJALw/CgA1CvUK9wAgScz45OmAZrz9NIH/xDNeejqsAah0BiAMTf8WAA5mox4ETWk0g9BaqDOALSzE+Y8QJliYz/QiN6LWpGRy8gPqD/H6AHzvmZycaJyc/F6Fin0MQMunGX8+FdGoD3Y2mKI7W0nZ4F/iL/OdBdopifIkAAAEQklEQVRYCe2WzYsjRRjGn+5OV3cn6XxOdj7WHXFlHFdxRfak6ODFHUSvggcR9CK4Bw/+IR7FgwdBWA+KshcZFTzo4sJ6ED/AYVlFZnYnmWSSSXfS3elOp316x7mEwKRGD4t0haLo4q2qX5736bdaSdhwHzb1PmS6h5SByWYmUyxTTFYB2fjMY5lisgrIxmcek1UsJ7tgOt4PHPT72/Cc68h520A0wVhdR37hWZQbj8KyStNL5npWTvvZE0Uj3Gl/CVO9ipo4gD6aIBlOgH965IzRHdUQPvgmVh5/GbpuzgV0HHQqMC9wcbv7MVbqX6CiKVADA/A0gmlHYIMIcH3A8RA6IfYXX0Lj+Xdh5e3jc08cpVMZUqnrvQ8gGl+hqBmwUISZs6AIKhLxXYr43amHUHQfiepCjA+x/PM17E1sLF++Aj2Nm6NJg91g+n6pf4NVzUQeZfYS01RELk7hqFwKZowAfwCoBhJFhRqPcebbj7BXOovVjVfnwAKkwFwa/XPxCfScAhMF/krsVVhqFUXCKUIcgeUCQuUBhdunX+7jELrnQ3z2PvxLL8IqlE+EkwK75W7jVvkQC0xgPiGYYlOxCuHqEFoVhrCAkCA5755amKRQVG885HwBtd0Wun/8BuuJZ04EkyqwP4xuwmEKXdjosnforzZV6xDOVRcQ60uAWCFUg0pVCcRSEVK5gL7yTGh9Df73X58IlQZIKbad2+eSRST0VqzU4KOGIfXrc3SoWp4ptZQEypj/d0TVRlTQJ5hH7w2Y5p4G48ff5wPb2tqaGbi5uTlj/qhYKoQCYRL2mEAh+5AKuSF95icQAQ3PkdQEY23zx4Tjc8Aez1dwc7MBZjBxan18Hj8pbcJUEBEmJliYKpdU4FAZJU1VFygdVlEYWMj5NlSPRg+YVr/O8tFA8NTa7M2nZqVS+bRxAZ/GKiKNQITyCOXGZRi+AeVQwbAFFA4SDAlY6eVh9wVM14bm1AjYwFicQX7j4hTC7EcpsDX7ATT6TXRry/BoeidiDRvqSAgVtFm+mgmsToKBy8z1gXJHQ6lro9A1YcYV9M4JlNdWZ5NMzUqB2WYBr/cW8V5MP01KUB1eQT16nDAuwcTdBCbHAWtrWl+HB+wtBWVXwKb/g7frWCoWphBmP0qBpVu8sHAeu607uKqXEPPgsE2FOoC5nyB3l7cR0znoJwj4Ug7pN4/gvjbB4JUmHrs8n1rpOdJghi7w2sIinNs7uNZZht+ijwglmoC2SzCqNkhhWPy9kOAiRPWtFtbeWOI9yZIxZ5MGS/ctmnm888hZrGMHH/5poNmuA02B5K8E2h6BWCESPULhoQ4uXAlxafMchARUesapPnvShcfN9Txs7/Tw3c0Bfr1hsX4BT1708dxGEQ+v8Q4tssCeov1rsFOcOdcSqbtyrh3/o6AMTFbITLFMMVkFZOMzj2WKySogG5957H+j2N8vPYhqDhnSbgAAAABJRU5ErkJggg=="></image></defs>`,3)]])}var nM=B($j,[[`render`,tM]]),rM={},iM={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function aM(e,t){return S(),V(`svg`,iM,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0.25 2.25H19.75V10.75H15.75V17.75H0.25V10.75V9.25V2.25ZM1.75 10.75H14.25V16.25H1.75V10.75ZM18.25 9.25H15.75H1.75V3.75H18.25V9.25ZM15 8L17 5.5H13L15 8Z`,fill:`currentColor`},null,-1)]])}var oM=B(rM,[[`render`,aM]]),sM={},cM={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function lM(e,t){return S(),V(`svg`,cM,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M4 4H15.5V15.5H4V4ZM2.5 2.5H4H15.5H17V4V15.5V17H15.5H4H2.5V15.5V4V2.5ZM13.6441 8.40148L14.1745 7.87115L13.1138 6.81049L12.5835 7.34082L8.87115 11.0531L7.53033 9.71231L7 9.18198L5.93934 10.2426L6.46967 10.773L8.34082 12.6441L8.87115 13.1745L9.40148 12.6441L13.6441 8.40148Z`,fill:`currentColor`},null,-1)]])}var uM=B(sM,[[`render`,lM]]),dM={},fM={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function pM(e,t){return S(),V(`svg`,fM,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3 16V4H18V16H3ZM1.5 3.5C1.5 2.94772 1.94772 2.5 2.5 2.5H18.5C19.0523 2.5 19.5 2.94772 19.5 3.5V16.5C19.5 17.0523 19.0523 17.5 18.5 17.5H2.5C1.94772 17.5 1.5 17.0523 1.5 16.5V3.5ZM10.3774 13.1117C9.88462 14.0732 9.12745 14.6461 8.15796 14.6461C7.29663 14.6461 6.83191 14.1213 6.83191 13.3C6.83191 13.2359 6.83592 13.1758 6.84393 13.1117H4V12.2865H7.06427C7.2766 11.8017 7.62113 11.305 8.06982 10.8523C7.13237 10.1151 6.27505 8.98137 6.27505 7.62728C6.27505 6.38937 7.09231 5.5 8.25811 5.5C9.79649 5.5 10.8862 7.10247 11.0304 9.27383C11.3268 9.21774 11.6313 9.1897 11.9398 9.1897C12.5407 9.1897 12.9093 9.49417 12.9093 10.003C12.9093 10.067 12.8995 10.1298 12.8864 10.1889L12.844 10.3525C12.8309 10.4018 12.8212 10.445 12.8212 10.4797C12.8212 10.5238 12.8372 10.5398 12.8732 10.5398C12.9385 10.5398 13.0642 10.443 13.2278 10.3047L13.4031 10.1546L13.5985 9.98918C13.9722 9.67931 14.4221 9.35395 14.8082 9.35395C15.3152 9.35395 15.4429 9.75975 15.5112 10.1168L15.5627 10.4004C15.5929 10.5465 15.6313 10.6479 15.7176 10.6479C15.7399 10.6479 15.7763 10.6396 15.8268 10.623L15.9467 10.5788L16.1042 10.5123L16.2995 10.4238L16.4637 11.245L16.2383 11.3483L16.0433 11.4309C15.8337 11.5152 15.6864 11.5574 15.6014 11.5574C15.0514 11.5574 14.8602 11.2147 14.7653 10.8984L14.7297 10.7655L14.6756 10.5353C14.6496 10.4385 14.6205 10.3755 14.5679 10.3755C14.501 10.3755 14.3806 10.4669 14.2239 10.6019L13.8668 10.916L13.6613 11.0903C13.2715 11.4106 12.8163 11.7176 12.4005 11.7176C12.0279 11.7176 11.7635 11.4812 11.7635 11.1207C11.7635 10.9165 11.8211 10.7485 11.8751 10.5908C11.9229 10.4515 11.9678 10.3202 11.9678 10.1792C11.9678 10.1151 11.9158 10.0711 11.8236 10.0711C11.5592 10.0711 11.2948 10.1031 11.0424 10.1552C11.0144 10.9484 10.9022 11.6695 10.7099 12.2865H16.6226V13.1117H10.3774ZM7.15643 7.61933C7.15643 8.80115 7.97369 9.69854 8.73086 10.2834C9.15551 9.96695 9.63625 9.70254 10.1611 9.51025C10.089 7.72749 9.32778 6.38542 8.26213 6.38542C7.60912 6.38542 7.15643 6.90222 7.15643 7.61933ZM8.07385 12.2865H9.76046C9.95676 11.7737 10.089 11.1528 10.141 10.4597C9.9207 10.5639 9.70837 10.684 9.51207 10.8122C9.58685 10.8763 9.70169 10.9542 9.85658 11.0458L9.22061 11.5887L8.82301 11.3611C8.51053 11.6576 8.25413 11.978 8.07385 12.2865ZM7.76133 13.2119C7.76133 13.5444 7.9336 13.7648 8.2621 13.7648C8.66673 13.7648 9.03129 13.5244 9.33176 13.1118H7.76934C7.76894 13.1154 7.76853 13.119 7.76813 13.1226C7.76457 13.1543 7.76133 13.1831 7.76133 13.2119Z`,fill:`currentColor`},null,-1)]])}var mM=B(dM,[[`render`,pM]]),hM={},gM={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function _M(e,t){return S(),V(`svg`,gM,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.8 12.6V3.29999H11.7561L11.2345 3.85884L11.9655 4.54115L12.3 4.18279V12.6H3.8ZM2.6 13.2V3.29999H0V2.29999H2.6V0.399994H3.8V2.29999H12.8H13.3V2.79999V12.6H16V13.8H13.3V15.6H12.3V13.8H3.2H2.6V13.2ZM14.2055 2.14115L14.7655 1.54115L14.0345 0.858835L13.4745 1.45884L14.2055 2.14115ZM9.72553 6.94115L10.8455 5.74115L10.1145 5.05884L8.99447 6.25883L9.72553 6.94115ZM7.48553 9.34115L8.60553 8.14115L7.87447 7.45883L6.75447 8.65883L7.48553 9.34115ZM5.24553 11.7412L6.36553 10.5412L5.63447 9.85884L4.51447 11.0588L5.24553 11.7412Z`,fill:`currentColor`},null,-1)]])}var vM=B(hM,[[`render`,_M]]),yM={},bM={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function xM(e,t){return S(),V(`svg`,bM,[...t[0]||=[c(`path`,{d:`M4.52539 4H15.75V15.4746H18V17H15.75V18.75H14.25V17H3V5.5H1V4H3V2H4.52539V4ZM4.52539 14.5137L7.2207 11.8896L8.95215 13.917L12.1533 11L14.25 13.4541V5.5H4.52539V14.5137ZM7.5 7C8.32843 7 9 7.67157 9 8.5C9 9.32843 8.32843 10 7.5 10C6.67157 10 6 9.32843 6 8.5C6 7.67157 6.67157 7 7.5 7Z`,fill:`currentColor`},null,-1)]])}var SM=B(yM,[[`render`,xM]]),CM={},wM={width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function TM(e,t){return S(),V(`svg`,wM,[...t[0]||=[c(`path`,{d:`M12 22C17.5229 22 22 17.5229 22 12C22 6.47715 17.5229 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5229 6.47715 22 12 22Z`,fill:`#F87171`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13 7.5C13 6.94772 12.5523 6.5 12 6.5C11.4477 6.5 11 6.94772 11 7.5V13.5C11 14.0523 11.4477 14.5 12 14.5C12.5523 14.5 13 14.0523 13 13.5L13 7.5ZM12.1 17.6C12.6523 17.6 13.1 17.1523 13.1 16.6C13.1 16.0477 12.6523 15.6 12.1 15.6C11.5477 15.6 11.1 16.0477 11.1 16.6C11.1 17.1523 11.5477 17.6 12.1 17.6Z`,fill:`white`},null,-1)]])}var EM=B(CM,[[`render`,TM]]),DM={},OM={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function kM(e,t){return S(),V(`svg`,OM,[...t[0]||=[c(`mask`,{id:`path-1-inside-1_334_4981`,fill:`white`},[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M1.58408 11.3387C4.3368 11.6625 7.20552 10.7684 9.31754 8.65635C11.1899 6.78404 12.105 4.31705 12.0631 1.86338C12.9045 2.2377 13.6927 2.76991 14.3828 3.46C17.399 6.47625 17.399 11.3666 14.3828 14.3828C11.3665 17.3991 6.47623 17.3991 3.45998 14.3828C2.57505 13.4979 1.94975 12.4516 1.58408 11.3387Z`})],-1),c(`path`,{d:`M1.58412 11.3387L1.75933 9.849L-0.574465 9.57451L0.159076 11.807L1.58412 11.3387ZM12.0631 1.86337L12.6728 0.492869L10.5232 -0.46347L10.5634 1.889L12.0631 1.86337ZM8.25692 7.59568C6.48322 9.36938 4.07577 10.1214 1.75933 9.849L1.40891 12.8285C4.59792 13.2035 7.9279 12.1673 10.3782 9.717L8.25692 7.59568ZM10.5634 1.889C10.5986 3.95285 9.82995 6.02265 8.25692 7.59568L10.3782 9.717C12.5498 7.54541 13.6115 4.68123 13.5629 1.83774L10.5634 1.889ZM11.4535 3.23387C12.1295 3.5346 12.7642 3.96264 13.3222 4.52064L15.4435 2.39932C14.6213 1.57714 13.6796 0.940768 12.6728 0.492869L11.4535 3.23387ZM13.3222 4.52064C15.7526 6.95111 15.7526 10.8917 13.3222 13.3221L15.4435 15.4435C19.0455 11.8414 19.0455 6.00136 15.4435 2.39932L13.3222 4.52064ZM13.3222 13.3221C10.8917 15.7526 6.95115 15.7526 4.52068 13.3221L2.39936 15.4435C6.0014 19.0455 11.8415 19.0455 15.4435 15.4435L13.3222 13.3221ZM4.52068 13.3221C3.80572 12.6072 3.30315 11.7652 3.00916 10.8705L0.159076 11.807C0.596442 13.1381 1.34447 14.3886 2.39936 15.4435L4.52068 13.3221Z`,fill:`currentColor`,mask:`url(#path-1-inside-1_334_4981)`},null,-1)]])}var AM=B(DM,[[`render`,kM]]),jM={},MM={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function NM(e,t){return S(),V(`svg`,MM,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M17.394 4.97046H12.394V6.47046H17.394V4.97046ZM9.29604 4.99995L13.2075 14.7785H14.2V15.7785H11V14.7785H11.5919L10.792 12.7785H6.4074L5.60744 14.7785H6.2V15.7785H3V14.7785H3.9919L7.90332 4.99995H9.29604ZM8.59968 7.29749L10.392 11.7785H6.80738L8.59968 7.29749Z`,fill:`currentColor`},null,-1)]])}var PM=B(jM,[[`render`,NM]]),FM={},IM={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function LM(e,t){return S(),V(`svg`,IM,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M15.8333 7.33333H15.8333H14.5H13.1666H11.8333H7.83331V6C7.83331 4.52724 9.02722 3.33333 10.5 3.33333C11.9727 3.33333 13.1666 4.52724 13.1666 6H14.5C14.5 3.79086 12.7091 2 10.5 2C8.29084 2 6.49998 3.79086 6.49998 6V7.33333H5.16665C4.43027 7.33333 3.83331 7.93029 3.83331 8.66667V16.6667C3.83331 17.403 4.43027 18 5.16665 18H15.8333C16.5697 18 17.1666 17.403 17.1666 16.6667V8.66667C17.1666 7.93029 16.5697 7.33333 15.8333 7.33333ZM6.49998 8.6784V8.66667H5.16665L5.16665 16.6667H15.8333L15.8333 8.66667H14.5V8.6784H13.1666H7.83331H6.49998Z`,fill:`currentColor`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11.1667 13.4263C11.8182 13.1626 12.2778 12.5238 12.2778 11.7778C12.2778 10.7959 11.4818 10 10.5 10C9.51817 10 8.72223 10.7959 8.72223 11.7778C8.72223 12.5239 9.18185 13.1626 9.83339 13.4264V14.6667C9.83339 15.0349 10.1319 15.3333 10.5001 15.3333C10.8683 15.3333 11.1667 15.0349 11.1667 14.6667V13.4263Z`,fill:`currentColor`},null,-1)]])}var RM=B(FM,[[`render`,LM]]),zM={},BM={width:`80`,height:`80`,viewBox:`0 0 80 80`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function VM(e,t){return S(),V(`svg`,BM,[...t[0]||=[v(`<g clip-path="url(#clip0_2460_1292)"><circle cx="40" cy="40" r="40" fill="#F2F3F5"></circle><path d="M33 55H53.5208C55.73 55 57.5208 53.2091 57.5208 51V30.5192V25.9126C57.5208 24.854 57.1012 23.8386 56.3539 23.0888L51.9111 18.6313C51.5083 18.2272 50.9612 18 50.3906 18H43.2604H37.7756H33C30.7909 18 29 19.7909 29 22V51C29 53.2091 30.7909 55 33 55Z" fill="#878C98"></path><g opacity="0.5"><path d="M27 61H47.5208C49.73 61 51.5208 59.2091 51.5208 57V36.5192V31.9126C51.5208 30.854 51.1012 29.8386 50.3539 29.0888L45.9111 24.6313C45.5083 24.2272 44.9612 24 44.3906 24H37.2604H31.7756H27C24.7909 24 23 25.7909 23 28V57C23 59.2091 24.7909 61 27 61Z" fill="#878C98"></path></g><path d="M37.3135 37.4121H35.7852V40H34.291V32.8027H37.4258C38.1484 32.8027 38.7246 32.9883 39.1543 33.3594C39.584 33.7305 39.7988 34.305 39.7988 35.083C39.7988 35.9326 39.584 36.5332 39.1543 36.8848C38.7246 37.2363 38.111 37.4121 37.3135 37.4121ZM38.0166 35.9131C38.2119 35.7406 38.3096 35.4671 38.3096 35.0928C38.3096 34.7184 38.2103 34.4515 38.0117 34.292C37.8164 34.1325 37.5413 34.0527 37.1865 34.0527H35.7852V36.1719H37.1865C37.5413 36.1719 37.818 36.0856 38.0166 35.9131ZM44.0273 40H40.9268V32.8027H44.0273C44.4733 32.8092 44.8444 32.8613 45.1406 32.959C45.6452 33.125 46.0537 33.4294 46.3662 33.8721C46.6169 34.2301 46.7878 34.6175 46.8789 35.0342C46.9701 35.4508 47.0156 35.848 47.0156 36.2256C47.0156 37.1826 46.8236 37.9932 46.4395 38.6572C45.9186 39.5524 45.1146 40 44.0273 40ZM45.1455 34.6387C44.9144 34.248 44.457 34.0527 43.7734 34.0527H42.3867V38.75H43.7734C44.4831 38.75 44.9779 38.4001 45.2578 37.7002C45.4108 37.3161 45.4873 36.8587 45.4873 36.3281C45.4873 35.5957 45.3734 35.0326 45.1455 34.6387ZM53.2559 34.0771H49.6475V35.7324H52.8066V36.9824H49.6475V40H48.1533V32.8125H53.2559V34.0771Z" fill="white"></path></g><defs><clipPath id="clip0_2460_1292"><rect width="80" height="80" fill="white"></rect></clipPath></defs>`,2)]])}var HM=B(zM,[[`render`,VM]]),UM={},WM={width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function GM(e,t){return S(),V(`svg`,WM,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11 5H1V19H11V5ZM19 5H13V19H23V9.2L19 5Z`,fill:`currentColor`},null,-1)]])}var KM=B(UM,[[`render`,GM]]),qM={},JM={width:`10`,height:`11`,viewBox:`0 0 10 11`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function YM(e,t){return S(),V(`svg`,JM,[...t[0]||=[c(`path`,{d:`M5 0.0517578C5.2793 0.0517578 5.47803 0.245117 5.47803 0.524414V7.59814L5.44043 8.74219L7.04639 6.98047L8.271 5.77734C8.35693 5.69141 8.48047 5.64844 8.60938 5.64844C8.87793 5.64844 9.07129 5.85254 9.07129 6.11572C9.07129 6.24463 9.02832 6.35742 8.92627 6.46484L5.35986 10.0366C5.25781 10.144 5.13428 10.1978 5 10.1978C4.86572 10.1978 4.74219 10.144 4.64014 10.0366L1.0791 6.46484C0.977051 6.35742 0.928711 6.24463 0.928711 6.11572C0.928711 5.85254 1.12207 5.64844 1.39062 5.64844C1.51953 5.64844 1.64844 5.69141 1.729 5.77734L2.95361 6.98047L4.56494 8.74756L4.52197 7.59814V0.524414C4.52197 0.245117 4.7207 0.0517578 5 0.0517578Z`,fill:`currentColor`},null,-1)]])}var XM=B(qM,[[`render`,YM]]),ZM={},QM={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function $M(e,t){return S(),V(`svg`,QM,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M14.3596 8.35973L10.7499 11.9694L10.7499 2C10.7499 1.58579 10.4142 1.25 9.99994 1.25C9.58573 1.25 9.24994 1.58579 9.24994 2L9.24994 11.9694L5.64024 8.35973C5.34735 8.06683 4.87247 8.06683 4.57958 8.35973C4.28669 8.65262 4.28669 9.12749 4.57958 9.42039L9.46961 14.3104C9.7625 14.6033 10.2374 14.6033 10.5303 14.3104L15.4203 9.42039C15.7132 9.12749 15.7132 8.65262 15.4203 8.35973C15.1274 8.06683 14.6525 8.06683 14.3596 8.35973ZM2.99994 16.1538C2.58573 16.1538 2.24994 16.4896 2.24994 16.9038C2.24994 17.318 2.58573 17.6538 2.99994 17.6538H17.3076C17.7218 17.6538 18.0576 17.318 18.0576 16.9038C18.0576 16.4896 17.7218 16.1538 17.3076 16.1538H2.99994Z`,fill:`currentColor`},null,-1)]])}var eN=B(ZM,[[`render`,$M]]),tN={},nN={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function rN(e,t){return S(),V(`svg`,nN,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.53033 7.62131L3 8.15164L3.53033 8.68197L7.15164 12.3033L8.2123 11.2426L5.87132 8.90164H12.5607C14.0794 8.90164 15.3107 10.1329 15.3107 11.6516C15.3107 13.1704 14.0794 14.4016 12.5607 14.4016H5.06066V15.9016H12.5607C14.9079 15.9016 16.8107 13.9988 16.8107 11.6516C16.8107 9.30443 14.9079 7.40164 12.5607 7.40164H5.87132L8.2123 5.06066L7.15164 4L3.53033 7.62131Z`,fill:`currentColor`},null,-1)]])}var iN=B(tN,[[`render`,rN]]),aN={},oN={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function sN(e,t){return S(),V(`svg`,oN,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M16.2802 7.62131L16.8105 8.15164L16.2802 8.68197L12.6589 12.3033L11.5982 11.2426L13.9392 8.90164H7.24989C5.7311 8.90164 4.49989 10.1329 4.49989 11.6516C4.49989 13.1704 5.7311 14.4016 7.24989 14.4016H14.7499V15.9016H7.24989C4.90268 15.9016 2.99989 13.9988 2.99989 11.6516C2.99989 9.30443 4.90268 7.40164 7.24989 7.40164H13.9392L11.5982 5.06066L12.6589 4L16.2802 7.62131Z`,fill:`currentColor`},null,-1)]])}var cN=B(aN,[[`render`,sN]]),lN={},uN={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function dN(e,t){return S(),V(`svg`,uN,[...t[0]||=[c(`circle`,{cx:`10`,cy:`10`,r:`7`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var fN=B(lN,[[`render`,dN]]),pN={},mN={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function hN(e,t){return S(),V(`svg`,mN,[...t[0]||=[c(`g`,{id:`btn / close`},[c(`circle`,{id:`Ellipse 2704`,cx:`8`,cy:`8`,r:`7`,fill:`#999999`}),c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8.07107 7.29289L4.88909 4.11091L4.18198 4.81802L7.36396 8L4.18198 11.182L4.88909 11.8891L8.07107 8.70711L11.253 11.8891L11.9602 11.182L8.77817 8L11.9602 4.81802L11.253 4.11091L8.07107 7.29289Z`,fill:`white`})],-1)]])}var gN=B(pN,[[`render`,hN]]),_N={},vN={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function yN(e,t){return S(),V(`svg`,vN,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13.1666 7.25722V6C13.1666 4.52724 11.9727 3.33333 10.4999 3.33333C9.02716 3.33333 7.83325 4.52724 7.83325 6V7.25722H13.1666ZM10.4999 2C8.29078 2 6.49992 3.79086 6.49992 6V7.25722V7.33333H4.72214C4.23122 7.33333 3.83325 7.7313 3.83325 8.22222V17.1111C3.83325 17.602 4.23122 18 4.72214 18H16.2777C16.7686 18 17.1666 17.602 17.1666 17.1111V8.22222C17.1666 7.7313 16.7686 7.33333 16.2777 7.33333H14.4999V7.25722V6C14.4999 3.79086 12.7091 2 10.4999 2ZM5.16659 8.66667V16.6667H15.8333V8.66667H5.16659ZM7.50005 11.5707V13.0707H13.5001V11.5707H7.50005Z`,fill:`currentColor`},null,-1)]])}var bN=B(_N,[[`render`,yN]]),xN={},SN={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function CN(e,t){return S(),V(`svg`,SN,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M1.23895 11.6199C0.549718 10.9423 0.549717 9.84377 1.23895 9.16622L9.01111 1.52578L9.54595 1L10.0808 1.52578L15.0305 6.39164L15.5654 6.91742L15.0305 7.4432L10.7879 11.6139L7.95947 14.3944L7.73793 14.6122L7.42463 14.6122L4.5962 14.6122H4.2829L4.06136 14.3944L1.23895 11.6199ZM2.30864 10.2178C2.21017 10.3146 2.21017 10.4715 2.30864 10.5683L4.90951 13.1251H7.11133L7.76913 12.4784L3.88907 8.66413L2.30864 10.2178ZM9.71821 10.5624L8.83882 11.4269L4.95875 7.61257L9.54595 3.10311L13.426 6.91742L9.71821 10.5624ZM0 14.0216H1.19105L2.71691 15.5216H0V14.0216ZM15.5 15.5216H8.23701L9.76287 14.0216H15.5V15.5216Z`,fill:`currentColor`},null,-1)]])}var wN=B(xN,[[`render`,CN]]),TN={},EN={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function DN(e,t){return S(),V(`svg`,EN,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M9.56181 13.8733C9.85977 14.1611 10.3429 14.1611 10.6408 13.8733L14.7421 9.91282C15.0401 9.62509 15.0401 9.15858 14.7421 8.87085C14.4442 8.58311 13.9611 8.58311 13.6631 8.87085L10.75 11.6839L10.75 4C10.75 3.58579 10.4142 3.25 10 3.25C9.58581 3.25 9.25002 3.58579 9.25002 4L9.25003 11.4883L6.53951 8.87085C6.24155 8.58311 5.75846 8.58311 5.46049 8.87085C5.16253 9.15858 5.16253 9.62509 5.46049 9.91282L9.56181 13.8733ZM4 15.7543C3.58579 15.7543 3.25 16.0901 3.25 16.5043C3.25 16.9185 3.58579 17.2543 4 17.2543H16C16.4142 17.2543 16.75 16.9185 16.75 16.5043C16.75 16.0901 16.4142 15.7543 16 15.7543H4Z`,fill:`currentColor`},null,-1)]])}var ON=B(TN,[[`render`,DN]]),kN={},AN={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function jN(e,t){return S(),V(`svg`,AN,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11.8537 7.17423L8.5001 10.5279L8.5001 1.60001V1.10001H7.5001V1.60001L7.5001 10.5277L4.14666 7.17423L3.7931 6.82068L3.086 7.52778L3.43955 7.88134L7.64664 12.0884C7.8419 12.2837 8.15849 12.2837 8.35375 12.0884L12.5608 7.88134L12.9144 7.52778L12.2073 6.82068L11.8537 7.17423ZM1.6001 13.9H1.1001V14.9H1.6001H14.4001H14.9001V13.9H14.4001H1.6001Z`,fill:`currentColor`},null,-1)]])}var MN=B(kN,[[`render`,jN]]),NN={},PN={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function FN(e,t){return S(),V(`svg`,PN,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13.3033 12.5962L3.40381 2.69666L2.6967 3.40376L12.5962 13.3033L13.3033 12.5962ZM2 7.99996C2 7.99996 2.69777 6.96095 3.82074 5.94202L9.58576 11.707C9.08063 11.8902 8.54892 12 8 12C4.68629 12 2 7.99996 2 7.99996ZM14 7.99996C14 7.99996 13.3022 9.03896 12.1793 10.0579L6.41424 4.29288C6.91937 4.10972 7.45108 3.99996 8 3.99996C11.3137 3.99996 14 7.99996 14 7.99996Z`,fill:`currentColor`},null,-1)]])}var IN=B(NN,[[`render`,FN]]),LN={},RN={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function zN(e,t){return S(),V(`svg`,RN,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8 12C11.3137 12 14 8 14 8C14 8 11.3137 4 8 4C4.68629 4 2 8 2 8C2 8 4.68629 12 8 12ZM8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10Z`,fill:`currentColor`},null,-1)]])}var BN=B(LN,[[`render`,zN]]),VN={},HN={width:`20`,height:`21`,viewBox:`0 0 20 21`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function UN(e,t){return S(),V(`svg`,HN,[...t[0]||=[c(`path`,{d:`M17.5 10.5C17.5 14.6421 14.1421 18 10 18C5.85786 18 2.5 14.6421 2.5 10.5C2.5 6.35786 5.85786 3 10 3C14.1421 3 17.5 6.35786 17.5 10.5Z`,fill:`#FF6666`},null,-1),c(`path`,{d:`M12 8.5L8 12.5`,stroke:`white`,"stroke-width":`1.5`,"stroke-linecap":`square`,"stroke-linejoin":`round`},null,-1),c(`path`,{d:`M8 8.5L12 12.5`,stroke:`white`,"stroke-width":`1.5`,"stroke-linecap":`square`,"stroke-linejoin":`round`},null,-1)]])}var WN=B(VN,[[`render`,UN]]),GN={},KN={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function qN(e,t){return S(),V(`svg`,KN,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13.3107 1.25H2.25V18.75H17.75V5.68934L13.3107 1.25ZM12.689 2.75L16.25 6.311V17.25H3.75V2.75H12.689ZM15 8H5V12H15V8Z`,fill:`currentColor`},null,-1)]])}var JN=B(GN,[[`render`,qN]]),YN={},XN={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function ZN(e,t){return S(),V(`svg`,XN,[...t[0]||=[c(`path`,{d:`M16.5 7.75H15V3.5H3.5V17H8.5V18.5H2V2H16.5V7.75ZM19.0029 12.0068L12.6064 18.25H9.07129L9.10352 14.835L15.4668 8.47168L19.0029 12.0068ZM10.5977 15.4629L10.585 16.75H11.9951L16.8682 11.9941L15.4668 10.5928L10.5977 15.4629ZM10 10H5V8.5H10V10ZM13 6.5H5V5H13V6.5Z`,fill:`currentColor`},null,-1)]])}var QN=B(YN,[[`render`,ZN]]),$N={},eP={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function tP(e,t){return S(),V(`svg`,eP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13.3107 1.25H2.25V18.75H10V17.25H3.75V2.75H12.689L16.25 6.311V10H17.75V5.68934L13.3107 1.25ZM5 6H14V10H5V6ZM11.4945 15.1106L12.7372 13.5H17.5V16.5H12.6887L11.4945 15.1106ZM9.56053 15.1617L12 18H17.5H19V16.5V13.5V12H17.5H12L9.56053 15.1617Z`,fill:`currentColor`},null,-1)]])}var nP=B($N,[[`render`,tP]]),rP={},iP={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function aP(e,t){return S(),V(`svg`,iP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M6 1.25H5.25V2V4H6.75V2.75H14.0533L17.25 6.75603V17.1111V17.25H6.75V16H5.25V18V18.75H6H18H18.75V18V17.1111V6.49346V6.23089L18.5862 6.02566L15.0005 1.5322L14.7753 1.25H14.4143H6ZM2 4.95819H1.25V5.70819V15V16.1967L2.32698 15.675L4.83876 14.4582H11.7778H12.5278V13.7082V5.70819V4.95819H11.7778H2ZM2.75 13.8033V6.45819H11.0278V12.9582H4.66667H4.49457L4.33969 13.0332L2.75 13.8033ZM9.11107 11.8166H4.66663V10.3166H9.11107V11.8166ZM4.66663 8.97222H9.11107V7.47222H4.66663V8.97222Z`,fill:`currentColor`},null,-1)]])}var oP=B(rP,[[`render`,aP]]),sP={},cP={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function lP(e,t){return S(),V(`svg`,cP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M7.52941 14.5H0L7.52941 1.5V14.5ZM9.47059 13.5H14.2652L9.47059 5.2218V13.5ZM16 14.5H14.8444H9.47059H8.47059V13.5V3.49524V1.5L9.47059 3.22656L15.4208 13.5L16 14.5Z`,fill:`currentColor`},null,-1)]])}var uP=B(sP,[[`render`,lP]]),dP={},fP={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function pP(e,t){return S(),V(`svg`,fP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M15.5 7.5H13.1353H1.5H0.5V6.5V1.60353V0.5L1.5 0.966667L13.3571 6.5L15.5 7.5ZM10.9924 6.5H1.5V2.0702L10.9924 6.5ZM15.5 8.5H0.5V15.5L15.5 8.5Z`,fill:`currentColor`},null,-1)]])}var mP=B(dP,[[`render`,pP]]),hP={},gP={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function _P(e,t){return S(),V(`svg`,gP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M9.1853 17.5647L9.1853 11.5647L9.1853 10.8147L8.4353 10.8147L2.4353 10.8147L2.4353 12.3147L6.62476 12.3147L2.43018 16.5093L3.49084 17.5699L7.6853 13.3755L7.6853 17.5647L9.1853 17.5647Z`,fill:`currentColor`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.8147 2.4353L10.8147 8.4353L10.8147 9.1853L11.5647 9.1853L17.5647 9.1853L17.5647 7.6853L13.3752 7.6853L17.5698 3.49072L16.5092 2.43006L12.3147 6.62453L12.3147 2.4353L10.8147 2.4353Z`,fill:`currentColor`},null,-1)]])}var vP=B(hP,[[`render`,_P]]),yP={},bP={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function xP(e,t){return S(),V(`svg`,bP,[...t[0]||=[c(`path`,{d:`M9.67969 14.522C10.3628 14.4157 10.9629 14.3756 11.4746 14.4155C11.9833 14.4552 12.4468 14.5773 12.8174 14.8325C13.1975 15.0943 13.5078 15.4174 13.7041 15.8159C13.8659 16.1445 13.9455 16.4703 13.9326 16.8198C13.9289 16.9195 13.9157 17.0177 13.8984 17.1147L13.9844 17.0962L14.1963 17.0444L14.6768 16.9155L14.9326 16.8423L15.4893 16.6714L16.0918 16.4751L16.7461 16.2505L17.4443 16.0005L18.2061 15.7183L18.7451 15.5181L18.9678 16.0483L19.5527 17.4419L19.7959 18.02L19.208 18.2378L18.1543 18.6274L18.1475 18.6294L17.4961 18.8618L17.4893 18.8638L16.877 19.0737L16.8691 19.0767L16.2959 19.2632L16.291 19.2651C16.103 19.3247 15.9204 19.3801 15.7441 19.4321L15.7383 19.4341L15.2393 19.5747L15.2324 19.5776C15.0674 19.6222 14.9073 19.6628 14.7529 19.6997L14.7432 19.7017L14.3154 19.7964L14.3047 19.7983C13.6975 19.9213 13.1612 19.9787 12.6992 19.9487C12.2351 19.9186 11.8065 19.7979 11.4619 19.5278C10.9218 19.1043 10.6791 18.4958 10.7568 17.854C10.7752 17.7026 10.8008 17.5721 10.8525 17.4175L10.8564 17.4058L10.8613 17.394L10.9316 17.2095L10.9355 17.1987L10.9395 17.189L10.9951 17.0562C10.9659 17.0572 10.9343 17.0578 10.9004 17.0601L10.8994 17.0591L10.668 17.0815L10.667 17.0806C10.6339 17.0844 10.5997 17.0886 10.5645 17.0933L10.5654 17.0942L10.2754 17.1372L9.96777 17.1929L9.61621 17.2651L9.2207 17.356L9.21973 17.355C9.1549 17.3703 9.0889 17.3873 9.02148 17.4038L8.58984 17.5122L8.12207 17.6372L8.12305 17.6382L7.62402 17.7778L7.625 17.7788L6.80957 18.021L6.80859 18.02L5.93457 18.2954L5.93359 18.2944L4.99902 18.6011L5 18.6021L3.99121 18.9448L3.28125 19.1958L3.28027 19.1948L2.54883 19.4575L1.7832 19.7397L1.24219 19.938L1.02246 19.4048L0.445312 18.0083L0.207031 17.4302L0.793945 17.2153L2.03027 16.7632L2.03516 16.7612H2.03613L3.19824 16.3491L3.2041 16.3472L4.29395 15.9741L4.2998 15.9722L4.98633 15.7456L4.99219 15.7437L5.64746 15.5356L5.6543 15.5337L6.27734 15.3433L6.28516 15.3403L6.87793 15.1675L6.88672 15.1655L7.44922 15.0103L7.45898 15.0083L7.99121 14.8716L8.00293 14.8687L8.50488 14.7495L8.51172 14.7476C8.59506 14.7288 8.67772 14.7111 8.75879 14.6938L8.76562 14.6919L9.22461 14.6001L9.23242 14.5991L9.24023 14.5972L9.66992 14.5239L9.67969 14.522ZM11.5908 18.8149C11.608 18.8371 11.6284 18.857 11.6475 18.8784C11.6207 18.8482 11.595 18.8178 11.5713 18.7866L11.5908 18.8149ZM17.2949 18.2954L16.6826 18.5054L16.1094 18.6919C15.9248 18.7504 15.7464 18.8051 15.5742 18.856V18.8569C15.7463 18.8061 15.9249 18.7513 16.1094 18.6929L16.6826 18.5054L17.2949 18.2964L17.9463 18.064L17.2949 18.2954ZM7.4541 17.2026V17.2036L7.95996 17.061V17.0601L7.4541 17.2026ZM10.1787 16.5454L9.84766 16.605L9.48438 16.6802L9.08789 16.77V16.771L9.48438 16.6812L9.84766 16.606L10.1787 16.5464L10.4756 16.5005L10.1787 16.5454Z`,fill:`#64BC38`},null,-1),c(`path`,{d:`M7.77779 14.4352L2.12094 15.8494L3.53515 10.1925L9.88875 3.83891L14.1314 8.08155L7.77779 14.4352ZM14.8385 7.37444L10.5959 3.1318L12.7275 1.00012L16.9702 5.24276L14.8385 7.37444Z`,fill:`#43474D`},null,-1)]])}var SP=B(yP,[[`render`,xP]]),CP={},wP={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function TP(e,t){return S(),V(`svg`,wP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.5 3.5H16.5V16.5H3.5V3.5ZM2 2H3.5H16.5H18V3.5V16.5V18H16.5H3.5H2V16.5V3.5V2ZM14.2461 14.9961H11.6868V13.4961H13.4961V11.6893H14.9961V14.2461V14.9961H14.2461ZM13.4961 6.5H11.6868V5H14.2461H14.9961V5.75V8.3078H13.4961V6.5ZM6.5 6.5H8.30664V5H5.75H5V5.75V8.3078H6.5V6.5ZM5.75 14.9961H8.30664V13.4961H6.5V11.6893H5V14.2461V14.9961H5.75Z`,fill:`currentColor`},null,-1)]])}var EP=B(CP,[[`render`,TP]]),DP={},OP={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function kP(e,t){return S(),V(`svg`,OP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M5.06066 4.35359L4.35355 3.64648L0 8.00004L4.35355 12.3536L5.06066 11.6465L1.91418 8.5H56V7.5H1.91425L5.06066 4.35359Z`,fill:`currentColor`},null,-1)]])}var AP=B(DP,[[`render`,kP]]),jP={},MP={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function NP(e,t){return S(),V(`svg`,MP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M1 7.5V5.5H0V7.5V8.5V10.5H1V8.5H56V7.5H1Z`,fill:`currentColor`},null,-1)]])}var PP=B(jP,[[`render`,NP]]),FP={},IP={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function LP(e,t){return S(),V(`svg`,IP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0 8C0 6.34315 1.34315 5 3 5C4.4865 5 5.72048 6.08114 5.95852 7.5H56V8.5H5.95852C5.72048 9.91886 4.4865 11 3 11C1.34315 11 0 9.65685 0 8Z`,fill:`currentColor`},null,-1)]])}var RP=B(FP,[[`render`,LP]]),zP={},BP={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function VP(e,t){return S(),V(`svg`,BP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M5 8.5V12L0 8L5 4V7.5H56V8.5H5Z`,fill:`currentColor`},null,-1)]])}var HP=B(zP,[[`render`,VP]]),UP={},WP={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function GP(e,t){return S(),V(`svg`,WP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0 8L4 4L7.5 7.5H56V8.5H7.5L4 12L0 8Z`,fill:`currentColor`},null,-1)]])}var KP=B(UP,[[`render`,GP]]),qP={},JP={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function YP(e,t){return S(),V(`svg`,JP,[...t[0]||=[c(`path`,{d:`M56 7.5V8.5H0V7.5H56Z`,fill:`currentColor`},null,-1)]])}var XP=B(qP,[[`render`,YP]]),ZP={},QP={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function $P(e,t){return S(),V(`svg`,QP,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0 7.5V5L4.16667 7.5H56V8.5H4.16667L0 11V8.5V7.5Z`,fill:`currentColor`},null,-1)]])}var eF=B(ZP,[[`render`,$P]]),tF={},nF={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function rF(e,t){return S(),V(`svg`,nF,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0 5.87004L0.508793 5L4.25147 7.5H56V8.5H4.25147L0.508793 11L0 10.13L3.19004 8L0 5.87004Z`,fill:`currentColor`},null,-1)]])}var iF=B(tF,[[`render`,rF]]),aF={},oF={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function sF(e,t){return S(),V(`svg`,oF,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3 6.66667L2.5 6L0 9.33333L0.5 10L1.625 8.5H56V7.5H2.375L3 6.66667Z`,fill:`currentColor`},null,-1)]])}var cF=B(aF,[[`render`,sF]]),lF={},uF={width:`56`,height:`16`,viewBox:`0 0 56 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function dF(e,t){return S(),V(`svg`,uF,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0 5H6V7.5H56V8.5H6V11H0V8.5V7.5V5Z`,fill:`currentColor`},null,-1)]])}var fF=B(lF,[[`render`,dF]]),pF={},mF={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function hF(e,t){return S(),V(`svg`,mF,[...t[0]||=[c(`circle`,{cx:`8`,cy:`7.99976`,r:`7`,fill:`currentColor`},null,-1),c(`path`,{d:`M7.40967 10.8826H8.47852V11.9998H7.40967V10.8826ZM5.59961 6.58032C5.59961 5.80688 5.81803 5.18563 6.25488 4.71655C6.69173 4.2439 7.2915 4.00757 8.0542 4.00757C8.7596 4.00757 9.32357 4.20988 9.74609 4.6145C10.1722 5.01554 10.3853 5.52938 10.3853 6.15601C10.3853 6.53556 10.3065 6.84351 10.1489 7.07983C9.99495 7.31616 9.68164 7.66349 9.20898 8.12183C8.86523 8.45483 8.64144 8.73771 8.5376 8.97046C8.43734 9.19963 8.38721 9.53979 8.38721 9.99097H7.43115C7.43115 9.47892 7.49202 9.06714 7.61377 8.75562C7.73551 8.44051 8.00228 8.08065 8.41406 7.67603L8.84375 7.25171C8.97266 7.12996 9.0765 7.00285 9.15527 6.87036C9.2985 6.63761 9.37012 6.39591 9.37012 6.14526C9.37012 5.79435 9.26449 5.48999 9.05322 5.23218C8.84554 4.97437 8.5 4.84546 8.0166 4.84546C7.41862 4.84546 7.00505 5.06746 6.77588 5.51147C6.64697 5.75854 6.57357 6.11483 6.55566 6.58032H5.59961Z`,fill:`white`},null,-1)]])}var gF=B(pF,[[`render`,hF]]),_F={},vF={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function yF(e,t){return S(),V(`svg`,vF,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2 2H20L18 18H0L2 2Z`,fill:`#FEF87C`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M15.6078 15.5L10.6964 3.22145H9.30364L4.39223 15.5H3V16.5H7V15.5H6.00776L7.10772 12.75H12.8923L13.9922 15.5H13V16.5H17V15.5H15.6078ZM12.4923 11.75L10 5.51899L7.5077 11.75H12.4923Z`,fill:`currentColor`},null,-1)]])}var bF=B(_F,[[`render`,yF]]),xF={},SF={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function CF(e,t){return S(),V(`svg`,SF,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M19 2.79999H2.8L1 17.2H17.2L19 2.79999ZM10.333 3.83661L14.7334 14.8375H15.85V15.9625H12.25V14.8375H12.9159L12.016 12.5875H7.08332L6.18337 14.8375H6.85V15.9625H3.25V14.8375H4.3659L8.76624 3.83661H10.333ZM9.54964 6.42134L11.566 11.4625H7.5333L9.54964 6.42134Z`,fill:`currentColor`},null,-1)]])}var wF=B(xF,[[`render`,CF]]),TF={},EF={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function DF(e,t){return S(),V(`svg`,EF,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.1722 3.67907C9.75796 3.67907 9.42218 3.34328 9.42218 2.92907V1.75C9.42218 1.33579 9.75796 1 10.1722 1C10.5864 1 10.9222 1.33579 10.9222 1.75V2.92907C10.9222 3.34328 10.5864 3.67907 10.1722 3.67907ZM10.0862 13.3672C11.9032 13.3672 13.3761 11.8942 13.3761 10.0772C13.3761 8.26024 11.9032 6.78727 10.0862 6.78727C8.26916 6.78727 6.79619 8.26024 6.79619 10.0772C6.79619 11.8942 8.26916 13.3672 10.0862 13.3672ZM10.0862 14.8672C12.7316 14.8672 14.8761 12.7227 14.8761 10.0772C14.8761 7.43181 12.7316 5.28727 10.0862 5.28727C7.44074 5.28727 5.29619 7.43181 5.29619 10.0772C5.29619 12.7227 7.44074 14.8672 10.0862 14.8672ZM14.7612 4.51466C14.468 4.80718 14.468 5.28144 14.7612 5.57395C15.0545 5.86646 15.53 5.86646 15.8233 5.57395L16.6592 4.74023C16.9524 4.44771 16.9524 3.97345 16.6592 3.68094C16.3659 3.38842 15.8904 3.38842 15.5971 3.68094L14.7612 4.51466ZM16.6633 10.1509C16.6633 9.73669 16.9991 9.4009 17.4133 9.4009H18.5954C19.0096 9.4009 19.3454 9.73669 19.3454 10.1509C19.3454 10.5651 19.0096 10.9009 18.5954 10.9009H17.4133C16.9991 10.9009 16.6633 10.5651 16.6633 10.1509ZM15.8233 14.7278C15.53 14.4353 15.0546 14.4353 14.7613 14.7278C14.468 15.0203 14.468 15.4946 14.7613 15.7871L15.5972 16.6208C15.8904 16.9134 16.3659 16.9134 16.6592 16.6208C16.9525 16.3283 16.9525 15.8541 16.6592 15.5615L15.8233 14.7278ZM10.1721 16.6227C10.5863 16.6227 10.9221 16.9585 10.9221 17.3727V18.5517C10.9221 18.966 10.5863 19.3017 10.1721 19.3017C9.75784 19.3017 9.42206 18.966 9.42206 18.5517V17.3727C9.42206 16.9585 9.75784 16.6227 10.1721 16.6227ZM5.58357 15.7871C5.87684 15.4946 5.87684 15.0204 5.58357 14.7279C5.2903 14.4353 4.81481 14.4353 4.52154 14.7279L3.68565 15.5616C3.39238 15.8541 3.39238 16.3284 3.68565 16.6209C3.97893 16.9134 4.45441 16.9134 4.74769 16.6209L5.58357 15.7871ZM3.68212 10.1509C3.68212 10.5651 3.34633 10.9009 2.93212 10.9009H1.75C1.33579 10.9009 1 10.5651 1 10.1509C1 9.7367 1.33579 9.40091 1.75 9.40091H2.93212C3.34633 9.40091 3.68212 9.7367 3.68212 10.1509ZM4.52151 5.57399C4.81478 5.8665 5.29027 5.8665 5.58354 5.57399C5.87681 5.28147 5.87681 4.80721 5.58354 4.5147L4.74765 3.68098C4.45438 3.38846 3.97889 3.38846 3.68562 3.68098C3.39235 3.97349 3.39235 4.44775 3.68562 4.74026L4.52151 5.57399Z`,fill:`currentColor`},null,-1)]])}var OF=B(TF,[[`render`,DF]]),kF={},AF={width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function jF(e,t){return S(),V(`svg`,AF,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M22.5 5H2.5V19H22.5V5ZM6.34628 13.75L6.6731 12.7365H8.05023L8.37455 13.75H8.96333L7.66353 10H7.05979L5.76 13.75H6.34628ZM7.90054 12.2687H6.82279L7.33921 10.6575H7.38162L7.90054 12.2687ZM12 18V6H13V18H12ZM18.0694 12.6923C18.0694 13.3498 17.6078 13.75 16.8394 13.75H15.36V10H16.807C17.4831 10 17.8897 10.3586 17.8897 10.933V10.9381C17.8897 11.328 17.6128 11.6788 17.2585 11.7412V11.7853C17.745 11.8399 18.0694 12.1985 18.0694 12.6871V12.6923ZM15.9188 11.5956H16.5825C17.0764 11.5956 17.3334 11.4033 17.3334 11.0395V11.0343C17.3334 10.6809 17.0914 10.4756 16.6773 10.4756H15.9188V11.5956ZM16.7272 13.2744H15.9188V12.04H16.6947C17.2211 12.04 17.498 12.2479 17.498 12.6507V12.6559C17.498 13.0587 17.2311 13.2744 16.7272 13.2744Z`,fill:`currentColor`},null,-1)]])}var MF=B(kF,[[`render`,jF]]),NF={},PF={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function FF(e,t){return S(),V(`svg`,PF,[...t[0]||=[c(`g`,{id:`subtoolbar / mytools / image`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M1.25 3.25H18.75V16.75H1.25V3.25ZM17.25 4.75H2.75V13.2095L5.79496 10L10.0643 13.5L12.3718 11.0678L17.1442 15.25H17.25V4.75ZM14.5 9C15.3284 9 16 8.32843 16 7.5C16 6.67157 15.3284 6 14.5 6C13.6716 6 13 6.67157 13 7.5C13 8.32843 13.6716 9 14.5 9Z`,fill:`currentColor`})],-1)]])}var IF=B(NF,[[`render`,FF]]),LF={},RF={width:`112`,height:`112`,viewBox:`0 0 112 112`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function zF(e,t){return S(),V(`svg`,RF,[...t[0]||=[v(`<rect x="20" y="30" width="58" height="44" rx="3.168" fill="#4982E6" fill-opacity="0.15"></rect><rect x="20.5" y="30.5" width="57" height="43" rx="2.668" stroke="#6499FF" stroke-dasharray="4 4"></rect><path fill-rule="evenodd" clip-rule="evenodd" d="M30 41.168C30 39.4184 31.4184 38 33.168 38H84.832C86.5816 38 88 39.4184 88 41.168V78.832C88 80.5816 86.5816 82 84.832 82H33.168C31.4184 82 30 80.5816 30 78.832L30 41.168Z" fill="#54575C"></path><path d="M54.3145 68.1748L61.8379 61L79.1396 76H36V58.8799L38.7393 56L54.3145 68.1748ZM77 44C79.7614 44 82 46.2386 82 49C82 51.7614 79.7614 54 77 54C74.2386 54 72 51.7614 72 49C72 46.2386 74.2386 44 77 44Z" fill="#606773"></path><path d="M92.2368 71.6312C92.9284 71.8387 93.0893 72.7448 92.5116 73.178L90.3503 74.798L92.04 76.4878C92.3835 76.8314 92.3836 77.3885 92.04 77.7321L90.7957 78.9764C90.452 79.3201 89.895 79.32 89.5513 78.9764L87.8616 77.2867L86.2409 79.4488C85.8077 80.0262 84.9017 79.8653 84.6941 79.1739L81.4617 68.3982L92.2368 71.6312Z" fill="#6499FF"></path>`,5)]])}var BF=B(LF,[[`render`,zF]]),VF={},HF={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function UF(e,t){return S(),V(`svg`,HF,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.6374 2.96451C10.3413 2.67483 9.8613 2.67483 9.56523 2.96451L5.46391 6.97719C5.16784 7.26687 5.16784 7.73652 5.46391 8.0262C5.75999 8.31588 6.24002 8.31588 6.53609 8.0262L9.25012 5.37083L9.25012 12.8271C9.25012 13.2413 9.58591 13.5771 10.0001 13.5771C10.4143 13.5771 10.7501 13.2413 10.7501 12.8271L10.7501 5.17281L13.6665 8.0262C13.9626 8.31588 14.4426 8.31588 14.7387 8.0262C15.0348 7.73652 15.0348 7.26687 14.7387 6.97719L10.6374 2.96451ZM4 15.7516C3.58579 15.7516 3.25 16.0873 3.25 16.5016C3.25 16.9158 3.58579 17.2516 4 17.2516H16C16.4142 17.2516 16.75 16.9158 16.75 16.5016C16.75 16.0873 16.4142 15.7516 16 15.7516H4Z`,fill:`currentColor`},null,-1)]])}var WF=B(VF,[[`render`,UF]]),GF={},KF={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function qF(e,t){return S(),V(`svg`,KF,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M15.644 4.97046V3.22046H14.144V4.97046H12.394V6.47046H14.144V8.22046H15.644V6.47046H17.394V4.97046H15.644ZM13.2075 14.7785L9.29604 4.99995H7.90332L3.9919 14.7785H3V15.7785H6.2V14.7785H5.60744L6.4074 12.7785H10.792L11.5919 14.7785H11V15.7785H14.2V14.7785H13.2075ZM10.392 11.7785L8.59968 7.29749L6.80738 11.7785H10.392Z`,fill:`currentColor`},null,-1)]])}var JF=B(GF,[[`render`,qF]]),YF={},XF={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function ZF(e,t){return S(),V(`svg`,XF,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M1.57675 19.1757L1 17.7787L2.23629 17.3267L3.39858 16.9142L4.48804 16.5416L5.17445 16.3153L5.82936 16.1069L6.4531 15.9162L7.04603 15.7435L7.60849 15.5886L8.14082 15.4517L8.64337 15.3328C8.72467 15.3145 8.80474 15.297 8.88359 15.2802L9.34212 15.1884L9.77173 15.1147C11.0868 14.91 11.972 14.9785 12.4769 15.3262C12.7932 15.544 13.0243 15.7942 13.1655 16.0808C13.4151 16.5876 13.3721 16.9889 13.1388 17.5664L13.0118 17.8607L13.1178 17.8549C13.3318 17.8376 13.6024 17.7943 13.926 17.7239L14.1265 17.6785L14.3516 17.6235L14.8394 17.4928C14.9249 17.4688 15.0125 17.4435 15.1022 17.4171L15.6652 17.245L16.2781 17.0452L16.9408 16.8178L17.653 16.5629L18.4146 16.2803L19 17.6741L17.9462 18.0639L17.2946 18.2959L16.6828 18.5054L16.1097 18.6922C15.925 18.7507 15.7466 18.8054 15.5744 18.8563L15.076 18.9974C14.9159 19.0406 14.7618 19.0799 14.6135 19.1154L14.186 19.2101C13.0235 19.4455 12.271 19.399 11.8322 19.0549C11.4563 18.7602 11.3001 18.3582 11.3527 17.9256C11.3673 17.8051 11.3855 17.7161 11.4219 17.6072L11.4922 17.4224L11.6818 16.9751L11.7255 16.8448C11.7439 16.7759 11.7424 16.7393 11.7305 16.715C11.7102 16.674 11.6563 16.6156 11.5457 16.5395C11.436 16.4639 11.2053 16.4374 10.8597 16.4606L10.6123 16.4834C10.5683 16.4885 10.5228 16.4941 10.476 16.5004L10.1783 16.5455L9.84745 16.6054L9.48395 16.6803L9.08816 16.7701C9.01952 16.7863 8.94956 16.8031 8.87827 16.8206L8.43479 16.933L7.95999 17.0604L7.45428 17.203L6.63861 17.4454L5.75561 17.7221L4.80659 18.0333L3.79289 18.3792L3.08181 18.6292L2.34296 18.8946L1.57675 19.1757Z`,fill:`#64BC38`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M12.7275 1.00012L16.9702 5.24276L14.8385 7.37449L10.5958 3.13185L12.7275 1.00012ZM9.8887 3.83896L3.53515 10.1925L2.12094 15.8494L7.77779 14.4352L14.1313 8.0816L9.8887 3.83896Z`,fill:`currentColor`},null,-1)]])}var QF=B(YF,[[`render`,ZF]]),$F={},eI={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function tI(e,t){return S(),V(`svg`,eI,[...t[0]||=[c(`g`,{id:`btn / close`},[c(`circle`,{id:`Ellipse 2704`,cx:`8`,cy:`8`,r:`7`,fill:`#999999`}),c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8.07107 7.29289L4.88909 4.11091L4.18198 4.81802L7.36396 8L4.18198 11.182L4.88909 11.8891L8.07107 8.70711L11.253 11.8891L11.9602 11.182L8.77817 8L11.9602 4.81802L11.253 4.11091L8.07107 7.29289Z`,fill:`white`})],-1)]])}var nI=B($F,[[`render`,tI]]),rI={},iI={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function aI(e,t){return S(),V(`svg`,iI,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.4216 5.35913H9.36765V3.85913H13.3676V5.35913H11.9745L9.48752 14.6409H10.6323V16.1409H6.63232V14.6409H7.9346L10.4216 5.35913Z`,fill:`currentColor`},null,-1)]])}var oI=B(rI,[[`render`,aI]]),sI={},cI={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function lI(e,t){return S(),V(`svg`,cI,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M9.66731 5.69934H4.95164C5.55909 7.3715 6.21384 8.67697 7.20164 9.69698C8.25354 8.61248 9.07042 7.29169 9.66731 5.69934ZM7.10864 12.0565C8.00383 12.7036 9.11299 13.2183 10.5512 13.6401C10.8845 13.7378 11.2212 13.6119 11.4102 13.3203C11.737 12.816 11.5079 12.0098 10.9339 11.8314C9.98576 11.5368 9.19688 11.1854 8.52747 10.7657C9.81068 9.40566 10.8127 7.73499 11.5524 5.69934H12.728C13.1647 5.69934 13.5188 5.34529 13.5188 4.90854C13.5188 4.47179 13.1647 4.11774 12.728 4.11774H8.17084V2.83101C8.17084 2.37206 7.79878 2 7.33983 2C6.88087 2 6.50881 2.37206 6.50881 2.83101V4.11774H2.03207C1.59533 4.11774 1.24127 4.47179 1.24127 4.90854C1.24127 5.34529 1.59533 5.69934 2.03207 5.69934H3.17484C3.98444 7.92894 4.71182 9.60401 5.82738 10.8859C4.7777 11.6477 3.55589 12.2507 2.15289 12.7164C1.62074 12.893 1.42241 13.6068 1.71639 14.0842C1.91795 14.4116 2.29391 14.5417 2.6569 14.4151C4.36046 13.821 5.84041 13.0462 7.10864 12.0565ZM16.8629 16.017C16.8673 16.017 16.8712 16.0198 16.8725 16.024L17.2645 17.2744C17.3999 17.7062 17.7999 18 18.2524 18C18.9559 18 19.4545 17.3134 19.2369 16.6444L16.6144 8.58416C16.404 7.93763 15.8014 7.49998 15.1215 7.49998C14.4429 7.49998 13.8411 7.93598 13.6297 8.5808L10.9734 16.6831C10.7605 17.3323 11.2442 18 11.9275 18C12.3586 18 12.7416 17.7248 12.8792 17.3162L13.3142 16.024C13.3156 16.0198 13.3195 16.017 13.324 16.017H16.8629ZM16.2459 14.1065C16.2772 14.2326 16.1817 14.3546 16.0518 14.3546H14.1174C13.9868 14.3546 13.8913 14.2315 13.9237 14.105L14.9064 10.2685C14.9579 10.0672 15.2442 10.0683 15.2942 10.27L16.2459 14.1065Z`,fill:`currentColor`},null,-1)]])}var uI=B(sI,[[`render`,lI]]),dI={},fI={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function pI(e,t){return S(),V(`svg`,fI,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3 3H17V17H3V3ZM2 3C2 2.44772 2.44772 2 3 2H17C17.5523 2 18 2.44772 18 3V17C18 17.5523 17.5523 18 17 18H3C2.44772 18 2 17.5523 2 17V3ZM5.40381 5L15.3033 14.8995L14.5962 15.6066L4.6967 5.70711L5.40381 5ZM5.82074 8.24536C4.69777 9.2643 4 10.3033 4 10.3033C4 10.3033 6.68629 14.3033 10 14.3033C10.5489 14.3033 11.0806 14.1935 11.5858 14.0104L5.82074 8.24536ZM14.1793 12.3612C15.3022 11.3423 16 10.3033 16 10.3033C16 10.3033 13.3137 6.3033 10 6.3033C9.45108 6.3033 8.91937 6.41306 8.41424 6.59622L14.1793 12.3612Z`,fill:`currentColor`},null,-1)]])}var mI=B(dI,[[`render`,pI]]),hI={},gI={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function _I(e,t){return S(),V(`svg`,gI,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3 3H17V17H3V3ZM2 3C2 2.44772 2.44772 2 3 2H17C17.5523 2 18 2.44772 18 3V17C18 17.5523 17.5523 18 17 18H3C2.44772 18 2 17.5523 2 17V3ZM16 10C16 10 13.3137 14 10 14C6.68629 14 4 10 4 10C4 10 6.68629 6 10 6C13.3137 6 16 10 16 10ZM12 10C12 11.1046 11.1046 12 10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10Z`,fill:`currentColor`},null,-1)]])}var vI=B(hI,[[`render`,_I]]),yI={},bI={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function xI(e,t){return S(),V(`svg`,bI,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.5 3.5H13.3V13.3H3.5V3.5ZM2 2H3.5H13.3H14.8V3.5V5.2H16.5H18V6.7V16.5V18H16.5H6.7H5.2V16.5V14.8H3.5H2V13.3V3.5V2ZM6.7 14.8V16.5H16.5V6.7H14.8V13.3V14.8H13.3H6.7Z`,fill:`currentColor`},null,-1)]])}var SI=B(yI,[[`render`,xI]]),CI={},wI={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function TI(e,t){return S(),V(`svg`,wI,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M9.99938 3.50634C9.58517 3.50634 9.24938 3.17055 9.24938 2.75634V1.57727C9.24938 1.16306 9.58517 0.827271 9.99938 0.827271C10.4136 0.827271 10.7494 1.16306 10.7494 1.57727V2.75634C10.7494 3.17055 10.4136 3.50634 9.99938 3.50634ZM14.7034 9.9044C14.7034 12.5498 12.5589 14.6944 9.91347 14.6944C7.26804 14.6944 5.1235 12.5498 5.1235 9.9044C5.1235 7.25898 7.26804 5.11444 9.91347 5.11444C12.5589 5.11444 14.7034 7.25898 14.7034 9.9044ZM14.5886 4.34193C14.2954 4.63444 14.2954 5.1087 14.5886 5.40121C14.8819 5.69373 15.3574 5.69373 15.6507 5.40121L16.4865 4.56749C16.7798 4.27497 16.7798 3.80071 16.4865 3.5082C16.1933 3.21569 15.7178 3.21569 15.4245 3.5082L14.5886 4.34193ZM16.4906 9.97809C16.4906 9.56388 16.8264 9.22809 17.2406 9.22809H18.4227C18.837 9.22809 19.1727 9.56388 19.1727 9.97809C19.1727 10.3923 18.837 10.7281 18.4227 10.7281H17.2406C16.8264 10.7281 16.4906 10.3923 16.4906 9.97809ZM15.6507 14.555C15.3574 14.2624 14.8819 14.2624 14.5887 14.555C14.2954 14.8475 14.2954 15.3217 14.5887 15.6142L15.4245 16.448C15.7178 16.7405 16.1933 16.7405 16.4866 16.448C16.7798 16.1555 16.7798 15.6812 16.4866 15.3887L15.6507 14.555ZM9.99947 16.4497C10.4137 16.4497 10.7495 16.7855 10.7495 17.1997V18.3788C10.7495 18.793 10.4137 19.1288 9.99947 19.1288C9.58526 19.1288 9.24947 18.793 9.24947 18.3788V17.1997C9.24947 16.7855 9.58526 16.4497 9.99947 16.4497ZM5.41081 15.6142C5.70408 15.3217 5.70408 14.8474 5.41081 14.5549C5.11754 14.2624 4.64205 14.2624 4.34878 14.5549L3.51289 15.3887C3.21962 15.6812 3.21962 16.1554 3.51289 16.4479C3.80616 16.7405 4.28165 16.7405 4.57492 16.4479L5.41081 15.6142ZM3.50939 9.97805C3.50939 10.3923 3.1736 10.728 2.75939 10.728H1.57727C1.16306 10.728 0.827271 10.3923 0.827271 9.97805C0.827271 9.56384 1.16306 9.22805 1.57727 9.22805H2.75939C3.1736 9.22805 3.50939 9.56384 3.50939 9.97805ZM4.34874 5.40119C4.64201 5.6937 5.1175 5.6937 5.41077 5.40119C5.70405 5.10867 5.70405 4.63442 5.41077 4.3419L4.57489 3.50818C4.28162 3.21566 3.80613 3.21566 3.51286 3.50818C3.21958 3.80069 3.21958 4.27495 3.51286 4.56746L4.34874 5.40119Z`,fill:`currentColor`},null,-1)]])}var EI=B(CI,[[`render`,TI]]),DI={},OI={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function kI(e,t){return S(),V(`svg`,OI,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.55957 5.99906L5.25088 3.30963L7.94031 6.00094L7.17136 6.76935L5.79198 5.38893L5.79519 14.6079L7.17142 13.2307L7.94037 13.9991L5.25094 16.6904L2.55963 14.001L3.32804 13.232L4.70812 14.6105L4.7049 5.39264L3.32798 6.76801L2.55957 5.99906Z`,fill:`currentColor`},null,-1),c(`rect`,{x:`9.44043`,y:`4.75`,width:`8`,height:`1.5`,fill:`currentColor`},null,-1),c(`rect`,{x:`9.44043`,y:`9.25`,width:`8`,height:`1.5`,fill:`currentColor`},null,-1),c(`rect`,{x:`9.44043`,y:`13.75`,width:`8`,height:`1.5`,fill:`currentColor`},null,-1)]])}var AI=B(DI,[[`render`,kI]]),jI={},MI={width:`87`,height:`4`,viewBox:`0 0 87 4`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function NI(e,t){return S(),V(`svg`,MI,[...t[0]||=[c(`path`,{d:`M1 0C1 1.36964 2.14004 2.49993 3.57129 2.5C5.00261 2.5 6.14258 1.36969 6.14258 0H7.14258C7.14258 1.36955 8.28275 2.49978 9.71387 2.5C11.0557 2.5 12.1419 1.50662 12.2725 0.253906L12.2861 0H13.2861C13.2861 1.36969 14.4261 2.5 15.8574 2.5C17.1991 2.49986 18.2845 1.50652 18.415 0.253906L18.4287 0H19.4287C19.4287 1.36969 20.5687 2.5 22 2.5C23.4313 2.5 24.5713 1.36969 24.5713 0H25.5713C25.5713 1.3696 26.7114 2.49985 28.1426 2.5C29.5739 2.5 30.7139 1.36969 30.7139 0H31.7139C31.7139 1.36969 32.8548 2.5 34.2861 2.5C35.6278 2.49979 36.7132 1.50648 36.8438 0.253906L36.8574 0H37.8574C37.8574 1.36969 38.9974 2.5 40.4287 2.5C41.86 2.49993 43 1.36964 43 0H44C44 1.36964 45.14 2.49993 46.5713 2.5C48.0026 2.5 49.1426 1.36969 49.1426 0H50.1426C50.1426 1.36955 51.2827 2.49978 52.7139 2.5C54.0557 2.5 55.1419 1.50662 55.2725 0.253906L55.2861 0H56.2861C56.2861 1.36969 57.4261 2.5 58.8574 2.5C60.1991 2.49986 61.2845 1.50652 61.415 0.253906L61.4287 0H62.4287C62.4287 1.36969 63.5687 2.5 65 2.5C66.4313 2.5 67.5713 1.36969 67.5713 0H68.5713C68.5713 1.3696 69.7114 2.49985 71.1426 2.5C72.5739 2.5 73.7139 1.36969 73.7139 0H74.7139C74.7139 1.36969 75.8548 2.5 77.2861 2.5C78.6278 2.4998 79.7132 1.50648 79.8438 0.253906L79.8574 0H80.8574C80.8574 1.36969 81.9974 2.5 83.4287 2.5C84.86 2.49993 86 1.36964 86 0H87C87 1.94398 85.3899 3.49993 83.4287 3.5C82.1277 3.5 80.981 2.81549 80.3564 1.78711C79.7319 2.81503 78.5867 3.49986 77.2861 3.5C75.9849 3.5 74.8383 2.81484 74.2139 1.78613C73.5894 2.81463 72.4436 3.5 71.1426 3.5C69.8415 3.4999 68.6957 2.8147 68.0713 1.78613C67.4468 2.8147 66.3011 3.5 65 3.5C63.6989 3.5 62.5532 2.8147 61.9287 1.78613C61.3043 2.8147 60.1585 3.4999 58.8574 3.5C57.5562 3.5 56.4096 2.81487 55.7852 1.78613C55.1607 2.8146 54.0149 3.5 52.7139 3.5C51.4132 3.49985 50.267 2.81527 49.6426 1.78711C49.018 2.81525 47.8721 3.5 46.5713 3.5C45.2699 3.49995 44.1243 2.81412 43.5 1.78516C42.8757 2.81412 41.7301 3.49995 40.4287 3.5C39.1277 3.5 37.981 2.81549 37.3564 1.78711C36.7319 2.81503 35.5867 3.49985 34.2861 3.5C32.9849 3.5 31.8383 2.81484 31.2139 1.78613C30.5894 2.81463 29.4436 3.5 28.1426 3.5C26.8415 3.4999 25.6957 2.8147 25.0713 1.78613C24.4468 2.8147 23.3011 3.5 22 3.5C20.6989 3.5 19.5532 2.8147 18.9287 1.78613C18.3043 2.8147 17.1585 3.4999 15.8574 3.5C14.5562 3.5 13.4096 2.81487 12.7852 1.78613C12.1607 2.8146 11.0149 3.5 9.71387 3.5C8.41315 3.49985 7.26705 2.81527 6.64258 1.78711C6.01801 2.81525 4.87207 3.5 3.57129 3.5C1.61006 3.49993 0 1.94398 0 0H1Z`,fill:`black`},null,-1)]])}var PI=B(jI,[[`render`,NI]]),FI={},II={width:`88`,height:`5`,viewBox:`0 0 88 5`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function LI(e,t){return S(),V(`svg`,II,[...t[0]||=[c(`path`,{d:`M1 -2.98023e-08C1 2.20914 3.75025 4 7.14286 4C10.5355 4 13.2857 2.20914 13.2857 -2.98023e-08C13.2857 2.20914 16.036 4 19.4286 4C22.8212 4 25.5714 2.20914 25.5714 -2.98023e-08C25.5714 2.20914 28.3217 4 31.7143 4C35.1069 4 37.8571 2.20914 37.8571 -2.98023e-08C37.8571 2.20914 40.6074 4 44 4C47.3926 4 50.1429 2.20914 50.1429 -2.98023e-08C50.1429 2.20914 52.8931 4 56.2857 4C59.6783 4 62.4286 2.20914 62.4286 -2.98023e-08C62.4286 2.20914 65.1788 4 68.5714 4C71.964 4 74.7143 2.20914 74.7143 -2.98023e-08C74.7143 2.20914 77.4645 4 80.8571 4C84.2498 4 87 2.20914 87 -2.98023e-08`,stroke:`black`},null,-1)]])}var RI=B(FI,[[`render`,LI]]),zI={},BI={width:`86`,height:`2`,viewBox:`0 0 86 2`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function VI(e,t){return S(),V(`svg`,BI,[...t[0]||=[c(`path`,{d:`M0 1H86`,stroke:`black`,"stroke-dasharray":`10 10`},null,-1)]])}var HI=B(zI,[[`render`,VI]]),UI={},WI={width:`90`,height:`2`,viewBox:`0 0 90 2`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function GI(e,t){return S(),V(`svg`,WI,[...t[0]||=[v(`<path d="M0 1H2" stroke="black"></path><path d="M4 1H14" stroke="black"></path><path d="M16 1H18" stroke="black"></path><path d="M20 1H30" stroke="black"></path><path d="M32 1H34" stroke="black"></path><path d="M36 1H46" stroke="black"></path><path d="M48 1H50" stroke="black"></path><path d="M52 1H62" stroke="black"></path><path d="M64 1H66" stroke="black"></path><path d="M68 1H78" stroke="black"></path><path d="M80 1H82" stroke="black"></path><path d="M84 1H90" stroke="black"></path>`,12)]])}var KI=B(UI,[[`render`,GI]]),qI={},JI={width:`86`,height:`2`,viewBox:`0 0 86 2`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function YI(e,t){return S(),V(`svg`,JI,[...t[0]||=[c(`path`,{d:`M0 1H86`,stroke:`black`,"stroke-dasharray":`4 4`},null,-1)]])}var XI=B(qI,[[`render`,YI]]),ZI={},QI={width:`86`,height:`2`,viewBox:`0 0 86 2`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function $I(e,t){return S(),V(`svg`,QI,[...t[0]||=[v(`<path d="M0 1H6" stroke="black"></path><path d="M8 1H9" stroke="black"></path><path d="M11 1H17" stroke="black"></path><path d="M19 1H20" stroke="black"></path><path d="M22 1H28" stroke="black"></path><path d="M30 1H31" stroke="black"></path><path d="M33 1H39" stroke="black"></path><path d="M41 1H42" stroke="black"></path><path d="M44 1H50" stroke="black"></path><path d="M52 1H53" stroke="black"></path><path d="M55 1H61" stroke="black"></path><path d="M63 1H64" stroke="black"></path><path d="M66 1H72" stroke="black"></path><path d="M74 1H75" stroke="black"></path><path d="M77 1H83" stroke="black"></path><path d="M85 1H86" stroke="black"></path>`,16)]])}var eL=B(ZI,[[`render`,$I]]),tL={},nL={width:`86`,height:`2`,viewBox:`0 0 86 2`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function rL(e,t){return S(),V(`svg`,nL,[...t[0]||=[v(`<path d="M0 1H6" stroke="black"></path><path d="M8 1H10" stroke="black"></path><path d="M12.5715 1H18.5715" stroke="black"></path><path d="M20.5715 1H22.5715" stroke="black"></path><path d="M25.1428 1H31.1428" stroke="black"></path><path d="M33.1428 1H35.1428" stroke="black"></path><path d="M37.7144 1H43.7144" stroke="black"></path><path d="M45.7144 1H47.7144" stroke="black"></path><path d="M50.2856 1H56.2856" stroke="black"></path><path d="M58.2856 1H60.2856" stroke="black"></path><path d="M62.8572 1H68.8572" stroke="black"></path><path d="M70.8572 1H72.8572" stroke="black"></path><path d="M75.4285 1H81.4285" stroke="black"></path><path d="M83.4285 1H85.4285" stroke="black"></path>`,14)]])}var iL=B(tL,[[`render`,rL]]),aL={},oL={width:`86`,height:`2`,viewBox:`0 0 86 2`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function sL(e,t){return S(),V(`svg`,oL,[...t[0]||=[c(`path`,{d:`M0 1H86`,stroke:`black`,"stroke-dasharray":`6 6`},null,-1)]])}var cL=B(aL,[[`render`,sL]]),lL={},uL={width:`86`,height:`2`,viewBox:`0 0 86 2`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function dL(e,t){return S(),V(`svg`,uL,[...t[0]||=[c(`path`,{d:`M0 1H86`,stroke:`black`},null,-1)]])}var fL=B(lL,[[`render`,dL]]),pL={},mL={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function hL(e,t){return S(),V(`svg`,mL,[...t[0]||=[c(`g`,{id:`subtoolbar / mytools / links`},[c(`path`,{id:`ic`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M18.8388 7.17154L14.331 11.6793L13.2703 10.6187L16.7175 7.17154L12.8284 3.28245L9.38125 6.7296L8.32059 5.66894L12.8284 1.16113L18.8388 7.17154ZM6.7296 9.38125L3.28245 12.8284L7.17154 16.7175L10.6187 13.2703L11.6793 14.331L7.17154 18.8388L1.16113 12.8284L5.66894 8.32059L6.7296 9.38125ZM9.11608 11.9445L11.9445 9.11608L10.8839 8.05542L8.05542 10.8839L9.11608 11.9445Z`,fill:`currentColor`})],-1)]])}var gL=B(pL,[[`render`,hL]]),_L={},vL={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function yL(e,t){return S(),V(`svg`,vL,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M19.75 2.25H0.25V17.75H19.75V2.25ZM18.25 10.75V16.25H1.75V10.75H18.25ZM18.25 9.25V3.75H1.75V9.25H18.25ZM6 5.5H3V7.5H6V5.5ZM3 12.5H6V14.5H3V12.5Z`,fill:`currentColor`},null,-1)]])}var bL=B(_L,[[`render`,yL]]),xL={},SL={width:`48`,height:`48`,viewBox:`0 0 48 48`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function CL(e,t){return S(),V(`svg`,SL,[...t[0]||=[c(`path`,{d:`M32.5 19.2321V13.1607C32.5 8.46629 28.6944 4.66071 24 4.66071V4.66071C19.3056 4.66071 15.5 8.46628 15.5 13.1607V19.2321`,stroke:`#93B9FD`,"stroke-width":`4`},null,-1),c(`rect`,{x:`7`,y:`16.8036`,width:`34`,height:`26.7143`,rx:`2`,fill:`currentColor`},null,-1),c(`rect`,{x:`15`,y:`28`,width:`18`,height:`3`,fill:`white`},null,-1)]])}var wL=B(xL,[[`render`,CL]]),TL={},EL={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function DL(e,t){return S(),V(`svg`,EL,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8 8H12V7C12 5.89543 11.1046 5 10 5C8.89543 5 8 5.89543 8 7V8ZM7 8H6C5.44772 8 5 8.44772 5 9V15C5 15.5523 5.44772 16 6 16H14C14.5523 16 15 15.5523 15 15V9C15 8.44772 14.5523 8 14 8H13V7C13 5.34315 11.6569 4 10 4C8.34315 4 7 5.34315 7 7V8Z`,fill:`currentColor`},null,-1)]])}var OL=B(TL,[[`render`,DL]]),kL={},AL={width:`48`,height:`48`,viewBox:`0 0 48 48`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function jL(e,t){return S(),V(`svg`,AL,[...t[0]||=[c(`g`,{id:`pop-up`},[c(`path`,{id:`Subtract`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M24 2.66077C18.201 2.66077 13.5 7.36177 13.5 13.1608V19.2322H17.5V13.1608C17.5 9.57091 20.4101 6.66077 24 6.66077C26.4426 6.66077 28.5705 8.00807 29.6811 10.0001H34.0159C32.6747 5.74562 28.6976 2.66077 24 2.66077Z`,fill:`#93B9FD`}),c(`rect`,{id:`Rectangle 34624135`,x:`7`,y:`16.8036`,width:`34`,height:`26.7143`,rx:`2`,fill:`currentColor`}),c(`path`,{id:`Union`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M25.5 31.7092C26.9659 31.1159 28 29.6787 28 28C28 25.7909 26.2091 24 24 24C21.7909 24 20 25.7909 20 28C20 29.6787 21.0341 31.1159 22.5 31.7092V37H25.5V31.7092Z`,fill:`white`})],-1)]])}var ML=B(kL,[[`render`,jL]]),NL={},PL={width:`105`,height:`105`,viewBox:`0 0 105 105`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function FL(e,t){return S(),V(`svg`,PL,[...t[0]||=[c(`g`,{opacity:`0.4`},[c(`path`,{d:`M0.408203 9.65476C0.408203 4.73679 4.395 0.75 9.31297 0.75H71.6464C76.5644 0.75 80.5512 4.7368 80.5512 9.65477V85.3452H9.31295C4.39499 85.3452 0.408203 81.3584 0.408203 76.4404V9.65476Z`,fill:`#3863F1`}),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M56.8051 20.0437C38.7725 20.0437 24.1543 34.662 24.1543 52.6945C24.1543 70.727 38.7726 85.3452 56.8051 85.3452H80.5512V20.0437H56.8051ZM56.805 40.8214C50.2477 40.8214 44.932 46.1371 44.932 52.6944C44.932 59.2517 50.2477 64.5674 56.805 64.5674H80.5511V40.8214H56.805Z`,fill:`white`}),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M95.3925 20.0437H80.5512V85.3452L24.1543 85.3452V95.7341C24.1543 100.652 28.1411 104.639 33.059 104.639H95.3925C100.31 104.639 104.297 100.652 104.297 95.7341V28.9485C104.297 24.0305 100.31 20.0437 95.3925 20.0437ZM44.932 52.6944C44.932 46.1371 50.2477 40.8214 56.805 40.8214H80.5511V64.5674H56.805C50.2477 64.5674 44.932 59.2517 44.932 52.6944Z`,fill:`#31BC98`})],-1)]])}var IL=B(NL,[[`render`,FL]]),LL={},RL={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function zL(e,t){return S(),V(`svg`,RL,[...t[0]||=[c(`path`,{d:`M2.63672 18C2.63672 15.9828 3.03403 13.9854 3.80595 12.1218C4.57788 10.2582 5.70932 8.56494 7.13565 7.1386C8.56199 5.71227 10.2553 4.58083 12.1189 3.80891C13.9825 3.03698 15.9799 2.63968 17.997 2.63968`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M17.9966 2V18H2.00293`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-dasharray":`3.6 1.8`},null,-1),c(`path`,{d:`M16.7554 4.56842L18.6333 2.63967L16.7298 0.736165`,stroke:`currentColor`,"stroke-width":`1.4`},null,-1),c(`path`,{d:`M0.708008 16.838L2.63675 18.7159L4.54026 16.8124`,stroke:`currentColor`,"stroke-width":`1.4`},null,-1)]])}var BL=B(LL,[[`render`,zL]]),VL={},HL={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function UL(e,t){return S(),V(`svg`,HL,[...t[0]||=[c(`circle`,{cx:`10.5`,cy:`10`,r:`8.25`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M17.0664 5.21002L3.37442 15.2833`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M13.5967 2.37137L2.12094 11.0831`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M18.9043 9.01334L7.85905 17.3793`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var WL=B(VL,[[`render`,UL]]),GL={},KL={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function qL(e,t){return S(),V(`svg`,KL,[...t[0]||=[c(`path`,{d:`M2.5 11.9037C3.09643 7.58461 4.96299 -0.313125 7.65776 2.64854C11.0262 6.35062 10.8157 17.4568 13.342 17.9857C15.3631 18.4088 17.6228 9.34754 18.5 4.76404`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var JL=B(GL,[[`render`,qL]]),YL={},XL={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function ZL(e,t){return S(),V(`svg`,XL,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M18.278 5.75735L14.7425 2.22181L13.505 3.45925L15.98 5.93421L14.9193 6.99487L12.4444 4.51991L10.6766 6.28768L13.1516 8.76264L12.0909 9.8233L9.61596 7.34834L7.84819 9.11611L10.3232 11.5911L9.26249 12.6517L6.78753 10.1768L5.01977 11.9445L7.49473 14.4195L6.43407 15.4802L3.95911 13.0052L2.72167 14.2426L6.2572 17.7782L18.278 5.75735ZM15.8031 1.16115L14.7425 0.100494L13.6818 1.16115L1.66101 13.182L0.600348 14.2426L1.66101 15.3033L5.19654 18.8388L6.2572 19.8995L7.31786 18.8388L19.3387 6.81801L20.3993 5.75735L19.3387 4.69669L15.8031 1.16115Z`,fill:`currentColor`},null,-1)]])}var QL=B(YL,[[`render`,ZL]]),$L={},eR={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function tR(e,t){return S(),V(`svg`,eR,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M1 3C1 1.89543 1.89543 1 3 1C3.83934 1 4.55793 1.51704 4.85462 2.25H16.1454C16.4421 1.51704 17.1607 1 18 1C19.1046 1 20 1.89543 20 3C20 3.83934 19.483 4.55793 18.75 4.85462V17V17.75H18H14.2011L15.0167 18.5765L14.0138 19.5928L11.9986 17.5505L11.4972 17.0423L11.9986 16.5342L14.0138 14.4918L15.0167 15.5082L14.2847 16.25H17.25V4.85462C16.7487 4.65168 16.3483 4.25135 16.1454 3.75H4.85462C4.65168 4.25135 4.25135 4.65168 3.75 4.85462V16.25H6.75V15H8.25V19H6.75V17.75H3H2.25V17V4.85462C1.51704 4.55793 1 3.83934 1 3Z`,fill:`currentColor`},null,-1)]])}var nR=B($L,[[`render`,tR]]),rR={},iR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function aR(e,t){return S(),V(`svg`,iR,[...t[0]||=[c(`path`,{d:`M14.2041 4.48883L3.08548 11.1043`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M16.9145 8.71439L5.51183 15.5114`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M2.95577 5.93301L10 1.86603L17.0442 5.93301V14.067L10 18.134L2.95577 14.067V5.93301Z`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var oR=B(rR,[[`render`,aR]]),sR={},cR={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function lR(e,t){return S(),V(`svg`,cR,[...t[0]||=[c(`rect`,{x:`2.25`,y:`3.75`,width:`16.5`,height:`12.5`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M18.2759 4.31778L2.203 16.3053`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M12.2065 3.56934L2.14012 11.148`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`path`,{d:`M18.8979 9.27121L9.43893 16.3618`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var uR=B(sR,[[`render`,lR]]),dR={},fR={width:`10`,height:`2`,viewBox:`0 0 10 2`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function pR(e,t){return S(),V(`svg`,fR,[...t[0]||=[c(`path`,{d:`M1.04688 1.61084C0.789062 1.61084 0.568848 1.39062 0.568848 1.12744C0.568848 0.864258 0.789062 0.649414 1.04688 0.649414H8.95312C9.21094 0.649414 9.43115 0.864258 9.43115 1.12744C9.43115 1.39062 9.21094 1.61084 8.95312 1.61084H1.04688Z`,fill:`currentColor`},null,-1)]])}var mR=B(dR,[[`render`,pR]]),hR={},gR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function _R(e,t){return S(),V(`svg`,gR,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.62109 10C2.62109 5.92468 5.9248 2.62097 10.0001 2.62097C14.0755 2.62097 17.3792 5.92468 17.3792 10C17.3792 14.0753 14.0755 17.379 10.0001 17.379C5.9248 17.379 2.62109 14.0753 2.62109 10ZM10.0001 1.12097C5.09637 1.12097 1.12109 5.09625 1.12109 10C1.12109 14.9038 5.09637 18.879 10.0001 18.879C14.9039 18.879 18.8792 14.9038 18.8792 10C18.8792 5.09625 14.9039 1.12097 10.0001 1.12097ZM6.02432 11.5C6.71468 11.5 7.27432 10.9404 7.27432 10.25C7.27432 9.55967 6.71468 9.00003 6.02432 9.00003C5.33396 9.00003 4.77432 9.55967 4.77432 10.25C4.77432 10.9404 5.33396 11.5 6.02432 11.5ZM10.0888 11.5C10.7792 11.5 11.3388 10.9404 11.3388 10.25C11.3388 9.55967 10.7792 9.00003 10.0888 9.00003C9.39848 9.00003 8.83884 9.55967 8.83884 10.25C8.83884 10.9404 9.39848 11.5 10.0888 11.5ZM15.4034 10.25C15.4034 10.9404 14.8437 11.5 14.1534 11.5C13.463 11.5 12.9034 10.9404 12.9034 10.25C12.9034 9.55967 13.463 9.00003 14.1534 9.00003C14.8437 9.00003 15.4034 9.55967 15.4034 10.25Z`,fill:`currentColor`},null,-1)]])}var vR=B(hR,[[`render`,_R]]),yR={},bR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function xR(e,t){return S(),V(`svg`,bR,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M6.5 10C6.5 10.8284 5.82843 11.5 5 11.5C4.17157 11.5 3.5 10.8284 3.5 10C3.5 9.17157 4.17157 8.5 5 8.5C5.82843 8.5 6.5 9.17157 6.5 10ZM11.5 10C11.5 10.8284 10.8284 11.5 10 11.5C9.17157 11.5 8.5 10.8284 8.5 10C8.5 9.17157 9.17157 8.5 10 8.5C10.8284 8.5 11.5 9.17157 11.5 10ZM15 11.5C15.8284 11.5 16.5 10.8284 16.5 10C16.5 9.17157 15.8284 8.5 15 8.5C14.1716 8.5 13.5 9.17157 13.5 10C13.5 10.8284 14.1716 11.5 15 11.5Z`,fill:`currentColor`},null,-1)]])}var SR=B(yR,[[`render`,xR]]),CR={},wR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function TR(e,t){return S(),V(`svg`,wR,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11 6C11 6.55228 10.5523 7 10 7C9.44772 7 9 6.55228 9 6C9 5.44772 9.44772 5 10 5C10.5523 5 11 5.44772 11 6ZM11 10C11 10.5523 10.5523 11 10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10ZM10 15C10.5523 15 11 14.5523 11 14C11 13.4477 10.5523 13 10 13C9.44772 13 9 13.4477 9 14C9 14.5523 9.44772 15 10 15Z`,fill:`currentColor`},null,-1)]])}var ER=B(CR,[[`render`,TR]]),DR={},OR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function kR(e,t){return S(),V(`svg`,OR,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3 5.25C3 4.83579 3.33579 4.5 3.75 4.5H16.2516C16.6659 4.5 17.0016 4.83579 17.0016 5.25C17.0016 5.66421 16.6659 6 16.2516 6H3.75C3.33579 6 3 5.66421 3 5.25ZM3 10.0006C3 9.58635 3.33579 9.25056 3.75 9.25056H16.2516C16.6659 9.25056 17.0016 9.58635 17.0016 10.0006C17.0016 10.4148 16.6659 10.7506 16.2516 10.7506H3.75C3.33579 10.7506 3 10.4148 3 10.0006ZM3.75 14.0012C3.33579 14.0012 3 14.337 3 14.7512C3 15.1654 3.33579 15.5012 3.75 15.5012H16.2516C16.6659 15.5012 17.0016 15.1654 17.0016 14.7512C17.0016 14.337 16.6659 14.0012 16.2516 14.0012H3.75Z`,fill:`currentColor`},null,-1)]])}var AR=B(DR,[[`render`,kR]]),jR={},MR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function NR(e,t){return S(),V(`svg`,MR,[...t[0]||=[c(`path`,{d:`M0 4C0 1.79086 1.79086 0 4 0H16C18.2091 0 20 1.79086 20 4V16C20 18.2091 18.2091 20 16 20H4C1.79086 20 0 18.2091 0 16V4Z`,fill:`#DDE9FF`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M7.01271 6.08121C7.01378 5.2426 7.98452 4.7777 8.63857 5.30256L13.5261 9.22462C14.0256 9.62544 14.0248 10.3859 13.5245 10.7857L8.62697 14.6998C7.97166 15.2235 7.00159 14.7562 7.00267 13.9173L7.01271 6.08121Z`,fill:`currentColor`},null,-1)]])}var PR=B(jR,[[`render`,NR]]),FR={},IR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function LR(e,t){return S(),V(`svg`,IR,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M4 4H15.5V15.5H4V4ZM2.5 2.5H4H15.5H17V4V15.5V17H15.5H4H2.5V15.5V4V2.5ZM7 9.25H6.25V10.75H7H13H13.75V9.25H13H7Z`,fill:`currentColor`},null,-1)]])}var RR=B(FR,[[`render`,LR]]),zR={},BR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function VR(e,t){return S(),V(`svg`,BR,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M18 3H2V15H5V18L10 15H18V3ZM5 6H11V7.5H5V6ZM5 9.5H15V11H5V9.5Z`,fill:`currentColor`},null,-1)]])}var HR=B(zR,[[`render`,VR]]),UR={},WR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function GR(e,t){return S(),V(`svg`,WR,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.5 3V17H11.5625V18.5H3.5H2V17V3V1.5H3.5H11.5625L16.875 5.75V10H15.375V6.47094L11.0363 3H3.5ZM6.25001 6.0625H5.50001V7.5625H6.25001H8.37501H9.12501V6.0625H8.37501H6.25001ZM5.50001 9.25H6.25001H9.96876H10.7188V10.75H9.96876H6.25001H5.50001V9.25ZM6.25001 12.4375H5.50001V13.9375H6.25001H9.96876H10.7188V12.4375H9.96876H6.25001ZM12.5842 14.8916L13.62 13.8558V17.604V18.354H15.12V17.604V13.8558L16.1558 14.8916L17.2165 13.831L14.9003 11.5148L14.37 10.9845L13.8397 11.5148L11.5235 13.831L12.5842 14.8916Z`,fill:`currentColor`},null,-1)]])}var KR=B(UR,[[`render`,GR]]),qR={},JR={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function YR(e,t){return S(),V(`svg`,JR,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M5 1.875H1.25V5.625H5V1.875ZM5 8.125H1.25V11.875H5V8.125ZM1.25 14.375H5V18.125H1.25V14.375ZM18.75 4.6875V2.8125H7.5V4.6875H18.75ZM18.75 9.0625V10.9375H7.5V9.0625H18.75ZM18.75 17.1875V15.3125H7.5V17.1875H18.75Z`,fill:`currentColor`},null,-1)]])}var XR=B(qR,[[`render`,YR]]),ZR={},QR={width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function $R(e,t){return S(),V(`svg`,QR,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11 15H1V21H11V15ZM23 15H13V21H23V15Z`,fill:`currentColor`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M1 3H8L11 6.2V13H1V3Z`,fill:`currentColor`},null,-1)]])}var ez=B(ZR,[[`render`,$R]]),tz={},nz={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function rz(e,t){return S(),V(`svg`,nz,[...t[0]||=[c(`path`,{d:`M18.3327 10C18.3327 10 14.6017 16.25 9.99935 16.25C5.39698 16.25 1.66602 10 1.66602 10C1.66602 10 5.39698 3.75 9.99935 3.75C14.6017 3.75 18.3327 10 18.3327 10Z`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1),c(`circle`,{cx:`10`,cy:`10`,r:`2`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var iz=B(tz,[[`render`,rz]]),az={},oz={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function sz(e,t){return S(),V(`svg`,oz,[...t[0]||=[c(`rect`,{x:`12`,y:`8`,width:`6`,height:`9`,fill:`#999999`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.5 3.5H17.5V7.25H12H2.5V3.5ZM12.75 8.75H17.5V16.5H12.75V8.75ZM11.25 16.5V8.75H2.5V16.5H11.25ZM17.5 2H19V3.5V16.5V18H17.5H2.5H1V16.5V3.5V2H2.5H17.5Z`,fill:`currentColor`},null,-1)]])}var cz=B(az,[[`render`,sz]]),lz={},uz={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function dz(e,t){return S(),V(`svg`,uz,[...t[0]||=[c(`rect`,{x:`2`,y:`8`,width:`6`,height:`9`,fill:`#999999`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M17.5 3.5H2.5V7.25H8H17.5V3.5ZM7.25 8.75H2.5V16.5H7.25V8.75ZM8.75 16.5V8.75H17.5V16.5H8.75ZM2.5 2H1V3.5V16.5V18H2.5H17.5H19V16.5V3.5V2H17.5H2.5Z`,fill:`currentColor`},null,-1)]])}var fz=B(lz,[[`render`,dz]]),pz={},mz={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function hz(e,t){return S(),V(`svg`,mz,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8.7463 7.94055L8.43134 3.20358C8.38986 2.6073 8.82031 2.08322 9.40947 2.01273L9.46546 2.00656C9.75502 1.97416 10.0451 2.06271 10.2681 2.25159C10.4911 2.44047 10.6276 2.71317 10.6457 3.00614L10.9886 8.17061C10.999 8.31659 11.1097 8.43516 11.2537 8.45444C11.3176 8.46288 11.382 8.44409 11.4315 8.40258C11.481 8.36108 11.5111 8.30063 11.5145 8.23584L11.7612 3.47595C11.7918 2.85998 12.3116 2.38523 12.923 2.41468H12.9309C13.5429 2.44972 14.0111 2.97745 13.9773 3.59407L13.7218 8.51438C13.7137 8.66679 13.8235 8.79975 13.9738 8.81936C14.1225 8.83876 14.2625 8.73915 14.2914 8.59018L14.8006 6.02337C14.9178 5.41517 15.497 5.01851 16.0954 5.13574L16.1041 5.13751C16.7058 5.25854 17.0969 5.84695 16.979 6.45353L16.3684 9.53687C15.8189 13.3474 15.0586 15.5052 14.3946 16.4246C13.3649 17.8508 11.5573 17.8667 10.1251 17.8667C8.69381 17.8667 7.16012 17.5291 6.44796 16.9993C5.73492 16.4696 4.77079 15.2575 4.15837 13.9327L4.16712 13.9283C4.11876 13.8639 4.0774 13.7945 4.04376 13.7212L3.105 11.685C2.84552 11.1243 3.08338 10.4577 3.63781 10.1918L3.64656 10.1874C3.91235 10.0626 4.21656 10.0497 4.49179 10.1517C4.76702 10.2536 4.99055 10.4619 5.11287 10.7304C5.62206 11.8234 5.94227 12.324 6.07526 12.2324C6.27386 12.0949 6.12075 11.7176 5.85478 9.21249C5.67578 7.53039 5.45319 5.85328 5.18724 4.18289C5.07653 3.5968 5.44002 3.02581 6.01489 2.88273L6.07526 2.86775C6.35866 2.79957 6.65742 2.85178 6.90147 3.01215C7.14552 3.17252 7.3134 3.42693 7.36572 3.71571L8.168 8.02341C8.19642 8.17613 8.33897 8.27937 8.49171 8.25787C8.64561 8.23564 8.75656 8.09774 8.7463 7.94143V7.94055Z`,fill:`currentColor`},null,-1)]])}var gz=B(pz,[[`render`,hz]]),_z={},vz={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function yz(e,t){return S(),V(`svg`,vz,[...t[0]||=[v(`<path fill-rule="evenodd" clip-rule="evenodd" d="M2.55957 5.99906L5.25088 3.30963L7.94031 6.00094L7.17136 6.76935L5.79198 5.38893L5.79519 14.6079L7.17142 13.2307L7.94037 13.9991L5.25094 16.6904L2.55963 14.001L3.32804 13.232L4.70812 14.6105L4.7049 5.39264L3.32798 6.76801L2.55957 5.99906Z" fill="currentColor"></path><rect x="9.44043" y="4.5" width="8" height="1.5" fill="currentColor"></rect><rect x="9.44043" y="7" width="8" height="1.5" fill="currentColor"></rect><rect x="9.44043" y="11.5" width="8" height="1.5" fill="currentColor"></rect><rect x="9.44043" y="14" width="8" height="1.5" fill="currentColor"></rect>`,5)]])}var bz=B(_z,[[`render`,yz]]),xz={},Sz={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Cz(e,t){return S(),V(`svg`,Sz,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M17.25 2.25H18V3V15H16.5V3.75H5.25V2.25H17.25ZM2.25 6H14.25V18H2.25V6Z`,fill:`currentColor`},null,-1)]])}var wz=B(xz,[[`render`,Cz]]),Tz={},Ez={width:`10`,height:`10`,viewBox:`0 0 10 10`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Dz(e,t){return S(),V(`svg`,Ez,[...t[0]||=[c(`path`,{d:`M5 9.6499C4.73682 9.6499 4.52197 9.44043 4.52197 9.18262V5.61084H1.04688C0.789062 5.61084 0.568848 5.39062 0.568848 5.12744C0.568848 4.86426 0.789062 4.64941 1.04688 4.64941H4.52197V1.07227C4.52197 0.814453 4.73682 0.60498 5 0.60498C5.26318 0.60498 5.4834 0.814453 5.4834 1.07227V4.64941H8.95312C9.21094 4.64941 9.43115 4.86426 9.43115 5.12744C9.43115 5.39062 9.21094 5.61084 8.95312 5.61084H5.4834V9.18262C5.4834 9.44043 5.26318 9.6499 5 9.6499Z`,fill:`currentColor`},null,-1)]])}var Oz=B(Tz,[[`render`,Dz]]),kz={},Az={width:`21`,height:`20`,viewBox:`5 5 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function jz(e,t){return S(),V(`svg`,Az,[...t[0]||=[c(`path`,{d:`M8.20577 10.933L15.25 6.86603L22.2942 10.933V19.067L15.25 23.134L8.20577 19.067V10.933Z`,stroke:`currentColor`,"stroke-width":`1.5`},null,-1)]])}var Mz=B(kz,[[`render`,jz]]),Nz={},Pz={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Fz(e,t){return S(),V(`svg`,Pz,[...t[0]||=[c(`path`,{d:`M10.0282 2L18.2999 10.2717L1.75648 10.6988L10.0282 18.9706`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linejoin":`round`},null,-1)]])}var Iz=B(Nz,[[`render`,Fz]]),Lz={},Rz={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function zz(e,t){return S(),V(`svg`,Rz,[...t[0]||=[c(`path`,{d:`M0 4C0 1.79086 1.79086 0 4 0H16C18.2091 0 20 1.79086 20 4V16C20 18.2091 18.2091 20 16 20H4C1.79086 20 0 18.2091 0 16V4Z`,fill:`#DDE9FF`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M12.4873 6.08121C12.4862 5.2426 11.5155 4.7777 10.8614 5.30256L5.97391 9.22462C5.47443 9.62544 5.47519 10.3859 5.97548 10.7857L10.873 14.6998C11.5283 15.2235 12.4984 14.7562 12.4973 13.9173L12.4873 6.08121Z`,fill:`currentColor`},null,-1)]])}var Bz=B(Lz,[[`render`,zz]]),Vz={},Hz={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Uz(e,t){return S(),V(`svg`,Hz,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M4.25 1.25H5H15H15.75V2V5.25H18H18.75V6V15V15.75H18H15V17.5V19H13.5H6.5H5V17.5V15.75H2H1.25V15V6V5.25H2H4.25V2V1.25ZM14.25 2.75V5.25H5.75V2.75H14.25ZM15 14.25H17.25V6.75H2.75V14.25H5V12.5V11H6.5H13.5H15V12.5V14.25ZM6.5 12.5H13.5V17.5H6.5V12.5ZM15 10C15.5523 10 16 9.55229 16 9C16 8.44772 15.5523 8 15 8C14.4477 8 14 8.44772 14 9C14 9.55229 14.4477 10 15 10Z`,fill:`currentColor`},null,-1)]])}var Wz=B(Vz,[[`render`,Uz]]),Gz={},Kz={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function qz(e,t){return S(),V(`svg`,Kz,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M20 3H0V17H20V3ZM9.5918 10.3271C9.5918 12.3794 8.41406 13.6626 6.54199 13.6626C4.65674 13.6626 3.48779 12.3794 3.48779 10.3271C3.48779 8.27051 4.67432 6.99609 6.54199 6.99609C8.40967 6.99609 9.5918 8.2749 9.5918 10.3271ZM4.8457 10.3271C4.8457 11.6719 5.49609 12.5376 6.54199 12.5376C7.57471 12.5376 8.23389 11.6719 8.23389 10.3271C8.23389 8.97803 7.57031 8.12109 6.54199 8.12109C5.50928 8.12109 4.8457 8.97803 4.8457 10.3271ZM12.1758 13.5V11.562L12.8042 10.8062L14.6455 13.5H16.2363L13.7622 9.93604L16.0737 7.15869H14.5972L12.2549 10.0063H12.1758V7.15869H10.8486V13.5H12.1758Z`,fill:`currentColor`},null,-1)]])}var Jz=B(Gz,[[`render`,qz]]),Yz={},Xz={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Zz(e,t){return S(),V(`svg`,Xz,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10 1.25C5.16751 1.25 1.25 5.16751 1.25 10C1.25 14.8325 5.16751 18.75 10 18.75C14.8325 18.75 18.75 14.8325 18.75 10C18.75 5.16751 14.8325 1.25 10 1.25ZM10 2.75C14.0041 2.75 17.25 5.99594 17.25 10C17.25 14.0041 14.0041 17.25 10 17.25C5.99594 17.25 2.75 14.0041 2.75 10C2.75 5.99594 5.99594 2.75 10 2.75ZM10 13C11.6569 13 13 11.6569 13 10C13 8.34315 11.6569 7 10 7C8.34315 7 7 8.34315 7 10C7 11.6569 8.34315 13 10 13Z`,fill:`currentColor`},null,-1)]])}var Qz=B(Yz,[[`render`,Zz]]),$z={},eB={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function tB(e,t){return S(),V(`svg`,eB,[...t[0]||=[c(`path`,{d:`M13.5224 10.8835L10.6558 17.3333C10.0856 17.3333 9.53871 17.1068 9.13551 16.7036C8.73232 16.3004 8.5058 15.7536 8.5058 15.1834V12.3168H4.44954C4.24178 12.3191 4.03598 12.2763 3.84642 12.1912C3.65686 12.1061 3.48807 11.9808 3.35173 11.8241C3.21539 11.6673 3.11477 11.4827 3.05684 11.2832C2.99891 11.0836 2.98505 10.8739 3.01623 10.6685L4.00521 4.21857C4.05704 3.87679 4.23065 3.56526 4.49404 3.34138C4.75743 3.1175 5.09286 2.99635 5.43852 3.00026H13.5224M13.5224 10.8835V3.00026M13.5224 10.8835H15.4359C15.8415 10.8906 16.2356 10.7486 16.5434 10.4844C16.8512 10.2202 17.0513 9.85215 17.1057 9.45015V4.43357C17.0513 4.03157 16.8512 3.66352 16.5434 3.39931C16.2356 3.13509 15.8415 2.99309 15.4359 3.00026H13.5224`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var nB=B($z,[[`render`,tB]]),rB={},iB={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function aB(e,t){return S(),V(`svg`,iB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0.904297 1.60429H0.404297V2.10429V11.5177V12.0177H0.904297H3.57684V13.2072V14.2072H4.57684H9.59007V13.532L9.59996 12.8L6.91751 11.5177L4.57684 12.9057V5.7938H14.6032V10.1729H15.6032V5.7938V4.7938H14.6032H13.4307V2.10429V1.60429H12.9307H0.904297ZM12.4307 4.7938V2.60429H1.4043V11.0177H3.57684V5.7938V4.7938H4.57684H12.4307ZM11.7263 8.42116C12.1681 8.42116 12.5263 8.06071 12.5263 7.61607C12.5263 7.17143 12.1681 6.81098 11.7263 6.81098C11.2845 6.81098 10.9263 7.17143 10.9263 7.61607C10.9263 8.06071 11.2845 8.42116 11.7263 8.42116ZM12.3683 9.91808L12.0502 9.53231L12.8218 8.89613L13.1399 9.2819L14.3095 10.7004L14.9841 11.5185H13.9237H10.3999H9.89994V10.5185H10.3999H12.8634L12.3683 9.91808ZM12.5638 13.9004L12.8819 14.2861L12.1104 14.9223L11.7923 14.5365L10.6227 13.1181L9.94808 12.3H11.0084H14.5322H15.0322V13.3H14.5322H12.0688L12.5638 13.9004Z`,fill:`currentColor`},null,-1)]])}var oB=B(rB,[[`render`,aB]]),sB={},cB={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function lB(e,t){return S(),V(`svg`,cB,[...t[0]||=[c(`path`,{d:`M12.8 9.86666C12.8 10.1613 12.683 10.444 12.4746 10.6523C12.2662 10.8607 11.9836 10.9778 11.6889 10.9778H5.02227L2.80005 13.2V4.31111C2.80005 4.01642 2.91711 3.73381 3.12549 3.52543C3.33386 3.31706 3.61647 3.2 3.91116 3.2H11.6889C11.9836 3.2 12.2662 3.31706 12.4746 3.52543C12.683 3.73381 12.8 4.01642 12.8 4.31111V9.86666Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var uB=B(sB,[[`render`,lB]]),dB={},fB={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function pB(e,t){return S(),V(`svg`,fB,[...t[0]||=[c(`path`,{d:`M6.36661 7L3.19995 10.1667L6.36661 13.3333`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1),c(`path`,{d:`M13.3333 3.2V7.63332C13.3333 8.3052 13.0664 8.94957 12.5913 9.42466C12.1162 9.89975 11.4718 10.1667 10.7999 10.1667H3.19995`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])}var mB=B(dB,[[`render`,pB]]),hB={},gB={width:`14`,height:`16`,viewBox:`0 0 14 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function _B(e,t){return S(),V(`svg`,gB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M6.14645 2.26779L5.79289 2.62134L6.14645 2.97489L8.26777 5.09621L8.97487 4.38911L7.63584 3.05007L7.94232 3.0735C10.8082 3.52528 13 6.00714 13 9C13 12.3137 10.3137 15 7 15C3.68629 15 1 12.3137 1 9C1 7.01498 1.96344 5.25507 3.45037 4.16209L2.85811 3.35635C1.12586 4.62964 0 6.68338 0 9C0 12.866 3.13401 16 7 16C10.866 16 14 12.866 14 9C14 5.49977 11.4314 2.60038 8.0763 2.08231C7.97978 2.0674 7.88263 2.05447 7.78489 2.04356L8.97487 0.853572L8.26777 0.146465L6.14645 2.26779Z`,fill:`currentColor`},null,-1)]])}var vB=B(hB,[[`render`,_B]]),yB={},bB={width:`17`,height:`16`,viewBox:`0 0 17 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function xB(e,t){return S(),V(`svg`,bB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M9.35355 2.26779L9.70711 2.62134L9.35355 2.97489L7.23223 5.09621L6.52513 4.38911L7.86416 3.05007L7.55768 3.0735C4.69176 3.52528 2.5 6.00714 2.5 9C2.5 12.3137 5.18629 15 8.5 15C11.8137 15 14.5 12.3137 14.5 9C14.5 7.01498 13.5366 5.25507 12.0496 4.16209L12.6419 3.35635C14.3741 4.62964 15.5 6.68338 15.5 9C15.5 12.866 12.366 16 8.5 16C4.63401 16 1.5 12.866 1.5 9C1.5 5.49977 4.06855 2.60038 7.4237 2.08231C7.52022 2.0674 7.61737 2.05447 7.71511 2.04356L6.52513 0.853572L7.23223 0.146465L9.35355 2.26779Z`,fill:`currentColor`},null,-1)]])}var SB=B(yB,[[`render`,xB]]),CB={},wB={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function TB(e,t){return S(),V(`svg`,wB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11.0429 3L14.0429 5V3.60029C15.6255 3.62241 16.9016 4.91218 16.9016 6.5C16.9016 6.94619 16.8011 7.37666 16.611 7.76704L16.5086 7.95877L17.5451 8.56346C17.9076 7.94208 18.1016 7.23449 18.1016 6.5C18.1016 4.30425 16.3755 2.51164 14.2062 2.40502L14.0429 2.40101V1L11.0429 3ZM14.1016 6.4H2.90156V17.6H14.1016V6.4ZM4.10221 16.4V7.6H12.9022V16.4H4.10221Z`,fill:`currentColor`},null,-1)]])}var EB=B(CB,[[`render`,TB]]),DB={},OB={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function kB(e,t){return S(),V(`svg`,OB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8.95855 3L5.95855 5V3.60029C4.37599 3.62241 3.0999 4.91218 3.0999 6.5C3.0999 6.94619 3.20041 7.37666 3.39043 7.76704L3.49285 7.95877L2.45634 8.56346C2.09384 7.94208 1.8999 7.23449 1.8999 6.5C1.8999 4.30425 3.62597 2.51164 5.79527 2.40502L5.95855 2.40101V1L8.95855 3ZM5.8999 6.4H17.0999V17.6H5.8999V6.4ZM15.8993 16.4V7.6H7.09926V16.4H15.8993Z`,fill:`currentColor`},null,-1)]])}var AB=B(DB,[[`render`,kB]]),jB={},MB={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function NB(e,t){return S(),V(`svg`,MB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M5.10986 13.9354C2.71178 11.5373 2.71178 7.64923 5.10986 5.25114C7.50795 2.85306 11.396 2.85306 13.7941 5.25114C16.1922 7.64923 16.1922 11.5373 13.7941 13.9354C11.396 16.3335 7.50795 16.3335 5.10986 13.9354ZM4.0492 4.19048C1.06533 7.17436 1.06533 12.0122 4.0492 14.996C6.85416 17.801 11.2974 17.9692 14.2988 15.5006L17.1989 18.4006C17.4918 18.6935 17.9666 18.6935 18.2595 18.4006C18.5524 18.1078 18.5524 17.6329 18.2595 17.34L15.3595 14.4399C17.8279 11.4385 17.6597 6.99539 14.8548 4.19048C11.8709 1.20661 7.03307 1.20661 4.0492 4.19048Z`,fill:`currentColor`},null,-1)]])}var PB=B(jB,[[`render`,NB]]),FB={},IB={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function LB(e,t){return S(),V(`svg`,IB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M5.11004 13.9353C2.71196 11.5372 2.71196 7.64917 5.11004 5.25108C7.50813 2.853 11.3962 2.853 13.7943 5.25108C16.1924 7.64917 16.1924 11.5372 13.7943 13.9353C11.3962 16.3334 7.50813 16.3334 5.11004 13.9353ZM4.04938 4.19042C1.06551 7.17429 1.06551 12.0121 4.04938 14.996C6.85434 17.8009 11.2976 17.9691 14.299 15.5005L17.1991 18.4006C17.4919 18.6935 17.9668 18.6935 18.2597 18.4006C18.5526 18.1077 18.5526 17.6328 18.2597 17.3399L15.3596 14.4399C17.8281 11.4384 17.6598 6.99532 14.8549 4.19042C11.8711 1.20655 7.03325 1.20655 4.04938 4.19042Z`,fill:`currentColor`},null,-1)]])}var RB=B(FB,[[`render`,LB]]),zB={},BB={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function VB(e,t){return S(),V(`svg`,BB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M4.33187 3.41643C4.74608 3.41643 5.08187 3.08064 5.08187 2.66643C5.08187 2.25221 4.74608 1.91643 4.33187 1.91643L1.66643 1.91643C1.25221 1.91643 0.916428 2.25221 0.916428 2.66643C0.916428 3.08064 1.25221 3.41643 1.66643 3.41643L2.35645 3.41643V3.8183L2.35645 15.3384V15.7404H1.66643C1.25221 15.7404 0.916428 16.0762 0.916428 16.4904C0.916428 16.9047 1.25221 17.2404 1.66643 17.2404H4.33187C4.74608 17.2404 5.08187 16.9047 5.08187 16.4904C5.08187 16.0762 4.74608 15.7404 4.33187 15.7404H3.85645V15.3384L3.85645 3.8183V3.41643H4.33187ZM7.30219 4.09613C7.10328 4.09613 6.91251 4.17515 6.77186 4.3158C6.63121 4.45645 6.55219 4.64722 6.55219 4.84613V12.8425C6.55219 13.1458 6.73492 13.4193 7.01518 13.5354C7.29543 13.6514 7.61802 13.5873 7.83252 13.3728L9.88684 11.3185L14.7821 16.2137C15.075 16.5066 15.5498 16.5066 15.8427 16.2137L18.6699 13.3866C18.8105 13.2459 18.8895 13.0551 18.8895 12.8562C18.8895 12.6573 18.8105 12.4665 18.6699 12.3259L13.7746 7.43067L15.8288 5.37646C16.0433 5.16196 16.1075 4.83937 15.9914 4.55912C15.8753 4.27886 15.6019 4.09613 15.2985 4.09613L7.30219 4.09613ZM9.35651 9.72747L8.05219 11.0318V5.59613L13.4879 5.59613L12.1836 6.90034C12.043 7.041 11.964 7.23176 11.964 7.43067C11.964 7.62959 12.043 7.82035 12.1836 7.961L17.0789 12.8562L15.3124 14.6227L10.4172 9.72747C10.1243 9.43458 9.64941 9.43458 9.35651 9.72747Z`,fill:`currentColor`},null,-1)]])}var HB=B(zB,[[`render`,VB]]),UB={},WB={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function GB(e,t){return S(),V(`svg`,WB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.70581 6.36601L10 2.73204L16.2943 6.36601V13.634L10 17.2679L3.70581 13.634V6.36601ZM9.43754 1.32475C9.78562 1.12379 10.2145 1.12379 10.5625 1.32475L17.2318 5.17523C17.5798 5.37619 17.7943 5.74758 17.7943 6.14951V13.8505C17.7943 14.2524 17.5798 14.6238 17.2318 14.8247L10.5625 18.6752C10.2145 18.8762 9.78561 18.8762 9.43754 18.6752L2.76831 14.8247C2.42023 14.6238 2.20581 14.2524 2.20581 13.8505V6.14951C2.20581 5.74758 2.42023 5.37619 2.76831 5.17523L9.43754 1.32475ZM11.875 9.99999C11.875 11.0355 11.0356 11.875 10 11.875C8.96451 11.875 8.12504 11.0355 8.12504 9.99999C8.12504 8.96445 8.96451 8.12499 10 8.12499C11.0356 8.12499 11.875 8.96445 11.875 9.99999ZM13.375 9.99999C13.375 11.8639 11.864 13.375 10 13.375C8.13608 13.375 6.62504 11.8639 6.62504 9.99999C6.62504 8.13603 8.13608 6.62499 10 6.62499C11.864 6.62499 13.375 8.13603 13.375 9.99999Z`,fill:`currentColor`},null,-1)]])}var KB=B(UB,[[`render`,GB]]),qB={},JB={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function YB(e,t){return S(),V(`svg`,JB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M12.0663 1.73124C11.8457 1.51066 11.4792 1.54371 11.3017 1.80019L8.50221 5.84387C8.47541 5.88258 8.43581 5.9106 8.39039 5.92299L4.70212 6.92888C4.62329 6.95038 4.56548 7.01679 4.55485 7.0978C4.49741 7.53536 4.28835 8.98634 3.86452 10.5C3.50509 11.7837 2.41361 14.2634 1.80715 15.6014C1.43791 15.4319 0.986657 15.4992 0.682542 15.8033C0.292017 16.1938 0.292017 16.827 0.682542 17.2175C1.07307 17.6081 1.70623 17.6081 2.09676 17.2175C2.40731 16.907 2.4709 16.443 2.28754 16.0696C3.47428 15.503 5.62248 14.5333 7.40006 14.0355C9.40855 13.4732 10.4209 13.3576 10.7798 13.3342C10.8716 13.3282 10.9526 13.266 10.9768 13.1773L11.9771 9.50966C11.9895 9.46424 12.0175 9.42465 12.0562 9.39785L16.0999 6.59838C16.3563 6.42081 16.3894 6.05431 16.1688 5.83373L12.0663 1.73124ZM7.84432 8.82278C7.79831 8.77678 7.72133 8.78626 7.68786 8.84204L5.83823 11.9248C5.78467 12.014 5.88616 12.1155 5.97543 12.062L9.05814 10.2123C9.11392 10.1789 9.1234 10.1019 9.0774 10.0559L7.84432 8.82278ZM15.5271 16.5933C15.4522 16.5981 15.3767 16.6005 15.3006 16.6005C15.2254 16.6005 15.1508 16.5982 15.0768 16.5935L13.531 19.2708C13.4525 19.4067 13.2553 19.4035 13.1814 19.2651L12.5771 18.1343C12.5412 18.0671 12.4703 18.0261 12.3942 18.0286L11.1127 18.0707C10.9559 18.0759 10.8545 17.9067 10.9329 17.7708L12.4536 15.1369C12.0425 14.5632 11.8006 13.8601 11.8006 13.1005C11.8006 11.1675 13.3676 9.60052 15.3006 9.60052C17.2336 9.60052 18.8006 11.1675 18.8006 13.1005C18.8006 13.8592 18.5592 14.5614 18.1491 15.1347L19.671 17.7708C19.7495 17.9067 19.6481 18.0759 19.4912 18.0707L18.2098 18.0286C18.1336 18.0261 18.0627 18.0671 18.0268 18.1343L17.4225 19.2651C17.3486 19.4035 17.1514 19.4067 17.0729 19.2708L15.5271 16.5933Z`,fill:`currentColor`},null,-1)]])}var XB=B(qB,[[`render`,YB]]),ZB={},QB={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function $B(e,t){return S(),V(`svg`,QB,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M7.15125 14.4995C8.30837 14.4995 9.2063 13.7913 9.7756 12.6064H16.4175C16.6582 12.6064 16.8433 12.4074 16.8433 12.1713C16.8433 11.9353 16.6582 11.7409 16.4175 11.7409H10.1089C10.3264 11.0327 10.4514 10.2135 10.4838 9.31556C10.7754 9.25076 11.0762 9.21836 11.3863 9.21836C11.4928 9.21836 11.5483 9.26465 11.5483 9.3387C11.5483 9.68584 11.3169 9.98207 11.3169 10.431C11.3169 10.8476 11.6224 11.1207 12.0528 11.1207C13.0572 11.1207 14.256 9.5655 14.5568 9.5655C14.816 9.5655 14.5661 10.9309 15.7464 10.9309C15.9824 10.9309 16.2601 10.8661 16.4684 10.7273C16.6212 10.6208 16.7276 10.4681 16.7276 10.269C16.7276 10.0098 16.5517 9.77841 16.2786 9.77841C16.1305 9.77841 15.9963 9.88024 15.8852 9.88024C15.5288 9.88024 15.876 8.38986 14.8346 8.38986C13.9783 8.38986 12.8628 9.75527 12.599 9.75527C12.5573 9.75527 12.5342 9.73676 12.5342 9.69047C12.5342 9.5655 12.636 9.36185 12.636 9.13968C12.636 8.54723 12.2102 8.20009 11.5205 8.20009C11.1595 8.20009 10.8078 8.23249 10.4699 8.29266C10.2986 5.78865 9.0443 3.93262 7.26696 3.93262C5.91544 3.93262 4.97122 4.96014 4.97122 6.39035C4.97122 7.95941 5.96635 9.26465 7.04479 10.1209C6.54028 10.6301 6.14686 11.1901 5.90155 11.7409H2.856C2.61532 11.7409 2.43018 11.9353 2.43018 12.1713C2.43018 12.4028 2.61994 12.6064 2.856 12.6064H5.64235C5.62847 12.7221 5.61921 12.8378 5.61921 12.9443C5.61921 13.8978 6.15612 14.4995 7.15125 14.4995ZM7.81306 9.45897C6.93828 8.78784 5.99406 7.74643 5.99406 6.38565C5.99406 5.55715 6.51708 4.95544 7.27153 4.95544C8.50271 4.95544 9.38213 6.50599 9.46544 8.56567C8.85911 8.78784 8.29906 9.09795 7.81306 9.45897ZM3.15682 10.9678L3.67521 10.4494L4.1936 10.9631C4.35097 11.1159 4.5824 11.1159 4.73977 10.9631C4.89251 10.8104 4.89251 10.5697 4.73977 10.417L4.22137 9.90321L4.73977 9.38482C4.89251 9.23208 4.89251 8.99602 4.73977 8.84328C4.58703 8.68591 4.34634 8.68591 4.1936 8.83865L3.67521 9.35705L3.15682 8.84328C2.99945 8.69054 2.7634 8.69054 2.61066 8.84328C2.45329 8.99139 2.45329 9.2367 2.61066 9.38945L3.12442 9.90321L2.61066 10.417C2.45329 10.5743 2.45792 10.8058 2.61066 10.9631C2.7634 11.1205 3.00408 11.1159 3.15682 10.9678ZM9.01653 11.7409H7.07256C7.28084 11.3984 7.5678 11.0374 7.91957 10.7041C7.99826 10.7504 8.07231 10.7875 8.14637 10.8245C8.23894 10.8754 8.32688 10.8939 8.41482 10.8939C8.67402 10.8939 8.89156 10.7041 8.89156 10.4542C8.89156 10.3153 8.84064 10.1858 8.71567 10.0747C8.94247 9.92193 9.18315 9.78307 9.44235 9.66736C9.38218 10.4496 9.23406 11.1531 9.01653 11.7409ZM7.27156 13.481C6.88739 13.481 6.69299 13.231 6.69299 12.8423C6.69299 12.7682 6.70225 12.6895 6.71614 12.6062H8.59068C8.22965 13.1616 7.77606 13.481 7.27156 13.481Z`,fill:`currentColor`},null,-1),c(`rect`,{x:`10.625`,y:`10.625`,width:`7.5`,height:`7.5`,rx:`3.64583`,fill:`#BF3030`},null,-1),c(`path`,{d:`M15.625 13.125L13.125 15.625`,stroke:`white`,"stroke-width":`0.9375`,"stroke-linecap":`square`,"stroke-linejoin":`round`},null,-1),c(`path`,{d:`M13.125 13.125L15.625 15.625`,stroke:`white`,"stroke-width":`0.9375`,"stroke-linecap":`square`,"stroke-linejoin":`round`},null,-1)]])}var eV=B(ZB,[[`render`,$B]]),tV={},nV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function rV(e,t){return S(),V(`svg`,nV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M7.15125 14.4995C8.30837 14.4995 9.2063 13.7913 9.7756 12.6064H16.4175C16.6582 12.6064 16.8433 12.4074 16.8433 12.1713C16.8433 11.9353 16.6582 11.7409 16.4175 11.7409H10.1089C10.3264 11.0327 10.4514 10.2135 10.4838 9.31556C10.7754 9.25076 11.0762 9.21836 11.3863 9.21836C11.4928 9.21836 11.5483 9.26465 11.5483 9.3387C11.5483 9.68584 11.3169 9.98207 11.3169 10.431C11.3169 10.8476 11.6224 11.1207 12.0528 11.1207C13.0572 11.1207 14.256 9.5655 14.5568 9.5655C14.816 9.5655 14.5661 10.9309 15.7464 10.9309C15.9824 10.9309 16.2601 10.8661 16.4684 10.7273C16.6212 10.6208 16.7276 10.4681 16.7276 10.269C16.7276 10.0098 16.5517 9.77841 16.2786 9.77841C16.1305 9.77841 15.9963 9.88024 15.8852 9.88024C15.5288 9.88024 15.876 8.38986 14.8346 8.38986C13.9783 8.38986 12.8628 9.75527 12.599 9.75527C12.5573 9.75527 12.5342 9.73676 12.5342 9.69047C12.5342 9.5655 12.636 9.36185 12.636 9.13968C12.636 8.54723 12.2102 8.20009 11.5205 8.20009C11.1595 8.20009 10.8078 8.23249 10.4699 8.29266C10.2986 5.78865 9.0443 3.93262 7.26696 3.93262C5.91544 3.93262 4.97122 4.96014 4.97122 6.39035C4.97122 7.95941 5.96635 9.26465 7.04479 10.1209C6.54028 10.6301 6.14686 11.1901 5.90155 11.7409H2.856C2.61532 11.7409 2.43018 11.9353 2.43018 12.1713C2.43018 12.4028 2.61994 12.6064 2.856 12.6064H5.64235C5.62847 12.7221 5.61921 12.8378 5.61921 12.9443C5.61921 13.8978 6.15612 14.4995 7.15125 14.4995ZM7.81306 9.45897C6.93828 8.78784 5.99406 7.74643 5.99406 6.38565C5.99406 5.55715 6.51708 4.95544 7.27153 4.95544C8.50271 4.95544 9.38213 6.50599 9.46544 8.56567C8.85911 8.78784 8.29906 9.09795 7.81306 9.45897ZM3.15682 10.9678L3.67521 10.4494L4.1936 10.9631C4.35097 11.1159 4.5824 11.1159 4.73977 10.9631C4.89251 10.8104 4.89251 10.5697 4.73977 10.417L4.22137 9.90321L4.73977 9.38482C4.89251 9.23208 4.89251 8.99602 4.73977 8.84328C4.58703 8.68591 4.34634 8.68591 4.1936 8.83865L3.67521 9.35705L3.15682 8.84328C2.99945 8.69054 2.7634 8.69054 2.61066 8.84328C2.45329 8.99139 2.45329 9.2367 2.61066 9.38945L3.12442 9.90321L2.61066 10.417C2.45329 10.5743 2.45792 10.8058 2.61066 10.9631C2.7634 11.1205 3.00408 11.1159 3.15682 10.9678ZM9.01653 11.7409H7.07256C7.28084 11.3984 7.5678 11.0374 7.91957 10.7041C7.99826 10.7504 8.07231 10.7875 8.14637 10.8245C8.23894 10.8754 8.32688 10.8939 8.41482 10.8939C8.67402 10.8939 8.89156 10.7041 8.89156 10.4542C8.89156 10.3153 8.84064 10.1858 8.71567 10.0747C8.94247 9.92193 9.18315 9.78307 9.44235 9.66736C9.38218 10.4496 9.23406 11.1531 9.01653 11.7409ZM7.27156 13.481C6.88739 13.481 6.69299 13.231 6.69299 12.8423C6.69299 12.7682 6.70225 12.6895 6.71614 12.6062H8.59068C8.22965 13.1616 7.77606 13.481 7.27156 13.481Z`,fill:`currentColor`},null,-1),c(`rect`,{x:`10.625`,y:`10.625`,width:`7.5`,height:`7.5`,rx:`3.64583`,fill:`#FFA400`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M14.625 15.247V15.3482H13.9881V15.247C13.9881 15.0268 14.0238 14.8363 14.1071 14.6815C14.1845 14.5149 14.4107 14.2708 14.7798 13.9435L14.881 13.8304C14.9881 13.6935 15.0476 13.5506 15.0476 13.3958C15.0476 13.1875 14.9881 13.0268 14.875 12.9077C14.756 12.7887 14.5833 12.7292 14.369 12.7292C14.1012 12.7292 13.9048 12.8125 13.7857 12.9851C13.6786 13.128 13.625 13.3304 13.625 13.5923H13C13 13.1577 13.125 12.8185 13.375 12.5685C13.625 12.3125 13.9702 12.1875 14.4107 12.1875C14.7917 12.1875 15.1012 12.2887 15.3393 12.503C15.5774 12.7113 15.6964 12.997 15.6964 13.3542C15.6964 13.6458 15.619 13.8899 15.4702 14.0804C15.4167 14.1458 15.25 14.3006 14.9702 14.5446C14.8571 14.6399 14.7738 14.747 14.7202 14.8542C14.6548 14.9732 14.625 15.1042 14.625 15.247ZM14.6131 16.4017C14.5298 16.4791 14.4227 16.5207 14.3036 16.5207C14.1846 16.5207 14.0774 16.4791 13.9941 16.3957C13.9108 16.3124 13.8691 16.2112 13.8691 16.0922C13.8691 15.9672 13.9108 15.866 13.9941 15.7886C14.0774 15.7053 14.1846 15.6696 14.3036 15.6696C14.4286 15.6696 14.5358 15.7053 14.6191 15.7886C14.7024 15.866 14.7441 15.9672 14.7441 16.0922C14.7441 16.2172 14.6965 16.3184 14.6131 16.4017Z`,fill:`white`},null,-1)]])}var iV=B(tV,[[`render`,rV]]),aV={},oV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function sV(e,t){return S(),V(`svg`,oV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M7.15125 14.4995C8.30837 14.4995 9.2063 13.7913 9.7756 12.6064H16.4175C16.6582 12.6064 16.8433 12.4074 16.8433 12.1713C16.8433 11.9353 16.6582 11.7409 16.4175 11.7409H10.1089C10.3264 11.0327 10.4514 10.2135 10.4838 9.31556C10.7754 9.25076 11.0762 9.21836 11.3863 9.21836C11.4928 9.21836 11.5483 9.26465 11.5483 9.3387C11.5483 9.68584 11.3169 9.98207 11.3169 10.431C11.3169 10.8476 11.6224 11.1207 12.0528 11.1207C13.0572 11.1207 14.256 9.5655 14.5568 9.5655C14.816 9.5655 14.5661 10.9309 15.7464 10.9309C15.9824 10.9309 16.2601 10.8661 16.4684 10.7273C16.6212 10.6208 16.7276 10.4681 16.7276 10.269C16.7276 10.0098 16.5517 9.77841 16.2786 9.77841C16.1305 9.77841 15.9963 9.88024 15.8852 9.88024C15.5288 9.88024 15.876 8.38986 14.8346 8.38986C13.9783 8.38986 12.8628 9.75527 12.599 9.75527C12.5573 9.75527 12.5342 9.73676 12.5342 9.69047C12.5342 9.5655 12.636 9.36185 12.636 9.13968C12.636 8.54723 12.2102 8.20009 11.5205 8.20009C11.1595 8.20009 10.8078 8.23249 10.4699 8.29266C10.2986 5.78865 9.0443 3.93262 7.26696 3.93262C5.91544 3.93262 4.97122 4.96014 4.97122 6.39035C4.97122 7.95941 5.96635 9.26465 7.04479 10.1209C6.54028 10.6301 6.14686 11.1901 5.90155 11.7409H2.856C2.61532 11.7409 2.43018 11.9353 2.43018 12.1713C2.43018 12.4028 2.61994 12.6064 2.856 12.6064H5.64235C5.62847 12.7221 5.61921 12.8378 5.61921 12.9443C5.61921 13.8978 6.15612 14.4995 7.15125 14.4995ZM7.81306 9.45897C6.93828 8.78784 5.99406 7.74643 5.99406 6.38565C5.99406 5.55715 6.51708 4.95544 7.27153 4.95544C8.50271 4.95544 9.38213 6.50599 9.46544 8.56567C8.85911 8.78784 8.29906 9.09795 7.81306 9.45897ZM3.15682 10.9678L3.67521 10.4494L4.1936 10.9631C4.35097 11.1159 4.5824 11.1159 4.73977 10.9631C4.89251 10.8104 4.89251 10.5697 4.73977 10.417L4.22137 9.90321L4.73977 9.38482C4.89251 9.23208 4.89251 8.99602 4.73977 8.84328C4.58703 8.68591 4.34634 8.68591 4.1936 8.83865L3.67521 9.35705L3.15682 8.84328C2.99945 8.69054 2.7634 8.69054 2.61066 8.84328C2.45329 8.99139 2.45329 9.2367 2.61066 9.38945L3.12442 9.90321L2.61066 10.417C2.45329 10.5743 2.45792 10.8058 2.61066 10.9631C2.7634 11.1205 3.00408 11.1159 3.15682 10.9678ZM9.01653 11.7409H7.07256C7.28084 11.3984 7.5678 11.0374 7.91957 10.7041C7.99826 10.7504 8.07231 10.7875 8.14637 10.8245C8.23894 10.8754 8.32688 10.8939 8.41482 10.8939C8.67402 10.8939 8.89156 10.7041 8.89156 10.4542C8.89156 10.3153 8.84064 10.1858 8.71567 10.0747C8.94247 9.92193 9.18315 9.78307 9.44235 9.66736C9.38218 10.4496 9.23406 11.1531 9.01653 11.7409ZM7.27156 13.481C6.88739 13.481 6.69299 13.231 6.69299 12.8423C6.69299 12.7682 6.70225 12.6895 6.71614 12.6062H8.59068C8.22965 13.1616 7.77606 13.481 7.27156 13.481Z`,fill:`currentColor`},null,-1),c(`rect`,{x:`10.625`,y:`10.625`,width:`7.5`,height:`7.5`,rx:`3.64583`,fill:`#30BF83`},null,-1),c(`path`,{d:`M12.8125 14.6875L14.2969 15.625L16.25 13.125`,stroke:`white`,"stroke-width":`0.9375`},null,-1)]])}var cV=B(aV,[[`render`,sV]]),lV={},uV={width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function dV(e,t){return S(),V(`svg`,uV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M6 4H14L18 8.2V20H6V4Z`,fill:`currentColor`},null,-1)]])}var fV=B(lV,[[`render`,dV]]),pV={},mV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function hV(e,t){return S(),V(`svg`,mV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13 14H13.9922L12.8923 11.25H7.10772L6.00776 14H7V15H3V14H4.39223L9.30364 1.72146H10.6964L15.6078 14H17V15H13V14ZM7.5077 10.25H12.4923L10 4.019L7.5077 10.25Z`,fill:`currentColor`},null,-1),c(`path`,{d:`M5.08299 17.9328L5.22219 18.0199C6.28806 18.7527 7.65967 18.7912 8.75772 18.1356L8.93809 18.0199C9.52914 17.6135 10.2863 17.5845 10.9011 17.9328L11.0403 18.0199C12.1062 18.7527 13.4778 18.7912 14.5759 18.1356L14.7562 18.0199C15.3473 17.6135 16.1045 17.5845 16.7193 17.9328L16.8585 18.0199C17.0638 18.161 17.2824 18.2777 17.5107 18.3686C17.8854 18.5177 18.3064 18.3253 18.451 17.9389C18.5956 17.5525 18.4091 17.1183 18.0344 16.9692C17.9483 16.9349 17.8647 16.8942 17.784 16.8471L17.6653 16.7718C16.5994 16.039 15.2278 16.0004 14.1298 16.6561L13.9494 16.7718C13.3584 17.1781 12.6011 17.2072 11.9864 16.8589L11.8472 16.7718C10.7813 16.039 9.40969 16.0004 8.31164 16.6561L8.13126 16.7718C7.54022 17.1781 6.78301 17.2072 6.16823 16.8589L6.02902 16.7718C4.96316 16.039 3.59155 16.0004 2.4935 16.6561L2.31312 16.7718C2.23868 16.823 2.16125 16.8684 2.08133 16.908L1.95963 16.9629C1.5862 17.1154 1.40339 17.5513 1.55131 17.9364C1.69922 18.3215 2.12186 18.51 2.49529 18.3575C2.64087 18.298 2.78242 18.228 2.91898 18.1478L3.11995 18.0199C3.711 17.6135 4.46821 17.5845 5.08299 17.9328Z`,fill:`#FF0000`},null,-1)]])}var gV=B(pV,[[`render`,hV]]),_V={},vV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function yV(e,t){return S(),V(`svg`,vV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.6964 3L14.6078 12.7785H15.6004V13.7785H12.4004V12.7785H12.9923L12.1923 10.7785H7.80779L7.00783 12.7785H7.60039V13.7785H4.40039V12.7785H5.39229L9.30371 3H10.6964ZM10.0001 5.29754L11.7924 9.77853H8.20777L10.0001 5.29754ZM5.22219 16.9266L5.08299 16.8542C4.46821 16.565 3.711 16.5891 3.11995 16.9266L2.91898 17.0328C2.78242 17.0994 2.64087 17.1575 2.49529 17.2069C2.12186 17.3336 1.69922 17.177 1.55131 16.8572C1.40339 16.5374 1.5862 16.1755 1.95963 16.0488L2.08133 16.0032C2.16125 15.9703 2.23868 15.9326 2.31312 15.8901L2.4935 15.794C3.59155 15.2495 4.96316 15.2815 6.02902 15.8901L6.16823 15.9624C6.78301 16.2516 7.54022 16.2275 8.13126 15.8901L8.31164 15.794C9.40969 15.2495 10.7813 15.2815 11.8472 15.8901L11.9864 15.9624C12.6011 16.2516 13.3584 16.2275 13.9494 15.8901L14.1298 15.794C15.2278 15.2495 16.5994 15.2815 17.6653 15.8901L17.784 15.9526C17.8647 15.9917 17.9483 16.0256 18.0344 16.054C18.4091 16.1778 18.5956 16.5384 18.451 16.8593C18.3064 17.1802 17.8854 17.34 17.5107 17.2161C17.2824 17.1407 17.0638 17.0438 16.8585 16.9266L16.7193 16.8542C16.1045 16.565 15.3473 16.5891 14.7562 16.9266L14.5759 17.0226C13.4778 17.5671 12.1062 17.5351 11.0403 16.9266L10.9011 16.8542C10.2863 16.565 9.52914 16.5891 8.93809 16.9266L8.75772 17.0226C7.65967 17.5671 6.28806 17.5351 5.22219 16.9266Z`,fill:`currentColor`},null,-1)]])}var bV=B(_V,[[`render`,yV]]),xV={},SV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function CV(e,t){return S(),V(`svg`,SV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11.982 9.97521C13.1875 9.28619 14 7.98798 14 6.5C14 4.29086 12.2091 2.5 10 2.5C7.79086 2.5 6 4.29086 6 6.5C6 7.98798 6.81248 9.2862 8.018 9.97522C8.10745 10.1032 8.5 10.6962 8.5 11.25C8.5 11.875 8 12.5 8 12.5H2V14H18V12.5H12C12 12.5 11.5 11.875 11.5 11.25C11.5 10.6962 11.8926 10.1032 11.982 9.97521ZM18 17.5V16H2V17.5H18Z`,fill:`currentColor`},null,-1)]])}var wV=B(xV,[[`render`,CV]]),TV={},EV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function DV(e,t){return S(),V(`svg`,EV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M14.3494 15.3928H13.2139V16.3928H17.4996V15.3928H15.9649L10.6964 2.22146H9.30364L4.03508 15.3929H2.5V16.3929H6.78571V15.3929H5.65062L10 4.519L14.3494 15.3928Z`,fill:`currentColor`},null,-1),c(`rect`,{y:`10.5`,width:`20`,height:`1.5`,fill:`#FF0000`},null,-1)]])}var OV=B(TV,[[`render`,DV]]),kV={},AV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function jV(e,t){return S(),V(`svg`,AV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.696 3L13.8882 10.6785H18V12.1785H14.5118L15.8006 15.2785H17V16.2785H13V15.2785H14.1738L12.8773 12.1785H7.12195L5.82551 15.2785H7V16.2785H3V15.2785H4.19873L5.48749 12.1785H2V10.6785H6.11109L9.30329 3H10.696ZM9.99965 5.29754L12.25 10.6785H7.74927L9.99965 5.29754Z`,fill:`currentColor`},null,-1)]])}var MV=B(kV,[[`render`,jV]]),NV={},PV={width:`20`,height:`21`,viewBox:`0 0 20 21`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function FV(e,t){return S(),V(`svg`,PV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10 18C14.1421 18 17.5 14.6421 17.5 10.5C17.5 6.35786 14.1421 3 10 3C5.85786 3 2.5 6.35786 2.5 10.5C2.5 14.6421 5.85786 18 10 18ZM9.74283 13.4801L13.9095 8.48014L12.7572 7.51986L9.11627 11.8889L7.197 9.96967L6.13634 11.0303L8.63634 13.5303L9.21707 14.1111L9.74283 13.4801Z`,fill:`#3CCD75`},null,-1)]])}var IV=B(NV,[[`render`,FV]]),LV={},RV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function zV(e,t){return S(),V(`svg`,RV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M16.75 2.75V6H15.25V4.25H10.75V16.25H12.3337V17.75H7.66699V16.25H9.25V4.25H4.75V6H3.25V2.75H16.75Z`,fill:`currentColor`},null,-1)]])}var BV=B(LV,[[`render`,zV]]),VV={},HV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function UV(e,t){return S(),V(`svg`,HV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0.25 2.25H19.75V17.75H0.25V2.25ZM18.25 11.75V3.75H1.75V16.25H13.75L18.25 11.75ZM11.25 5.5V8H9.75V7H8V13H8.75V14.5H5.75V13H6.5V7H4.75V8H3.25V5.5H11.25Z`,fill:`currentColor`},null,-1)]])}var WV=B(VV,[[`render`,UV]]),GV={},KV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function qV(e,t){return S(),V(`svg`,KV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M18 6.5V5H2V6.5H18ZM15 11V9.5H5V11H15ZM18 14V15.5H2V14H18Z`,fill:`currentColor`},null,-1)]])}var JV=B(GV,[[`render`,qV]]),YV={},XV={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function ZV(e,t){return S(),V(`svg`,XV,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M15 6.5V5H2V6.5H15ZM18 11V9.5H2V11H18ZM12 14V15.5H2V14H12Z`,fill:`currentColor`},null,-1)]])}var QV=B(YV,[[`render`,ZV]]),$V={},eH={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function tH(e,t){return S(),V(`svg`,eH,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M18 6.5V5H5V6.5H18Z`,fill:`currentColor`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M18 11V9.5H2V11H18Z`,fill:`currentColor`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M18 15.5V14H8V15.5H18Z`,fill:`currentColor`},null,-1)]])}var nH=B($V,[[`render`,tH]]),rH={},iH={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function aH(e,t){return S(),V(`svg`,iH,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.4375 1.4375H2.6875V2.1875V17.8125V18.5625H3.4375H16.5612H17.3112V17.8125V10V7.07031V6.77538L17.1103 6.55944L12.5675 1.67663L12.345 1.4375H12.0184H9.99936H3.4375ZM4.1875 17.0625V2.9375H9.99936H10.5V7.5V8.25H11.25H15.8112V10V17.0625H4.1875ZM15.2388 6.75L12 3.2688V6.75H15.2388Z`,fill:`currentColor`},null,-1)]])}var oH=B(rH,[[`render`,aH]]),sH={},cH={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function lH(e,t){return S(),V(`svg`,cH,[...t[0]||=[c(`path`,{d:`M7.65967 5.07935C8.26189 5.09231 8.57048 5.18327 8.52002 6.68677C8.52002 6.68677 8.4187 11.3074 8.50537 12.1135C8.59333 12.3703 9.43618 11.7875 9.55518 11.6946C9.67354 11.6026 10.7526 10.6278 10.7651 10.6165C10.7588 10.6355 9.86555 13.3126 8.15186 13.9104C7.53909 14.1239 6.90454 14.0208 6.81201 13.3899L6.77979 13.0784C6.72254 12.2825 6.78934 11.0767 6.81201 10.801L6.92627 7.24536C6.94698 6.91536 6.75456 6.99965 6.62256 7.06177C5.98204 7.36721 5.23486 7.92896 5.23486 7.92896C5.23486 7.92896 5.68979 6.69841 6.12842 6.18384C6.45259 5.73154 7.14849 5.12723 7.65967 5.07935ZM7.75244 1.98853C7.90053 1.98853 8.04726 2.0178 8.18408 2.07446C8.32091 2.13114 8.44557 2.21388 8.55029 2.3186C8.65502 2.42333 8.73776 2.54798 8.79443 2.68481C8.85111 2.82164 8.88037 2.96835 8.88037 3.11646C8.88034 3.41553 8.76178 3.70282 8.55029 3.91431C8.3388 4.12574 8.0515 4.24438 7.75244 4.24438C7.4536 4.24435 7.167 4.12549 6.95557 3.91431C6.74408 3.70282 6.62454 3.41553 6.62451 3.11646C6.62451 2.96839 6.6538 2.82162 6.71045 2.68481C6.76713 2.54798 6.85084 2.42333 6.95557 2.3186C7.06017 2.21409 7.1842 2.13107 7.3208 2.07446C7.45759 2.0178 7.60438 1.98854 7.75244 1.98853Z`,fill:`#999999`},null,-1)]])}var uH=B(sH,[[`render`,lH]]),dH={},fH={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function pH(e,t){return S(),V(`svg`,fH,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M6.01025 4L11 8.0041L6 12L6.01025 4Z`,fill:`currentColor`},null,-1)]])}var mH=B(dH,[[`render`,pH]]),hH={},gH={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function _H(e,t){return S(),V(`svg`,gH,[...t[0]||=[c(`rect`,{y:`17`,width:`20`,height:`1.5`,fill:`#FF0000`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M13 14H13.9922L12.8923 11.25H7.10772L6.00776 14H7V15H3V14H4.39223L9.30364 1.72146H10.6964L15.6078 14H17V15H13V14ZM7.5077 10.25H12.4923L10 4.019L7.5077 10.25Z`,fill:`currentColor`},null,-1)]])}var vH=B(hH,[[`render`,_H]]),yH={},bH={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function xH(e,t){return S(),V(`svg`,bH,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.6964 3L14.6078 12.7785H15.6004V13.7785H12.4004V12.7785H12.9923L12.1923 10.7785H7.80779L7.00783 12.7785H7.60039V13.7785H4.40039V12.7785H5.39229L9.30371 3H10.6964ZM10.0001 5.29754L11.7924 9.77853H8.20777L10.0001 5.29754ZM18 15.2785H2V16.7785H18V15.2785Z`,fill:`currentColor`},null,-1)]])}var SH=B(yH,[[`render`,xH]]),CH={},wH={width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function TH(e,t){return S(),V(`svg`,wH,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M2.96069 10.2896L2.96069 16.2896L2.96069 17.0396L3.71069 17.0396L9.71069 17.0396L9.71069 15.5396L5.52124 15.5396L9.71582 11.345L8.65516 10.2843L4.46069 14.4788L4.46069 10.2896L2.96069 10.2896Z`,fill:`currentColor`},null,-1),c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M17.0393 9.71045L17.0393 3.71045L17.0393 2.96045L16.2893 2.96045L10.2893 2.96045L10.2893 4.46045L14.4788 4.46045L10.2842 8.65503L11.3448 9.71569L15.5393 5.52122L15.5393 9.71045L17.0393 9.71045Z`,fill:`currentColor`},null,-1)]])}var EH=B(CH,[[`render`,TH]]),DH={},OH={width:`10`,height:`11`,viewBox:`0 0 10 11`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function kH(e,t){return S(),V(`svg`,OH,[...t[0]||=[c(`path`,{d:`M5 10.1978C4.7207 10.1978 4.52197 10.0044 4.52197 9.7251V2.65137L4.56494 1.50195L2.95361 3.26904L1.729 4.47217C1.64844 4.55811 1.51953 4.60107 1.39062 4.60107C1.12207 4.60107 0.928711 4.39697 0.928711 4.13379C0.928711 4.00488 0.977051 3.89209 1.0791 3.78467L4.64014 0.212891C4.74219 0.105469 4.86572 0.0517578 5 0.0517578C5.13428 0.0517578 5.25781 0.105469 5.35986 0.212891L8.92627 3.78467C9.02832 3.89209 9.07129 4.00488 9.07129 4.13379C9.07129 4.39697 8.87793 4.60107 8.60938 4.60107C8.48047 4.60107 8.35693 4.55811 8.271 4.47217L7.04639 3.26904L5.44043 1.50732L5.47803 2.65137V9.7251C5.47803 10.0044 5.2793 10.1978 5 10.1978Z`,fill:`currentColor`},null,-1)]])}var AH=B(DH,[[`render`,kH]]),jH={},MH={width:`21`,height:`20`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function NH(e,t){return S(),V(`svg`,MH,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M12.5663 0.846478C12.3457 0.625895 11.9792 0.658942 11.8017 0.915427L9.00221 4.95911C8.97541 4.99782 8.93581 5.02583 8.89039 5.03822L5.20212 6.04411C5.12329 6.06561 5.06548 6.13203 5.05485 6.21304C4.99741 6.65059 4.78835 8.10157 4.36452 9.61523C4.00509 10.8989 2.91361 13.3787 2.30714 14.7167C1.93791 14.5472 1.48666 14.6144 1.18254 14.9186C0.792017 15.3091 0.792017 15.9423 1.18254 16.3328C1.57307 16.7233 2.20623 16.7233 2.59676 16.3328C2.90731 16.0222 2.9709 15.5582 2.78754 15.1848C3.97427 14.6183 6.12247 13.6485 7.90006 13.1508C9.90855 12.5884 10.9209 12.4728 11.2798 12.4494C11.3716 12.4434 11.4526 12.3813 11.4768 12.2925L12.4771 8.6249C12.4895 8.57948 12.5175 8.53988 12.5562 8.51308L16.5999 5.71361C16.8563 5.53604 16.8894 5.16954 16.6688 4.94896L12.5663 0.846478ZM8.34417 7.93803C8.29817 7.89203 8.22119 7.90151 8.18771 7.95729L6.33809 11.04C6.28453 11.1293 6.38602 11.2308 6.47529 11.1772L9.558 9.32758C9.61378 9.2941 9.62326 9.21712 9.57726 9.17112L8.34417 7.93803ZM12.3814 12.3738C12.3814 12.1505 12.5293 11.9543 12.744 11.893L15.8033 11.0189C15.8931 10.9933 15.9883 10.9933 16.078 11.0189L19.1374 11.893C19.352 11.9543 19.5 12.1505 19.5 12.3738V15.913C19.5 16.0117 19.4713 16.1076 19.4146 16.1884C19.0137 16.7602 17.2809 19.1153 15.9407 19.1153C14.6004 19.1153 12.8677 16.7602 12.4667 16.1884C12.41 16.1076 12.3814 16.0117 12.3814 15.913V12.3738ZM14.9114 15.9254L14.9114 15.9255L15.6305 16.6446L17.9549 14.3201L17.2358 13.601L15.6305 15.2063L14.6993 14.2752L13.9802 14.9943L14.9114 15.9254Z`,fill:`currentColor`},null,-1)]])}var PH=B(jH,[[`render`,NH]]),FH={},IH={width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function LH(e,t){return S(),V(`svg`,IH,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M3.5 4V20H20.5V4H3.5ZM4 12.5H20V11.5H4V12.5ZM11.4511 9.23649L11.1107 10.25H10.5L11.854 6.5H12.4828L13.8368 10.25H13.2235L12.8857 9.23649H11.4511ZM11.6071 8.76871H12.7297L12.1892 7.15748H12.145L11.6071 8.76871ZM13.8222 16.3923C13.8222 17.0498 13.3415 17.45 12.5411 17.45H11V13.7H12.5073C13.2115 13.7 13.6351 14.0586 13.6351 14.633V14.6382C13.6351 15.028 13.3467 15.3788 12.9777 15.4412V15.4854C13.4844 15.5399 13.8222 15.8986 13.8222 16.3871V16.3923ZM11.5821 15.2956H12.2734C12.7879 15.2956 13.0556 15.1033 13.0556 14.7395V14.7343C13.0556 14.3809 12.8035 14.1756 12.3721 14.1756H11.5821V15.2956ZM12.4241 16.9744H11.5821V15.74H12.3903C12.9387 15.74 13.2271 15.9479 13.2271 16.3507V16.3559C13.2271 16.7587 12.9491 16.9744 12.4241 16.9744Z`,fill:`currentColor`},null,-1)]])}var RH=B(FH,[[`render`,LH]]),zH=[`aria-label`],BH=[`href`],VH=B({__name:`Icon`,props:{glyph:{type:String,required:!0},className:{type:String,default:``},size:{type:[String,Number],default:`20px`},color:{type:String,default:`currentColor`},ariaLabel:{type:String,default:``}},setup(e){let t=e,n=Object.assign({"./Accepted.vue":mA,"./AddDigitalSign.vue":vA,"./AddElectronicSign.vue":SA,"./AddImage.vue":EA,"./AddText.vue":AA,"./Annotation.vue":PA,"./ArcTool.vue":RA,"./Arrow.vue":gk,"./ArrowDown.vue":YT,"./ArrowDownA.vue":$b,"./ArrowNext.vue":HA,"./ArrowPrev.vue":KA,"./ArrowTool.vue":XA,"./Bold.vue":ej,"./BringBackward.vue":ij,"./BringForward.vue":cj,"./BringToBack.vue":fj,"./BringToFront.vue":gj,"./Callout.vue":bj,"./Cancelled.vue":wj,"./CharacterSpacing.vue":Oj,"./CheckBoxIcon.vue":Mj,"./Checkbox.vue":$C,"./CheckboxColor.vue":Ij,"./Circle.vue":Bj,"./Circled.vue":Wj,"./Close.vue":Fe,"./CloseA.vue":Le,"./CloseB.vue":Ne,"./CloseModal.vue":Jj,"./Cloud.vue":Qj,"./Colorful.vue":nM,"./ComboBoxIcon.vue":oM,"./Completed.vue":uM,"./CopyPage.vue":uD,"./CopyText.vue":oA,"./CreateSignField.vue":mM,"./CropImage.vue":vM,"./CropPageIcon.vue":SM,"./Danger.vue":EM,"./Dark.vue":AM,"./DecreaseFont.vue":PM,"./Decryption.vue":RM,"./DeletePage.vue":SD,"./DocumentPage.vue":HM,"./DoublePage.vue":KM,"./DownArrow.vue":XM,"./Download.vue":eN,"./EditBack.vue":iN,"./EditGo.vue":cN,"./EllipseTool.vue":fN,"./EmptyInput.vue":gN,"./EmptyStamp.vue":Sw,"./EmptyStampDark.vue":dw,"./Encryption.vue":bN,"./EraserIcon.vue":wN,"./Export.vue":ON,"./ExportImage.vue":MN,"./ExtractPage.vue":oD,"./EyesInvisible.vue":IN,"./EyesVisible.vue":BN,"./Failed.vue":sT,"./FailedIcon.vue":WN,"./FileFolder.vue":GT,"./FillBlack.vue":JN,"./FillFormIcon.vue":QN,"./FillWhite.vue":nP,"./Flatten.vue":oP,"./FlipX.vue":uP,"./FlipY.vue":mP,"./Fold.vue":vP,"./FreeHand.vue":SP,"./Fullscreen.vue":EP,"./HeadArrow.vue":AP,"./HeadButt.vue":PP,"./HeadCircle.vue":RP,"./HeadClose.vue":HP,"./HeadDiamond.vue":KP,"./HeadLine.vue":XP,"./HeadRclose.vue":eF,"./HeadRopen.vue":iF,"./HeadSlash.vue":cF,"./HeadSquare.vue":fF,"./Help.vue":gF,"./Highlight.vue":bF,"./HightlightGray.vue":wF,"./HollowLight.vue":OF,"./HorizontalScrolling.vue":MF,"./Image.vue":IF,"./Img.vue":sw,"./ImgDark.vue":BF,"./Import.vue":WF,"./IncreaseFont.vue":JF,"./Ink.vue":QF,"./InputClose.vue":nI,"./InsertPage.vue":AD,"./Italic.vue":oI,"./Language.vue":uI,"./LayerEyesInvisible.vue":mI,"./LayerEyesVisible.vue":vI,"./Layers.vue":SI,"./Light.vue":EI,"./LineSpacing.vue":AI,"./LineTool.vue":Nb,"./LinestyleCloudy-1.vue":PI,"./LinestyleCloudy-2..vue":RI,"./LinestyleDash-10-10..vue":HI,"./LinestyleDash-2-2-10-2..vue":KI,"./LinestyleDash-4-4..vue":XI,"./LinestyleDash-6-2-1-2..vue":eL,"./LinestyleDash-6-2-2-2..vue":iL,"./LinestyleDash-6-6..vue":cL,"./LinestyleSolid-line..vue":fL,"./Link.vue":gL,"./ListBoxIcon.vue":bL,"./Loading.vue":dT,"./Lock.vue":wL,"./LockSmall.vue":OL,"./Lockup.vue":ML,"./Logo.vue":IL,"./MeasureArc.vue":BL,"./MeasureCircle.vue":WL,"./MeasureCurve.vue":JL,"./MeasureLine.vue":QL,"./MeasureMultiline.vue":nR,"./MeasurePolygon.vue":oR,"./MeasureRectangle.vue":uR,"./MergePage.vue":ED,"./Minus.vue":mR,"./More.vue":vR,"./MoreA.vue":SR,"./MoreB.vue":ER,"./MoreC.vue":AR,"./MovePage.vue":QE,"./Next.vue":PR,"./NoColor.vue":vx,"./None.vue":RR,"./Note.vue":HR,"./OpenFile.vue":KR,"./Outline.vue":XR,"./Pagecover.vue":ez,"./Pageset.vue":iz,"./PanelRight.vue":cz,"./Panelleft.vue":fz,"./Pantool.vue":gz,"./ParagraphSpacing.vue":bz,"./Paste.vue":wz,"./Plus.vue":Oz,"./PolygonTool.vue":Mz,"./PolylineTool.vue":Iz,"./Prev.vue":Bz,"./Print.vue":Wz,"./PropertyPanel.vue":nA,"./PushButtonIcon.vue":Jz,"./RadioBtnDis.vue":wT,"./RadioBtnSel.vue":OT,"./RadioButtonIcon.vue":Qz,"./RectangleTool.vue":Lb,"./Rejected.vue":nB,"./ReplaceImage.vue":oB,"./ReplacePage.vue":nD,"./Reply.vue":uB,"./ReplyA.vue":uA,"./Return.vue":mB,"./RotateImageLeft.vue":vB,"./RotateImageRight.vue":SB,"./RotatePageLeft.vue":mD,"./RotatePageRight.vue":vD,"./Rotateleft.vue":EB,"./Rotateright.vue":AB,"./Search.vue":PB,"./SearchLeft.vue":RB,"./SelectAll.vue":WE,"./SelectText.vue":HB,"./Settings.vue":KB,"./SettingsA.vue":Qk,"./Signature.vue":XB,"./SignatureInvalid.vue":eV,"./SignatureUnknown.vue":iV,"./SignatureValid.vue":cV,"./SinglePage.vue":fV,"./Slider.vue":rw,"./Squiggle.vue":gV,"./SquiggleGray.vue":bV,"./Stamp.vue":wV,"./Strikeout.vue":OV,"./StrikeoutGray.vue":MV,"./SuccessIcon.vue":IV,"./Text.vue":BV,"./TextCenter.vue":Gb,"./TextFieldIcon.vue":WV,"./TextLeft.vue":Yb,"./TextRight.vue":Vb,"./TextalignCenter.vue":JV,"./TextalignLeft.vue":QV,"./TextalignRight.vue":nH,"./Thumbnail.vue":oH,"./Tip.vue":uH,"./ToolDate.vue":rx,"./ToolShape.vue":sx,"./ToolsText.vue":px,"./TreeArrow.vue":mH,"./Underline.vue":vH,"./UnderlineGray.vue":SH,"./Unfold.vue":EH,"./UnselectAll.vue":JE,"./UpArrow.vue":AH,"./VerifyDigitalSign.vue":PH,"./VerticalScrolling.vue":RH,"./Warning.vue":YC,"./ZoomIn.vue":ck,"./ZoomOut.vue":fk}),r=T(()=>n[`./${t.glyph}.vue`]||null),i=T(()=>`#${t.glyph}`),a=T(()=>({width:o(t.size),height:o(t.size),color:t.color})),o=e=>typeof e==`number`?`${e}px`:e;return(t,n)=>r.value?(S(),s(ve(r.value),f({key:0,class:e.className,style:a.value,"aria-label":e.ariaLabel,"aria-hidden":`true`},t.$attrs),null,16,[`class`,`style`,`aria-label`])):(S(),V(`svg`,f({key:1,class:[`svg-icon`,e.className],style:a.value,"aria-label":e.ariaLabel,"aria-hidden":`true`},t.$attrs),[c(`use`,{href:i.value},null,8,BH)],16,zH))}},[[`__scopeId`,`data-v-54e86885`]]),HH={key:2},UH={__name:`ToolButton`,props:{toolName:{type:String,default:``},dataElement:{type:String,default:``},title:{type:String,default:``},className:{type:String,default:``},disabled:{type:Boolean,default:!1},icon:{type:String,default:``},text:{type:String,default:``}},setup(e){let t=ye(),n=pw(),r=e,i=[L.HIGHLIGHT,L.UNDERLINE,L.SQUIGGLY,L.STRIKEOUT],a=[L.SQUARE,L.CIRCLE,L.ARROW,L.LINE],o={[L.TEXT]:HR,[L.HIGHLIGHT]:bF,[L.UNDERLINE]:vH,[L.STRIKEOUT]:OV,[L.SQUIGGLY]:gV,[L.INK]:QF,[L.FREEHAND]:SP,[L.CIRCLE]:fN,[L.ARC]:RA,[L.SQUARE]:Lb,[L.POLYGON]:Mz,[L.CLOUDY]:Qj,[L.POLYLINE]:Iz,[L.ARROW]:XA,[L.LINE]:Nb,[L.FREETEXT]:BV,[L.CALLOUT]:bj,[L.IMAGE]:IF,[L.LINK]:gL,[L.TEXTFIELD]:WV,[L.CHECKBOX]:Mj,[L.RADIOBUTTON]:Qz,[L.LISTBOX]:bL,[L.COMBOBOX]:oM,[L.PUSHBUTTON]:Jz,[L.FILL_FORM]:QN,[L.ERASER]:wN},c={[L.TEXT]:`toolbar.annotationTools.note`,[L.HIGHLIGHT]:`toolbar.annotationTools.highlight`,[L.UNDERLINE]:`toolbar.annotationTools.underline`,[L.STRIKEOUT]:`toolbar.annotationTools.strikeout`,[L.SQUIGGLY]:`toolbar.annotationTools.squiggly`,[L.INK]:`toolbar.annotationTools.ink`,[L.CIRCLE]:`toolbar.annotationTools.circle`,[L.ARC]:`toolbar.annotationTools.arc`,[L.SQUARE]:`toolbar.annotationTools.square`,[L.POLYGON]:`toolbar.annotationTools.polygon`,[L.CLOUDY]:`toolbar.annotationTools.cloudy`,[L.POLYLINE]:`toolbar.annotationTools.polyline`,[L.ARROW]:`toolbar.annotationTools.arrow`,[L.LINE]:`toolbar.annotationTools.line`,[L.FREETEXT]:`toolbar.annotationTools.freetext`,[L.CALLOUT]:`toolbar.annotationTools.callout`,[L.IMAGE]:`toolbar.annotationTools.image`,[L.LINK]:`toolbar.annotationTools.link`,[L.TEXTFIELD]:`toolbar.formTools.textField`,[L.CHECKBOX]:`toolbar.formTools.checkbox`,[L.RADIOBUTTON]:`toolbar.formTools.radioButton`,[L.LISTBOX]:`toolbar.formTools.listBox`,[L.COMBOBOX]:`toolbar.formTools.comboButton`,[L.PUSHBUTTON]:`toolbar.formTools.button`,fillForm:`toolbar.formTools.FillSign`,[L.ERASER]:`toolbar.annotationTools.eraser`},l=T(()=>n.getActiveTool),u=T(()=>r.toolName===l.value),f=e=>{if(n.setToolState(e),t.toggleActiveHand(!1),U.switchTool(0),U.switchAnnotationEditorMode(0),l.value===L.IMAGE){let e=P?`annotaionImageInput`:`signImageInput`;document.getElementById(e).click()}l.value===L.ADD_IMAGE&&P&&(document.getElementById(`editorImageInput`).click(),n.setToolState(L.ADD_IMAGE))},p=(()=>{let e=r.toolName;if(i.includes(e)&&n.setMarkupToolState(e),a.includes(e)&&n.setShapeToolState(e),e===L.PAN){m();return}f(e)}),m=()=>{let e=t.getActiveHand;window.getSelection().empty(),t.toggleActiveHand(!e),U.switchTool(+!e),U.switchAnnotationEditorMode(0),t.closeActiveStickNote(),U.webViewerNamedAction(`Find`,4),n.setToolState(L.PAN),t.setSearchStatus(!1)};return(t,n)=>{let r=VH,i=lx;return S(),s(i,{"data-element":e.dataElement,isActive:u.value,disabled:e.disabled,className:e.className,onClick:p,title:t.$t(e.title)||t.$t(c[e.toolName])},{default:G(()=>[e.icon?(S(),s(r,{key:0,glyph:e.icon},null,8,[`glyph`])):o[e.toolName]?(S(),s(ve(o[e.toolName]),{key:1})):b(``,!0),e.className.includes(`with-text`)?(S(),V(`span`,HH,d(e.text||t.$t(c[e.toolName])||t.$t(e.title)),1)):b(``,!0)]),_:1},8,[`data-element`,`isActive`,`disabled`,`className`,`title`])}}},WH=[`innerHTML`],GH=[`src`],KH={__name:`ToggleElementButton`,props:{icon:{type:String,default:``},img:{type:String,default:``},text:{type:String,default:``},dataElement:{type:String,default:``},title:{type:String,default:``},className:{type:String,default:``},style:{type:Object,default:{}},element:{type:String,default:``}},setup(e){let t=ye(),n=pw(),r=e,i=r.img?.trim().toLowerCase().startsWith(`<svg`),a=T(()=>t.isElementOpen(r.element)),o=T(()=>t.isElementDisabled(r.dataElement,`style`)),c=()=>{if(r.element===H.STAMP_PANEL&&!U.getPermission(`allowsCommenting`)){t.openElement(`permissionPasswordDialog`);return}t.toggleElement(r.element),r.element===H.STAMP_PANEL&&(n.setToolState(``),t.toggleActiveHand(!1),U.switchTool(0),U.switchAnnotationEditorMode(0))},l=e=>e?Object.entries(e).map(([e,t])=>Number.isInteger(t)?`${e}:${t}px`:`${e}:${t}`).join(`;`):``;return(t,n)=>{let r=VH,u=lx;return S(),s(u,{"data-element":e.dataElement,isActive:a.value,disabled:o.value,className:e.className,onClick:c,title:t.$t(e.title),style:A(l(e.style))},{default:G(()=>[e.img?(S(),V(q,{key:0},[K(i)?(S(),V(`div`,{key:0,innerHTML:e.img,class:`img`},null,8,WH)):(S(),V(`img`,{key:1,src:e.img,alt:``,class:`img`},null,8,GH))],64)):e.icon?(S(),s(r,{key:1,glyph:e.icon},null,8,[`glyph`])):b(``,!0),e.text?(S(),V(`div`,{key:2,class:D({text:e.img||e.icon})},d(t.$t(e.text)),3)):b(``,!0)]),_:1},8,[`data-element`,`isActive`,`disabled`,`className`,`title`,`style`])}}},qH=[`innerHTML`],JH=[`src`],YH={__name:`StatefulButton`,props:{dataElement:{type:String,default:``},title:{type:String,default:``},className:{type:String,default:``},style:{type:Object,default:{}},states:{type:Object,default:{img:{type:String,default:``},getContent:{type:Function,default:null},onClick:{type:Function,default:null}}},mount:{type:Function,default:null},unmount:{type:Function,default:null},initialState:{type:String,default:``}},setup(e){let t=e,n=J(t.initialState),r=t.states[n.value],{img:i}=r,a=i?.trim().toLowerCase().startsWith(`<svg`),o=()=>{c(),r.onClick(r)},c=()=>{n.value=t.initialState},l=T(()=>r.getContent instanceof Function?r.getContent(r):r.getContent),u=e=>e?Object.entries(e).map(([e,t])=>Number.isInteger(t)?`${e}:${t}px`:`${e}:${t}`).join(`;`):``;return t.mount&&M(()=>{t.mount()}),t.unmount&&j(()=>{t.unmount()}),(t,n)=>{let r=lx;return S(),s(r,{"data-element":e.dataElement,className:e.className,onClick:o,title:t.$t(e.title),style:A(u(e.style))},{default:G(()=>[K(i)?(S(),V(q,{key:0},[K(a)?(S(),V(`div`,{key:0,innerHTML:K(i),class:`img`},null,8,qH)):(S(),V(`img`,{key:1,src:K(i),alt:``,class:`img`},null,8,JH))],64)):b(``,!0),y(` `+d(l.value),1)]),_:1},8,[`data-element`,`className`,`title`,`style`])}}},XH=[`innerHTML`],ZH=[`src`],QH={__name:`ActionButton`,props:{img:{type:String,default:``},icon:{type:String,default:``},text:{type:String,default:``},dataElement:{type:String,default:``},title:{type:String,default:``},className:{type:String,default:``},style:{type:Object,default:{}},onClick:{type:Function,default:null},isNotClickableSelector:{type:Function,default:null}},setup(e){let t=ye(),n=pw(),r=e,i=r.img?.trim().toLowerCase().startsWith(`<svg`),a=()=>{r.onClick&&r.onClick(t,n)},o=e=>e?Object.entries(e).map(([e,t])=>Number.isInteger(t)?`${e}:${t}px`:`${e}:${t}`).join(`;`):``,c=T(()=>r.isNotClickableSelector&&r.isNotClickableSelector(t,n));return(t,n)=>{let r=VH,l=lx;return S(),s(l,{"data-element":e.dataElement,disabled:c.value,className:e.className,onClick:a,title:t.$t(e.title),style:A(o(e.style))},{default:G(()=>[e.img?(S(),V(q,{key:0},[K(i)?(S(),V(`div`,{key:0,innerHTML:e.img,class:`img`},null,8,XH)):(S(),V(`img`,{key:1,src:e.img,alt:``,class:`img`},null,8,ZH))],64)):e.icon?(S(),s(r,{key:1,glyph:e.icon},null,8,[`glyph`])):b(``,!0),e.text?(S(),V(`div`,{key:2,class:D({text:e.img||e.icon})},d(t.$t(e.text)),3)):b(``,!0)]),_:1},8,[`data-element`,`disabled`,`className`,`title`,`style`])}}},$H={__name:`CustomButton`,props:[`item`],setup(e){let{type:t}=e.item;return(n,r)=>{let i=QH,a=YH,o=KH,c=UH;return S(),V(q,null,[K(t)===`actionButton`?(S(),s(i,f({key:0},e.item,{className:`custom-button ${e.item.className||``}`}),null,16,[`className`])):K(t)===`statefulButton`?(S(),s(a,f({key:1},e.item,{className:`custom-button ${e.item.className||``}`}),null,16,[`className`])):K(t)===`toggleElementButton`?(S(),s(o,f({key:2},e.item,{className:`custom-button ${e.item.className||``}`}),null,16,[`className`])):b(``,!0),K(t)===`toolButton`?(S(),s(c,f({key:3},e.item,{className:`custom-button ${e.item.className||``}`}),null,16,[`className`])):b(``,!0)],64)}}},eU=4,tU=4,nU=(e,t,n,r=1,i=`right`)=>{let{left:a,top:o}=oU(rU(e,t,r),aU(n),r,i);return{left:Math.max(a,eU),top:o}},rU=(e,t,n)=>{let{left:r,top:i,right:a,bottom:o}=e;return{topLeft:iU(r,i,t,n),bottomRight:iU(a,o,t,n)}},iU=(e,t,n,r=1)=>U.pageToWindow({x:e,y:t},n,r),aU=e=>{let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}},oU=(e,t,n)=>{let r=cU(e,t,n);return{left:sU(e,t,n),top:r}},sU=({topLeft:e,bottomRight:t},{width:n},r,i)=>{let{scrollLeft:a}=U.getScrollViewElement(r),o;if(i===`center`){o=(e.x+t.x)/2-a-n/2;let r=window.innerWidth-n-eU;o<eU?o=eU:o>r&&(o=r)}else o=t.x-n-a;return Math.round(o)},cU=({topLeft:e,bottomRight:t},{height:n},r)=>{let i=U.getScrollViewElement(r),{scrollTop:a}=i,o=i.getBoundingClientRect(),s=o.top+a,c=o.bottom+a,l=e.y,u=t.y,d;return d=u+n+tU<=c?u+tU:l-n-tU>=s?l-n-tU:l-s>=c-u?s+eU:c-n-eU,Math.round(d-a)},lU=e=>e?.author??e?.annotation?.author,uU=({isReadOnly:e=!1,isUserAdmin:t=!1,currentAuthor:n,annotations:r=[]}={})=>e?!1:t?!0:r.every(e=>lU(e)===n),dU=t({default:()=>fU}),fU={__name:`AnnotationPopup`,setup(e){let t=pw(),n=ye(),r=[L.TEXTFIELD,L.CHECKBOX,L.RADIOBUTTON,L.LISTBOX,L.COMBOBOX,L.PUSHBUTTON,L.SIGNATURE_FIELDS],i=[L.HIGHLIGHT,L.UNDERLINE,L.SQUIGGLY,L.STRIKEOUT],a=T(()=>t.getSelectedAnnotation),o=T(()=>n.getPopupItems(`annotationPopup`)),l=T(()=>{let e=o.value.filter(e=>!n.isElementDisabled(e.dataElement));if(a.value){let t=a.value.type;if(t===`link`||t===`redaction`&&a.value.annotation.erasure)return e.filter(e=>e.dataElement===H.DELETE_ANNOT_BUTTON);if(t===`redaction`&&!a.value.annotation.erasure)return e.filter(e=>e.dataElement===H.ANNOT_PROPERTY_BUTTON||e.dataElement===H.DELETE_ANNOT_BUTTON);if(r.includes(t))return e.filter(e=>[H.ANNOT_PROPERTY_BUTTON,H.COPY_ANNOTATION_BUTTON,H.DELETE_ANNOT_BUTTON].includes(e.dataElement))}return e}),u=T(()=>n.getActiveElementTab(H.LEFT_PANEL)),d=T(()=>n.isElementOpen(H.STYLE_PANEL)),f=T(()=>n.isElementOpen(H.RIGHT_PANEL)),p=T(()=>n.isElementOpen(H.LEFT_PANEL)),m=T(()=>n.isElementOpen(H.REDACTION_PANEL)),g=T(()=>{let e=a.value?.type;return r.includes(e)?f.value:e===`redaction`?m.value:d.value}),_=T(()=>n.isElementOpen(`measurementSettingsDialog`)),v=T(()=>t.getAnnotator),y=T(()=>n.getUserAdmin),C=T(()=>n.getReadOnly),w=T(()=>n.getPanelTransitionEnd),O=J(null),k=J(!1),N=J(0),P=J(0),ee=J(!y.value&&(C.value||a.value&&v.value!==a.value.author)),F=null,te=J([]),I=J(!1),ne=J([]),re=()=>U.getAnnotationManager()?.getSelectedAnnotations?.()||[],ie=()=>{ne.value=re()},B=T(()=>{let e=ne.value.length?ne.value:a.value?[a.value]:[];return uU({isReadOnly:C.value,isUserAdmin:y.value,currentAuthor:v.value,annotations:e})});W([y,C,a,v],()=>{ee.value=!y.value&&(C.value||a.value&&v.value!==a.value.author)}),W([d,f,p],()=>{k.value&&setTimeout(()=>le(a.value||ce),300)}),W(w,()=>{k.value&&le(a.value||ce)});let ae,oe=!1,se,ce=null,le=async e=>{k.value=!!e,ce=e?.isMultiple?e:null,ie(),await E();let t=O.value?.firstElementChild;if(I.value=!!e?.isMultiple,!e||!k.value||!t)return;let n,r;if(e.isMultiple)n=e.rect,r=e.pageNumber,te.value=e.selectedTypes;else{let{x1:t,y1:i,x2:a,y2:o}=e.getRect();n={left:t,top:i,right:a,bottom:o},r=e.pageIndex+1,te.value.length=0}await E();let i=nU(n,r,t);N.value=i.top,P.value=i.left};U.addEvent(`showAnnotationPopup`,le);let ue=()=>{let e=a.value?.type||te.value[0],t=r.includes(e),i=e===`redaction`;n.toggleElement(t?H.RIGHT_PANEL:i?H.REDACTION_PANEL:H.STYLE_PANEL)},de=()=>{n.openElement(`measurementSettingsDialog`)},fe=async e=>{let t=U.getAnnotationManager();switch(e){case`reply`:u.value!==H.ANNOTATION_TAB&&n.setActiveElementTab(H.LEFT_PANEL,H.ANNOTATION_TAB),p.value||(k.value=!1,n.openElement(H.LEFT_PANEL)),n.openElement(`reply`),F&&=(clearTimeout(F),null),setTimeout(()=>{let e=document.querySelector(`.annotation-item.selected`);if(e.scrollIntoView({behavior:`smooth`}),e.classList.contains(`flash-border`))e.classList.remove(`flash-border`),clearTimeout(F),F=null;else{e.classList.add(`flash-border`);let t=document.querySelector(`.annotation-item.selected`),n=t.querySelector(`textarea`);n&&n.focus(),F=setTimeout(()=>t?.classList.remove(`flash-border`),2e3)}},300);break;case`delete`:k.value=!1,t.deleteAnnotations([...t.getSelectedAnnotations()]);break;case`copy`:{let e=t.getSelectedAnnotations();if(!uU({isReadOnly:C.value,isUserAdmin:y.value,currentAuthor:v.value,annotations:e}))return;k.value=!1;let n=e.map(e=>{let t=JSON.parse(JSON.stringify(e.annotation));if(delete t.name,delete t.annotPtr,delete t.pagePtr,Object.keys(t).forEach(e=>{t[e]??delete t[e]}),t.rect&&Object.keys(t.rect).forEach(e=>t.rect[e]+=10),t.linePoints&&=t.linePoints.map(e=>e+=10),t.vertices&&t.vertices.forEach(e=>{e.x+=10,e.y+=10}),t.inkPointes)for(let e of t.inkPointes)for(let t of e)t.PointX=Number(t.PointX)+10,t.PointY=Number(t.PointY)+10;return t.arcPoints&&t.arcPoints.forEach(e=>{e.x+=10,e.y+=10}),t.floatPoint&&t.floatPoint.forEach(e=>{e.x+=10,e.y+=10}),t}),r=t.getSelectedAnnotations(),i=r[0]?.PageNumber||r[0]?.getPageNumber?.()||1,a=await U.getDocumentViewer().addAnnotations(n);a&&a.length&&(r.length&&(r.forEach(e=>e.handleOutside?.(null,!0)),t.deselectAnnotations(r)),a.length===1?a[0].selectAnnotation():t.selectAnnotations(a,i));break}}};U.addEvent(`annotationSelected`,()=>{ie(),ee.value=!y.value&&(C.value||a.value&&v.value!==a.value.author)});let pe=()=>{!k.value||[`text`,`freetext`,`callout`].includes(a.value?.type)||(k.value&&(k.value=!1,oe=!0),oe&&(clearTimeout(se),se=setTimeout(()=>{U.showPopup({type:`annotationPopup`}),oe=!1},200)))};return M(()=>{ae=document.querySelector(`.document-container`),ae&&ae.addEventListener(`scroll`,pe)}),j(()=>{ae&&ae.removeEventListener(`scroll`,pe)}),(e,t)=>{let n=$H,o=uA,u=lx,d=oA,f=nA,p=Qk,m=SD;return S(),V(`div`,{ref_key:`annotaitonPopupRef`,ref:O},[R(c(`div`,{class:`annotation-popup popup`,style:A({top:`${N.value}px`,left:`${P.value}px`})},[(S(!0),V(q,null,z(l.value,(c,l)=>(S(),V(q,{key:`${c.dataElement||new Date}-${l}`},[[`actionButton`,`statefulButton`,`toggleElementButton`,`toolButton`].includes(c.type)&&!c.hidden?(S(),s(n,{key:0,item:c},null,8,[`item`])):c.type===`reply`&&!c.hidden&&!C.value&&!te.value.length?(S(),s(u,{key:1,onClick:t[0]||=e=>fe(`reply`),title:e.$t(`common.actions.reply`),"data-element":c.dataElement},{default:G(()=>[x(o)]),_:1},8,[`title`,`data-element`])):c.type===`copy`&&!c.hidden&&B.value&&!te.value.includes(`markup`)&&!i.includes(a.value?.type)?(S(),s(u,{key:2,onClick:t[1]||=e=>fe(`copy`),title:e.$t(`documentEditor.copy`),"data-element":c.dataElement},{default:G(()=>[x(d)]),_:1},8,[`title`,`data-element`])):c.type===`property`&&!c.hidden&&!ee.value&&te.value.length<=1&&!r.includes(te.value[0])?(S(),s(u,{key:3,onClick:ue,title:e.$t(`common.properties`),"data-element":c.dataElement,isActive:g.value},{default:G(()=>[x(f)]),_:1},8,[`title`,`data-element`,`isActive`])):c.type===`settings`&&!c.hidden&&!ee.value&&!I.value&&a.value?.measure?(S(),s(u,{key:4,onClick:de,title:e.$t(`toolbar.settings.title`),"data-element":c.dataElement,isActive:_.value},{default:G(()=>[x(p)]),_:1},8,[`title`,`data-element`,`isActive`])):c.type===`delete`&&!c.hidden&&!ee.value?(S(),s(u,{key:5,onClick:t[2]||=e=>fe(`delete`),title:e.$t(`common.actions.delete`),"data-element":c.dataElement},{default:G(()=>[x(m)]),_:1},8,[`title`,`data-element`])):[`spacer`,`divider`].includes(c.type)?(S(),V(`div`,{key:6,class:D(c.type)},null,2)):b(``,!0)],64))),128))],4),[[Re,k.value&&(a.value&&![`text`,`freetext`,`callout`].includes(a.value?.type)||I.value)]])],512)}}},pU={},mU={width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function hU(e,t){return S(),V(`svg`,mU,[...t[0]||=[c(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11.9596 4.80005L13.2 5.88792L8 11.2L2.8 5.88792L4.0404 4.80005L8 8.84446L11.9596 4.80005Z`,fill:`currentColor`},null,-1)]])}var gU=B(pU,[[`render`,hU]]),_U={class:`measurements-settings`},vU={class:`subtitle`},yU={class:`scale`},bU={class:`left-text`},xU={class:`right-text`},SU={class:`form-box`},CU={class:`form-box`},wU={value:`pt`},TU={value:`in`},EU={value:`mm`},DU={value:`cm`},OU={value:`m`},kU={value:`km`},AU={value:`ft`},jU={value:`yd`},MU={value:`mi`},NU={class:`form-box`},PU={class:`form-box`},FU={value:`pt`},IU={value:`in`},LU={value:`mm`},RU={value:`cm`},zU={value:`m`},BU={value:`km`},VU={value:`ft`},HU={value:`yd`},UU={value:`mi`},WU={key:0,class:`error`},GU={class:`discription`},KU={class:`form-box`},qU={key:0,class:`caption`},JU={class:`subtitle`},YU={class:`check-content`},XU=[`onClick`],ZU=`measurementSettingsDialog`,QU={__name:`MeasurementSettingsDialog`,setup(e){let t=ye(),n=pw(),r=T(()=>t.isElementOpen(ZU)),i=T(()=>n.getActiveTool),a=N({scale:{base:1,baseUnit:`cm`,translate:1,translateUnit:`cm`},precision:.1}),o=N({showRadius:!0,showPerimeter:!0,showArea:!0,showArcLength:!0,showAngle:!0}),s={polygon:[`showPerimeter`,`showArea`],rectangle:[`showPerimeter`,`showArea`],circle:[`showPerimeter`,`showArea`,`showRadius`],arc:[`showRadius`,`showArcLength`,`showAngle`]},l=[{key:`showRadius`,types:[`circle`,`arc`],label:`measurement.dimensions.radius`},{key:`showPerimeter`,types:[`circle`,`polygon`,`rectangle`],label:`measurement.dimensions.perimeter`},{key:`showArea`,types:[`circle`,`polygon`,`rectangle`],label:`measurement.dimensions.area`},{key:`showArcLength`,types:[`arc`],label:`measurement.dimensions.arcLength`},{key:`showAngle`,types:[`arc`],label:`measurement.dimensions.angle`}],u={scale:{base:1,baseUnit:`cm`,translate:1,translateUnit:`cm`},precision:.1},f={showPerimeter:!0,showArea:!0,showRadius:!0,showArcLength:!0,showAngle:!0},p=J(!1),m=J(``),g=``,_=J(!1);W(r,(e,t)=>{e&&(_.value=!1,u||f?w({...u,...f}):(a.scale={base:1,baseUnit:`cm`,translate:1,translateUnit:`cm`},a.precision=1,o.showPerimeter=!0,o.showArea=!0,o.showRadius=!0,o.showArcLength=!0,o.showAngle=!0),p.value=!1,m.value=g||i.value)}),W([a,o],e=>{if(e[0].scale.base===u.scale.base&&e[0].scale.baseUnit===u.scale.baseUnit&&e[0].scale.translate===u.scale.translate&&e[0].scale.translateUnit===u.scale.translateUnit&&e[0].precision===u.precision&&e[1].showPerimeter===f.showPerimeter&&e[1].showArea===f.showArea&&e[1].showRadius===f.showRadius&&e[1].showArcLength===f.showArcLength&&e[1].showAngle===f.showAngle){_.value=!1;return}_.value=!0});let v=()=>{t.closeElement(ZU)},y=()=>{a.scale.base.toString().length>6&&(a.scale.base=a.scale.base.toString().slice(0,6)),a.scale.translate.toString().length>6&&(a.scale.translate=a.scale.translate.toString().slice(0,6)),p.value=a.scale.base<=0||a.scale.translate<=0},C=()=>{let e=(s[m.value]||[]).reduce((e,t)=>({...e,[t]:o[t]}),{});JSON.stringify(u)===JSON.stringify(a)?U.setMeasurementDefaults({...e}):U.setMeasurementDefaults({...JSON.parse(JSON.stringify(a)),...e}),v()},w=e=>{Object.entries(e).forEach(([e,t])=>{if(e===`scale`){Object.assign(a.scale,t);return}e in a&&(a[e]=t),e in o&&(o[e]=t)}),u=JSON.parse(JSON.stringify(a)),f=JSON.parse(JSON.stringify(o))};return U.addEvent(`updateMeasureData`,w),U.addEvent(`measurePropertyChange`,e=>{if(g=``,e.hasOwnProperty(`type`)){if(e.type===`ink`&&e.arcPoints){g=`arc`;return}g=e.type}}),(e,t)=>{let n=gU,i=$C,s=GC;return R((S(),V(`div`,_U,[x(s,{show:r.value,dialogName:ZU},{header:G(()=>[c(`p`,null,d(e.$t(`measurement.settings`)),1)]),footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:v},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:D([`rect-button blue`,{disabled:p.value||!_.value}]),onClick:C},d(e.$t(`measurement.done`)),3)]),default:G(()=>[c(`p`,vU,d(e.$t(`measurement.scale`)),1),c(`div`,yU,[c(`span`,bU,d(e.$t(`measurement.drawingDimensions`)),1),c(`span`,xU,d(e.$t(`measurement.actualSize`)),1),c(`div`,SU,[R(c(`input`,{type:`number`,min:`1`,max:`999999`,"onUpdate:modelValue":t[0]||=e=>a.scale.base=e,onInput:y},null,544),[[Me,a.scale.base]])]),c(`div`,CU,[R(c(`select`,{class:`unit-input`,"onUpdate:modelValue":t[1]||=e=>a.scale.baseUnit=e},[c(`option`,wU,d(e.$t(`measurement.units.pt`)),1),c(`option`,TU,d(e.$t(`measurement.units.in`)),1),c(`option`,EU,d(e.$t(`measurement.units.mm`)),1),c(`option`,DU,d(e.$t(`measurement.units.cm`)),1),c(`option`,OU,d(e.$t(`measurement.units.m`)),1),c(`option`,kU,d(e.$t(`measurement.units.km`)),1),c(`option`,AU,d(e.$t(`measurement.units.ft`)),1),c(`option`,jU,d(e.$t(`measurement.units.yd`)),1),c(`option`,MU,d(e.$t(`measurement.units.mi`)),1)],512),[[Oe,a.scale.baseUnit]]),x(n)]),t[5]||=c(`span`,null,`=`,-1),c(`div`,NU,[R(c(`input`,{type:`number`,min:`1`,max:`999999`,"onUpdate:modelValue":t[2]||=e=>a.scale.translate=e,onInput:y},null,544),[[Me,a.scale.translate]])]),c(`div`,PU,[R(c(`select`,{class:`unit-input`,"onUpdate:modelValue":t[3]||=e=>a.scale.translateUnit=e},[c(`option`,FU,d(e.$t(`measurement.units.pt`)),1),c(`option`,IU,d(e.$t(`measurement.units.in`)),1),c(`option`,LU,d(e.$t(`measurement.units.mm`)),1),c(`option`,RU,d(e.$t(`measurement.units.cm`)),1),c(`option`,zU,d(e.$t(`measurement.units.m`)),1),c(`option`,BU,d(e.$t(`measurement.units.km`)),1),c(`option`,VU,d(e.$t(`measurement.units.ft`)),1),c(`option`,HU,d(e.$t(`measurement.units.yd`)),1),c(`option`,UU,d(e.$t(`measurement.units.mi`)),1)],512),[[Oe,a.scale.translateUnit]]),x(n)]),p.value?(S(),V(`p`,WU,d(e.$t(`measurement.scaleError`)),1)):b(``,!0)]),c(`p`,GU,d(e.$t(`measurement.precision`)),1),c(`div`,KU,[R(c(`select`,{"onUpdate:modelValue":t[4]||=e=>a.precision=e},[...t[6]||=[c(`option`,{value:1},`1`,-1),c(`option`,{value:.1},`0.1`,-1),c(`option`,{value:.01},`0.01`,-1),c(`option`,{value:.001},`0.001`,-1),c(`option`,{value:1e-4},`0.0001`,-1)]],512),[[Oe,a.precision]]),x(n)]),[`polygon`,`rectangle`,`circle`,`arc`].includes(m.value)?(S(),V(`div`,qU,[c(`p`,JU,d(e.$t(`measurement.showCaption`)),1),c(`div`,YU,[(S(),V(q,null,z(l,t=>(S(),V(q,{key:t.key},[t.types.includes(m.value)?(S(),V(`div`,{key:0,class:`check-box`,onClick:e=>o[t.key]=!o[t.key]},[c(`div`,{class:D([`check`,{active:o[t.key]}])},[R(x(i,null,null,512),[[Re,o[t.key]]])],2),c(`span`,null,d(e.$t(t.label)),1)],8,XU)):b(``,!0)],64))),64))])])):b(``,!0)]),_:1},8,[`show`])],512)),[[Re,r.value]])}}},$U={class:`header-container`},eW={key:0,class:`title`},tW={key:1,class:`title`},nW={key:2,class:`title`},rW={key:3,class:`title`},iW={key:4,class:`title`},aW={key:5,class:`title`},oW={key:6,class:`title`},sW={class:`content`},cW={class:`has-input`},lW={class:`has-tip`},uW={class:`has-input`},dW={class:`has-tip`},fW={class:`has-tip`},pW={class:`has-tip`},mW={class:`has-tip`},hW={class:`has-input`},gW={class:`has-tip`},_W={class:`has-input`},vW={class:`has-tip`},yW={class:`has-input`},bW={class:`setting`},xW={__name:`MeasurementBoard`,setup(e){let t=ye(),n=pw(),{t:r}=It(),i=T(()=>n.getActiveTool),a=T(()=>t.getReadOnly),o=T(()=>{let e=i.value.includes(`Measurement`);return!a.value&&(C.value||e)}),l=T(()=>{let e=i.value.replace(`Measurement`,``),t=f.includes(e)?e:``;return w.value||t}),u=T(()=>t.isElementOpen(H.STYLE_PANEL)),f=[`line`,`polyline`,`polygon`,`rectangle`,`circle`,`curve`,`arc`],p=N({scale:{base:1,baseUnit:`cm`,translate:1,translateUnit:`cm`},precision:.1,length:0,angle:0,radius:0,perimeter:0,area:0,X:0,Y:0,arcLength:0,width:0}),m=J(),g=J(!1),_=N({right:30,y:100}),v=N({x:0,y:0}),C=J(!1),w=J(``),E=J(!1),O=J(0),k=null,j=T(()=>`${p.scale.base} ${r(`measurement.units.`+p.scale.baseUnit)} = ${p.scale.translate} ${r(`measurement.units.`+p.scale.translateUnit)}`);W(u,(e,t)=>{e&&_.right<260?O.value=_.right-260-30:O.value=0}),W([o,i],(e,t)=>{(e[0]||e[1])&&!C.value&&te()}),U.addEvent(`updateMeasureData`,e=>{for(let t in e)for(let n in p)if(t===n){if(t===`scale`){Object.assign(p.scale,e.scale);continue}p[n]=e[t]}}),U.addEvent(`annotationSelected`,e=>{let t=e.length===1?e[0]:null;if(k=t,t){if(C.value=!!t.measure,!t.measure){w.value=``;return}t.type===`ink`?w.value=t.arcPoints?`arc`:`curve`:w.value=t.type}}),U.addEvent(`annotationDeselected`,e=>{e.length===1&&e[0].name!==k?.name||(k=null,C.value&&(C.value=!1,w.value=``,te()))});let M=()=>{t.openElement(`measurementSettingsDialog`)},P=e=>{g.value=!0,v.x=window.innerWidth-e.clientX-_.right,v.y=e.clientY-_.y,document.addEventListener(`mousemove`,F),document.addEventListener(`mouseup`,ee)},ee=()=>{g.value=!1,document.removeEventListener(`mousemove`,F),document.removeEventListener(`mouseup`,ee)},F=e=>{if(g.value){let t=m.value.offsetWidth,n=m.value.offsetHeight,r=window.innerWidth-e.clientX-v.x,i=e.clientY-v.y,a=window.innerWidth-t,o=window.innerHeight-n;_.right=Math.min(Math.max(r,0),a),_.y=Math.min(Math.max(i,0),o)}},te=()=>{p.length=0,p.angle=0,p.radius=0,p.perimeter=0,p.area=0,p.X=0,p.Y=0,p.arcLength=0,p.width=0},I=(e,t)=>{U.setPropertyPanel({[t]:e})};return(e,t)=>{let n=QL,r=nR,i=oR,a=uR,u=WL,f=BL,g=JL,v=vP,C=EH,T=gF;return R((S(),V(`div`,{ref_key:`measurementBoard`,ref:m,class:D([`measurement-board`,{fold:E.value}]),style:A({top:_.y+`px`,right:_.right+`px`,transform:`translateX(${O.value}px)`}),onMousedown:P},[c(`div`,$U,[l.value===`line`?(S(),V(`div`,eW,[x(n),c(`span`,null,d(e.$t(`toolbar.measurementTools.measureLine`)),1)])):l.value===`polyline`?(S(),V(`div`,tW,[x(r),c(`span`,null,d(e.$t(`toolbar.measurementTools.measureMultiline`)),1)])):l.value===`polygon`?(S(),V(`div`,nW,[x(i),c(`span`,null,d(e.$t(`toolbar.measurementTools.measurePolygon`)),1)])):l.value===`rectangle`?(S(),V(`div`,rW,[x(a),c(`span`,null,d(e.$t(`toolbar.measurementTools.measureRectangle`)),1)])):l.value===`circle`?(S(),V(`div`,iW,[x(u),c(`span`,null,d(e.$t(`toolbar.measurementTools.measureCircle`)),1)])):l.value===`arc`?(S(),V(`div`,aW,[x(f),c(`span`,null,d(e.$t(`toolbar.measurementTools.measureArc`)),1)])):l.value===`curve`?(S(),V(`div`,oW,[x(g),c(`span`,null,d(e.$t(`toolbar.measurementTools.measureCurve`)),1)])):b(``,!0),c(`div`,{onClick:t[0]||=e=>E.value=!E.value,class:`fold-button`},[E.value?(S(),s(C,{key:1})):(S(),s(v,{key:0}))])]),R(c(`div`,sW,[c(`span`,null,d(e.$t(`measurement.scale`))+`:`,1),c(`span`,null,d(j.value),1),c(`span`,null,d(e.$t(`measurement.precision`))+`:`,1),c(`span`,null,d(p.precision),1),l.value===`line`?(S(),V(q,{key:0},[c(`span`,null,d(e.$t(`measurement.dimensions.distance`))+`:`,1),c(`span`,cW,[x(K(gb),{value:p.length,"onUpdate:value":[t[1]||=e=>p.length=e,t[2]||=e=>I(e,`length`)],placeholder:`1`,min:`1`,max:`100`,step:1,"update-value-on-input":!1,"show-button":!1,disabled:!w.value},null,8,[`value`,`disabled`]),y(` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1)]),c(`span`,lW,[y(d(e.$t(`measurement.dimensions.angle`))+`: `,1),x(K(Nv),{trigger:`hover`,style:{padding:`2px 10px`,"background-color":`#414960`,"box-shadow":`none`,"max-width":`280px`,"text-align":`center`},"arrow-style":`background-color: #414960;`},{trigger:G(()=>[x(T)]),default:G(()=>[y(` `+d(e.$t(`measurement.tooltips.lineAngle`)),1)]),_:1})]),c(`span`,uW,[x(K(gb),{value:p.angle,"onUpdate:value":[t[3]||=e=>p.angle=e,t[4]||=e=>I(e,`angle`)],placeholder:`1`,min:`-180`,max:`180`,step:1,"update-value-on-input":!1,"show-button":!1,disabled:!w.value},null,8,[`value`,`disabled`]),t[11]||=y(`° `,-1)]),c(`span`,dW,[t[12]||=y(` X: `,-1),x(K(Nv),{trigger:`hover`,style:{padding:`2px 10px`,"background-color":`#414960`,"box-shadow":`none`,"max-width":`280px`,"text-align":`center`},"arrow-style":`background-color: #414960;`},{trigger:G(()=>[x(T)]),default:G(()=>[y(` `+d(e.$t(`measurement.tooltips.xAxis`)),1)]),_:1})]),c(`span`,null,d(p.X)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1),c(`span`,fW,[t[13]||=y(` Y: `,-1),x(K(Nv),{trigger:`hover`,style:{padding:`2px 10px`,"background-color":`#414960`,"box-shadow":`none`,"max-width":`280px`,"text-align":`center`},"arrow-style":`background-color: #414960;`},{trigger:G(()=>[x(T)]),default:G(()=>[y(` `+d(e.$t(`measurement.tooltips.yAxis`)),1)]),_:1})]),c(`span`,null,d(p.Y)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1)],64)):b(``,!0),l.value===`polyline`?(S(),V(q,{key:1},[c(`span`,null,d(e.$t(`measurement.dimensions.distance`))+`:`,1),c(`span`,null,d(p.length)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1),c(`span`,pW,[y(d(e.$t(`measurement.dimensions.angle`))+`: `,1),x(K(Nv),{trigger:`hover`,style:{padding:`2px 10px`,"background-color":`#414960`,"box-shadow":`none`,"max-width":`250px`,"text-align":`center`},"arrow-style":`background-color: #414960;`},{trigger:G(()=>[x(T)]),default:G(()=>[y(` `+d(e.$t(`measurement.tooltips.multilineAngle`)),1)]),_:1})]),c(`span`,null,d(p.angle)+`°`,1)],64)):b(``,!0),l.value===`curve`?(S(),V(q,{key:2},[c(`span`,null,d(e.$t(`measurement.dimensions.distance`))+`:`,1),c(`span`,null,d(p.length)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1)],64)):b(``,!0),l.value===`circle`?(S(),V(q,{key:3},[c(`span`,mW,[y(d(e.$t(`measurement.dimensions.radius`))+`: `,1),x(K(Nv),{trigger:`hover`,style:{padding:`2px 10px`,"background-color":`#414960`,"box-shadow":`none`,"max-width":`280px`,"text-align":`center`},"arrow-style":`background-color: #414960;`},{trigger:G(()=>[x(T)]),default:G(()=>[y(` `+d(e.$t(`measurement.tooltips.circleRadius`)),1)]),_:1})]),c(`span`,hW,[x(K(gb),{value:p.radius,"onUpdate:value":[t[5]||=e=>p.radius=e,t[6]||=e=>I(e,`radius`)],placeholder:`1`,min:`1`,max:`100`,step:1,"update-value-on-input":!1,"show-button":!1,disabled:!w.value},null,8,[`value`,`disabled`]),y(` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1)]),c(`span`,null,d(e.$t(`measurement.dimensions.perimeter`))+`:`,1),c(`span`,null,d(p.perimeter)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1),c(`span`,null,d(e.$t(`measurement.dimensions.area`))+`:`,1),c(`span`,null,d(p.area)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`))+`²`,1)],64)):b(``,!0),l.value===`arc`?(S(),V(q,{key:4},[c(`span`,null,d(e.$t(`measurement.dimensions.radius`))+`:`,1),c(`span`,null,d(p.radius)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1),c(`span`,null,d(e.$t(`measurement.dimensions.arcLength`))+`:`,1),c(`span`,null,d(p.arcLength)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1),c(`span`,null,d(e.$t(`measurement.dimensions.angle`))+`:`,1),c(`span`,null,d(p.angle)+`°`,1)],64)):b(``,!0),l.value===`rectangle`?(S(),V(q,{key:5},[c(`span`,null,d(e.$t(`measurement.dimensions.perimeter`))+`:`,1),c(`span`,null,d(p.perimeter)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1),c(`span`,null,d(e.$t(`measurement.dimensions.area`))+`:`,1),c(`span`,null,d(p.area)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`))+`²`,1),c(`span`,gW,[y(d(e.$t(`measurement.dimensions.height`))+`: `,1),x(K(Nv),{trigger:`hover`,style:{padding:`2px 10px`,"background-color":`#414960`,"box-shadow":`none`,"max-width":`280px`,"text-align":`center`},"arrow-style":`background-color: #414960;`},{trigger:G(()=>[x(T)]),default:G(()=>[y(` `+d(e.$t(`measurement.tooltips.horizontally`)),1)]),_:1})]),c(`span`,_W,[x(K(gb),{value:p.length,"onUpdate:value":[t[7]||=e=>p.length=e,t[8]||=e=>I(e,`length`)],placeholder:`1`,min:`1`,max:`100`,step:1,"update-value-on-input":!1,"show-button":!1,disabled:!w.value},null,8,[`value`,`disabled`]),y(` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1)]),c(`span`,vW,[y(d(e.$t(`measurement.dimensions.width`))+`: `,1),x(K(Nv),{trigger:`hover`,style:{padding:`2px 10px`,"background-color":`#414960`,"box-shadow":`none`,"max-width":`280px`,"text-align":`center`},"arrow-style":`background-color: #414960;`},{trigger:G(()=>[x(T)]),default:G(()=>[y(` `+d(e.$t(`measurement.tooltips.vertically`)),1)]),_:1})]),c(`span`,yW,[x(K(gb),{value:p.width,"onUpdate:value":[t[9]||=e=>p.width=e,t[10]||=e=>I(e,`width`)],placeholder:`1`,min:`1`,max:`100`,step:1,"update-value-on-input":!1,"show-button":!1,disabled:!w.value},null,8,[`value`,`disabled`]),y(` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1)])],64)):b(``,!0),l.value===`polygon`?(S(),V(q,{key:6},[c(`span`,null,d(e.$t(`measurement.dimensions.perimeter`))+`:`,1),c(`span`,null,d(p.perimeter)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`)),1),c(`span`,null,d(e.$t(`measurement.dimensions.area`))+`:`,1),c(`span`,null,d(p.area)+` `+d(e.$t(`measurement.units.${p.scale.translateUnit}`))+`²`,1)],64)):b(``,!0)],512),[[Re,!E.value]]),R(c(`div`,bW,[c(`span`,{onClick:M},d(e.$t(`toolbar.settings.title`)),1)],512),[[Re,!E.value]])],38)),[[Re,o.value]])}}},SW={key:0,class:`redaction-tip-dialog`},CW={class:`title`},wW=`redactionTipDialog`,TW={__name:`RedactionTipDialog`,setup(e){let t=ye(),n=pw(),r=T(()=>t.isElementOpen(wW)),i=T(()=>n.getFirstEnterRedactionTool),a=()=>{n.setRedactionPrompted(!0),n.setToolState(i.value),t.setDisableHeader(!0),t.resetPanels(),t.closeElement(wW)};return(e,t)=>{let n=YC,i=GC;return r.value?(S(),V(`div`,SW,[x(i,{show:r.value,dialogName:wW,close:!0},{default:G(()=>[x(n),c(`p`,CW,d(e.$t(`redaction.caution`)),1),c(`p`,null,d(e.$t(`redaction.warning`)),1),c(`div`,{class:`rect-button blue`,onClick:a},d(e.$t(`redaction.understand`)),1)]),_:1},8,[`show`])])):b(``,!0)}}},EW={key:0,class:`layer-locked-tip-popup`},DW=`unsupportedMobileDialog`,OW={__name:`UnsupportedMobileDialog`,setup(e){let t=ye(),n=T(()=>t.isElementOpen(DW)),r=()=>{t.closeElement(DW)};return(e,t)=>{let i=YC,a=GC;return n.value?(S(),V(`div`,EW,[x(a,{class:`layer-locked-tip-popup`,show:n.value,dialogName:DW},{footer:G(()=>[c(`div`,{class:`rect-button blue`,onClick:t[0]||=e=>r()},d(e.$t(`common.actions.ok`)),1)]),default:G(()=>[x(i),c(`p`,null,d(e.$t(`colorSeparation.mobileWarning`)),1)]),_:1},8,[`show`])])):b(``,!0)}}},kW={__name:`ContentEditorPopup`,setup(e){let t=ye(),n=T(()=>t.getPopupItems(`contentEditorPopup`)),r=T(()=>n.value.filter(e=>!t.isElementDisabled(e.dataElement))),i=T(()=>t.isElementOpen(H.CONTENT_EDITOR_PANEL)),a=T(()=>t.getContentEditorType),o=J(!1),l=J(0),u=J(0),d=J(null),f,p=!1,m,g=!1,_=null,v=async e=>{o.value=!1;let n=U.getContentEditManager(),r=n.getSelectedEditBoxes();if(r.length){if(e===`delete`){if(!U.getPermission(`allowsCopying`)){t.openElement(`permissionPasswordDialog`);return}await n.deleteEditBoxes(r)}else if(e===`copy`){let e=[];n.setCopyAreas([]);for(let t of r){let r=await n.copyArea({editPagePtr:t.editPagePtr,editAreaPtr:t.editAreaPtr});e.push({editAreaInfoPtr:r,rect:t.frame})}await n.pasteAreaInPage(r[0].pageNumber,e)}}},y=async(e={})=>{let{rect:t,pageNumber:n}=e;if(o.value=!!t,await E(),g){_=e;return}let r=d.value.children[0];!t||!o.value||!r||requestAnimationFrame(()=>{let e=document.querySelector(`.page.page-number${n} .contentContainer`)?.getBoundingClientRect();if(!e){o.value=!1;return}let a=e.left+t.left,s=e.top+t.top,c={left:a,top:s,right:a+t.width,bottom:s+t.height},d=r.offsetWidth,f=r.offsetHeight+10,p=c.right-d,m=c.bottom,g=window.innerWidth,_=window.innerHeight;p>g-d&&(p=g-d),p<0&&(p=0),m+f>_&&(m=Math.max(0,c.top-f)),l.value=m,u.value=i.value?p+130:p})};U.addEvent(`showContentEditorPopup`,y);let C=()=>{o.value&&(o.value=!1,p=!0),p&&(clearTimeout(m),m=setTimeout(()=>{U.showPopup({type:`contentEditorPupop`}),p=!1},200))},w=()=>{t.toggleElement(H.CONTENT_EDITOR_PANEL)};return W(i,(e,t)=>{if(e!==t){let e=document.querySelector(`.editor-panel`)?.parentElement;if(e){let t=getComputedStyle(e);parseFloat(t.transitionDuration)*1e3>0&&(g=!0)}}}),M(()=>{f=document.querySelector(`.document-container`),f&&f.addEventListener(`scroll`,C);let e=document.querySelector(`.editor-panel`)?.parentElement;e&&(e.addEventListener(`transitionstart`,()=>g=!0),e.addEventListener(`transitionend`,()=>{if(g=!1,_){let e=_;_=null,y(e)}}))}),j(()=>{f&&f.removeEventListener(`scroll`,C)}),(e,t)=>{let n=$H,f=oA,p=lx,m=SD,g=nA;return S(),V(`div`,{ref_key:`contentEditorPopupRef`,ref:d},[R(c(`div`,{class:`content-editor-popup popup`,style:A({top:`${l.value}px`,left:`${u.value}px`,transform:`translateX(${!K(P)&&i.value?-130:0}px) translateY(5px)`})},[(S(!0),V(q,null,z(r.value,(r,o)=>(S(),V(q,{key:`${r.dataElement||new Date}-${o}`},[[`actionButton`,`statefulButton`,`toggleElementButton`,`toolButton`].includes(r.type)&&!r.hidden?(S(),s(n,{key:0,item:r},null,8,[`item`])):r.type===`copy`&&!r.hidden?(S(),s(p,{key:1,onClick:t[0]||=e=>v(`copy`),title:e.$t(`documentEditor.copy`),"data-element":r.dataElement},{default:G(()=>[x(f)]),_:1},8,[`title`,`data-element`])):r.type===`delete`&&!r.hidden?(S(),s(p,{key:2,onClick:t[1]||=e=>v(`delete`),title:e.$t(`common.actions.delete`),"data-element":r.dataElement},{default:G(()=>[x(m)]),_:1},8,[`title`,`data-element`])):r.type===`property`&&!r.hidden&&a.value!==`mix`?(S(),s(p,{key:3,onClick:w,title:e.$t(`common.properties`),"data-element":r.dataElement,isActive:i.value},{default:G(()=>[x(g)]),_:1},8,[`title`,`data-element`,`isActive`])):[`spacer`,`divider`].includes(r.type)?(S(),V(`div`,{key:4,class:D(r.type)},null,2)):b(``,!0)],64))),128))],4),[[Re,o.value&&r.value.length]])],512)}}},AW={__name:`CropPagePopup`,setup(e){let t=ye(),n=T(()=>t.getPopupItems(`cropPagePopup`)),r=T(()=>n.value.filter(e=>!t.isElementDisabled(e.dataElement))),i=J(!1),a=J(0),o=J(0),c=J(null),l=J(!0),u,d=!1,f,p=0,m=e=>{U.handlePopup({type:`cropPage`,tool:e})};U.addEvent(`snipSelected`,async e=>{let{rect:n}=e;if(p=e.pageNumber,i.value=!!n,await E(),t.setDisableHeader(i.value),i.value&&t.resetPanels(),n&&i.value){let t=U.pageToWindow({x:n.left,y:n.top},e.pageNumber),r=U.pageToWindow({x:n.right,y:n.bottom},e.pageNumber),i=U.getScrollViewElement();n={left:t.x-i.scrollLeft,top:t.y-i.scrollTop,right:r.x-i.scrollLeft,bottom:r.y-i.scrollTop};let s=c.value?.children[0];if(!s)return;let u=n.left+(n.right-n.left)/2,d=n.bottom,f=s.offsetWidth,p=s.offsetHeight+10,m=window.innerWidth,g=window.innerHeight;l.value=!0,u-f/2<0?(u=0,l.value=!1):u+f/2>m&&(u=m-f,l.value=!1),d+p>g&&(d=Math.max(0,n.top-p)),a.value=d,o.value=u}});let g=async()=>{_(await U.getCropedPageImage(p)),m(`close`)},_=(e,t)=>{let n=document.createElement(`a`);n.href=e,n.download=t||`image`,document.body.appendChild(n),n.click(),document.body.removeChild(n)},v=()=>{i.value&&(i.value=!1,d=!0),d&&(clearTimeout(f),f=setTimeout(()=>{U.showPopup({type:`cropPagePupop`,pageIndex:p-1}),d=!1},200))};return M(()=>{u=document.querySelector(`.document-container`),u&&u.addEventListener(`scroll`,v)}),j(()=>{u&&u.removeEventListener(`scroll`,v)}),(e,t)=>{let n=$H,u=eN,d=lx,f=Le;return S(),V(`div`,{ref_key:`cropPagePopupRef`,ref:c,onMousedown:t[1]||=Ae(()=>{},[`stop`]),onTouchstart:t[2]||=Ae(()=>{},[`stop`])},[i.value&&r.value.length?(S(),V(`div`,{key:0,class:D([`crop-page-popup popup`,{transform:l.value}]),style:A({top:`${a.value}px`,left:`${o.value}px`})},[(S(!0),V(q,null,z(r.value,(r,i)=>(S(),V(q,{key:`${r.dataElement||new Date}-${i}`},[[`actionButton`,`statefulButton`,`toggleElementButton`,`toolButton`].includes(r.type)&&!r.hidden?(S(),s(n,{key:0,item:r},null,8,[`item`])):r.type===`cropPage`&&!r.hidden?(S(),s(d,{key:1,onClick:g,title:e.$t(`toolbar.fileOperations.download`),"data-element":r.dataElement},{default:G(()=>[x(u)]),_:1},8,[`title`,`data-element`])):r.type===`close`&&!r.hidden?(S(),s(d,{key:2,onClick:t[0]||=e=>m(`close`),title:e.$t(`common.actions.exit`),"data-element":r.dataElement},{default:G(()=>[x(f)]),_:1},8,[`title`,`data-element`])):[`spacer`,`divider`].includes(r.type)?(S(),V(`div`,{key:3,class:D(r.type)},null,2)):b(``,!0)],64))),128))],6)):b(``,!0)],544)}}},jW=typeof window<`u`,MW=e=>typeof e==`string`,NW=()=>{},PW=jW&&(window==null?void 0:window.navigator)?.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function FW(e){return typeof e==`function`?e():K(e)}function IW(e){return e}function LW(e){return he()?(ie(e),!0):!1}function RW(e){let t=FW(e);return t?.$el??t}var zW=jW?window:void 0;jW&&window.document,jW&&window.navigator,jW&&window.location;function BW(...e){let t,n,r,i;if(MW(e[0])||Array.isArray(e[0])?([n,r,i]=e,t=zW):[t,n,r,i]=e,!t)return NW;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);let a=[],o=()=>{a.forEach(e=>e()),a.length=0},s=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),c=W(()=>[RW(t),FW(i)],([e,t])=>{o(),e&&a.push(...n.flatMap(n=>r.map(r=>s(e,n,r,t))))},{immediate:!0,flush:`post`}),l=()=>{c(),o()};return LW(l),l}var VW=!1;function HW(e,t,n={}){let{window:r=zW,ignore:i=[],capture:a=!0,detectIframe:o=!1}=n;if(!r)return;PW&&!VW&&(VW=!0,Array.from(r.document.body.children).forEach(e=>e.addEventListener(`click`,NW)));let s=!0,c=e=>i.some(t=>{if(typeof t==`string`)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=RW(t);return n&&(e.target===n||e.composedPath().includes(n))}}),l=[BW(r,`click`,n=>{let r=RW(e);if(!(!r||r===n.target||n.composedPath().includes(r))){if(n.detail===0&&(s=!c(n)),!s){s=!0;return}t(n)}},{passive:!0,capture:a}),BW(r,`pointerdown`,t=>{let n=RW(e);n&&(s=!t.composedPath().includes(n)&&!c(t))},{passive:!0}),o&&BW(r,`blur`,n=>{let i=RW(e);r.document.activeElement?.tagName===`IFRAME`&&!i?.contains(r.document.activeElement)&&t(n)})].filter(Boolean);return()=>l.forEach(e=>e())}var UW=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},WW=`__vueuse_ssr_handlers__`;UW[WW]=UW[WW]||{},UW[WW];var GW;(function(e){e.UP=`UP`,e.RIGHT=`RIGHT`,e.DOWN=`DOWN`,e.LEFT=`LEFT`,e.NONE=`NONE`})(GW||={});var KW=Object.defineProperty,qW=Object.getOwnPropertySymbols,JW=Object.prototype.hasOwnProperty,YW=Object.prototype.propertyIsEnumerable,XW=(e,t,n)=>t in e?KW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;((e,t)=>{for(var n in t||={})JW.call(t,n)&&XW(e,n,t[n]);if(qW)for(var n of qW(t))YW.call(t,n)&&XW(e,n,t[n]);return e})({linear:IW},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});var ZW={class:`popup-container`},QW={class:`color-picker`},$W={class:`preview-container active`},eG={class:`text-font`},tG={__name:`FreetextPopup`,emits:[`setActiveColor`],setup(e,{emit:t}){let n=pw(),r=ye(),i=J(null),a=J(null),o=J(null),l=J(`top`),u=J(0),d=J(!1),f=J(!1),p=T(()=>r.isElementOpen(H.STYLE_PANEL)),m=T(()=>r.isElementOpen(H.LEFT_PANEL)),g=T(()=>r.getIsAnnotationPopup),_=T(()=>n.getActiveTool),v=T(()=>r.getCustomFonts),y=T(()=>r.getUserAdmin),C=T(()=>r.getReadOnly),w=T(()=>n.getAnnotator),O=J(0),k=J(0),ee=J(null),F=!1,te=null,I,z=null,ne=J(!y.value&&(C.value||z&&w.value!==z.author));U.addEvent(`LoadFont`,e=>{let t=e.fontFamily;r.setCustomFonts(t)}),W([y,C],()=>{ne.value=!y.value&&(C.value||z&&w!==z.author)}),W(()=>v.value,(e,t)=>{ie.value=re(e)},{deep:!0});let re=e=>{if(e.length)return e.map(e=>({label:e.fontFamily,value:e.fontName}))},ie=J([]);ie.value=re(v.value);let B=N({fontName:`Helvetica`,fontStyle:`normal`,fontWeight:`normal`,fontSize:14,color:`rgb(0, 0, 0)`,textAlignment:`left`});HW(o,()=>{d.value=!1});let ae=()=>{r.toggleElement(H.STYLE_PANEL)},oe=()=>{B.fontWeight=B.fontWeight===`bold`?`normal`:`bold`,_e({fontWeight:B.fontWeight})},se=e=>{let t=B.fontSize;e===`increase`?t+=1:e===`decrease`&&--t,t=Math.max(6,t),t=Math.min(72,t),B.fontSize=t,_e({fontSize:B.fontSize})},ce=()=>{B.fontStyle=B.fontStyle===`oblique`?`normal`:`oblique`,_e({fontStyle:B.fontStyle})},le=async e=>{let{rect:t,pageNumber:n}=e,r=U.pageToWindow({x:t.x1,y:t.y1},n),i=U.pageToWindow({x:t.x2,y:t.y2},n),a=i.x-r.x,o={x:r.x+a/2,y:r.y};if(f.value=!0,await E(),!ee.value)return;let s=ee.value,c=s.offsetWidth,u=s.offsetHeight+10,d=Math.max(o.x-c/2-I.scrollLeft,0);d+c>I.offsetWidth+I.offsetLeft+(!P&&p.value?260:0)&&(d=I.offsetWidth-c);let m=o.y-u-8-I.scrollTop;l.value=`top`,m<=150&&(m=i.y+15-I.scrollTop,l.value=`bottom`),k.value=d,O.value=m},ue=async()=>{if(d.value=!d.value,!d.value)return;let e=o.value.offsetLeft-i.value.scrollLeft,t=o.value.offsetWidth;await E();let n=a.value.offsetWidth;u.value=e+t/2-n/2},de=()=>{f.value=!1};W([m,p],()=>{z&&setTimeout(()=>{le({rect:z.getRect(),pageNumber:z.getPageNumber()},!0)},320)}),U.addEvent(`annotationDeselected`,e=>{z&&(e.length===1&&e[0].name!==z.name?f.value=!0:(z=null,de()))}),U.addEvent(`annotationSelected`,e=>{let t=e.length===1?e[0]:null;if(!t||t.type!==`freetext`){z=null,de();return}ge(t),le({rect:t.getRect(),pageNumber:t.getPageNumber()}),z=t,ne.value=!y.value&&(C.value||z&&w.value!==z.author)}),U.addEvent(`mouseMoving`,e=>{le(e)}),U.addEvent(`annotationChanged`,e=>{e=Array.isArray(e)?e[0]:e,z&&z===e&&ge(e)});let fe=()=>{f.value&&(f.value=!1,F=!0),F&&(clearTimeout(te),te=setTimeout(()=>{z&&le({rect:z.getRect(),pageNumber:z.getPageNumber()}),F=!1},200))};M(()=>{I=document.querySelector(`.document-container`),I&&I.addEventListener(`scroll`,fe),i.value.addEventListener(`scroll`,()=>{d.value&&=!1})}),j(()=>{I&&I.removeEventListener(`scroll`,fe)});let pe=e=>{vw(e,B.color)||(B.color=e)},me=e=>{B.color=e=e};W(()=>B.color,e=>{e&&_e({color:e})}),W(()=>B.fontName,e=>{e&&_e({fontName:e})}),W(()=>_.value,(e,t)=>{t===L.FREETEXT&&e!==L.FREETEXT&&p.value&&r.closeElement(H.STYLE_PANEL)});let he=e=>{B.textAlignment=e,_e({textAlignment:B.textAlignment}),d.value=!1},ge=e=>{B.fontSize=e.fontSize,B.fontName=e.fontName,B.fontStyle=e.fontStyle,B.fontWeight=e.fontWeight,B.color=e.color,B.textAlignment=e.textAlignment},_e=e=>{if(z){let t={};Object.keys(e).forEach(n=>{e[n]!==z[n]&&z[n]!==void 0&&(t[n]=e[n])}),Object.keys(t).length>0&&U.setAnnotationStyles(z,t)}},ve=e=>{z&&z.handleDelete()};return(e,t)=>{let n=lx,r=JV,m=nH,_=$b,v=PM,y=ej,C=oI,w=nA,T=SD;return R((S(),V(`div`,{ref_key:`freetextPopupRef`,ref:ee,class:`freetext-popup popup`,style:A({top:`${O.value}px`,left:`${k.value}px`})},[c(`div`,{ref_key:`popupWrapperRef`,ref:i,class:`popup-wrapper`},[R(c(`div`,{ref_key:`alignContainerRef`,ref:a,class:D([`align-container`,l.value]),style:A({left:u.value+`px`}),onClick:t[3]||=Ae(()=>{},[`stop`])},[x(n,{isActive:B.textAlignment===`left`,onClick:t[0]||=e=>he(`left`)},{default:G(()=>[x(QV)]),_:1},8,[`isActive`]),x(n,{isActive:B.textAlignment===`center`,onClick:t[1]||=e=>he(`center`)},{default:G(()=>[x(r)]),_:1},8,[`isActive`]),x(n,{isActive:B.textAlignment===`right`,onClick:t[2]||=e=>he(`right`)},{default:G(()=>[x(m)]),_:1},8,[`isActive`])],6),[[Re,d.value]]),c(`div`,ZW,[c(`div`,QW,[c(`div`,$W,[c(`div`,{class:`preview`,style:A({backgroundColor:B.color})},null,4)]),x(K(gv),{to:`.freetext-popup`,onComplete:pe,"onUpdate:value":me,value:B.color,"show-alpha":!1},{label:G(()=>[...t[9]||=[c(`img`,{src:``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,alt:`colorPicker`},null,-1)]]),_:1},8,[`value`])]),c(`div`,eG,[x(K(kv),{"consistent-menu-width":!1,value:B.fontName,"onUpdate:value":t[4]||=e=>B.fontName=e,options:ie.value,to:`.freetext-popup`,class:`text-family`},{arrow:G(()=>[x(_)]),_:1},8,[`value`,`options`])]),x(n,{onClick:t[5]||=e=>se(`increase`),class:`button`},{default:G(()=>[x(JF)]),_:1}),x(n,{onClick:t[6]||=e=>se(`decrease`),class:`button`},{default:G(()=>[x(v)]),_:1}),x(n,{isActive:B.fontWeight===`bold`,onClick:t[7]||=e=>oe()},{default:G(()=>[x(y)]),_:1},8,[`isActive`]),x(n,{isActive:B.fontStyle===`oblique`,onClick:t[8]||=e=>ce(),class:`button`},{default:G(()=>[x(C)]),_:1},8,[`isActive`]),c(`div`,{ref_key:`alignRef`,ref:o},[x(n,{isActive:d.value,class:`alignment`,onClick:ue},{default:G(()=>[B.textAlignment===`left`?(S(),s(QV,{key:0})):B.textAlignment===`center`?(S(),s(r,{key:1})):B.textAlignment===`right`?(S(),s(m,{key:2})):b(``,!0)]),_:1},8,[`isActive`])],512),t[10]||=c(`div`,{class:`divider`},null,-1),x(n,{onClick:ae,isActive:p.value,class:`property sidebar-style`},{default:G(()=>[x(w)]),_:1},8,[`isActive`]),x(n,{onClick:ve,class:`property sidebar-style`},{default:G(()=>[x(T)]),_:1})])],512)],4)),[[Re,f.value&&g.value&&!ne.value]])}}},nG=r(((e,t)=>{t.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case`INPUT`:case`TEXTAREA`:t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type===`Caret`&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}})),rG=e(r(((e,t)=>{var n=nG(),r={"text/plain":`Text`,"text/html":`Url`,default:`Text`},i=`Copy to clipboard: #{key}, Enter`;function a(e){var t=(/mac os x/i.test(navigator.userAgent)?`⌘`:`Ctrl`)+`+C`;return e.replace(/#{\s*key\s*}/g,t)}function o(e,t){var o,s,c,l,u,d,f=!1;t||={},o=t.debug||!1;try{if(c=n(),l=document.createRange(),u=document.getSelection(),d=document.createElement(`span`),d.textContent=e,d.ariaHidden=`true`,d.style.all=`unset`,d.style.position=`fixed`,d.style.top=0,d.style.clip=`rect(0, 0, 0, 0)`,d.style.whiteSpace=`pre`,d.style.webkitUserSelect=`text`,d.style.MozUserSelect=`text`,d.style.msUserSelect=`text`,d.style.userSelect=`text`,d.addEventListener(`copy`,function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),n.clipboardData===void 0){o&&console.warn(`unable to use e.clipboardData`),o&&console.warn(`trying IE specific stuff`),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),l.selectNodeContents(d),u.addRange(l),!document.execCommand(`copy`))throw Error(`copy command was unsuccessful`);f=!0}catch(n){o&&console.error(`unable to copy using execCommand: `,n),o&&console.warn(`trying IE specific stuff`);try{window.clipboardData.setData(t.format||`text`,e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){o&&console.error(`unable to copy using clipboardData: `,n),o&&console.error(`falling back to prompt`),s=a(`message`in t?t.message:i),window.prompt(s,e)}}finally{u&&(typeof u.removeRange==`function`?u.removeRange(l):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}t.exports=o}))()),iG={__name:`TextPopup`,setup(e){let t=ye(),n=pw(),r=T(()=>t.getPopupItems(`textPopup`)),i=T(()=>r.value.filter(e=>!t.isElementDisabled(e.dataElement))),a=T(()=>t.getReadOnly),o=J(!1),c=J(0),l=J(0),u=J(null),d=J(!0),f=J(null),p,m=!1,g,_=0,v=e=>{if(e===`copy`&&f.value){if(!U.getPermission(`allowsCopying`)){t.openElement(H.PERMISSION_PASSWORD_DIALOG);return}(0,rG.default)(f.value),o.value=!1,f.value=null;return}let r={tool:e},i=n[e]?.color;i&&(r.color=i),U.handlePopup({type:`text`,tool:r})};U.addEvent(`showTextPopup`,async e=>{let{show:t,rect:n,text:r}=e;if(o.value=t,f.value=r,await E(),n&&o.value){let e=u.value.children[0];if(!e)return;let t=n.left+(n.right-n.left)/2,r=n.bottom,i=e.offsetWidth,a=e.offsetHeight+10,o=window.innerWidth,s=window.innerHeight;d.value=!0,t-i/2<0?(t=0,d.value=!1):t+i/2>o&&(t=o-i,d.value=!1),r+a>s&&(r=Math.max(0,n.top-a)),c.value=r,l.value=t}});let y=()=>{o.value&&(o.value=!1,m=!0),m&&(clearTimeout(g),g=setTimeout(()=>{U.showPopup({type:`textPupop`,pageIndex:_}),m=!1},200))};return M(()=>{p=document.querySelector(`.document-container`),p&&p.addEventListener(`scroll`,y)}),j(()=>{p&&p.removeEventListener(`scroll`,y)}),U.addEvent(`textSelected`,e=>{_=e.pageNumber-1}),(e,t)=>{let n=$H,r=oA,f=lx,p=wF,m=SH,g=MV,_=bV;return S(),V(`div`,{ref_key:`textPopupRef`,ref:u},[o.value&&i.value.length?(S(),V(`div`,{key:0,class:D([`text-popup popup`,{transform:d.value}]),style:A({top:`${c.value}px`,left:`${l.value}px`})},[(S(!0),V(q,null,z(i.value,(i,o)=>(S(),V(q,{key:`${i.dataElement||new Date}-${o}`},[[`actionButton`,`statefulButton`,`toggleElementButton`,`toolButton`].includes(i.type)&&!i.hidden?(S(),s(n,{key:0,item:i},null,8,[`item`])):i.type===`copy`&&!i.hidden?(S(),s(f,{key:1,onClick:t[0]||=e=>v(`copy`),title:e.$t(`documentEditor.copy`),"data-element":i.dataElement},{default:G(()=>[x(r)]),_:1},8,[`title`,`data-element`])):i.type===`highlight`&&!i.hidden&&!a.value?(S(),s(f,{key:2,onClick:t[1]||=e=>v(`highlight`),title:e.$t(`toolbar.annotationTools.highlight`),"data-element":i.dataElement},{default:G(()=>[x(p)]),_:1},8,[`title`,`data-element`])):i.type===`underline`&&!i.hidden&&!a.value?(S(),s(f,{key:3,onClick:t[2]||=e=>v(`underline`),title:e.$t(`toolbar.annotationTools.underline`),"data-element":i.dataElement},{default:G(()=>[x(m)]),_:1},8,[`title`,`data-element`])):i.type===`strikeout`&&!i.hidden&&!a.value?(S(),s(f,{key:4,onClick:t[3]||=e=>v(`strikeout`),title:e.$t(`toolbar.annotationTools.strikeout`),"data-element":i.dataElement},{default:G(()=>[x(g)]),_:1},8,[`title`,`data-element`])):i.type===`squiggly`&&!i.hidden&&!a.value?(S(),s(f,{key:5,onClick:t[4]||=e=>v(`squiggly`),title:e.$t(`toolbar.annotationTools.squiggly`),"data-element":i.dataElement},{default:G(()=>[x(_)]),_:1},8,[`title`,`data-element`])):[`spacer`,`divider`].includes(i.type)?(S(),V(`div`,{key:6,class:D(i.type)},null,2)):b(``,!0)],64))),128))],6)):b(``,!0)],512)}}},aG={key:0,class:`redaction-confirm-dialog`},oG={key:1},sG={__name:`RedactionConfirmDialog`,setup(e){let t=ye(),n=pw(),r=T(()=>t.getRedactionConfirmDialog),i=T(()=>r.value>=0),a=()=>{t.setRedactionConfirmDialog(-1)},o=async()=>{let e=r.value===1?`all`:null;t.setCommonLoading(!0),a(),await U.applyRedactions(e),n.setToolState(``),t.setActiveToolMode(`view`),t.setToolbarGroup(`toolbarGroup-View`),t.setCommonLoading(!1)};return(e,t)=>{let n=GC;return i.value?(S(),V(`div`,aG,[x(n,{show:i.value,close:a,class:`confirm-dialog`},{header:G(()=>[c(`p`,null,d(r.value===1?e.$t(`common.actions.save`):e.$t(`redaction.note`)),1)]),footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:a},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:o},d(r.value===1?e.$t(`common.actions.save`):e.$t(`common.actions.exit`)),1)]),default:G(()=>[r.value===1?(S(),V(q,{key:0},[c(`p`,null,d(e.$t(`redaction.saveWarning`)[0]),1),t[0]||=c(`br`,null,null,-1),c(`p`,null,d(e.$t(`redaction.saveWarning`)[1]),1)],64)):(S(),V(`p`,oG,d(e.$t(`redaction.exitWarning`)),1))]),_:1},8,[`show`])])):b(``,!0)}}},cG={key:0,class:`add-digital-file-dialog`},lG={class:`input-file row`},uG={class:`addition`},dG={class:`icon-file`},fG={class:`input-pwd row`},pG=[`placeholder`],mG={key:0,class:`error-text`},hG={__name:`AddDigitalFileDialog`,setup(e){let t=H.ADD_DIGITAL_FILE_DIALOG,n=ye(),r=pw(),{t:i}=It(),a=i,o=T(()=>n.isElementOpen(t)),s=J(null),l=J(!1),u=J(``),f=J(null);W(()=>o.value,(e,t)=>{e&&(s.value=null,l.value=!1)});let p=e=>{e&&(document.body.style.overflow=``),n.closeElement(t),u.value=``},m=async()=>{if(!s.value)return;let e=await g();if(!e)return;n.setCommonLoading(!0);let t=e.subject,r=new Date,i=`${r.getFullYear()}.${r.getMonth()+1<10?`0${r.getMonth()+1}`:r.getMonth()+1}.${r.getDate()<10?`0${r.getDate()}`:r.getDate()} ${r.getHours()<10?`0${r.getHours()}`:r.getHours()}:${r.getMinutes()<10?`0${r.getMinutes()}`:r.getMinutes()}:${r.getSeconds()<10?`0${r.getSeconds()}`:r.getSeconds()}`,o=`${a(`signatures.appearance.name`)}: ${t.CN}\n${a(`signatures.appearance.date`)}: ${i}`,c=await U.getSignature({rect:{width:582,height:187,top:0,left:0,right:582,bottom:187},content:o,text:t.CN,isDrawLogo:!0,logoBase64:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAEYCAYAAACHjumMAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA9kSURBVHgB7d1vbJXlGcfx635KpUWqJWgiZGgxg2ZG52k1pmqmJdYl6kZwW8S5F4hlKvGFmG3RZWYU4wuX7QUsMdpsSn3j3LJMo3FLJobqMmMWpDUuS4BkdpKAyWAFi4JAz737Oj2Hlv45PX+e+/x57u8nOZ4/Lbw4nvPjuq77fp7HSAy67x9tPSWyzhhJpSNzhbGSsmJa3fNWAeqBtSNiZMSk7YfWyLCkZfD9gSUjgrIYKVEmVKLoUTG22/013QIkjBE7bK3dQdiUruiAyQWLFdlChYJgWBmQdHobQVOcogKm64HjWwkWBM1K3/svXrxNUJCCAqbr/tE20xC96sIlJUDorIy4amYN1cz8ovl+oav3sw02ioYIFyDLSJttiIZu7B1dJ8grb8BoS+TieoCWCDifK/1brUSvTnxHMJc5W6TMG2ekTwDkx1xmTrMGjJZ+ms4CoEDm/vdfuOglwXlmBIwOdHXmQlsEFM7NKI+Z8XQHg9/zzZzBRNFuwgUojs5kdKVVcJ7zAiY7d2kTAEXTldauB0b7BOeca5G0NZKG6GMBUDJtlZrH0ysHB5YcE0ypYFgxAsqmrdKpSLYIMjIVDNULEB+qmElR9r/dAiAWVDGTMgFjTPSoAIiPabhVIIb2CPCjaTy9JPQ2KaI9AvxwbVLwB0NGenpLARA7vlsuYGxkrhUAsUtHUZsELnJraisFQOxcBRP8P96RW0K6QgDEznJM3/xntANQGt0PI4EjYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAmwUCFGjZUiOXXRLJMr0tjTLPFy8y0uJu+ppa3DzxHBM6v/+8lTpgjYyIdbe0fOieDcu4DA7fsXlEykTAYAYNiK+uiGTVigZZ7e5XX94gl7lAITiSy1hpc3dtrqfpds8yvU1qV/+wpNM7ygkbAgaZ4PhGxwIXJg1yi7vX6gQwYlMSmZ0TYfP8gJyx24oNGtPVe7wuSjjEq6O9QW7taJROd6+VCvzofLtfksQa0zd820PbCv19AiYguVC586ZG2p0KSVrAZI3YM3ZNIdUMLVLCESrwoM00ypCb0Wwc7nnotXy/SMAkkAbJHS5QbnXzlM52/hfDB9PqZjSvpt7uz9sy8elLEA2We3oaZX3PQqoVVISxts+FjMwVMgRMAugelN61C+UuV7UAlZYJmV39I65demn6z1iPrGMaLM/+ZJH86ZnFhAuqykh6e+ovz7VNf50Kpg5RsaD2uJlMo3nVPeiY+ioVTB3RuUrv2gvkpZ9fSLigBtlU6q3n+qa+QsDUCd1h+9LWC2XT2iYGuKhZxsijqd07W3PPaZFqnLZDT25sYrkZdcK0ytlTW9yDPn1GBVPD1vdMtEOEC+rJ1CqGT24NompBfZusYvgE1xitWnSFiDkL6pkx5la9J2BqRG6FSHfhAgnQrW0SAVMDchvmOA8LEuXMqXUETJXp8vOTG5tpiZA8kUkRMFW0aa3OW5oESCJjbRsBUyVb7l3IvAXJZsy1BEyFaSv0zCPNLEEjAJYhbyXpMPcXLlw4By7CYAiYSmGlCCHi014BhAtCxSfeM8IFIeNT7xHhgtDxyfdEV4t0oEu4IGR8+j352cYmVosQPALGA91Epxc7A0JHwMRsE0dEA+cQMDHSAxc5tgiYRMDEZOIsdM0CYBIBEwNdMdLlaE65AJyPgImBnomO5WhgJr4VZbrz5kaGusAcCJgy6Nxly3qGusBcCJgy6KVFmLsAcyNgSqT7XThpFJAfAVMCbY3uYe4CzIuAKQEXRgMKQ8AUSVeN7rqJ44yAQhAwRdCqZdNaWiOgUARMEdb3NLKhDigC35YC6WCXAxmB4hAwBeqlNQKKRsAUQKsXBrtA8QiYAlC9AKUhYOZB9QKUjoCZB9ULUDoCJg+qF6A8BEweVC9AeQiYPDrbua4RUA4CZg56zBG7doHy8A2aw709FwiA8nDGpFmsXtHAZV8LdPjUmOz53yHZd+Jo5vEhdxs7czpzDxAws7jndqqXfD4YPSS7/zsig+5GkCAfAmYWDHdnGjv7pbx88J/y8icfZR4DhSBgptFwYbg7iWBBOQiYae68mfYoR0Ol/+MPCBaUjICZhvZIMnOVvn8Nyh43awHKQcBMQXtE1YJ4ETBT3NIR9nFHvzrwXiZggLgQMFOE3B5tdS3RG4f3CRAnAiZLj5wOdXPdvf/4o+wfOypA3FiPzVq1Isy3QisXwgW+EDBZIc5f+v+9h7YIXhEwWasDq2Byq0WATwSMTFyxMaT5i+5zIVxQCQSMhDd/+eHeN9jngoogYESCql5edzOXwyc5AhqVQcCI7n8JY7We1giVRsCI7oExEoKXD35E9YKKImAkjBZJq5c3Du0XoJKCDxjdwRsCPTKawS4qjYBZGkZ7xOwF1RB8wFx2SfLbIz2HLrMXVAMVTAAVzOuHmb2gOgiYAGYwe45xZjpUR/AB09Kc7ApGV49oj1AtwQfM4kWSaPvHjghQLVQwi5JdwezjXC+oIiqYRcl+C/SSrkC1EDDNkmiHubQrqogWKeEt0mdnTgtQLRyLlHBUMKgmAgaANwQMAG8IGADeEDAJt6ypRYBqCT5gxr6wkmQXNV4gQLUEHzAnTkqiUcGgmmiREm45AYMqCj5gDh8ZlyRbvXipANVCi/SFJNr1S5YLUC0MeU8me8i7vLmFOQyqhhbpSFqSbs2lbQJUAwFzNNkVjOomYFAlwQfMpwkf8iqdw7QsWChApVHBBFDBqPtWXC1ApREwbgaT9N286r7Lr6GKQcWx0c759GjyB70aLlQxqDQCxtl/MPkBo6hiUGkEjHPgk+QPepWGy4MrOwWoFALGOXAwjIBRP7j863Jd6zIBKoGAEQ2YMFqknG1XraFVQkUQMDJxTphQlquVHj5Aq4RKIGCy3h06IyHRVum+FdcI4BMBkxXKStJUP159k3xrWbsAvhAwWX8LrILJeeqqblndwjlj4AcBk6VzmJBWk6Z65YbvUcnACwJmir37wgwYpZXMgyuvEyBOBMwUoQ16p3v4yuvlR6tuZAkbsSFgptAKJoQDH/PR1aXf3fBdzoKHWBAw0/z5vbCrGKX7ZN68+T7p+1o3QYOyEDDThN4mTbV2ebv8pvPbmf0ytE0ohenqPR52TzCLv/66RVoWGcGkQyfHZM/oIen/+AM5fGpMgEI0fKXzp32C8yy9OJKrr2wQTGppXCjtLZe4Gc01cl32UihjZ0/LCXcD5rJAMIO2Set7uKbzXPQcv7nrLWlls+/EEdk/dtTdH8081+ChyoEiYGahq0l7952VznbenvnoQFhvay5dKZip8+1+CRlD3jm8O3RWAJSHgJmDLleHvicGKBcBMwcNlz/sYoAJlIOAyeP3BAxQFgImD61i3mRnL1AyAmYeL7z+pQAoDQEzD73yoy5ZAygeAVOAp3eeEgDFI2AKoFUMsxigeARMgXQWw74YoDgETIG0imFfDFAcAqYIui/m8NHwLm8ClIqAKYK2SNtfYeALFIqAKZIeBMmyNVAYAqYEumzNwBeYHwFTAh34vsgOX2BeBEyJXnEDX1olID8Cpgy0SkB+BEwZaJWA/AiYMmmrxHljgNkRMDHQwwjYgAfMRMDEQOcwj/zyC+YxwDQETEx0HvP0zpMCYBIBEyPd5csZ8IBJBEzMfusChqEvMIGA8UAPiGQTHkDAePPEsyflwMFxAUJGwHiiK0qPu5Bh+RohI2A80pUlXb4mZBAqAsYzQgYhI2AqgJBBqAiYCsmFDINfhCSyIscEFZELmXeGuMYSwhAZa48LKkZXl3QJm814CEFkjB0WVJxuxuOwAiRdJGkZEVSFHlbw+LMchY3kiqwRKpgq0gMkNzz1OStMSKSoKS2vCapKh78btn3OXAaJEw0OLHGrSGZQUFW5q0bqOWVomZAUE/tg7Pg7gprw5t/PZFomjsZGEmQCxrVJ29kPUzty+2V0lYlqBvUsEzDaJhmb3iGoKbrKpNXMm++xMQ/16dyhAlQxtSlzrt8XT2ZmM6w0od6cCxiqmNqWmc24lSY256GemOkv3Nh7fMhVMilBzVp2SSS9axfKXTc1Cmpb59v9ErIZR1PbxvTdtEq1Ldc2feeJE8xnUNPMbC92PTB6v5hop6AuUNHUrtArGDPXD7o2He8TK1sFdSMXNJ3tDbJsKaf6qQUETB6ETP266+ZGWd+zUFatIGiqiYCZx429o+vSEu10v9gqqDurVjTI+tsvoKqpEgKmAF0Pj7bJmWi3e9gmqFud7QvkTlfZEDaVQ8AUgZYpOTRsbulYkLmnjfKHgClStprpcw83CBJBh8PaSmngrHb3BE58CJgSZYLmtHS7v2KLGHOtIDFaFplM4GjQdLgKZ3kmgAidUhAwMciFjTFRylqru4DbXOhcIUgUndtotXOZuy1bajLPF7swasne9PHi5omAwgQCJnAdu57nfAiAJ9S9ALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANASP2mADwgoAROS4AfBgJPmCsNcMCIH7W/ocKxsiIAIidNWaYgDGWCgbwwX23CJio6TUBEL9IBoMPmOE1G3UVaVAAxGl4eM1mhrzKWvuOAIiNNXaH3hMwakHTdvbDADGKJroCAkYm2iRrZYcAKJsxMqDtkT4mYHKoYoBYpCO7LfeYgMmiigHKZ6zdlqteMs8F5+nY1T/kKpmUACiOkZGh2x5eOfUlKphpbEP6bloloEjGHrORXTP9ZQJmGi3vrJHHBEDBrI02Tm2NcgiYWQzftnlAe0kBMK/M3KXnoVl3xDODyaPzref6rDFbBcCsNFz23r65b86fC/JK7epfZyS9071VrQJggpu5mHF5bO83Nw/k/TXBvFK7n2szabNbrLQJEDwzrIshs81cZvymoGC0TAiaVi1p2ZGvJZrxRwRFyVQz49Ln3roNAoQgGyzpBU3bs2cfKPyPCkqiQSNp6TbWbHFPrxUgaax9xwXEYCnBkkPAxCAXNpE1KWttyr2rbe6tvUKAeuAqFDdfPO5uw8aYkbSe5TFqeq3UUJnq/zPmsRQ9GquGAAAAAElFTkSuQmCC`});n.setCertSubject(t),n.setDigitalSignaturePreview(c),n.setCommonLoading(!1),p(),n.openElement(H.SIGNATURE_APPEARANCE_DIALOG)},g=async()=>{let e=new FileReader,t=await new Promise((t,n)=>{e.addEventListener(`load`,async e=>{t(new Uint8Array(e.target.result))}),e.addEventListener(`error`,()=>{n(`Error reading the local certificate`)}),e.readAsArrayBuffer(s.value)}),n=await U.loadCertificates({pkcs12Buffer:t,password:u.value});return l.value=!n,n&&r.setPkcs12({pkcs12Buffer:t,password:u.value}),n},_=()=>{f.value.click()},v=e=>{let t=e.target.files[0],n=t?.name.split(`.`).pop().toLowerCase();n!==`pfx`&&n!==`p12`||(s.value=t,f.value.value=``)};return(e,n)=>{let r=GT,i=GC;return o.value?(S(),V(`div`,cG,[x(i,{show:o.value,dialogName:K(t),close:!0,onMousedown:n[3]||=Ae(()=>{},[`stop`])},{header:G(()=>[y(d(K(a)(`signatures.digitalDialog.title`)),1)]),footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:n[2]||=e=>p(`cancel`)},d(K(a)(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:m},d(K(a)(`common.actions.continue`)),1)]),default:G(()=>[c(`p`,null,d(K(a)(`signatures.digitalDialog.description`)),1),c(`div`,lG,[c(`span`,null,d(K(a)(`signatures.digitalDialog.certificateFile`)),1),c(`div`,uG,[c(`div`,{class:`file-input-underbox`,onClick:_},[c(`span`,{class:D({uploaded:s.value?.name})},d(s.value?.name||K(a)(`signatures.digitalDialog.uploadFile`)),3),c(`span`,dG,[x(r)])]),c(`input`,{ref_key:`uploadFileEl`,ref:f,type:`file`,onChange:v,accept:`.pfx,.p12`,name:`digital-signature`},null,544)])]),c(`div`,fG,[c(`span`,null,d(K(a)(`signatures.digitalDialog.password`)),1),c(`div`,null,[R(c(`input`,{"onUpdate:modelValue":n[0]||=e=>u.value=e,type:`password`,placeholder:K(a)(`signatures.digitalDialog.enterPassword`),onInput:n[1]||=e=>l.value&&=!1,name:`digital-signature`},null,40,pG),[[Me,u.value]]),l.value?(S(),V(`p`,mG,d(K(a)(`signatures.digitalDialog.invalidPassword`)),1)):b(``,!0)])])]),_:1},8,[`show`,`dialogName`])])):b(``,!0)}}},gG={key:0,class:`delete-page-popup`},_G=`deleteConfirmDialog`,vG={__name:`DeleteSignatureDialog`,setup(e){let t=ye(),n=pw(),r=T(()=>t.isElementOpen(_G)),i=T(()=>n.getSelectedSignature),a=()=>{t.closeElement(_G),n.setSelectedSignature(null)},o=()=>{U.deleteSignature(JSON.parse(JSON.stringify(i.value))),a(),t.setSignatureVerify(0)};return(e,t)=>{let n=YC,i=GC;return r.value?(S(),V(`div`,gG,[x(i,{show:r.value,dialogName:_G},{footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:a},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:o},d(e.$t(`common.actions.ok`)),1)]),default:G(()=>[x(n),c(`p`,null,d(e.$t(`signatures.deleteConfirm`)),1)]),_:1},8,[`show`])])):b(``,!0)}}},yG={key:0,class:`certification-details-dialog`},bG={class:`title`},xG={class:`desc`},SG={class:`container`},CG={class:`left`},wG=[`onFocus`],TG={class:`right`},EG={class:`tabs`},DG={class:`panel`},OG={class:`summary`},kG={class:`title`},AG={class:`info`},jG={class:`abstracts`},MG={class:`details`},NG={class:`trust`},PG={class:`trust-button`},FG=`certificateViewerDialog`,IG={__name:`CertificationViewerDialog`,setup(e){let t=ye(),n=pw(),r=T(()=>t.isElementOpen(FG)),i=T(()=>n.getSelectedSignature),a=T(()=>i.value.signerList[0].certificateList[l.value]),o=J(1),l=J(0),u=()=>{t.closeElement(FG)},f=e=>`${e.slice(0,4)}/${e.slice(4,6)}/${e.slice(6,8)} ${e.slice(8,10)}:${e.slice(10,12)}:${e.slice(12,14)}`,p=()=>{if(a.value.isTrusted)return;let e=U.addToTrustedCertificateLists(l.value);a.value.isTrusted=!!e,e&&n.setTrustedCertificateLists(e)};return(e,t)=>{let n=IV,m=WN,g=GC;return r.value?(S(),V(`div`,yG,[x(g,{show:r.value,dialogName:FG},{header:G(()=>[c(`p`,bG,d(e.$t(`signatures.certificateViewer.title`)),1),c(`p`,xG,d(e.$t(`signatures.certificateViewer.title`)),1)]),footer:G(()=>[c(`div`,{class:`rect-button blue`,onClick:u},d(e.$t(`signatures.certificateViewer.trust.done`)),1)]),default:G(()=>[c(`div`,SG,[c(`div`,CG,[(S(!0),V(q,null,z(i.value.signerList,(e,n)=>(S(),V(`p`,{key:n,class:D({highlighted:l.value===n}),onFocus:e=>l.value=n,onBlur:t[0]||=e=>l.value=0,tabindex:`-1`},d(e.certificateList[0].subject.CN),43,wG))),128))]),c(`div`,TG,[c(`div`,EG,[c(`div`,{onClick:t[1]||=e=>o.value=1,class:D({active:o.value===1})},d(e.$t(`signatures.certificateViewer.abstracts`)),3),c(`div`,{onClick:t[2]||=e=>o.value=2,class:D({active:o.value===2})},d(e.$t(`signatures.certificateViewer.details.title`)),3),c(`div`,{onClick:t[3]||=e=>o.value=3,class:D({active:o.value===3})},d(e.$t(`signatures.certificateViewer.trust.title`)),3)]),c(`div`,DG,[c(`div`,OG,[c(`div`,kG,d(o.value===3?e.$t(`signatures.certificateViewer.trust.sign`):e.$t(`signatures.certificateViewer.summary`)),1),c(`div`,AG,[R(c(`div`,jG,[c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.issuedTo`))+` `,1),c(`span`,null,d(a.value.issuer.CN)+` <`+d(a.value.issuer.email)+`>`,1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.issuer`))+` `,1),c(`span`,null,d(a.value.issuer.CN),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.validFrom`))+` `,1),c(`span`,null,d(f(a.value.validDateStart)),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.validTo`))+` `,1),c(`span`,null,d(f(a.value.validDateEnd)),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.intendedUsage`))+` `,1),t[4]||=c(`span`,null,`Digital Signature, Non-Repudiation`,-1)])],512),[[Re,o.value===1]]),R(c(`div`,MG,[c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.version`))+` `,1),c(`span`,null,d(a.value.version),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.algorithm`))+` `,1),c(`span`,null,d(a.value.signAlgOidType)+` (`+d(a.value.signAlgOid)+`)`,1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.subject`))+` `,1),c(`span`,null,`C=`+d(a.value.subject.C)+`,ST=`+d(a.value.subject.ST)+`,L=`+d(a.value.subject.L)+`,O=`+d(a.value.subject.O)+`,OU=`+d(a.value.subject.OU)+`,CN=`+d(a.value.subject.CN)+`,emailAddress=`+d(a.value.subject.email),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.issuer`))+` `,1),c(`span`,null,`C=`+d(a.value.issuer.C)+`,ST=`+d(a.value.issuer.ST)+`,L=`+d(a.value.issuer.L)+`,O=`+d(a.value.issuer.O)+`,OU=`+d(a.value.issuer.OU)+`,CN=`+d(a.value.issuer.CN)+`,emailAddress=`+d(a.value.issuer.email),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.serialNumber`))+` `,1),c(`span`,null,d(a.value.serialNumber),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.validFrom`))+` `,1),c(`span`,null,d(f(a.value.validDateStart)),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.validTo`))+` `,1),c(`span`,null,d(f(a.value.validDateEnd)),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.certificatePolicy`))+` `,1),c(`span`,null,d(a.value.certificatePolicies[0]),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.crlDistribution`))+` `,1),c(`span`,null,d(a.value.CRLDistributionPoints),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.issuerInfoAccess`))+` `,1),(S(!0),V(q,null,z(a.value.sccessInfo,(e,t)=>(S(),V(`span`,{key:t},d(e.Key)+`=`+d(e.AccessInfo)+d(t===a.value.sccessInfo.length-1?``:`,`),1))),128))]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.issuerKeyIdentifier`))+` `,1),c(`span`,null,d(a.value.authorityKeyIdentifier),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.subjectKeyIdentifier`))+` `,1),c(`span`,null,d(a.value.subjectKeyIdentifier),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.constraints`))+` `,1),c(`span`,null,d(a.value.basicConstraints),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.keyUsage`))+` `,1),c(`span`,null,d(a.value.keyUsage),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.publicKey`))+` `,1),c(`span`,null,d(a.value.publicKey),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.x509`))+` `,1),c(`span`,null,d(a.value.X509Data),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.sha1Digests`))+` `,1),c(`span`,null,d(a.value.SHA1Digest),1)]),c(`p`,null,[y(d(e.$t(`signatures.certificateViewer.details.md5Digests`))+` `,1),c(`span`,null,d(a.value.MD5Digest),1)])],512),[[Re,o.value===2]]),R(c(`div`,NG,[c(`p`,null,[a.value.isTrusted?(S(),s(n,{key:0})):(S(),s(m,{key:1})),c(`span`,null,d(e.$t(`signatures.certificateViewer.trust.sign`)),1)]),c(`p`,null,[a.value.isTrusted?(S(),s(n,{key:0})):(S(),s(m,{key:1})),c(`span`,null,d(e.$t(`signatures.certificateViewer.trust.certify`)),1)])],512),[[Re,o.value===3]])]),R(c(`div`,PG,[c(`div`,{class:D(a.value.isTrusted&&`disabled`),onClick:p},d(e.$t(`signatures.certificateViewer.trust.addToTrust`)),3)],512),[[Re,o.value===3]])])])])])]),_:1},8,[`show`])])):b(``,!0)}}},LG={key:0,class:`signature-details-dialog`},RG={class:`info`},zG={class:`title`},BG={class:`desc`},VG={class:`summary`},HG={class:`title`},UG={class:`content`},WG={key:3},GG={__name:`SignatureDetailsDialog`,setup(e){let t=H.SIGNATURE_DETAILS_DIALOG,n=ye(),r=pw(),i=T(()=>n.isElementOpen(t)),a=T(()=>r.getSelectedSignature),o=T(()=>{let e=a.value.signerList[0].certificateList[0].validDateEnd,t=e.substring(0,4),n=e.substring(4,6),r=e.substring(6,8),i=e.substring(8,10),o=e.substring(10,12),s=e.substring(12,14),c=e.substring(14);return new Date(`${t}-${n}-${r}T${i}:${o}:${s}${c}`)<new Date}),l=()=>{n.closeElement(t)},u=()=>{l(),n.openElement(H.CERTIFICATE_VIEWER_DIALOG)};return(e,n)=>{let r=Ne,f=cV,p=eV,m=iV,g=GC;return i.value?(S(),V(`div`,LG,[x(g,{show:i.value,dialogName:K(t)},{header:G(()=>[c(`p`,null,d(e.$t(`signatures.details.title`)),1),x(r,{class:`close`,onClick:l})]),footer:G(()=>[c(`div`,{class:`view-button`,onClick:u},d(e.$t(`signatures.details.viewCertificate`)),1)]),default:G(()=>[c(`div`,RG,[a.value.signerList[0].isCertTrusted&&a.value.signerList[0].isSignVerified?(S(),s(f,{key:0})):a.value.signerList[0].isCertTrusted||a.value.signerList[0].isSignVerified?(S(),s(p,{key:1})):(S(),s(m,{key:2})),c(`div`,null,[c(`p`,zG,d(e.$t(`signatures.details.signer`))+` "`+d(a.value.signerList[0].certificateList[0].subject.CN)+d(a.value.signerList[0].certificateList[0].subject.email?`<`+a.value.signerList[0].certificateList[0].subject.email+`>`:``)+`"`,1),c(`p`,BG,d(e.$t(`signatures.details.signingTime`))+` `+d(K(Sx.default)(a.value.date).format(`YYYY-MM-DD HH:mm:ss`)),1)])]),c(`div`,VG,[c(`div`,HG,[n[0]||=c(`div`,{class:`line-left`},null,-1),c(`span`,null,d(e.$t(`signatures.details.validitySummary`)),1),n[1]||=c(`div`,{class:`line-right`},null,-1)]),c(`div`,UG,[!a.value.signerList[0].isCertTrusted&&!a.value.signerList[0].isSignVerified?(S(),V(q,{key:0},[c(`p`,null,d(e.$t(`signatures.details.invalidIdentity`)),1),c(`p`,null,d(e.$t(`signatures.details.invalidSignature`)),1),c(`p`,null,d(e.$t(`signatures.details.altered`)),1)],64)):(S(),V(q,{key:1},[a.value.signerList[0].isCertTrusted&&a.value.signerList[0].isSignVerified?(S(),V(q,{key:0},[c(`p`,null,d(e.$t(`signatures.details.validIdentity`)),1),c(`p`,null,d(e.$t(`signatures.details.validSignature`)),1)],64)):!a.value.signerList[0].isCertTrusted&&a.value.signerList[0].isSignVerified?(S(),V(q,{key:1},[c(`p`,null,d(e.$t(`signatures.details.invalidIdentity`)),1),c(`p`,null,d(e.$t(`signatures.details.validSignature`)),1),c(`p`,null,d(e.$t(`signatures.details.unknownIdentity`)),1)],64)):a.value.signerList[0].isCertTrusted&&!a.value.signerList[0].isSignVerified?(S(),V(q,{key:2},[c(`p`,null,d(e.$t(`signatures.details.validIdentity`)),1),c(`p`,null,d(e.$t(`signatures.details.invalidSignature`)),1)],64)):b(``,!0),o.value?(S(),V(`p`,WG,d(e.$t(`signatures.details.expiredCertificate`)),1)):b(``,!0),c(`p`,null,d(a.value.signerList[0].diffInfo.length?e.$t(`signatures.details.altered`):e.$t(`signatures.details.notModified`)),1)],64))])])]),_:1},8,[`show`,`dialogName`])])):b(``,!0)}}},KG={class:`paint-container`},qG={class:`keyboard-paint`,style:{}},JG=[`placeholder`],YG=`digitalKeyboardCreatePanel`,XG={__name:`DigitalKeyboardCreatePanel`,props:[`text`],emits:[`modifyText`],setup(e,{emit:t}){let n=t,r=J(e.text),i=ye();T(()=>i.isElementOpen(YG));let a=()=>{i.closeElement(YG),o()},o=()=>{r.value=``},l=()=>{n(`modifyText`,r.value),a()};return(e,t)=>{let n=Ne,i=GC;return S(),s(i,{class:`digital-signature-dialog keyboard`,show:!0,dialogName:YG},{header:G(()=>[x(n,{class:`close`,onClick:a})]),footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:o},d(e.$t(`common.actions.clear`)),1),c(`div`,{class:`rect-button white`,onClick:a},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:l},d(e.$t(`common.actions.ok`)),1)]),default:G(()=>[c(`div`,KG,[c(`div`,qG,[R(c(`input`,{"onUpdate:modelValue":t[0]||=e=>r.value=e,type:`text`,placeholder:e.$t(`signatures.appearance.signHere`),name:`signature`},null,8,JG),[[Me,r.value]])])])]),_:1})}}},ZG=[`width`,`height`],QG=`digitalSignCreatePanel`,$G={__name:`DigitalSignCreatePanel`,emits:[`modifyImage`],setup(e,{emit:t}){let n=t,r=ye(),i=T(()=>r.isElementOpen(QG)),a=J(578),o=J(oe?0:270),l=J();W(()=>i.value,e=>{e&&oe&&E(()=>{let{clientWidth:e,clientHeight:t}=l.value;e&&a.value!==e&&(a.value=e),t&&o.value!==t&&(o.value=t)})});let u=()=>{r.closeElement(QG),f()},f=()=>{U.handleSign({flag:`clear`})},p=async()=>{n(`modifyImage`,await U.handleSign({type:1,flag:`image`})),u()};return(e,t)=>{let n=Ne,r=GC;return S(),s(r,{class:`digital-signature-dialog trackpad`,show:!0,dialogName:QG},{header:G(()=>[x(n,{class:`close`,onClick:u})]),footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:f},d(e.$t(`common.actions.clear`)),1),c(`div`,{class:`rect-button white`,onClick:u},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:p},d(e.$t(`common.actions.ok`)),1)]),default:G(()=>[c(`div`,{class:`paint-container`,ref_key:`paintContainer`,ref:l},[c(`canvas`,{id:`digitalTrackpadCanvas`,width:a.value,height:o.value},null,8,ZG)],512)]),_:1})}}},eK={class:`sign-content`},tK={class:`sign-popup-header`},nK={key:0,class:`signatures-popup-lists`},rK={key:0,class:`signatures-popup-empty`},iK={class:`no-signatures`},aK={key:1,class:`signatures-popup-list-container`},oK=[`onClick`,`src`],sK={key:1,class:`signatures-popup-create`},cK={class:`create-sign-header`},lK=[`src`],uK={class:`preview-options`},dK={class:`title`},fK={class:`configurations`},pK={class:`left`},mK={class:`checkboxes`},hK={class:`right`},gK={class:`text-align`},_K={class:`buttons`},vK={key:0,class:`addition`},yK={key:0},bK={class:`select-box`},xK=[`value`],SK=[`value`],CK=[`value`],wK=[`value`],TK={key:1},EK={class:`left-btns`},DK={key:0},OK={key:1},kK={class:`right-btns`},AK={key:1,class:`delete-page-popup`},jK={__name:`SignatureAppearanceDialog`,setup(e){let{t}=It(),n=H.SIGNATURE_APPEARANCE_DIALOG,r=ye(),i=pw(),a=J(!1),o=J(0),l=T(()=>r.isElementOpen(n)),u=T(()=>r.getActiveElementTab(`signPanel`)),f=T(()=>i.getActiveTool),p=T(()=>r.getDigitalSignaturePreview),m=T(()=>r.isElementOpen(H.DIGITAL_SIGN_CREATE_PANEL)),g=T(()=>r.isElementOpen(`digitalKeyboardCreatePanel`)),_=T(()=>i.getDisableDigitalSignature),v=T(()=>i.getDisableElectronicSignature),C=T(()=>r.getCertSubject),O=T(()=>r.getTheme),k=J(null),A=T(()=>r.getDigitalSignaturesList),j=J(``),M=J(``),P=J(`create`),ee=J(!0);A.value.length>=5&&(ee.value=!1);let F=N({name:!0,dName:!1,date:!0,version:!1,logo:!0,location:!1,reason:!1,labels:!0,alignment:`left`,reasonText:t(`signatures.none`),locationText:``});W(l,(e,t)=>{e&&(j.value=C.value?.CN)}),W(F,async(e,t)=>{await ae(B())},{deep:!0}),W(()=>A.value,e=>{e&&e.length>=5?ee.value=!1:ee.value||=!0},{deep:!0}),W(()=>l.value,e=>{e&&A.value.length>0?P.value=`list`:e&&A.value.length===0&&(P.value=`create`)});let te=e=>{a.value=!0,o.value=e},I=()=>{r.removeDigitalSignature(o.value),a.value=!1};function L(e){let t=new Image;return t.src=e,new Promise(e=>{t.onload=function(){let{width:n,height:r}=t;e({width:n,height:r})}})}let ne=async e=>{let{width:t,height:n}=await L(e);r.setCommonLoading(!0);let a=ce(B());a.imageBase64=e,a.width=t,a.height=n;let o=i.getPkcs12;await U.handleSign({type:1,flag:`save`,param:{annotation:w(r.getSelectedSignatureField),...a,appearance:`image`},pkcs12Buffer:o.pkcs12Buffer,password:o.password}),ue(),r.setCommonLoading(!1)},re=async e=>{M.value=e,await ae(B())},ie=async e=>{j.value=e,await ae(B())},B=()=>{let e=``;return F.name&&(e+=oe(`name`)+`
2502
2502
  `),F.date&&(e+=oe(`date`)+`
2503
2503
  `),F.reason&&(e+=oe(`reason`)+`
2504
2504
  `),F.dName&&(e+=oe(`dName`)+`
2505
2505
  `),F.version&&(e+=oe(`version`)+`
2506
- `),F.location&&(e+=oe(`location`)),e},ae=async e=>{let t=ce(e);t.rect={width:582,height:187,top:0,left:0,right:582,bottom:187};let n=await U.getSignature(t);r.setDigitalSignaturePreview(n)},oe=e=>{let n={};switch(e){case`name`:n.title=t(`signatures.appearance.name`),n.value=C.value.CN;break;case`date`:let e=new Date,r=`${e.getFullYear()}.${e.getMonth()+1<10?`0${e.getMonth()+1}`:e.getMonth()+1}.${e.getDate()<10?`0${e.getDate()}`:e.getDate()} ${e.getHours()<10?`0${e.getHours()}`:e.getHours()}:${e.getMinutes()<10?`0${e.getMinutes()}`:e.getMinutes()}:${e.getSeconds()<10?`0${e.getSeconds()}`:e.getSeconds()}`;n.title=t(`signatures.appearance.date`),n.value=r;break;case`reason`:n.title=t(`signatures.appearance.reason`),n.value=F.reasonText;break;case`dName`:let i=[`CN`,`O`,`OU`,`email`,`L`,`ST`,`C`].map(e=>`${e}=${C.value[e]}`).join(`,`);n.title=t(`signatures.appearance.distinguishableName`),n.value=i;break;case`version`:n.title=t(`signatures.appearance.version`),n.value=`2.9.2`;break;case`location`:n.title=t(`signatures.appearance.location`),n.value=F.locationText;break;default:break}return F.labels?`${n.title}: ${n.value}`:n.value},ce=e=>{let t={content:e,isContentAlginLeft:F.alignment!==`left`};return u.value===`keyboard`?t.text=j.value:t.text=``,(u.value===`image`||u.value===`trackpad`)&&(t.imageBase64=M.value),F.logo&&(t.isDrawLogo=!0,t.logoBase64=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAEYCAYAAACHjumMAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA9kSURBVHgB7d1vbJXlGcfx635KpUWqJWgiZGgxg2ZG52k1pmqmJdYl6kZwW8S5F4hlKvGFmG3RZWYU4wuX7QUsMdpsSn3j3LJMo3FLJobqMmMWpDUuS4BkdpKAyWAFi4JAz737Oj2Hlv45PX+e+/x57u8nOZ4/Lbw4nvPjuq77fp7HSAy67x9tPSWyzhhJpSNzhbGSsmJa3fNWAeqBtSNiZMSk7YfWyLCkZfD9gSUjgrIYKVEmVKLoUTG22/013QIkjBE7bK3dQdiUruiAyQWLFdlChYJgWBmQdHobQVOcogKm64HjWwkWBM1K3/svXrxNUJCCAqbr/tE20xC96sIlJUDorIy4amYN1cz8ovl+oav3sw02ioYIFyDLSJttiIZu7B1dJ8grb8BoS+TieoCWCDifK/1brUSvTnxHMJc5W6TMG2ekTwDkx1xmTrMGjJZ+ms4CoEDm/vdfuOglwXlmBIwOdHXmQlsEFM7NKI+Z8XQHg9/zzZzBRNFuwgUojs5kdKVVcJ7zAiY7d2kTAEXTldauB0b7BOeca5G0NZKG6GMBUDJtlZrH0ysHB5YcE0ypYFgxAsqmrdKpSLYIMjIVDNULEB+qmElR9r/dAiAWVDGTMgFjTPSoAIiPabhVIIb2CPCjaTy9JPQ2KaI9AvxwbVLwB0NGenpLARA7vlsuYGxkrhUAsUtHUZsELnJraisFQOxcBRP8P96RW0K6QgDEznJM3/xntANQGt0PI4EjYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAmwUCFGjZUiOXXRLJMr0tjTLPFy8y0uJu+ppa3DzxHBM6v/+8lTpgjYyIdbe0fOieDcu4DA7fsXlEykTAYAYNiK+uiGTVigZZ7e5XX94gl7lAITiSy1hpc3dtrqfpds8yvU1qV/+wpNM7ygkbAgaZ4PhGxwIXJg1yi7vX6gQwYlMSmZ0TYfP8gJyx24oNGtPVe7wuSjjEq6O9QW7taJROd6+VCvzofLtfksQa0zd820PbCv19AiYguVC586ZG2p0KSVrAZI3YM3ZNIdUMLVLCESrwoM00ypCb0Wwc7nnotXy/SMAkkAbJHS5QbnXzlM52/hfDB9PqZjSvpt7uz9sy8elLEA2We3oaZX3PQqoVVISxts+FjMwVMgRMAugelN61C+UuV7UAlZYJmV39I65demn6z1iPrGMaLM/+ZJH86ZnFhAuqykh6e+ovz7VNf50Kpg5RsaD2uJlMo3nVPeiY+ioVTB3RuUrv2gvkpZ9fSLigBtlU6q3n+qa+QsDUCd1h+9LWC2XT2iYGuKhZxsijqd07W3PPaZFqnLZDT25sYrkZdcK0ytlTW9yDPn1GBVPD1vdMtEOEC+rJ1CqGT24NompBfZusYvgE1xitWnSFiDkL6pkx5la9J2BqRG6FSHfhAgnQrW0SAVMDchvmOA8LEuXMqXUETJXp8vOTG5tpiZA8kUkRMFW0aa3OW5oESCJjbRsBUyVb7l3IvAXJZsy1BEyFaSv0zCPNLEEjAJYhbyXpMPcXLlw4By7CYAiYSmGlCCHi014BhAtCxSfeM8IFIeNT7xHhgtDxyfdEV4t0oEu4IGR8+j352cYmVosQPALGA91Epxc7A0JHwMRsE0dEA+cQMDHSAxc5tgiYRMDEZOIsdM0CYBIBEwNdMdLlaE65AJyPgImBnomO5WhgJr4VZbrz5kaGusAcCJgy6Nxly3qGusBcCJgy6KVFmLsAcyNgSqT7XThpFJAfAVMCbY3uYe4CzIuAKQEXRgMKQ8AUSVeN7rqJ44yAQhAwRdCqZdNaWiOgUARMEdb3NLKhDigC35YC6WCXAxmB4hAwBeqlNQKKRsAUQKsXBrtA8QiYAlC9AKUhYOZB9QKUjoCZB9ULUDoCJg+qF6A8BEweVC9AeQiYPDrbua4RUA4CZg56zBG7doHy8A2aw709FwiA8nDGpFmsXtHAZV8LdPjUmOz53yHZd+Jo5vEhdxs7czpzDxAws7jndqqXfD4YPSS7/zsig+5GkCAfAmYWDHdnGjv7pbx88J/y8icfZR4DhSBgptFwYbg7iWBBOQiYae68mfYoR0Ol/+MPCBaUjICZhvZIMnOVvn8Nyh43awHKQcBMQXtE1YJ4ETBT3NIR9nFHvzrwXiZggLgQMFOE3B5tdS3RG4f3CRAnAiZLj5wOdXPdvf/4o+wfOypA3FiPzVq1Isy3QisXwgW+EDBZIc5f+v+9h7YIXhEwWasDq2Byq0WATwSMTFyxMaT5i+5zIVxQCQSMhDd/+eHeN9jngoogYESCql5edzOXwyc5AhqVQcCI7n8JY7We1giVRsCI7oExEoKXD35E9YKKImAkjBZJq5c3Du0XoJKCDxjdwRsCPTKawS4qjYBZGkZ7xOwF1RB8wFx2SfLbIz2HLrMXVAMVTAAVzOuHmb2gOgiYAGYwe45xZjpUR/AB09Kc7ApGV49oj1AtwQfM4kWSaPvHjghQLVQwi5JdwezjXC+oIiqYRcl+C/SSrkC1EDDNkmiHubQrqogWKeEt0mdnTgtQLRyLlHBUMKgmAgaANwQMAG8IGADeEDAJt6ypRYBqCT5gxr6wkmQXNV4gQLUEHzAnTkqiUcGgmmiREm45AYMqCj5gDh8ZlyRbvXipANVCi/SFJNr1S5YLUC0MeU8me8i7vLmFOQyqhhbpSFqSbs2lbQJUAwFzNNkVjOomYFAlwQfMpwkf8iqdw7QsWChApVHBBFDBqPtWXC1ApREwbgaT9N286r7Lr6GKQcWx0c759GjyB70aLlQxqDQCxtl/MPkBo6hiUGkEjHPgk+QPepWGy4MrOwWoFALGOXAwjIBRP7j863Jd6zIBKoGAEQ2YMFqknG1XraFVQkUQMDJxTphQlquVHj5Aq4RKIGCy3h06IyHRVum+FdcI4BMBkxXKStJUP159k3xrWbsAvhAwWX8LrILJeeqqblndwjlj4AcBk6VzmJBWk6Z65YbvUcnACwJmir37wgwYpZXMgyuvEyBOBMwUoQ16p3v4yuvlR6tuZAkbsSFgptAKJoQDH/PR1aXf3fBdzoKHWBAw0/z5vbCrGKX7ZN68+T7p+1o3QYOyEDDThN4mTbV2ebv8pvPbmf0ytE0ohenqPR52TzCLv/66RVoWGcGkQyfHZM/oIen/+AM5fGpMgEI0fKXzp32C8yy9OJKrr2wQTGppXCjtLZe4Gc01cl32UihjZ0/LCXcD5rJAMIO2Set7uKbzXPQcv7nrLWlls+/EEdk/dtTdH8081+ChyoEiYGahq0l7952VznbenvnoQFhvay5dKZip8+1+CRlD3jm8O3RWAJSHgJmDLleHvicGKBcBMwcNlz/sYoAJlIOAyeP3BAxQFgImD61i3mRnL1AyAmYeL7z+pQAoDQEzD73yoy5ZAygeAVOAp3eeEgDFI2AKoFUMsxigeARMgXQWw74YoDgETIG0imFfDFAcAqYIui/m8NHwLm8ClIqAKYK2SNtfYeALFIqAKZIeBMmyNVAYAqYEumzNwBeYHwFTAh34vsgOX2BeBEyJXnEDX1olID8Cpgy0SkB+BEwZaJWA/AiYMmmrxHljgNkRMDHQwwjYgAfMRMDEQOcwj/zyC+YxwDQETEx0HvP0zpMCYBIBEyPd5csZ8IBJBEzMfusChqEvMIGA8UAPiGQTHkDAePPEsyflwMFxAUJGwHiiK0qPu5Bh+RohI2A80pUlXb4mZBAqAsYzQgYhI2AqgJBBqAiYCsmFDINfhCSyIscEFZELmXeGuMYSwhAZa48LKkZXl3QJm814CEFkjB0WVJxuxuOwAiRdJGkZEVSFHlbw+LMchY3kiqwRKpgq0gMkNzz1OStMSKSoKS2vCapKh78btn3OXAaJEw0OLHGrSGZQUFW5q0bqOWVomZAUE/tg7Pg7gprw5t/PZFomjsZGEmQCxrVJ29kPUzty+2V0lYlqBvUsEzDaJhmb3iGoKbrKpNXMm++xMQ/16dyhAlQxtSlzrt8XT2ZmM6w0od6cCxiqmNqWmc24lSY256GemOkv3Nh7fMhVMilBzVp2SSS9axfKXTc1Cmpb59v9ErIZR1PbxvTdtEq1Ldc2feeJE8xnUNPMbC92PTB6v5hop6AuUNHUrtArGDPXD7o2He8TK1sFdSMXNJ3tDbJsKaf6qQUETB6ETP266+ZGWd+zUFatIGiqiYCZx429o+vSEu10v9gqqDurVjTI+tsvoKqpEgKmAF0Pj7bJmWi3e9gmqFud7QvkTlfZEDaVQ8AUgZYpOTRsbulYkLmnjfKHgClStprpcw83CBJBh8PaSmngrHb3BE58CJgSZYLmtHS7v2KLGHOtIDFaFplM4GjQdLgKZ3kmgAidUhAwMciFjTFRylqru4DbXOhcIUgUndtotXOZuy1bajLPF7swasne9PHi5omAwgQCJnAdu57nfAiAJ9S9ALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANASP2mADwgoAROS4AfBgJPmCsNcMCIH7W/ocKxsiIAIidNWaYgDGWCgbwwX23CJio6TUBEL9IBoMPmOE1G3UVaVAAxGl4eM1mhrzKWvuOAIiNNXaH3hMwakHTdvbDADGKJroCAkYm2iRrZYcAKJsxMqDtkT4mYHKoYoBYpCO7LfeYgMmiigHKZ6zdlqteMs8F5+nY1T/kKpmUACiOkZGh2x5eOfUlKphpbEP6bloloEjGHrORXTP9ZQJmGi3vrJHHBEDBrI02Tm2NcgiYWQzftnlAe0kBMK/M3KXnoVl3xDODyaPzref6rDFbBcCsNFz23r65b86fC/JK7epfZyS9071VrQJggpu5mHF5bO83Nw/k/TXBvFK7n2szabNbrLQJEDwzrIshs81cZvymoGC0TAiaVi1p2ZGvJZrxRwRFyVQz49Ln3roNAoQgGyzpBU3bs2cfKPyPCkqiQSNp6TbWbHFPrxUgaax9xwXEYCnBkkPAxCAXNpE1KWttyr2rbe6tvUKAeuAqFDdfPO5uw8aYkbSe5TFqeq3UUJnq/zPmsRQ9GquGAAAAAElFTkSuQmCC`),u.value===`none`&&(t.isDrawOnlyContent=!0),t},le=async e=>{if(!(e===u.value&&[`image`,`none`].includes(e))){if(U.handleSign({flag:`create`,type:1}),r.setActiveSignWay(e),e===`trackpad`&&r.openElement(H.DIGITAL_SIGN_CREATE_PANEL),e===`keyboard`){r.openElement(`digitalKeyboardCreatePanel`),await E();let e=document.querySelector(`.digital-signature-dialog .keyboard-paint input`);e.select(),e.focus()}de()}},ue=e=>{r.closeElement(n),u.value!==`trackpad`&&de(),U.handleSign({flag:`reset`}),document.body.style.overflow=``,!f.value&&e===`cancel`&&_.value&&v.value&&r.openElement(H.SELECT_SIGN_TYPE_DIALOG),r.setActiveSignWay(`keyboard`),Object.assign(F,{name:!0,dName:!1,date:!0,version:!1,logo:!0,location:!1,reason:!1,labels:!0,alignment:`left`,reasonText:t(`signatures.none`),locationText:``})},de=async()=>{M.value=``,u.value===`trackpad`&&U.handleSign({flag:`clear`}),await ae(B())},fe=()=>{k.value.click()},pe=async e=>{let n=e.target.files[0];if(n.size>1024*1024){window.$message.error(t(`signatures.uploadError`),{duration:5e3,icon:()=>Y(`img`,{src:pw})}),e.target.value=``;return}let r=new FileReader;M.value=await new Promise((e,t)=>{r.addEventListener(`load`,async t=>{e(t.target.result)}),r.addEventListener(`error`,()=>{t(`Error reading the local image`)}),r.readAsDataURL(n)}),await ae(B())},me=async()=>{r.setCommonLoading(!0);let e=ce(B()),t=i.getPkcs12;await U.handleSign({type:1,flag:`save`,param:{annotation:w(r.getSelectedSignatureField),...e},pkcs12Buffer:t.pkcs12Buffer,password:t.password}),ue(),r.setCommonLoading(!1),ee.value&&A.value.length<5&&r.addDigitalSignature(p.value)},he=()=>{u.value===`keyboard`&&le(`keyboard`),u.value===`trackpad`&&le(`trackpad`)};return(e,t)=>{let r=Ne,i=xw,o=uw,f=Fe,_=lx,v=QC,C=Yb,w=Vb,T=JT,E=WC,M=JG,N=GG,L=JC;return S(),V(q,null,[l.value?(S(),V(`div`,{key:0,class:`signature-appearance-dialog`,onMousedown:t[22]||=Ae(()=>{},[`stop`])},[x(E,{show:l.value,dialogName:K(n),class:`appearance-dialog`},se({header:G(()=>[c(`p`,null,d(e.$t(`signatures.appearance.title`)),1),x(r,{class:`close`,onClick:ue})]),default:G(()=>[c(`div`,YG,[c(`div`,XG,[c(`div`,{onClick:t[0]||=e=>P.value=`list`,class:D({active:P.value===`list`})},d(e.$t(`signatures.electronicSignature.mySignatures`)),3),c(`div`,{onClick:t[1]||=e=>P.value=`create`,class:D({active:P.value===`create`})},d(e.$t(`signatures.electronicSignature.create`)),3)]),P.value===`list`?(S(),V(`div`,ZG,[A.value.length===0?(S(),V(`div`,QG,[c(`div`,$G,[O.value===`light`?(S(),s(i,{key:0})):(S(),s(o,{key:1})),c(`div`,{onClick:t[2]||=e=>P.value=`create`},d(e.$t(`signatures.electronicSignature.empty`)),1)])])):(S(),V(`div`,eK,[(S(!0),V(q,null,z(A.value,(e,t)=>(S(),V(`div`,{class:`signatures-popup-list`,key:t},[c(`img`,{onClick:t=>ne(e),src:e},null,8,tK),x(_,{class:`close-button`,onClick:e=>te(t)},{default:G(()=>[x(f)]),_:1},8,[`onClick`])]))),128))]))])):(S(),V(`div`,nK,[c(`div`,rK,[c(`div`,{onClick:t[3]||=e=>le(`keyboard`),class:D({active:u.value===`keyboard`})},d(e.$t(`signatures.keyboard`)),3),c(`div`,{onClick:t[4]||=e=>le(`trackpad`),class:D({active:u.value===`trackpad`})},d(e.$t(`signatures.trackpad`)),3),c(`div`,{onClick:t[5]||=e=>le(`image`),class:D({active:u.value===`image`})},d(e.$t(`signatures.image`)),3),c(`div`,{onClick:t[6]||=e=>le(`none`),class:D({active:u.value===`none`})},d(e.$t(`signatures.none`)),3)]),c(`div`,{class:`preview-area`,onClick:t[7]||=e=>he()},[c(`img`,{src:p.value},null,8,iK)]),c(`div`,aK,[u.value===`image`?(S(),V(q,{key:0},[c(`span`,{class:`upload`,onClick:fe},[y(d(e.$t(`common.actions.upload`)),1),c(`input`,{ref_key:`uploadImageEl`,ref:k,type:`file`,onChange:pe,accept:`.png, .jpg, .jpeg`,name:`signature`},null,544)]),c(`span`,{onClick:de},d(e.$t(`common.actions.clear`)),1)],64)):b(``,!0)]),c(`p`,oK,d(e.$t(`signatures.appearance.includeText`)),1),c(`div`,sK,[c(`div`,cK,[c(`div`,lK,[c(`div`,{class:`check-box`,onClick:t[8]||=e=>F.name=!F.name},[c(`div`,{class:D([`check`,{active:F.name}])},[R(x(v,null,null,512),[[Re,F.name]])],2),c(`span`,null,d(e.$t(`signatures.appearance.name`)),1)]),c(`div`,{class:`check-box`,onClick:t[9]||=e=>F.dName=!F.dName},[c(`div`,{class:D([`check`,{active:F.dName}])},[R(x(v,null,null,512),[[Re,F.dName]])],2),c(`span`,null,d(e.$t(`signatures.appearance.distinguishableName`)),1)]),c(`div`,{class:`check-box`,onClick:t[10]||=e=>F.date=!F.date},[c(`div`,{class:D([`check`,{active:F.date}])},[R(x(v,null,null,512),[[Re,F.date]])],2),c(`span`,null,d(e.$t(`signatures.appearance.date`)),1)]),c(`div`,{class:`check-box`,onClick:t[11]||=e=>F.version=!F.version},[c(`div`,{class:D([`check`,{active:F.version}])},[R(x(v,null,null,512),[[Re,F.version]])],2),c(`span`,null,d(e.$t(`signatures.appearance.version`)),1)]),c(`div`,{class:`check-box`,onClick:t[12]||=e=>F.logo=!F.logo},[c(`div`,{class:D([`check`,{active:F.logo}])},[R(x(v,null,null,512),[[Re,F.logo]])],2),c(`span`,null,d(e.$t(`signatures.appearance.logo`)),1)]),c(`div`,{class:`check-box`,onClick:t[13]||=e=>F.location=!F.location},[c(`div`,{class:D([`check`,{active:F.location}])},[R(x(v,null,null,512),[[Re,F.location]])],2),c(`span`,null,d(e.$t(`signatures.appearance.location`)),1)]),c(`div`,{class:`check-box`,onClick:t[14]||=e=>F.reason=!F.reason},[c(`div`,{class:D([`check`,{active:F.reason}])},[R(x(v,null,null,512),[[Re,F.reason]])],2),c(`span`,null,d(e.$t(`signatures.appearance.reason`)),1)]),c(`div`,{class:`check-box`,onClick:t[15]||=e=>F.labels=!F.labels},[c(`div`,{class:D([`check`,{active:F.labels}])},[R(x(v,null,null,512),[[Re,F.labels]])],2),c(`span`,null,d(e.$t(`signatures.appearance.labels`)),1)])])]),c(`div`,uK,[c(`div`,dK,[c(`span`,null,d(e.$t(`signatures.appearance.textAlignment`)),1),c(`div`,fK,[c(`div`,{class:D({active:F.alignment===`left`}),onClick:t[16]||=e=>F.alignment=`left`},[x(C)],2),c(`div`,{class:D({active:F.alignment===`right`}),onClick:t[17]||=e=>F.alignment=`right`},[x(w)],2)])]),F.reason||F.location?(S(),V(`div`,pK,[F.reason?(S(),V(`div`,mK,[c(`span`,null,d(e.$t(`signatures.appearance.reason`)),1),c(`div`,hK,[R(c(`select`,{"onUpdate:modelValue":t[18]||=e=>F.reasonText=e},[c(`option`,{value:e.$t(`signatures.none`)},d(e.$t(`signatures.none`)),9,gK),c(`option`,{value:e.$t(`signatures.appearance.docOwner`)},d(e.$t(`signatures.appearance.docOwner`)),9,_K),c(`option`,{value:e.$t(`signatures.appearance.approving`)},d(e.$t(`signatures.appearance.approving`)),9,vK),c(`option`,{value:e.$t(`signatures.appearance.reviewed`)},d(e.$t(`signatures.appearance.reviewed`)),9,yK)],512),[[Oe,F.reasonText]]),x(T)])])):b(``,!0),F.location?(S(),V(`div`,bK,[c(`span`,null,d(e.$t(`signatures.appearance.location`)),1),R(c(`input`,{type:`text`,"onUpdate:modelValue":t[19]||=e=>F.locationText=e,name:`signature`},null,512),[[Me,F.locationText]])])):b(``,!0)])):b(``,!0)])])]))])]),_:2},[P.value===`create`?{name:`footer`,fn:G(()=>[c(`div`,xK,[c(`div`,{class:D([`check`,{active:ee.value,disabled:A.value.length>=5}]),onClick:t[20]||=e=>A.value.length<5&&(ee.value=!ee.value)},[R(x(v,null,null,512),[[Re,ee.value]])],2),A.value.length<5?(S(),V(`span`,SK,d(e.$t(`signatures.electronicSignature.saveTemplate`)),1)):(S(),V(`span`,CK,d(e.$t(`signatures.fullStorage`)),1))]),c(`div`,wK,[c(`div`,{class:`rect-button white`,onClick:t[21]||=e=>ue(`cancel`)},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:me},d(e.$t(`common.actions.ok`)),1)])]),key:`0`}:void 0]),1032,[`show`,`dialogName`]),R(x(M,{onModifyImage:re},null,512),[[Re,m.value]]),g.value?(S(),s(N,{key:0,text:j.value,onModifyText:ie},null,8,[`text`])):b(``,!0)],32)):b(``,!0),a.value?(S(),V(`div`,TK,[x(E,{show:a.value,dialogName:K(n)},{footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:t[23]||=e=>a.value=!1},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:I},d(e.$t(`common.actions.ok`)),1)]),default:G(()=>[x(L),c(`p`,null,d(e.$t(`signatures.deleteConfirm`)),1)]),_:1},8,[`show`,`dialogName`])])):b(``,!0)],64)}}},DK={class:`title title-color`},OK={class:`select-text`},kK={class:`text`},AK={class:`title`},jK={class:`text`},MK={class:`title`},NK={__name:`SelectSignTypeDialog`,setup(e){let t=ye(),n=fw(),r=H.SELECT_SIGN_TYPE_DIALOG,i=T(()=>t.isElementOpen(r)),a=T(()=>n.getActiveTool),o=T(()=>n.getDisableDigitalSignature),l=T(()=>n.getDisableElectronicSignature),u=J(`electronic`);U.addEvent(`openSelectSignTypeDialog`,e=>{t.setSelectedSignatureField(e),a.value===L.ADD_DIGITAL_SIGN||!o.value&&l.value?t.openElement(H.ADD_DIGITAL_FILE_DIALOG):a.value===L.ADD_ELECTRONIC_SIGN||o.value&&!l.value?p():t.openElement(H.SELECT_SIGN_TYPE_DIALOG)});let f=()=>{t.closeElement(r),document.body.style.overflow=`hidden`,u.value===`digital`?t.openElement(`addDigitalFileDialog`):p()},p=()=>{t.toggleElement(H.SIGN_CREATE_PANEL),t.toggleActiveHand(!1),U.switchTool(0),U.switchAnnotationEditorMode(0)};return(e,t)=>{let n=DT,a=CT,o=WC;return i.value?(S(),V(`div`,{key:0,class:`select-type-popup`,onMousedown:t[2]||=Ae(()=>{},[`stop`])},[x(o,{show:i.value,dialogName:K(r),close:!0},{footer:G(()=>[c(`div`,{class:`rect-button blue`,onClick:f},d(e.$t(`signatures.startSigning`)),1)]),default:G(()=>[c(`p`,DK,d(e.$t(`signatures.electronicSignature.title`)),1),c(`div`,OK,[c(`div`,{onClick:t[0]||=e=>u.value=`electronic`,class:`option`},[u.value===`electronic`?(S(),s(n,{key:0})):(S(),s(a,{key:1})),c(`div`,kK,[c(`p`,AK,d(e.$t(`signatures.electronic.title`)),1),c(`p`,null,d(e.$t(`signatures.electronic.description`)),1)])]),c(`div`,{onClick:t[1]||=e=>u.value=`digital`,class:`option`},[u.value===`digital`?(S(),s(n,{key:0})):(S(),s(a,{key:1})),c(`div`,jK,[c(`p`,MK,d(e.$t(`signatures.digital.title`)),1),c(`p`,null,d(e.$t(`signatures.digital.description`)),1)])])])]),_:1},8,[`show`,`dialogName`])],32)):b(``,!0)}}},PK={key:0,class:`edit-dialog`},FK={class:`edit`},IK={class:`close`},LK={class:`warning`},RK={class:`title`},zK={class:`des`},BK={__name:`PreventDialog`,setup(e){let t=ye(),n=T(()=>t.isElementOpen(H.CONTENT_EDITOR_PREVENT_DIALOG)),r=T(()=>t.isElementOpen(H.DOC_EDITOR_PREVENT_DIALOG)),i=()=>t.closeElement(n.value?H.CONTENT_EDITOR_PREVENT_DIALOG:H.DOC_EDITOR_PREVENT_DIALOG);return(e,t)=>{let a=Fe,o=JC;return n.value||r.value?(S(),V(`div`,PK,[c(`div`,FK,[c(`div`,IK,[x(a,{onClick:i})]),c(`div`,LK,[x(o)]),c(`div`,RK,d(e.$t(`prevent.title`)),1),c(`div`,zK,d(n.value?e.$t(`prevent.description`):e.$t(`prevent.description1`)),1),c(`div`,{class:`button`,onClick:i},d(e.$t(`common.actions.ok`)),1)])])):b(``,!0)}}},VK={class:`settings-popup`},HK={class:`title`},UK={class:`container`},WK={class:`info`},GK={class:`row`},KK={class:`row`},qK={class:`row`},JK={class:`select-box`},YK=[`value`],XK={class:`row`},ZK={class:`controller`},QK={class:`row`},$K={class:`controller`},eq={class:`form-sign`},tq={class:`row`},nq={class:`select-box`},rq=[`value`],iq={key:0,class:`row`},aq={class:`controller`},oq={class:`title`},sq={class:`version row`},cq={__name:`SettingsDialog`,setup(e){let{i18next:t,t:n}=It(),r=ye(),i=fw(),a=J(i.getAuthor),o=J(i.getAnnotator),s=T(()=>r.isElementOpen(H.SETTINGS_DIALOG)),l=T(()=>i.getAuthor),u=T(()=>i.getAnnotator),f=J(t.language),p=J(!0),m=J(!0),g=J(!1),_=T(()=>r.getLanguages),v=J(!1),y=J(`signForm`),C=[{label:T(()=>n(`toolbar.settings.signForm`)),value:`signForm`},{label:T(()=>n(`toolbar.settings.sign`)),value:`sign`},{label:T(()=>n(`toolbar.settings.form`)),value:`form`},{label:T(()=>n(`toolbar.settings.disableConsecutively`)),value:!1}];W(()=>s.value,(e,t)=>{e&&(g.value=!1)}),W(()=>t.language,e=>{f.value=e}),W(l,(e,t)=>{a.value=e}),W(u,(e,t)=>{o.value=e}),W([a,o,f,p,m,v,y],(e,n)=>{e[0]!==i.getAuthor||e[1]!==i.getAnnotator||e[2]!==t.language||e[3]!==i.getHighlightLink||e[4]!==i.getHighlightForm||e[5]!==U.isSkipNoRequired()||e[6]!==U.getConsecutiveType()?g.value=!0:g.value=!1});let w=()=>{r.closeElement(H.SETTINGS_DIALOG),f.value=t.language,a.value=l.value,o.value=u.value,p.value=i.getHighlightLink,m.value=i.getHighlightForm,y.value=r.getConsecutiveType,v.value=U.isSkipNoRequired()},E=async()=>{await t.changeLanguage(f.value),window.localStorage.setItem(`language`,f.value),r.closeElement(H.SETTINGS_DIALOG),i.setAuthor(a.value?a.value:`ComPDF`),i.setCurrentUser(o.value?o.value:`Guest`),i.setHighlightLink(p.value),i.setHighlightForm(m.value),v.value?U.enableSkipNoRequired():U.disableSkipNoRequired(),r.setConsecutiveType(y.value),U.setConsecutiveType(y.value)},O=()=>{let e=U.getCurrentUser();e!==u.value&&i.setCurrentUser(e)};return U.addEvent(`updateAnnotationPermission`,O),U.addEvent(`updateConsecutivelyType`,()=>{let e=U.isSkipNoRequired();v.value=e,r.setSkipNoRequired(e);let t=U.getConsecutiveType();r.setConsecutiveType(t),y.value=t}),U.addEvent(`update`,O),M(()=>{let e=U.getCurrentUser();i.setCurrentUser(e);let t=U.getConsecutiveType();r.setConsecutiveType(t),y.value=t}),(e,t)=>{let n=$b,r=WC;return S(),V(`div`,VK,[x(r,{show:s.value},{footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:w},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:D([`rect-button blue`,{disabled:!g.value}]),onClick:E},d(e.$t(`common.actions.save`)),3)]),default:G(()=>[c(`p`,HK,d(e.$t(`toolbar.settings.title`)),1),c(`div`,UK,[c(`div`,WK,[c(`div`,GK,[c(`span`,null,d(e.$t(`toolbar.settings.author`)),1),R(c(`input`,{type:`text`,placeholder:`ComPDF`,"onUpdate:modelValue":t[0]||=e=>a.value=e,name:`settings`},null,512),[[Me,a.value]])]),c(`div`,KK,[c(`span`,null,d(e.$t(`toolbar.settings.annotator`)),1),R(c(`input`,{type:`text`,placeholder:`Guest`,"onUpdate:modelValue":t[1]||=e=>o.value=e,name:`settings`},null,512),[[Me,o.value]])]),c(`div`,qK,[c(`span`,null,d(e.$t(`toolbar.settings.language`)),1),c(`div`,JK,[R(c(`select`,{name:`language`,"onUpdate:modelValue":t[2]||=e=>f.value=e},[(S(!0),V(q,null,z(_.value,e=>(S(),V(`option`,{value:e.code},d(e.name),9,YK))),256))],512),[[Oe,f.value]]),x(n)])])]),c(`div`,XK,[c(`span`,null,d(e.$t(`toolbar.settings.highlightLink`)),1),c(`div`,ZK,[x(K(Tb),{value:p.value,"onUpdate:value":t[3]||=e=>p.value=e},null,8,[`value`])])]),c(`div`,QK,[c(`span`,null,d(e.$t(`toolbar.settings.highlightForm`)),1),c(`div`,$K,[x(K(Tb),{value:m.value,"onUpdate:value":t[4]||=e=>m.value=e},null,8,[`value`])])]),c(`div`,eq,[c(`div`,tq,[c(`span`,null,d(e.$t(`toolbar.settings.signFill`)),1),c(`div`,nq,[R(c(`select`,{name:`consecutively`,"onUpdate:modelValue":t[5]||=e=>y.value=e},[(S(),V(q,null,z(C,e=>c(`option`,{value:e.value},d(e.label.value),9,rq)),64))],512),[[Oe,y.value]]),x(n)])]),y.value?(S(),V(`div`,iq,[c(`span`,null,d(e.$t(`toolbar.settings.skip`)),1),c(`div`,aq,[x(K(Tb),{value:v.value,"onUpdate:value":t[6]||=e=>v.value=e},null,8,[`value`])])])):b(``,!0)])]),c(`p`,oq,d(e.$t(`toolbar.settings.creationInfo`)),1),c(`div`,sq,[c(`span`,null,d(e.$t(`toolbar.settings.version`)),1),t[7]||=c(`span`,null,`2.9.2`,-1)])]),_:1},8,[`show`])])}}},lq={id:`passwordDialog`,class:`enter-document-password-dialog`},uq={class:`password-container`},dq={class:`modal-container`},fq={class:`wrapper`},pq={class:`header-container`},mq={class:`password-title`},hq={class:`input-container`},gq=[`type`,`placeholder`],_q={class:`wrong-password`,id:`passwordText`},vq={__name:`EnterDocumentPassword`,setup(e){let{t}=It(),n=ye(),r=J(!1),i=J(``),a=J(``),o=T(()=>n.isElementOpen(H.PERMISSION_PASSWORD_DIALOG)),l=T(()=>n.getCability),u=e=>{e.param===!0||e.param===!1?r.value=e.param:r.value=!r.value};W(()=>i.value,()=>{a.value=``}),W(()=>o.value,()=>{i.value=``,a.value=``});let f=async()=>{if(!await U.checkPermissionPassword(i.value)){a.value=t(`passwordDialog.wrongPwd`);return}n.closeElement(H.PERMISSION_PASSWORD_DIALOG),l.value&&(l.value(),n.setCability(null))};return(e,t)=>{let l=qj,p=lx,m=yL,g=zN,_=FN;return R((S(),V(`div`,lq,[c(`div`,uq,[c(`div`,dq,[c(`div`,fq,[c(`div`,pq,[t[2]||=c(`span`,{class:`title`},null,-1),x(p,{class:`close-button`,id:`passwordCancel`,onClick:t[0]||=e=>K(n).closeElement(K(H).PERMISSION_PASSWORD_DIALOG)},{default:G(()=>[x(l)]),_:1})]),x(m,{class:`lock-icon`}),c(`div`,mq,d(e.$t(`passwordDialog.enterPermissionPwd`)),1),c(`div`,hq,[R(c(`input`,{id:`permission-password`,"onUpdate:modelValue":t[1]||=e=>i.value=e,type:r.value?`text`:`password`,name:`password`,placeholder:e.$t(`passwordDialog.placeholder`)},null,8,gq),[[Ie,i.value]]),c(`span`,{class:`eye-btn`,id:`eyeVisible`,onClick:u},[r.value?(S(),s(g,{key:0})):(S(),s(_,{key:1}))]),c(`div`,_q,d(a.value),1)]),c(`span`,{class:D([`set-btn`,!i.value.length&&`disabled`]),id:`passwordSubmit`,onClick:f},d(e.$t(`common.actions.ok`)),3)])])])],512)),[[Re,o.value]])}}},yq={className:`modal-container`},bq={className:`wrapper`},xq={className:`header-container`},Sq={class:`title`},Cq={__name:`ModalContainer`,props:[`title`,`onCloseClick`],setup(e){return(t,n)=>{let r=qj,i=lx;return S(),V(`div`,yq,[c(`div`,bq,[c(`div`,xq,[c(`span`,Sq,d(e.title),1),x(i,{className:`close-button`,onClick:e.onCloseClick},{default:G(()=>[x(r)]),_:1},8,[`onClick`])]),be(t.$slots,`default`)])])}}},wq=`data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='&%23230;&%23160;&%23161;&%23233;&%23170;&%23140;_check-one%204'%3e%3cpath%20id='Vector'%20d='M12.5%2021.5C15.1235%2021.5%2017.4978%2020.4372%2019.2175%2018.7175C20.9372%2016.9978%2022%2014.6235%2022%2012C22%209.37654%2020.9372%207.00222%2019.2175%205.28248C17.4978%203.56278%2015.1235%202.5%2012.5%202.5C9.87653%202.5%207.50222%203.56278%205.78248%205.28249M12.5%2021.5L5.78248%205.28249M12.5%2021.5C9.87654%2021.5%207.50222%2020.4372%205.78248%2018.7175C4.06278%2016.9978%203%2014.6235%203%2012C3%209.37653%204.06277%207.00222%205.78248%205.28249M12.5%2021.5L5.78248%205.28249'%20fill='%2300CF85'%20stroke='%2300CF85'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M8.5%2012L11.1667%2015L16.5%209'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e`,Tq={class:`password-container`},Eq={class:`encrypt-container`},Dq={class:`encrypt-document`},Oq={class:`document-title`},kq=[`disabled`,`type`,`placeholder`],Aq={class:`wrong-password`},jq={class:`note`},Mq={class:`permission`},Nq={class:`permission-title`},Pq=[`disabled`,`type`,`placeholder`],Fq={class:`wrong-password`},Iq={class:`items`},Lq={class:`note`},Rq={class:`note`},zq={class:`btn-container`},Bq={__name:`SetPassword`,setup(e){let{t}=It(),n=ye(),r=J(!1),i=J(``),a=J(``),o=J(!1),l=J(``),u=J(``),f=J(!1),p=J(!1),m=J(!1),g=J(!1),_=N({allowsPrinting:!0,allowsCopying:!0,allowsDocumentChanges:!1,allowsDocumentAssembly:!1,allowsCommenting:!1,allowsFormFieldEntry:!1}),v=J(`readOnly`),b=T(()=>n.isElementOpen(H.SET_PASSWORD_MODAL));W(()=>i.value,(e,t)=>{e&&(e=e.replace(/\s/g,``),e=e.replace(/[^a-zA-Z0-9!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]/,``),e=e.replace(/[\u4e00-\u9fa5\uFE30-\uFFA0]/,``),i.value=e),l.value=``}),W(()=>a.value,(e,t)=>{e&&(e=e.replace(/\s/g,``),e=e.replace(/[^a-zA-Z0-9!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]/,``),e=e.replace(/[\u4e00-\u9fa5\uFE30-\uFFA0]/,``),a.value=e),u.value=``});let C=T(()=>[{label:t(`passwordDialog.readOnly`),value:`readOnly`},{label:t(`passwordDialog.allowPageEdit`),value:`allowPageEdit`},{label:t(`passwordDialog.allowFormFillAndSign`),value:`allowFormFillAndSign`},{label:t(`passwordDialog.allowAnnotateFillAndSign`),value:`allowAnnotateFillAndSign`}]),w=()=>{n.closeElement(H.SET_PASSWORD_MODAL),r.value=!1,i.value=``,f.value=!1,a.value=``,p.value=!1,m.value=!1,_.allowsPrinting=!0,_.allowsCopying=!0,_.allowsDocumentChanges=!1,_.allowsDocumentAssembly=!1,_.allowsCommenting=!1,_.allowsFormFieldEntry=!1,v.value=`readOnly`},E=async()=>{if(!i.value.length&&!a.value.length||o.value)return;if(O())f.value=!1;else{f.value=!0;return}o.value=!0;let e={};p.value&&(e.password=i.value),m.value&&(e.permissionPassword=a.value,e.permission={allowsPrinting:_.allowsPrinting,allowsCopying:_.allowsCopying,allowsDocumentChanges:_.allowsDocumentChanges,allowsDocumentAssembly:_.allowsDocumentAssembly,allowsCommenting:_.allowsCommenting,allowsFormFieldEntry:_.allowsFormFieldEntry});let n=await U.setPassword(e);w(),n?window.$message.success(t(`passwordDialog.setSuccess`),{duration:3e3,icon:()=>Y(`img`,{src:wq})}):window.$message.error(t(`passwordDialog.setFailure`),{duration:3e3,icon:()=>Y(`img`,{src:pw})}),o.value=!1},O=()=>{let e=/^(?=.*[a-zA-Z]+$|.*\d+$|.*[@$!%*?&]+$)[a-zA-Z\d@$!%*?&]{1,20}$/,n=e.test(i.value),r=e.test(a.value);return p.value&&!n&&(l.value=t(`passwordDialog.support`)),m.value&&!r&&(u.value=t(`passwordDialog.support`)),p.value&&m.value&&i.value===a.value?(l.value=t(`passwordDialog.samePwd`),u.value=t(`passwordDialog.samePwd`),!1):i.value.length>20||a.value.length>20?(p.value&&i.value.length>20&&(l.value=t(`passwordDialog.longPwd`)),m.value&&a.value.length>20&&(u.value=t(`passwordDialog.longPwd`)),!1):(!p.value||n)&&(!m.value||r)},k=e=>{switch(e){case`readOnly`:_.allowsDocumentChanges=!1,_.allowsDocumentAssembly=!1,_.allowsCommenting=!1,_.allowsFormFieldEntry=!1;break;case`allowPageEdit`:_.allowsDocumentChanges=!1,_.allowsDocumentAssembly=!0,_.allowsCommenting=!1,_.allowsFormFieldEntry=!1;break;case`allowFormFillAndSign`:_.allowsDocumentChanges=!0,_.allowsDocumentAssembly=!1,_.allowsCommenting=!1,_.allowsFormFieldEntry=!0;break;case`allowAnnotateFillAndSign`:_.allowsDocumentChanges=!0,_.allowsDocumentAssembly=!1,_.allowsCommenting=!0,_.allowsFormFieldEntry=!0;break}};return(e,t)=>{let n=QC,o=zN,f=FN,T=aH,O=$b,A=Cq;return R((S(),V(`div`,Tq,[x(A,{onCloseClick:w,title:e.$t(`passwordDialog.encryptTitle`)},{default:G(()=>[c(`div`,Eq,[c(`div`,Dq,[c(`div`,Oq,[c(`div`,{class:D([`check`,{active:p.value}]),onClick:t[0]||=e=>p.value=!p.value},[R(x(n,null,null,512),[[Re,p.value]])],2),c(`span`,null,d(e.$t(`passwordDialog.openPwd`)),1)]),c(`div`,{class:D([`input-container`,!p.value&&`disable`])},[c(`div`,{class:D([`input`,!p.value&&`disabled`])},[R(c(`input`,{disabled:!p.value,type:r.value?`text`:`password`,name:`password`,"onUpdate:modelValue":t[1]||=e=>i.value=e,placeholder:e.$t(`passwordDialog.placeholder`)},null,8,kq),[[Ie,i.value]]),c(`span`,{class:`eye-btn`,onClick:t[2]||=e=>r.value=!r.value},[r.value?(S(),s(o,{key:0})):(S(),s(f,{key:1}))])],2),R(c(`div`,Aq,[c(`p`,null,d(l.value),1),t[9]||=y(`s `,-1)],512),[[Re,l.value]]),c(`div`,jq,[x(T),c(`p`,null,d(p.value?e.$t(`passwordDialog.hasOpenPwd`):e.$t(`passwordDialog.noOpenPwd`)),1)])],2)]),c(`div`,Mq,[c(`div`,Nq,[c(`div`,{class:D([`check`,{active:m.value}]),onClick:t[3]||=e=>m.value=!m.value},[R(x(n,null,null,512),[[Re,m.value]])],2),c(`span`,null,d(e.$t(`passwordDialog.permissionPwd`)),1)]),c(`div`,{class:D([`input-container`,!m.value&&`disable`])},[c(`div`,{class:D([`input`,!m.value&&`disabled`])},[R(c(`input`,{disabled:!m.value,type:g.value?`text`:`password`,name:`password`,"onUpdate:modelValue":t[4]||=e=>a.value=e,placeholder:e.$t(`passwordDialog.placeholder`)},null,8,Pq),[[Ie,a.value]]),c(`span`,{class:`eye-btn`,onClick:t[5]||=e=>g.value=!g.value},[g.value?(S(),s(o,{key:0})):(S(),s(f,{key:1}))])],2),R(c(`div`,Fq,[c(`p`,null,d(u.value),1)],512),[[Re,u.value]])],2),c(`div`,Iq,[x(K(kv),{value:v.value,"onUpdate:value":[t[6]||=e=>v.value=e,k],options:C.value,disabled:!m.value,to:`.permission`,class:`item`,size:`small`},{arrow:G(()=>[x(O)]),_:1},8,[`value`,`options`,`disabled`]),c(`div`,{class:D([`printing item`,!m.value&&`disabled`])},[c(`div`,{class:D([`check`,{active:_.allowsPrinting}]),onClick:t[7]||=e=>m.value&&(_.allowsPrinting=!_.allowsPrinting)},[R(x(n,null,null,512),[[Re,_.allowsPrinting]])],2),c(`span`,null,d(e.$t(`passwordDialog.allowsPrinting`)),1)],2),c(`div`,{class:D([`copy item`,!m.value&&`disabled`])},[c(`div`,{class:D([`check`,{active:_.allowsCopying}]),onClick:t[8]||=e=>m.value&&(_.allowsCopying=!_.allowsCopying)},[R(x(n,null,null,512),[[Re,_.allowsCopying]])],2),c(`span`,null,d(e.$t(`passwordDialog.allowsCopying`)),1)],2),c(`div`,Lq,[x(T),c(`p`,null,d(m.value?e.$t(`passwordDialog.hasPermissionPwd`):e.$t(`passwordDialog.noPermissionPwd`)),1)])])])]),c(`div`,Rq,[c(`p`,null,d(e.$t(`passwordDialog.notes`)[0]),1),c(`p`,null,d(e.$t(`passwordDialog.notes`)[1]),1),c(`p`,null,d(e.$t(`passwordDialog.notes`)[2]),1)]),c(`div`,zq,[c(`span`,{onClick:w},d(e.$t(`common.actions.cancel`)),1),c(`span`,{class:D([`blue`,{disabled:!i.value&&p.value&&!m.value||!a.value&&m.value||!p.value&&!m.value}]),onClick:E},d(e.$t(`passwordDialog.encrypt`)),3)])]),_:1},8,[`title`])],512)),[[Re,b.value]])}}},Vq={id:`passwordDialog`,class:`password-dialog enter-password-dialog`},Hq={class:`password-container`},Uq={class:`modal-container`},Wq={class:`wrapper`},Gq={class:`header-container`},Kq={class:`password-title`},qq={class:`input-container`},Jq=[`type`,`placeholder`],Yq={class:`set-btn`,id:`passwordSubmit`},Xq={__name:`EnterPassword`,setup(e){let t=J(!1),n=e=>{e.param===!0||e.param===!1?t.value=e.param:t.value=!t.value};return(e,r)=>{let i=qj,a=lx,o=yL,l=zN,u=FN;return S(),V(`div`,Vq,[c(`div`,Hq,[c(`div`,Uq,[c(`div`,Wq,[c(`div`,Gq,[r[0]||=c(`span`,{class:`title`},null,-1),x(a,{class:`close-button`,id:`passwordCancel`},{default:G(()=>[x(i)]),_:1})]),x(o,{class:`lock-icon`}),c(`div`,Kq,d(e.$t(`passwordDialog.enterPwd`)),1),c(`div`,qq,[c(`input`,{id:`password`,type:t.value?`text`:`password`,name:`password`,placeholder:e.$t(`passwordDialog.placeholder`)},null,8,Jq),c(`span`,{class:`eye-btn`,id:`eyeVisible`,onClick:n},[t.value?(S(),s(l,{key:0})):(S(),s(u,{key:1}))]),r[1]||=c(`div`,{class:`wrong-password`,id:`passwordText`},null,-1)]),c(`span`,Yq,d(e.$t(`common.actions.ok`)),1)])])])])}}},Zq=[`data-element`],Qq={class:`form-container`},$q={__name:`PageNavOverlay`,setup(e){let t=ye(),n=fw(),r=J(t.getCurrentPage);re(()=>r.value=t.getCurrentPage);let i=T(()=>t.getFullScreen),a=T(()=>t.getCurrentPage===1),o=T(()=>n.getTotalPages),s=T(()=>o.value===t.getCurrentPage);W(r,(e,t)=>{e!==``&&o.value!==0&&(e>o.value||e<=0)&&(r.value=t)});let l=()=>{U.previousPage()&&t.setCurrentPage(U.getCurrentPage())},u=()=>{U.nextPage()&&t.setCurrentPage(U.getCurrentPage())},f=e=>{if(e.target.blur(),!e.target.value){r.value=t.getCurrentPage;return}U.pageNumberChanged(e.target)};return(e,t)=>{let n=GA,p=lx,m=VA;return o.value>0&&!i.value?(S(),V(`div`,{key:0,class:`page-nav`,"data-element":K(H).PAGE_NAV_OVERLAY},[x(p,{className:`side-arrow-container`,img:`icon-previous-left`,title:a.value?null:e.$t(`common.navigation.previousPage`),onClick:l,disabled:a.value},{default:G(()=>[x(n)]),_:1},8,[`title`,`disabled`]),c(`div`,Qq,[R(c(`input`,{type:`number`,"onUpdate:modelValue":t[0]||=e=>r.value=e,onInput:t[1]||=(...t)=>e.onChange&&e.onChange(...t),onBlur:f,onKeydown:ke(f,[`enter`]),tabIndex:`-1`,style:A({width:r.value.toString().length*8+2+`px`}),pattern:`\\d*`,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,name:`page-nav`},null,36),[[Me,r.value]]),c(`span`,null,d(`/${o.value}`),1)]),x(p,{className:`side-arrow-container`,img:`icon-next-right`,title:s.value?null:e.$t(`common.navigation.nextPage`),onClick:u,disabled:s.value},{default:G(()=>[x(m)]),_:1},8,[`title`,`disabled`])],8,Zq)):b(``,!0)}}},eJ=[`innerHTML`],tJ={class:`loading`},nJ={class:`upload-container`},rJ={for:`fileInput`},iJ={__name:`DocumentContainer`,setup(e){let{loadDocument:t,initializeViewer:n,getDocumentViewer:r,switchTool:i,switchAnnotationEditorMode:a}=U,o=J(),l=J(),u=ye(),f=fw(),p=null,m=window.localStorage.getItem(`customStamps`),g=window.localStorage.getItem(`electronicSignatures`),_=window.localStorage.getItem(`digitalSignatures`);m&&u.setCustomStamps(JSON.parse(m)),g&&u.setElectronicSignature(JSON.parse(g)),_&&u.setDigitalSignature(JSON.parse(_));let v=T(()=>u.getCustomLoading),y=T(()=>u.isElementDisabled(`header`)),C=T(()=>u.getDisableSignatureTool),w=T(()=>u.isElementOpen(H.LEFT_PANEL)),E=T(()=>u.getPanelSpace),O=T(()=>u.getToolMode),k=T(()=>u.getCompareStatus),j=T(()=>y.value||[`view`,`document`,`separation`].includes(u.getToolMode)||O.value===`compare`&&k.value!==`finished`?0:[L.REDACTION,L.REMOVE].includes(I.value)?window.innerWidth>500?92:132:O.value===`sign`&&C.value?0:ne.value&&O.value===`sign`?88:44),N=T(()=>u.getUploadLoading&&u.getUpload),ee=T(()=>u.getActiveElementTab(H.LEFT_PANEL)),F=T(()=>u.getUpload),te=T(()=>u.isElementDisabled(`pageNavOverlay`)),I=T(()=>f.getActiveTool),z=T(()=>u.getScale),ne=T(()=>u.getSignatureVerify),re=T(()=>u.getCommonLoading),ie=T(()=>u.getVerified),B=T(()=>u.getCurrentPage),ae=100,oe=0,se=[],ce=[`highlight`,`underline`,`squiggly`,`strikeout`,`link`,`signatureFields`,`redaction`];function le(e){if(!P)return;if(I.value===L.POLYGON||I.value===L.POLYLINE||I.value===L.CLOUDY){let t=xe(e),n=U.getSelectedPage(t,t).first;if(n<1)return;let r=U.windowToPage(t,n);U.eventBus().dispatch(`pdfDbclick`,{event:e,...r});return}let t=z.value<ae+100?z.value+50:ae;u.setCurrentScale(t/100),U.scaleChanged(t/100)}function ue(e){let t=o.value.querySelector(`.page-nav`);if(e.target.nodeName===`A`||t?.contains(e.target)||e.target.nodeName===`rect`)return;let n=new Date().getTime();n-oe<300&&le(e),oe=n}async function de(e){let t=e.target.files[0];if(!t)return;u.closeElement(`permissionPasswordDialog`),w.value&&u.closeElement(H.LEFT_PANEL),u.$patch({fullScreen:!1,currentPage:0,scale:``,pageMode:0,scrollMode:`Vertical`,activeTab:0,searchStatus:!1,activeElements:{leftPanel:!1,rightPanel:!1,pageModePanel:!1},activeElementsTab:{leftPanel:`THUMBS`,rightPanel:`GENERAL`},signatureVerify:0}),f.resetSetting(),U.clearSearchResults(),f.setToolState(``),u.setActiveToolMode(`view`),u.setToolbarGroup(`toolbarGroup-View`),u.setUploadLoading(!0),u.setDisableHeader(!0);let n=t.name;u.setUpload(!0),await pe(t,{filename:n}),u.setUploadLoading(!1),u.setDisableHeader(!1)}let fe=T(()=>f.getLoadingProgress);async function pe(e,{filename:n=null,password:i=``,onError:a=null}){let o={extension:UD(`extension`,null),filename:UD(`filename`,null)||n,externalPath:UD(`p`,``),documentId:UD(`did`,null),progress:f.setLoadingProgress,pageChangedCallback:u.setCurrentPage,scaleChangedCallback:u.setCurrentScale,annotationsNumChangedCallback:f.setAnnotationsCount,distanceChangedCallback:f.setDistance,permissionPasswordCallback:()=>u.openElement(`permissionPasswordDialog`),documentPasswordCallback:()=>u.openElement(`permissionPasswordDialog`),onError:a,password:i};try{let n=await t(e,o);if(!n||!n.verified)return;ie.value||(u.setVerified(n.verified),u.setLicense(r()._license));let{pwd:i}=n;f.setFileHasPwd(!!i),f.setPassword(i),f.setCurrentPdfData(e,o),f.setOutline(U.getOutlines())}catch(e){console.log(e),u.resetSetting();let t=document.getElementById(`fileInput`);t.value=``,f.setCurrentPdfData()}let s=U.getPagesCount(),c=U.getScale();f.setTotalPages(s),u.setCurrentPage(1),u.setCurrentScale(c),ae=Math.round(c*100)}let me=e=>{e.length===1&&f.setSelectedAnnotation(e[0])},he=()=>{U.getAnnotationManager().getSelectedAnnotations().length!==1&&f.setSelectedAnnotation(null)},ge=e=>{ee.value!==H.ANNOTATION_TAB&&u.setActiveElementTab(H.LEFT_PANEL,H.ANNOTATION_TAB),w.value||u.openElement(H.LEFT_PANEL),u.openElement(`reply`),p&&=(clearTimeout(p),null),setTimeout(()=>{let e=document.querySelector(`.annotation-item.selected`);if(e.scrollIntoView({behavior:`smooth`}),e.classList.contains(`flash-border`))e.classList.remove(`flash-border`),clearTimeout(p),p=null;else{e.classList.add(`flash-border`);let t=document.querySelector(`.annotation-item.selected`),n=t.querySelector(`textarea`);n&&n.focus(),p=setTimeout(()=>t?.classList.remove(`flash-border`),2e3)}},300)};function _e(e){e.isTrusted&&typeof e.data==`object`&&e.data.type===`viewerLoaded`&&W(e.data.options)}function ve(){u.setUploadLoading(!1),U.addEvent(`updateAnnotationPermission`,()=>{let e=U.isReadOnlyModeEnabled();if(e){O.value&&(u.setActiveToolMode(`view`),u.setToolbarGroup(`toolbarGroup-View`)),f.setToolState(``);let e=U.getAnnotationManager();e.deselectAnnotations(e.getSelectedAnnotations())}let t=U.isUserAdmin();u.setReadOnly(e),u.setUserAdmin(t)}),U.addEvent(`toolModeChanged`,e=>{e!==O.value&&u.setActiveToolMode(e)}),U.addEvent(`toolChanged`,e=>{f.setActiveTool(e)}),U.addEvent(`annotationSelected`,me),U.addEvent(`annotationDeselected`,he),U.addEvent(`openAnnotationReply`,ge);let e=document.querySelector(`.thumbnail-view`),t=document.querySelector(`.outline-view`),r=document.querySelector(`.findbar-view`);n({container:o.value,viewer:l.value,thumbnailView:e,outlineView:t,findbarView:r,toggleButton:document.querySelector(`.toggle-button`)}),U.addEvent(`onPagesUpdated`,e=>{let{pageNumber:t}=e;f.setOutline(U.getOutlines());let n=U.getPagesCount(),r=U.getScale();f.setTotalPages(n),u.setCurrentPage(t||1),u.setCurrentScale(r);let i=u.getScrollMode,a=u.getPageMode,o=i===`Vertical`?0:1;U.switchScrollMode(o),U.switchSpreadMode(a)});let i=(e,t)=>{let n=U.getAnnotationsList();f.initAnnotations(n),setTimeout(()=>{if(t===`add`){let t=document.getElementById(`annotationList-${e.name}`);t&&t.scrollIntoView({behavior:`smooth`,block:`start`})}})};U.addEvent(`annotationChanged`,i),U.addEvent(`documentloaded`,i)}async function W(e){if(e&&e.pdfUrl){let t=e.pdfUrl;delete e.pdfUrl,await window.instance.UI.loadDocument(t,e)}}window.instance.UI.loadDocument=async(e,{filename:t=``,password:n=``,onError:r=null}={})=>{e&&(w.value&&u.closeElement(H.LEFT_PANEL),u.$patch({fullScreen:!1,currentPage:0,scale:``,pageMode:0,scrollMode:`Vertical`,activeTab:0,searchStatus:!1,activeElements:{leftPanel:!1,rightPanel:!1},activeElementsTab:{leftPanel:`THUMBS`,rightPanel:`GENERAL`}}),f.resetSetting(),U.clearSearchResults(),f.setToolState(``),u.setActiveToolMode(`view`),u.setToolbarGroup(`toolbarGroup-View`),u.setUploadLoading(!0),u.setDisableHeader(!0),u.setUpload(!0),await pe(e,{filename:e.name||t,password:n,onError:r}),u.setUploadLoading(!1),u.setDisableHeader(!1))};let be=(e,t)=>{let n=xe(e),r=U.getSelectedPage(n,n).first;if(r<1)return;let i=U.windowToPage(n,r);U.eventBus().dispatch(t,{event:e,...i})},xe=e=>{let t=U.getScrollViewElement(),n=t.scrollLeft||0,r=t.scrollTop||0,i=e.touches&&e.touches.length?e.touches[0]:e;return{x:i.pageX+n,y:i.pageY+r}},G=async e=>{let t=U.getAnnotationManager(),n=t.getSelectedAnnotations(),r=e=>aU({isReadOnly:u.getReadOnly,isUserAdmin:u.getUserAdmin,currentAuthor:f.getAnnotator,annotations:e});if(e===`c`){if(!r(n))return;for(let e of n){if(ce.includes(e.annotation.type)){se=[];return}se.push(JSON.parse(JSON.stringify(e.annotation)))}}if(e===`v`&&se.length&&B.value-1===se[0].pageIndex){if(!r(n.length?n:se)||!r(se))return;se.forEach(e=>{if(delete e.name,delete e.annotPtr,delete e.pagePtr,Object.keys(e).forEach(t=>{e[t]??delete e[t]}),e.rect&&Object.keys(e.rect).forEach(t=>e.rect[t]+=10),e.linePoints&&=e.linePoints.map(e=>e+=10),e.vertices&&e.vertices.forEach(e=>{e.x+=10,e.y+=10}),e.inkPointes)for(let t of e.inkPointes)for(let e of t)e.PointX=Number(e.PointX)+10,e.PointY=Number(e.PointY)+10;e.arcPoints&&e.arcPoints.forEach(e=>{e.x+=10,e.y+=10}),e.floatPoint&&e.floatPoint.forEach(e=>{e.x+=10,e.y+=10})});let e=await U.getDocumentViewer().addAnnotations(se);if(e&&e.length){let n=t.getSelectedAnnotations();n.length&&(n.forEach(e=>e.handleOutside?.(null,!0)),t.deselectAnnotations(n)),e.length===1?e[0].selectAnnotation():t.selectAnnotations(e,B.value)}se=[]}},Se=T(()=>f.getCanUndo(`content`)),Ce=T(()=>f.getCanRedo(`content`)),we=T(()=>f.getCanUndo(`annotation`)),Te=T(()=>f.getCanRedo(`annotation`)),Ee=()=>U.getContentEditManager()?.isInContentEditMode()??!1,Y=async e=>{Ee()?e&&Se.value?await U.getContentEditHistoryManager()?.undo():!e&&Ce.value&&await U.getContentEditHistoryManager()?.redo():e&&we.value?await U.getAnnotationHistoryManager()?.undo():!e&&Te.value&&await U.getAnnotationHistoryManager()?.redo()};return M(()=>{document.addEventListener(`mousewheel`,function(e){e||=window.event,(e.wheelDelta&&event.ctrlKey||e.detail)&&event.preventDefault()},{capture:!1,passive:!1}),document.addEventListener(`keydown`,function(e){(e.ctrlKey===!0||e.metaKey===!0)&&(e.keyCode===61||e.keyCode===107||e.keyCode===173||e.keyCode===109||e.keyCode===187||e.keyCode===189)&&e.preventDefault()},!1),document.documentElement.addEventListener(`keydown`,async e=>{if(e.target.tagName===`INPUT`||e.target.tagName===`TEXTAREA`)return;let t=e.keyCode||e.which,n=e.metaKey||e.ctrlKey;if(t===27&&I.value&&(f.setToolState(I.value),u.toggleActiveHand(!1),i(0),a(0)),!n)return;let r=e.key.toLowerCase();(r===`c`||r===`v`)&&G(r),r===`z`&&!e.shiftKey?await Y(!0):(r===`y`||r===`z`&&e.shiftKey)&&await Y(!1)}),ve(),window.addEventListener(`message`,_e,!1)}),(e,t)=>{let n=$q,r=Xq,i=Bq,a=vq,u=cq,f=BK,p=NK,m=EK,g=BG,_=jG,C=pG,w=uG,T=nG,M=uT,P=$W,ee=XW,z=TW,ne=wW,ie=CW,B=bW,ae=gW,oe=qU,se=sU,ce=qk;return S(),V(q,null,[c(`div`,{ref_key:`mainContainer`,ref:o,class:D([`document-container`,{under:O.value===`compare`&&k.value!==`finished`||O.value===`document`,"no-touch":[K(L).SELECT_TEXT,K(L).HIGHLIGHT,K(L).UNDERLINE,K(L).SQUIGGLY,K(L).STRIKEOUT].includes(I.value),"annot-no-selet":[K(L).REDACTION,K(L).REMOVE,K(L).ERASER].includes(I.value)}]),style:A({width:`calc(100% - ${E.value.left}px - ${E.value.right}px)`,"margin-left":`${E.value.left}px`,"margin-right":`${E.value.right}px`,"margin-top":`${j.value}px`,top:y.value?`0px`:`44px`}),onDblclick:le,onClick:ue},[c(`div`,{ref_key:`viewerContainer`,ref:l,class:`document`,onClick:t[0]||=e=>be(e,`pdfClick`),onTouchstart:t[1]||=e=>be(e,`pdfMousedown`),onMousedown:t[2]||=e=>be(e,`pdfMousedown`),onDblclick:t[3]||=e=>be(e,`pdfDbclick`),onContextmenu:t[4]||=Ae(()=>{},[`prevent`])},null,544),te.value?b(``,!0):(S(),s(n,{key:0,style:A({left:`calc(50% + ${E.value.left/2}px - ${E.value.right/2}px)`})},null,8,[`style`]))],38),x(r),x(i),x(a),x(u),x(f),x(p),x(m),x(g),x(_),x(C),x(w),x(T),N.value&&fe.value<100?(S(),V(`div`,{key:0,class:`loading-state`,innerHTML:v.value?v.value.element:`${e.$t(`common.actions.loading`)}...`,style:A(v.value&&v.value.styles?v.value.styles:``)},null,12,eJ)):b(``,!0),c(`div`,{class:D([`mask`,{active:re.value}])},[R(c(`div`,tJ,[x(M)],512),[[Re,re.value]])],2),R(c(`div`,nJ,[c(`input`,{id:`fileInput`,type:`file`,accept:`.pdf`,onChange:de,name:`document`},null,32),c(`label`,rJ,d(e.$t(`common.actions.upload`)),1)],512),[[Re,[`compare`,`view`].includes(O.value)&&!F.value]]),x(P),x(ee),x(z),x(ne),x(ie),x(B),x(ae),x(oe),x(se),x(ce)],64)}}},aJ={class:`security-apply-bar`},oJ={class:`buttons`},sJ={__name:`SecurityApplyBar`,setup(e){let t=ye(),n=fw(),r=J(0),i=e=>{if(!r.value){n.setToolState(``),t.setActiveToolMode(`view`),t.setToolbarGroup(`toolbarGroup-View`);return}t.setRedactionConfirmDialog(e)};return U.addEvent(`redactAnnotationChanged`,e=>{r.value=e}),(e,t)=>(S(),V(`div`,aJ,[c(`span`,null,d(e.$t(`redaction.applyWarning`)),1),c(`div`,oJ,[c(`div`,{class:`view-button`,onClick:t[0]||=e=>i(0)},d(e.$t(`common.actions.exit`)),1),c(`div`,{class:D([`view-button apply-btn`,{disabled:!r.value}]),onClick:t[1]||=e=>i(1)},d(e.$t(`common.actions.apply`)),3)])]))}},cJ={class:`signature-verify`},lJ={key:0},uJ={key:0},dJ={key:1},fJ={key:2},pJ=B({__name:`SignatureVerifyBar`,setup(e){let t=ye(),n=fw(),r=T(()=>t.getSignatureVerify),i=T(()=>n.getSignatures),a=()=>{t.openElement(H.LEFT_PANEL),t.setActiveElementTab(H.LEFT_PANEL,H.SIGNATURE_TAB)};return(e,t)=>{let n=rV,o=YB,s=$B;return S(),V(`div`,cJ,[r.value===1?(S(),V(`div`,lJ,[x(n),c(`span`,null,d(e.$t(`signatures.details.validSignature`)),1)])):i.value.length===1?(S(),V(q,{key:1},[r.value===2?(S(),V(`div`,uJ,[x(o),c(`span`,null,d(e.$t(`signatures.details.invalidSignature`)),1)])):(S(),V(`div`,dJ,[x(s),c(`span`,null,d(e.$t(`signatures.details.unknownSignature`)),1)]))],64)):r.value===2||r.value===3?(S(),V(`div`,fJ,[x(o),c(`span`,null,d(e.$t(`signatures.details.invalidSignatures`)),1)])):b(``,!0),c(`div`,{class:`view-button`,onClick:a},d(e.$t(`signatures.details.viewAll`)),1)])}}},[[`__scopeId`,`data-v-13128a5e`]]),mJ={class:`fold-button`},hJ={class:`form-content`},gJ={key:0,class:`text`},_J={key:1,class:`text`},vJ={key:2,class:`text`},yJ={key:3,class:`text`},bJ={key:4,class:`text`},xJ={key:5,class:`text`},SJ={class:`text`},CJ={__name:`FormBoard`,setup(e){let t=ye(),n=T(()=>t.getToolMode),r=T(()=>t.getConsecutiveType),i=T(()=>t.getEnableFillForm),a=T(()=>t.getReadOnly),o=T(()=>t.getSkipNoRequired),l=T(()=>t.isElementOpen(H.LEFT_PANEL)),u=J(),f=J(!1),p=J(!1),m=T(()=>t.getFormBoardPosition),g=N({x:0,y:0}),_=T(()=>t.getUploadLoading),v=T(()=>t.getFormBoardFold),C=J(0),w=N({formFields:0,requiredFormFields:0,unfilledFormFields:0,unfilledRequiredFormFields:0,signFields:0,requiredSignFields:0,unsignFields:0,unsignRequiredSignFields:0}),E=T(()=>{if(a.value)return!1;let e=o.value,t=r.value,s=i.value&&n.value===`form`||n.value===`view`,c=!1;return c=t===`signForm`?!e&&(w.formFields>0||w.signFields>0)||e&&(w.requiredFormFields>0||w.requiredSignFields>0):t===`sign`?!e&&w.signFields>0||e&&w.requiredSignFields>0:t===`form`?!e&&w.formFields>0||e&&w.requiredFormFields>0:!1,c&&s}),O=null,k=()=>!!U.getAnnotationManager().getCurrentConsecutiveAnnotation?.(),j=()=>{let e=U.getFormSignFilledAndUnfilled();w.formFields=e.formFields,w.requiredFormFields=e.requiredFormFields,w.unfilledFormFields=e.unfilledFormFields,w.unfilledRequiredFormFields=e.unfilledRequiredFormFields,w.signFields=e.signFields,w.requiredSignFields=e.requiredSignFields,w.unsignFields=e.unsignFields,w.unsignRequiredSignFields=e.unsignRequiredSignFields};U.addEvent(`annotationChanged`,()=>{j()}),U.addEvent(`documentloaded`,()=>{j()}),W(l,(e,t)=>{e?C.value=260:C.value=0});let M=()=>{let e=U.getAnnotationManager(),t=e.getConsecutiveAnnotations();t.length&&(U.jumpToAnnotation(t[0]),e.focus(t[0]))},P=()=>{let e=U.getAnnotationManager(),t=e.getPreviousConsecutiveAnnotation();t&&(U.jumpToAnnotation(t),e.focus(t))},ee=()=>{let e=U.getAnnotationManager(),t=e.getNextConsecutiveAnnotation();t&&(U.jumpToAnnotation(t),e.focus(t))},F=()=>{U.setConsecutiveType(!1),t.setConsecutiveType(!1)};U.addEvent(`focus`,e=>{O&&clearTimeout(O),f.value=!0}),U.addEvent(`blur`,e=>{f.value=k()}),U.addEvent(`fieldChanged`,()=>{O=setTimeout(()=>{ee()},500)});let te=pe()?`touchmove`:`mousemove`,I=pe()?`touchend`:`mouseup`,L=e=>{let t,n;if(e.touches&&e.touches.length){let r=e.touches[0];t=r.pageX,n=r.pageY}else if(e.changedTouches){let r=e.changedTouches[0];t=r.pageX,n=r.pageY}else t=e.pageX,n=e.pageY;return{pageX:t,pageY:n}},z=e=>{p.value=!0;let{pageX:t,pageY:n}=L(e);g.x=t-m.value.left,g.y=n-m.value.top,document.addEventListener(te,re),document.addEventListener(I,ne)},ne=()=>{p.value=!1,document.removeEventListener(te,re),document.removeEventListener(I,ne)},re=e=>{if(p.value){let n=u.value.offsetWidth+(l.value?260:0),r=u.value.offsetHeight,{pageX:i,pageY:a}=L(e),o=i-g.x,s=a-g.y,c=window.innerWidth-n,d=window.innerHeight-r;t.setFormBoardPosition({left:Math.min(Math.max(o,0),c),top:Math.min(Math.max(s,0),d)})}},ie=()=>{let e=v.value;t.setFormBoardFold(!e)};return(e,t)=>{let n=_P,i=xH,a=Fz,o=lx,l=kR;return R((S(),V(`div`,{ref_key:`formBoard`,ref:u,class:D([`form-board`,{fold:v.value}]),style:A({left:m.value.left+`px`,top:m.value.top+`px`,transform:`translateX(${C.value}px)`}),onMousedown:z,onTouchstart:z},[c(`div`,mJ,[c(`div`,{onClick:ie},[v.value?(S(),s(i,{key:1})):(S(),s(n,{key:0}))])]),R(c(`div`,hJ,[r.value===`signForm`&&(w.unfilledFormFields>0||w.unsignFields>0)?(S(),V(`div`,gJ,d(e.$t(`form.note1`,{formFields:w.formFields,unfilledFormFields:w.unfilledRequiredFormFields,signFields:w.signFields,unsignFields:w.unsignRequiredSignFields})),1)):r.value===`sign`&&w.unsignFields>0?(S(),V(`div`,_J,d(e.$t(`form.note2`,{signFields:w.signFields,unsignFields:w.unsignRequiredSignFields})),1)):r.value===`form`&&w.unfilledFormFields>0?(S(),V(`div`,vJ,d(e.$t(`form.note3`,{formFields:w.formFields,unfilledFormFields:w.unfilledRequiredFormFields})),1)):r.value===`signForm`&&w.unfilledFormFields===0&&w.unsignFields===0?(S(),V(`div`,yJ,d(e.$t(`form.formSignFilled`)),1)):r.value===`sign`&&w.unsignFields===0?(S(),V(`div`,bJ,d(e.$t(`form.signFilled`)),1)):r.value===`form`&&w.unfilledFormFields===0?(S(),V(`div`,xJ,d(e.$t(`form.formFilled`)),1)):b(``,!0),c(`div`,SJ,[c(`div`,null,[y(d(e.$t(`form.startFill`)),1),c(`span`,{class:`disable`,onClick:F},d(e.$t(`form.consecutively`)),1)])])],512),[[Re,!v.value]]),c(`div`,{class:`navigator`,onMousedown:t[5]||=Ae(()=>{},[`stop`,`self`]),onMouseup:t[6]||=Ae(()=>{},[`stop`,`self`]),onClick:t[7]||=Ae(()=>{},[`stop`,`prevent`,`self`]),onDblclick:t[8]||=Ae(()=>{},[`stop`,`self`])},[c(`span`,{class:`start-btn`,onClick:M,onMousedown:t[0]||=Ae(()=>{},[`stop`,`self`])},d(e.$t(`form.start`)),33),x(o,{title:e.$t(`form.previous`),onClick:P,onTouchstart:t[1]||=Ae(()=>{},[`stop`,`self`]),onMousedown:t[2]||=Ae(()=>{},[`stop`,`self`]),disabled:!f.value},{default:G(()=>[x(a)]),_:1},8,[`title`,`disabled`]),x(o,{title:e.$t(`form.next`),onClick:ee,onTouchstart:t[3]||=Ae(()=>{},[`stop`,`self`]),onMousedown:t[4]||=Ae(()=>{},[`stop`,`self`]),disabled:!f.value},{default:G(()=>[x(l)]),_:1},8,[`title`,`disabled`])],32)],38)),[[Re,E.value&&!_.value]])}}},wJ=[`data-element`,`onClick`],TJ={key:0,class:`drop`},EJ=B({__name:`Ribbons`,setup(e){let t=ye(),n=fw(),{i18next:r,t:i}=It(),a=T(()=>t.getToolbarGroupDataElements),o=T(()=>a.value.filter(e=>!t.isElementDisabled(e))),c=T(()=>t.getCurrentToolbarGroup),l=T(()=>t.getUpload&&t.getVerified&&!t.getUploadLoading),u=T(()=>t.getWebviewerMode),f=T(()=>n.getDisableDigitalSignature),p=T(()=>t.getReadOnly),m=T(()=>C.value.map(e=>({label:i(k(e)),value:e}))),g=J(null),_=J(0),v=J([]),C=J([]),w=J(c.value),O=[L.TEXTFIELD,L.CHECKBOX,L.RADIOBUTTON,L.LISTBOX,L.COMBOBOX,L.PUSHBUTTON],k=e=>{let t={view:`viewer`,form:`forms`,annotation:`annotations`,sign:`signatures`,security:`security`,redaction:`redaction`,compare:`compare`,editor:`editor`,document:`documentEditor`,separation:`separation`,measurement:`measurement`},n=e.substring(13).toLowerCase();return t[n]?`toolbar.toolbarGroup.${t[n]}`:e},A=e=>{if(w.value===e)return;let n=e.substring(13).toLowerCase();if(P&&[`separation`,`measurement`].includes(n)){t.openElement(H.UNSUPPORTED_MOBILE_DIALOG);return}t.setToolbarGroup(e),w.value=e,N(n)},N=e=>{if(u.value!==`Standalone`&&[`editor`,`document`].includes(e)){t.openElement(e===`editor`?H.CONTENT_EDITOR_PREVENT_DIALOG:H.DOC_EDITOR_PREVENT_DIALOG);return}e===`sign`&&!f&&window.$message.info(i(`signatures.tip`),{duration:3e3,showIcon:!1}),t.setActiveToolMode(e),n.setToolState(``),t.toggleActiveHand(!1),U.switchTool(0);let r=U.getAnnotationManager(),a=r.isInFormFieldFillMode();e===`form`&&!a?(r.endFormFieldFillMode(),t.setEnableFillForm(!1)):(r.startFormFieldFillMode(),t.setEnableFillForm(!0)),U.switchAnnotationEditorMode(0),(e===`compare`||e===`document`)&&(t.resetPanels(),t.setActiveHeaderGroup(e))};W(()=>c.value,e=>{w.value=e,e===`toolbarGroup-Form`&&(U.getAnnotationManager().endFormFieldFillMode(),t.setEnableFillForm(!1)),te()});let ee=()=>{!g.value||o.value.length===0||E(()=>{_.value=g.value.getBoundingClientRect().width;let e=document.createElement(`div`);e.className=`ribbons`,e.style.visibility=`hidden`;let t=g.value.getAttributeNames().find(e=>e.startsWith(`data-v-`));t&&e.setAttribute(t,``),o.value.forEach(n=>{let r=document.createElement(`div`);r.className=`item`,r.textContent=i(k(n)),t&&r.setAttribute(t,``),e.appendChild(r)}),g.value.appendChild(e);let n=e.querySelectorAll(`.item`),r=Array.from(n).map(e=>e.getBoundingClientRect().width+16);g.value.removeChild(e);let a=_.value,s=24,c=[],l=[];for(let e=0;e<o.value.length;e++){let t=r[e],n=e<o.value.length-1?47:0;if(s+t+n<=a)c.push(o.value[e]),s+=t;else{l.push(...o.value.slice(e));break}}c.length===1&&(l.unshift(c[0]),c.length=0),v.value=c,C.value=l})},F=()=>{ee()},te=()=>{let e=U.getUnselectableAnnotationTypes();if(!U.getAnnotationManager().isInFormFieldFillMode()&&c.value===`toolbarGroup-Form`){let t=e.filter(e=>!O.includes(e));U.setUnselectableAnnotationTypes(t)}else U.setUnselectableAnnotationTypes([...new Set([...e,...O])])};return W([o,()=>r.language],()=>{ee()}),M(()=>{ee(),te(),window.addEventListener(`resize`,F)}),j(()=>{window.removeEventListener(`resize`,F)}),(e,t)=>{let n=hk;return S(),V(`div`,{ref_key:`containerRef`,ref:g},[o.value.length&&!p.value?(S(),V(`div`,{key:0,class:D([`ribbons`,{"events-none":!l.value,"single-drop":v.value.length===0}])},[(S(!0),V(q,null,z(v.value,t=>(S(),V(`div`,{key:t,"data-element":t,class:D([`item`,{active:t===c.value}]),onClick:e=>A(t)},d(e.$t(k(t))),11,wJ))),128)),C.value.length>0?(S(),s(K(Tv),{key:0,value:w.value,options:m.value,trigger:`click`,"onUpdate:value":A,class:`narrower`},{default:G(()=>[v.value.length===0?(S(),V(`div`,TJ,[y(d(e.$t(k(w.value))),1),x(n)])):(S(),V(`div`,{key:1,class:D([`item`,{active:C.value.includes(c.value)}])},`···`,2))]),_:1},8,[`value`,`options`])):b(``,!0)],2)):b(``,!0)],512)}}},[[`__scopeId`,`data-v-a936f1e5`]]),DJ=[`data-element`],OJ=[`data-element`],kJ=[`data-element`],AJ=[`data-element`],jJ=[`data-element`],MJ=[`data-element`],NJ={__name:`LeftPanelTabs`,props:[`activePanelTab`,`popover`],setup(e){let t=ye(),n=T(()=>t.isElementOpen(H.LEFT_PANEL)),r=T(()=>t.getActiveElementTab(H.LEFT_PANEL)),i=T(()=>t.isElementDisabled(H.THUMBNAILS)),a=T(()=>t.isElementDisabled(H.OUTLINES)),o=T(()=>t.isElementDisabled(H.ANNOTATION)),s=T(()=>t.isElementDisabled(H.LAYERS)),c=T(()=>t.isElementDisabled(H.SIGNATURE)),l=T(()=>t.isElementDisabled(H.SEARCH)),u=i=>{e.popover&&e.popover.setShow(!1),n.value||t.openElement(H.LEFT_PANEL),i!==r.value&&(t.setActiveElementTab(H.LEFT_PANEL,i),i===H.SEARCH_TAB?(U.webViewerNamedAction(`FindOpen`),t.setSearchStatus(!0)):(U.clearSearchResults(),t.setSearchStatus(!1)))};return(e,t)=>{let n=tH,f=GR,p=NA,m=_I,g=GB,_=NB;return S(),V(q,null,[i.value?b(``,!0):(S(),V(`div`,{key:0,class:D([`drop-item`,{active:r.value===K(H).THUMBS}]),"data-element":K(H).THUMBS,onClick:t[0]||=e=>u(K(H).THUMBS)},[x(n),y(d(e.$t(`panels.left.thumbnails`)),1)],10,DJ)),a.value?b(``,!0):(S(),V(`div`,{key:1,class:D([`drop-item`,{active:r.value===K(H).OUTLINE}]),"data-element":K(H).OUTLINE,onClick:t[1]||=e=>u(K(H).OUTLINE)},[x(f),y(d(e.$t(`panels.left.outlines.title`)),1)],10,OJ)),o.value?b(``,!0):(S(),V(`div`,{key:2,class:D([`drop-item`,{active:r.value===K(H).ANNOTATION_TAB}]),"data-element":K(H).ANNOTATION_TAB,onClick:t[2]||=e=>u(K(H).ANNOTATION_TAB)},[x(p),y(d(e.$t(`panels.left.annotations.title`)),1)],10,kJ)),s.value?b(``,!0):(S(),V(`div`,{key:3,class:D([`drop-item`,{active:r.value===K(H).LAYER}]),"data-element":K(H).LAYER,onClick:t[3]||=e=>u(K(H).LAYER)},[x(m),y(d(e.$t(`panels.left.layers.title`)),1)],10,AJ)),c.value?b(``,!0):(S(),V(`div`,{key:4,"data-element":K(H).SIGNATURE_TAB,class:D([`drop-item`,{active:r.value===K(H).SIGNATURE_TAB}]),onClick:t[4]||=e=>u(K(H).SIGNATURE_TAB)},[x(g),y(d(e.$t(`panels.left.signatures.title`)),1)],10,jJ)),l.value?b(``,!0):(S(),V(`div`,{key:5,"data-element":K(H).SEARCH_TAB,class:D([`drop-item`,{active:r.value===K(H).SEARCH_TAB}]),onClick:t[5]||=e=>u(K(H).SEARCH_TAB)},[x(_),y(d(e.$t(`panels.left.search.title`)),1)],10,MJ))],64)}}},PJ=[`title`],FJ={class:`drop-down medium left-panel-button-popover`},IJ={__name:`LeftPanelButton`,props:[`item`],setup(e){let t=ye(),n=T(()=>t.isElementOpen(e.item.element)),r=T(()=>t.getActiveElementTab(H.LEFT_PANEL)),i=T(()=>t.getPopoverChanged),a=T(()=>t.isElementDisabled(`thumbnails`)),o=T(()=>t.isElementDisabled(`outlines`)),l=T(()=>t.isElementDisabled(`annotation`)),u=T(()=>t.isElementDisabled(`layers`)),d=T(()=>t.isElementDisabled(`signature`)),f=T(()=>t.isElementDisabled(`search`)),p=T(()=>!a.value||!o.value||!l.value||!u.value||!d.value||!f.value),m=e=>{e.stopPropagation()},g=J(null),_=()=>{r.value===H.SEARCH_TAB&&U.webViewerNamedAction(`Find`),t.toggleElement(e.item.element)};return W(()=>i.value,(e,n)=>{e&&(g.value.setShow(!1),t.setPopoverChanged(!1))}),(e,t)=>{let i=hk,a=NJ,o=tH,l=GR,u=NA,d=_I,f=GB,v=NB,y=sz,b=lx;return S(),V(`div`,null,[c(`div`,{title:e.$t(`toolbar.viewControls.leftPanel`),class:D([`left-panel-button toggle-button`,{active:n.value}]),onClick:_},[x(K(Og),{ref_key:`popover`,ref:g,placement:`top-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,"z-index":5},{trigger:G(()=>[c(`div`,{class:`arrow-container`,onClick:m},[R(x(i,{class:`arrow`},null,512),[[Re,p.value]])])]),default:G(()=>[c(`div`,FJ,[x(a,{activePanelTab:r.value,popover:g.value},null,8,[`activePanelTab`,`popover`])])]),_:1},512),x(b,{isActive:n.value},{default:G(()=>[r.value===`THUMBS`?(S(),s(o,{key:0})):r.value===`OUTLINE`?(S(),s(l,{key:1})):r.value===`ANNOTATION`?(S(),s(u,{key:2})):r.value===`LAYER`?(S(),s(d,{key:3})):r.value===`SIGNATURE`?(S(),s(f,{key:4})):r.value===`SEARCH`?(S(),s(v,{key:5})):(S(),s(y,{key:6}))]),_:1},8,[`isActive`])],10,PJ)])}}},LJ={__name:`PrintButton`,props:[`item`],setup(e){let t=ye(),n=T(()=>t.getToolMode),r=T(()=>t.getCompareMode),i=async()=>{if(n.value===`compare`&&r.value===`content`){t.openElement(H.PRINT_SETTING_DIALOG);return}t.setDownloading(!0);try{let e=await U.webViewerNamedAction(`Print`);t.setDownloading(!1),e||t.setDownloadError(`Print`)}catch(e){console.log(e)}};return(t,n)=>{let r=zz,a=lx;return S(),s(a,f({...e.item},{onClick:i,title:t.$t(`toolbar.fileOperations.print`)}),{default:G(()=>[x(r)]),_:1},16,[`title`])}}},RJ={__name:`FlattenButton`,props:[`item`],setup(e){let t=ye(),{flattenPdfDownload:n}=U,r=async()=>{t.setDownloading(!0);try{let e=await n();t.setDownloading(!1),e||t.setDownloadError(`Downloaded`)}catch(e){console.log(e)}};return(t,n)=>{let i=aP,a=lx;return S(),s(a,f({...e.item},{onClick:r}),{default:G(()=>[x(i)]),_:1},16)}}},zJ={__name:`DownloadButton`,setup(e){let t=ye(),n=T(()=>t.getToolMode),r=T(()=>t.getCompareMode),{download:i}=U,a=async()=>{if(n.value===`compare`&&r.value===`content`){t.openElement(H.DOWNLOAD_SETTING_DIALOG);return}t.setDownloading(!0);try{let e=await i();t.setDownloading(!1),e||t.setDownloadError(`Downloaded`)}catch(e){console.log(e)}};return(e,t)=>{let n=$M,r=lx;return S(),s(r,{onClick:a,title:e.$t(`toolbar.fileOperations.download`)},{default:G(()=>[x(n)]),_:1},8,[`title`])}}},BJ={__name:`OpenFileButton`,props:[`item`],setup(e){return(t,n)=>{let r=VR,i=lx;return S(),s(i,f({...e.item},{title:t.$t(`common.actions.upload`)}),{default:G(()=>[x(r)]),_:1},16,[`title`])}}},VJ={class:`drop-down`},HJ=[`data-element`],UJ=[`data-element`],WJ=[`data-element`],GJ=[`data-element`],KJ=[`data-element`],qJ=[`data-element`],JJ=[`data-element`],YJ=[`data-element`],XJ=[`data-element`],ZJ=B({__name:`Dropdown`,setup(e){let t=ye(),n=J(null),{download:r,webViewerNamedAction:i,flattenPdfDownload:a}=U,o=T(()=>t.getPopoverChanged),s=T(()=>n.value&&n.value.getMergedShow()),l=T(()=>t.getUpload),u=T(()=>t.getTheme),f=T(()=>t.getActiveRightHeaderItems),p=T(()=>f.value.filter(e=>!t.isElementDisabled(e.dataElement))),m=T(()=>{let e=[`downloadButton`,`flattenButton`,`printButton`,`settingButton`];return P&&e.push(`theme`,`pageModeButton`),p.value.filter(t=>e.includes(t.type)||[`actionButton`,`statefulButton`,`toggleElementButton`,`toolButton`].includes(t.type)).every(e=>e.hidden)});W(()=>o.value,(e,r)=>{e&&(n.value.setShow(!1),t.setPopoverChanged(!1))});let g=()=>{window.instance.changeFile(),n.value.setShow(!1)},_=async()=>{if(!U.getPermission(`allowsCopying`)){t.openElement(H.PERMISSION_PASSWORD_DIALOG);return}n.value.setShow(!1),t.setDownloading(!0);try{let e=await r();t.setDownloading(!1),e||t.setDownloadError(`Downloaded`)}catch(e){console.log(e)}},v=async()=>{n.value.setShow(!1),t.setDownloading(!0);try{let e=await a();t.setDownloading(!1),e||t.setDownloadError(`Downloaded`)}catch(e){console.log(e)}},C=async()=>{let e=U.getPermission(`allowsPrinting`),{promise:r,resolve:a}=Promise.withResolvers();e?a():t.openElement(H.PERMISSION_PASSWORD_DIALOG,a),r.then(async()=>{n.value.setShow(!1),t.setDownloading(!0);try{let e=await i(`Print`);t.setDownloading(!1),e||t.setDownloadError(`Print`)}catch(e){console.log(e)}})},w=()=>{n.value.setShow(!1),t.setPopoverChanged(!1),t.openElement(H.SETTINGS_DIALOG)},E=e=>{n.value.setShow(!1),e!==u.value&&t.setTheme(e)};W(()=>u.value,e=>{Ax.mode=e,e===`light`?document.documentElement.classList.remove(`dark`):document.documentElement.classList.add(`dark`)});let O=()=>{n.value.setShow(!1),t.isElementOpen(H.PAGE_MODE_PANEL)?t.closeElement(H.PAGE_MODE_PANEL):(t.openElement(H.PAGE_MODE_PANEL),t.closeElement(H.CONTENT_EDITOR_PANEL))};return(e,t)=>{let r=pR,i=hk,a=lx,o=BJ,u=zJ,f=RJ,T=LJ,k=CF,A=kM,j=$R,M=VB,N=JH;return S(),V(`div`,null,[x(K(Og),{ref_key:`popover`,ref:n,placement:`top-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,"z-index":6},{trigger:G(()=>[R(x(a,{class:D([`more`,{active:s.value,disabled:!l.value}])},{default:G(()=>[x(r),x(i)]),_:1},8,[`class`]),[[Re,!m.value]])]),default:G(()=>[c(`div`,VJ,[(S(!0),V(q,null,z(p.value,(n,r)=>(S(),V(q,{key:`${n.type}-${n.dataElement||r}`},[n.type===`openFileButton`&&!n.hidden?(S(),V(`div`,{key:0,"data-element":n.dataElement,class:`drop-item`,onClick:g},[x(o),y(d(e.$t(`toolbar.fileOperations.openFile`)),1)],8,HJ)):b(``,!0),n.type===`downloadButton`&&!n.hidden?(S(),V(`div`,{key:1,"data-element":n.dataElement,class:`drop-item`,onClick:_},[x(u),y(d(e.$t(`toolbar.fileOperations.download`)),1)],8,UJ)):b(``,!0),n.type===`flattenButton`&&!n.hidden?(S(),V(`div`,{key:2,"data-element":n.dataElement,class:`drop-item`,onClick:v},[x(f),y(d(e.$t(`toolbar.fileOperations.flatten`)),1)],8,WJ)):b(``,!0),n.type===`printButton`&&!n.hidden?(S(),V(`div`,{key:3,"data-element":n.dataElement,class:`drop-item`,onClick:C},[x(T),y(d(e.$t(`toolbar.fileOperations.print`)),1)],8,GJ)):b(``,!0),n.type===`theme`&&!n.hidden?(S(),V(`div`,{key:4,"data-element":n.dataElement,class:`drop-item`,onClick:t[0]||=e=>E(`light`)},[x(a,null,{default:G(()=>[x(k)]),_:1}),y(d(e.$t(`toolbar.themeSwitcher.lightMode`)),1)],8,KJ)):b(``,!0),n.type===`theme`&&!n.hidden?(S(),V(`div`,{key:5,"data-element":n.dataElement,class:`drop-item`,onClick:t[1]||=e=>E(`dark`)},[x(a,null,{default:G(()=>[x(A)]),_:1}),y(d(e.$t(`toolbar.themeSwitcher.darkMode`)),1)],8,qJ)):b(``,!0)],64))),128)),(S(!0),V(q,null,z(p.value,(t,n)=>(S(),V(q,{key:`${t.type}-${t.dataElement||n}`},[t.type===`pageModeButton`&&!t.hidden?(S(),V(`div`,{key:0,"data-element":t.dataElement,class:`drop-item`,onClick:O},[x(a,null,{default:G(()=>[x(j)]),_:1}),y(d(e.$t(`toolbar.viewControls.viewSetting`)),1)],8,JJ)):b(``,!0)],64))),128)),(S(!0),V(q,null,z(p.value,(t,n)=>(S(),V(q,{key:`${t.type}-${t.dataElement||n}`},[t.type===`settingButton`&&!t.hidden?(S(),V(`div`,{key:0,"data-element":t.dataElement,class:`drop-item`,onClick:w},[x(a,null,{default:G(()=>[x(M)]),_:1}),y(d(e.$t(`toolbar.settings.title`)),1)],8,YJ)):b(``,!0),[`actionButton`,`statefulButton`,`toggleElementButton`,`toolButton`].includes(t.type)&&!t.hidden?(S(),V(`div`,{key:1,"data-element":t.dataElement,class:`drop-item`},[x(N,{item:t},null,8,[`item`])],8,XJ)):b(``,!0)],64))),128))])]),_:1},512)])}}},[[`__scopeId`,`data-v-b7efa6c8`]]),QJ=`data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.5%2022C18.0229%2022%2022.5%2017.5229%2022.5%2012C22.5%206.47715%2018.0229%202%2012.5%202C6.97715%202%202.5%206.47715%202.5%2012C2.5%2017.5229%206.97715%2022%2012.5%2022Z'%20fill='%23FFC061'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.5%207.5C13.5%206.94772%2013.0523%206.5%2012.5%206.5C11.9477%206.5%2011.5%206.94772%2011.5%207.5V13.5C11.5%2014.0523%2011.9477%2014.5%2012.5%2014.5C13.0523%2014.5%2013.5%2014.0523%2013.5%2013.5L13.5%207.5ZM12.6%2017.6C13.1523%2017.6%2013.6%2017.1523%2013.6%2016.6C13.6%2016.0477%2013.1523%2015.6%2012.6%2015.6C12.0477%2015.6%2011.6%2016.0477%2011.6%2016.6C11.6%2017.1523%2012.0477%2017.6%2012.6%2017.6Z'%20fill='white'/%3e%3c/svg%3e`,$J={key:0,class:`signature-tool`},eY={__name:`SignatureToolBar`,setup(e){let{t}=It(),{switchTool:n,switchAnnotationEditorMode:r,verifySignature:i}=U,a=fw(),o=ye(),l=T(()=>a.getActiveTool),u=T(()=>a.getSignatures),f=T(()=>a.getDisableDigitalSignature),p=T(()=>a.getDisableElectronicSignature),m=T(()=>o.getDisableSignatureTool),g=T(()=>a.getCanUndo(`annotation`)),_=T(()=>a.getCanRedo(`annotation`));W(()=>l.value,e=>{(e===L.ADD_DIGITAL_SIGN||e===L.ADD_ELECTRONIC_SIGN)&&window.$message.warning(t(`signatures.danger`),{duration:3e3,icon:()=>Y(`img`,{src:QJ}),max:1,class:`sign-danger`,style:{backgroundColor:`#FFF4E5`}})});let v=()=>U.getAnnotationHistoryManager()?.undo(),y=()=>U.getAnnotationHistoryManager()?.redo(),C=e=>{if(!U.getPermission(`allowsDocumentChanges`)){o.openElement(H.PERMISSION_PASSWORD_DIALOG);return}a.setToolState(e),o.toggleActiveHand(!1),n(0),r(0)},w=async()=>{C(``),await i();let e=u.value;if(e.length!==0){if(e.length===1){let t=e[0].signature,n=t.signerList[0].isSignVerified,r=t.signerList[0].isCertTrusted;n&&r?o.setSignatureVerify(1):n?n&&!r&&o.setSignatureVerify(3):o.setSignatureVerify(2);return}else for(let t=0;t<e.length;t++){let n=e[t].signature,r=n.signerList[0].isSignVerified,i=n.signerList[0].isCertTrusted;if(!(r&&i)&&(!r||!i)){o.setSignatureVerify(2);return}}o.setSignatureVerify(1)}};return(e,t)=>{let n=pM,r=lx,i=_A,a=xA,o=kH,T=rN,E=sN;return m.value?b(``,!0):(S(),V(`div`,$J,[x(r,{id:`createSignFieldButton`,class:D([`with-text`,{active:l.value===K(L).SIGNATURE_FIELDS}]),onClick:t[0]||=e=>C(K(L).SIGNATURE_FIELDS),title:e.$t(`toolbar.signatureTools.createSignField`)},{default:G(()=>[x(n),c(`span`,null,d(e.$t(`toolbar.signatureTools.createSignField`)),1)]),_:1},8,[`class`,`title`]),f.value?b(``,!0):(S(),s(r,{key:0,class:D([`with-text`,{active:l.value===K(L).ADD_DIGITAL_SIGN}]),onClick:t[1]||=e=>C(K(L).ADD_DIGITAL_SIGN),title:e.$t(`toolbar.signatureTools.addDigitalSign`)},{default:G(()=>[x(i),c(`span`,null,d(e.$t(`toolbar.signatureTools.addDigitalSign`)),1)]),_:1},8,[`class`,`title`])),p.value?b(``,!0):(S(),s(r,{key:1,class:D([`with-text`,{active:l.value===K(L).ADD_ELECTRONIC_SIGN}]),onClick:t[2]||=e=>C(K(L).ADD_ELECTRONIC_SIGN),title:e.$t(`toolbar.signatureTools.addElectronicSign`)},{default:G(()=>[x(a),c(`span`,null,d(e.$t(`toolbar.signatureTools.addElectronicSign`)),1)]),_:1},8,[`class`,`title`])),f.value?b(``,!0):(S(),s(r,{key:2,class:`with-text`,onClick:w,title:e.$t(`toolbar.signatureTools.verifyDigitalSign`),disabled:!u.value.length},{default:G(()=>[x(o),c(`span`,null,d(e.$t(`toolbar.signatureTools.verifyDigitalSign`)),1)]),_:1},8,[`title`,`disabled`])),t[3]||=c(`div`,{class:`divider`},null,-1),x(r,{onClick:v,title:e.$t(`toolbar.editorTools.undo`),disabled:!g.value},{default:G(()=>[x(T)]),_:1},8,[`title`,`disabled`]),x(r,{onClick:y,title:e.$t(`toolbar.editorTools.redo`),disabled:!_.value},{default:G(()=>[x(E)]),_:1},8,[`title`,`disabled`])]))}}},tY={class:`security-toolbar`},nY={__name:`SecurityToolbar`,props:[`items`],setup(e){let{t}=It(),n=J(!1),r=fw(),i=ye(),a=T(()=>r.getFilehasPwd),o=T(()=>i.getWebviewerMode),l=T(()=>i.isElementOpen(H.SET_PASSWORD_MODAL)),u=T(()=>i.getToolItems),f=()=>{if(!U.getPermission(`allowsDocumentChanges`)){i.openElement(H.PERMISSION_PASSWORD_DIALOG);return}i.openElement(H.SET_PASSWORD_MODAL)},p=async()=>{if(!U.getPermission(`allowsDocumentChanges`)){i.openElement(H.PERMISSION_PASSWORD_DIALOG);return}!a.value&&o.value!==`Standalone`||(n.value||=(n.value=!0,await U.removePassword()?window.$message.success(t(`passwordDialog.removeSuccess`),{duration:3e3,icon:()=>Y(`img`,{src:wq})}):window.$message.error(t(`passwordDialog.removeFailure`),{duration:3e3,icon:()=>Y(`img`,{src:pw})}),!1))};return(e,t)=>{let n=yN,r=lx,i=LM,m=JH;return S(),V(`div`,tY,[(S(!0),V(q,null,z(u.value.security,(t,u)=>(S(),V(q,{key:u},[t.type===`encryption`?(S(),s(r,{key:0,"data-element":t.dataElement,class:D([`with-text`,{active:l.value}]),onClick:f,title:e.$t(t.title)},{default:G(()=>[x(n),c(`span`,null,d(e.$t(t.title)),1)]),_:2},1032,[`data-element`,`class`,`title`])):t.type===`decryption`?(S(),s(r,{key:1,"data-element":t.dataElement,class:D([`with-text`,{disabled:!a.value&&o.value!==`Standalone`}]),onClick:p,title:e.$t(t.title)},{default:G(()=>[x(i),c(`span`,null,d(e.$t(t.title)),1)]),_:2},1032,[`data-element`,`class`,`title`])):[`actionButton`,`statefulButton`,`toggleElementButton`,`toolButton`].includes(t.type)&&!t.hidden?(S(),s(m,{key:2,item:t},null,8,[`item`])):b(``,!0)],64))),128))])}}},rY={class:`redaction-toolbar`},iY={__name:`RedactionToolbar`,props:[`items`],setup(e){let t=fw(),n=ye(),r=T(()=>t.getActiveTool),i=T(()=>t.getRedactionPrompted),a=T(()=>n.getToolItems),o=T(()=>t.getSelectedAnnotation),l=T(()=>o.value?o.value.type===`redaction`&&o.value.annotation?.erasure:r.value===L.REMOVE);W(l,e=>{e&&n.isElementOpen(H.REDACTION_PANEL)&&n.closeElement(H.REDACTION_PANEL)});let u=e=>{if(!U.getPermission(`allowsDocumentChanges`)){n.openElement(`permissionPasswordDialog`);return}i.value?r.value!==e&&(t.setToolState(e),n.resetPanels()):(t.setFirstEnterRedactionTool(e),n.openElement(`redactionTipDialog`))};return(e,t)=>{let n=qN,i=lx,o=tP,f=JH;return S(),V(`div`,rY,[(S(!0),V(q,null,z(a.value.redaction,(a,p)=>(S(),V(q,{key:p},[a.type===`fillBlack`?(S(),s(i,{key:0,"data-element":a.dataElement,class:D([`with-text`,{active:r.value===K(L).REDACTION}]),onClick:t[0]||=e=>u(K(L).REDACTION),title:e.$t(a.title)},{default:G(()=>[x(n),c(`span`,null,d(e.$t(a.title)),1)]),_:2},1032,[`data-element`,`class`,`title`])):a.type===`fillWhite`?(S(),s(i,{key:1,"data-element":a.dataElement,class:D([`with-text`,{active:r.value===K(L).REMOVE}]),onClick:t[1]||=e=>u(K(L).REMOVE),title:e.$t(a.title)},{default:G(()=>[x(o),c(`span`,null,d(e.$t(a.title)),1)]),_:2},1032,[`data-element`,`class`,`title`])):[`actionButton`,`statefulButton`,`toggleElementButton`,`toolButton`].includes(a.type)&&!a.hidden&&!l.value?(S(),s(f,{key:2,item:a},null,8,[`item`])):a.type===`spacer`||a.type===`divider`?(S(),V(`div`,{key:3,class:D(a.type)},null,2)):b(``,!0)],64))),128))])}}},aY={class:`compared-toolbar`},oY={class:`file-color`},sY={__name:`ComparedToolbar`,setup(e){let t=ye(),n=fw(),r=T(()=>n.getCompareSetting(`oldFileColor`)),i=T(()=>n.getCompareSetting(`newFileColor`)),a=T(()=>t.getCompareStatus),o=T(()=>t.getToolbarGroupItems(`toolbarGroup-Compare`).find(e=>e.render===`ComparedToolbar`));W(a,e=>{let t=e!==`finished`;o.value?.hidden!==t&&(o.value.hidden=t)});let s=()=>{t.setCompareStatus(`end`),n.initCompareFiles()};return(e,t)=>{let n=yk,a=Le;return S(),V(`div`,aY,[x(n),c(`div`,oY,[c(`div`,null,[c(`div`,{class:`color`,style:A({"background-color":r.value})},null,4),c(`span`,null,d(e.$t(`compare.oldFile`)),1)]),c(`div`,null,[c(`div`,{class:`color`,style:A({"background-color":i.value})},null,4),c(`span`,null,d(e.$t(`compare.newFile`)),1)])]),x(a,{class:`close`,onClick:s})])}}},cY={__name:`FillForm`,setup(e){let t=T(()=>n.getEnableFillForm),n=ye(),r=fw(),i=T(()=>r.getActiveTool);W(()=>i.value,e=>{e&&t.value&&(n.setEnableFillForm(!1),U.getAnnotationManager().endFormFieldFillMode())});let a=()=>{let e=U.getAnnotationManager();e.isInFormFieldFillMode()?(e.endFormFieldFillMode(),n.setEnableFillForm(!1)):(e.startFormFieldFillMode(),n.setEnableFillForm(!0),r.setToolState(``),n.toggleActiveHand(!1))};return U.addEvent(`formFieldFillModeStarted`,()=>{n.setEnableFillForm(!0)}),U.addEvent(`formFieldFillModeEnded`,()=>{n.setEnableFillForm(!1)}),M(()=>{U.getAnnotationManager().isInFormFieldFillMode()&&n.setEnableFillForm(!0)}),(e,n)=>{let r=ZN,i=lx;return S(),s(i,{class:D([`with-text`,{active:t.value}]),title:e.$t(`toolbar.formTools.FillSign`),onClick:a},{default:G(()=>[x(r),c(`span`,null,d(e.$t(`toolbar.formTools.FillSign`)),1)]),_:1},8,[`title`,`class`])}}},lY={__name:`CropPageButton`,props:[`item`,`popoverTool`],setup(e){let{switchTool:t,switchAnnotationEditorMode:n}=U,r=ye(),i=fw(),a=T(()=>i.getActiveTool),o=()=>{e.popoverTool&&e.popoverTool.setShow(!1),i.setToolState(a.value===L.CROP_PAGE?``:L.CROP_PAGE),a.value===L.CROP_PAGE&&(r.resetPanels(),r.setActiveToolMode(`view`),r.setToolbarGroup(`toolbarGroup-View`)),t(0),n(0),r.closeActiveStickNote(),r.setSearchStatus(!1),r.toggleActiveHand(!1)};return(t,n)=>{let r=xM,i=lx;return S(),s(i,f({isActive:a.value===K(L).CROP_PAGE&&!K(P)},{...e.item},{onClick:o,title:t.$t(`toolbar.viewControls.cropPage`)}),{default:G(()=>[x(r)]),_:1},16,[`isActive`,`title`])}}},uY={__name:`HandButton`,props:[`item`,`popoverTool`],setup(e){let{switchTool:t,switchAnnotationEditorMode:n}=U,r=ye(),i=fw(),a=T(()=>r.getActiveHand),o=()=>{e.popoverTool&&e.popoverTool.setShow(!1),window.getSelection().empty(),r.toggleActiveHand(!a.value),t(+!!a.value),n(0),r.closeActiveStickNote(),U.webViewerNamedAction(`Find`,4),i.setToolState(``),r.setSearchStatus(!1)};return(t,n)=>{let r=dz,i=lx;return S(),s(i,f({isActive:a.value&&!K(P),img:`icon-hand-tool`},{...e.item},{onClick:o,title:t.$t(`toolbar.viewControls.pan`)}),{default:G(()=>[x(r)]),_:1},16,[`isActive`,`title`])}}},dY={class:`hand-tools`},fY={class:`drop-down narrower hand-tools`},pY=B({__name:`SelectToolsButton`,setup(e){let t=ye(),n=fw(),r=T(()=>t.getUpload&&t.getVerified&&!t.getUploadLoading),i=T(()=>n.getActiveTool),a=T(()=>t.getActiveHeaderItems),o=J(null),l=()=>{o.value.setShow(!1),n.setToolState(L.SELECT_TEXT),U.switchTool(0),U.switchAnnotationEditorMode(0),t.closeActiveStickNote(),t.setSearchStatus(!1),t.toggleActiveHand(!1)};return(e,t)=>{let n=xM,u=LB,d=dz,f=hk,p=lx,m=uY,g=lY;return S(),V(`div`,dY,[x(K(Og),{ref_key:`popoverTools`,ref:o,placement:`bottom`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0},{trigger:G(()=>[x(p,{class:D([`drop-menu`,{disabled:!r.value}])},{default:G(()=>[i.value===K(L).CROP_PAGE?(S(),s(n,{key:0})):[K(L).SELECT_TEXT,K(L).HIGHLIGHT,K(L).UNDERLINE,K(L).SQUIGGLY,K(L).STRIKEOUT].includes(i.value)?(S(),s(u,{key:1})):(S(),s(d,{key:2})),x(f)]),_:1},8,[`class`])]),default:G(()=>[c(`div`,fY,[(S(!0),V(q,null,z(a.value,(e,t)=>(S(),V(q,{key:`${e.toolName}-${e.dataElement||t}`},[e.toolName===K(L).PAN&&!e.hidden?(S(),s(m,{key:0,item:e,"data-element":e.dataElement,popoverTool:o.value},null,8,[`item`,`data-element`,`popoverTool`])):e.toolName===K(L).SELECT_TEXT?(S(),s(g,{key:1,item:e,"data-element":e.dataElement,popoverTool:o.value},null,8,[`item`,`data-element`,`popoverTool`])):e.toolName===K(L).CROP_PAGE&&!e.hidden?(S(),s(p,{key:2,"data-element":e.dataElement,onClick:l},{default:G(()=>[x(u)]),_:1},8,[`data-element`])):b(``,!0)],64))),128))])]),_:1},512)])}}},[[`__scopeId`,`data-v-9e2b7f13`]]);function mY(e,t){let n=e(),r=t(),i=[L.TEXT,L.INK,L.HIGHLIGHT,L.UNDERLINE,L.SQUIGGLY,L.STRIKEOUT,L.SQUARE,L.CIRCLE,L.ARROW,L.LINE,L.ARC,L.POLYGON,L.CLOUDY,L.POLYLINE,L.FREETEXT,L.CALLOUT,L.STAMP,L.IMAGE,L.ERASER],a=[L.TEXTFIELD,L.CHECKBOX,L.RADIOBUTTON,L.LISTBOX,L.COMBOBOX,L.PUSHBUTTON,L.SIGNATURE_FIELDS],o=[L.LINE,L.POLYLINE,`curve`,L.ARC,L.CIRCLE,`rectangle`,L.POLYGON,L.INK],s=[L.HIGHLIGHT,L.UNDERLINE,L.SQUIGGLY,L.STRIKEOUT],c=J(null),l=J(!0),u=J(!0),d=J(!0),f=J(!0),p=T(()=>n.getReadOnly),m=T(()=>n.getUserAdmin),g=T(()=>r.getAnnotator),_=T(()=>r.getActiveTool),v=T(()=>n.getEnableFillForm),y=()=>document.getElementsByClassName(`outline-container`).length>0,b=()=>document.getElementsByClassName(`text-editor`).length>0,x=T(()=>m.value?!1:!!(p.value||c.value&&g.value!==c.value.author)),S=()=>{if(x.value){n.disableElements([`annotationPropertyPanelButton`,`formPropertyPanelButton`,`measurePropertyPanelButton`,`editorPropertyPanelButton`],`style`);return}C(`annotationPropertyPanelButton`,l.value),C(`formPropertyPanelButton`,u.value||v.value),C(`measurePropertyPanelButton`,d.value),C(`editorPropertyPanelButton`,f.value)},C=(e,t)=>{t?n.disableElements([e],`style`):n.enableElements([e],`style`)};W(_,()=>{l.value=!i.includes(_.value);let e=_.value.replace(`Measurement`,``);d.value=!o.includes(e)}),W(c,()=>{if(!c.value){l.value=!i.includes(_.value);let e=_.value.replace(`Measurement`,``);d.value=!o.includes(e)}}),W([x,l,u,d,f,v],S);let w=async e=>{e.length===1?c.value=e[0]:c.value=new Set(e.map(e=>s.includes(e.annotation.type)?`markup`:e.annotation.type)).size===1?e[0]:null,await E();let t=y(),n=b();l.value=!((t||n)&&i.includes(c.value?.type)&&!c.value.measure),d.value=!(t&&o.includes(c.value?.type)&&c.value.measure),u.value=!(t&&a.includes(c.value?.type))},D=e=>{e.length===1&&e[0].name!==c.value?.name||(c.value=null)},O=async e=>{f.value=e,await E();let t=y();u.value=!(t&&a.includes(c.value?.type)),c.value&&!c.value.measure&&(l.value=!t&&e)},k=({state:e})=>{e===1?n.setFullScreen(!1):e===3&&n.setFullScreen(!0)};return U.addEvent(`annotationSelected`,w),U.addEvent(`annotationDeselected`,D),U.addEvent(`changeRightPanelBtnDisabled`,O),U.addEvent(`presentationmodechanged`,k),()=>{U.removeEvent(`annotationSelected`,w),U.removeEvent(`annotationDeselected`,D),U.removeEvent(`changeRightPanelBtnDisabled`,O),U.removeEvent(`presentationmodechanged`,k)}}function hY(e,t){e();let n=t(),r=e=>{n.setCanUndo(!!e.undoListLength,`content`),n.setCanRedo(!!e.redoListLength,`content`)},i=e=>{n.setCanUndo(e.canUndo,`annotation`),n.setCanRedo(e.canRedo,`annotation`)};return{init:()=>(U.addEvent(`contentEditHistoryChanged`,r),U.addEvent(`historyChanged`,i),()=>{U.removeEvent(`contentEditHistoryChanged`,r),U.removeEvent(`historyChanged`,i)})}}var gY={key:6},_Y=B({__name:`HeaderItems`,props:{items:{type:Array,required:!0,default:()=>[]},isToolGroupReorderingEnabled:{type:Boolean,default:!1}},emits:[`scroll`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=J(null);t({root:a});let o=ye(),c=J(pe()),l=J(!1),u=null,p=hY(ye,fw),m=null,g={Ribbons:EJ,ZoomOverlay:yk,LeftPanelButton:IJ,Dropdown:ZJ,SignatureToolBar:eY,SecurityToolbar:nY,RedactionToolbar:iY,ComparedToolbar:sY,FillForm:cY,SelectToolsButton:pY},_=T(()=>r.items.filter(e=>{let t=c.value&&e.hiddenOnMobileDevice,n=!c.value&&e.hiddenOnPcDevice,r=o.isElementDisabled(e.dataElement);return!(t||n)&&!r})),v=e=>{let{hidden:t,hiddenOnMobileDevice:n,hiddenOnPcDevice:r,className:i}=e,a=``;return Array.isArray(t)&&t.length>0?a=t.map(e=>e===`always-hide`?e:`hide-in-${e}`).join(` `):t===!0&&(a=`always-hide`),n&&pe()&&(a+=` hide-in-mobile hide-in-small-mobile`),r&&!pe()&&(a+=` hide-in-desktop hide-in-tablet`),`${a} ${i||``}`.trim()},y=e=>(console.warn(`${e} is not a valid header item type.`),null);I(()=>{l.value=!1});let b=()=>{c.value=pe()};return M(()=>{u=mY(ye,fw),m=p.init(),window.addEventListener(`resize`,b)}),j(()=>{u&&u(),m&&m(),window.removeEventListener(`resize`,b)}),(e,t)=>{let n=RH,r=VH,o=qH,c=WH,l=mT;return S(),V(`div`,{class:`header-items`,ref_key:`root`,ref:a,onScroll:t[0]||=e=>i(`scroll`,e)},[(S(!0),V(q,null,z(_.value,(e,t)=>(S(),V(q,{key:`${e.type}-${e.dataElement||t}`},[e.type===`toolButton`?(S(),s(n,f({key:0,ref_for:!0},e,{className:v(e)}),null,16,[`className`])):e.type===`toggleElementButton`?(S(),s(r,f({key:1,ref_for:!0},e,{className:v(e)}),null,16,[`className`])):e.type===`actionButton`?(S(),s(o,f({key:2,ref_for:!0},e,{className:v(e)}),null,16,[`className`])):e.type===`statefulButton`?(S(),s(c,f({key:3,ref_for:!0},e,{className:v(e)}),null,16,[`className`])):e.type===`customElement`?(S(),V(q,{key:4},[g[e.render]?(S(),s(ve(g[e.render]),f({key:0,item:e},{ref_for:!0},e,{className:v(e)}),null,16,[`item`,`className`])):(S(),s(l,f({key:1,ref_for:!0},e,{className:v(e)}),null,16,[`className`]))],64)):e.type===`spacer`||e.type===`divider`?(S(),V(`div`,{key:5,class:D([e.type,v(e)])},null,2)):(S(),V(`div`,gY,d(y(e.type)),1))],64))),128))],544)}}},[[`__scopeId`,`data-v-1a903acb`]]),vY={class:`scroll-container left`},yY={class:`scroll-container right`},bY=B({__name:`ToolsHeader`,setup(e){let t=ye(),n=T(()=>t.getDisabledHeader),r=T(()=>t.getCompareStatus),i=T(()=>t.getCurrentToolbarGroup),a=T(()=>t.getToolbarGroupItems(i.value).filter(e=>e.hidden!==!0)),o=T(()=>i.value&&a.value?.length),s=J(null),l=J(null),u=J(!1),d=J(!1),f=J(!1),p=null,m=null;M(()=>{p=l.value.root,y()}),j(()=>{m&&m.disconnect()}),W(i,async e=>{let t=e.substring(13).toLowerCase();s.value=!([`view`,`document`,`separation`].includes(t)||t===`compare`&&r!==`finished`),u.value=!1,d.value=!1,await E(),b()}),W(r,async e=>{let t=i.value.substring(13).toLowerCase();s.value=!([`view`,`document`].includes(t)||t===`compare`&&e!==`finished`),u.value=!1,d.value=!1}),W(a,async()=>{await E(),b()});let g=()=>{p.scrollTo({left:p.scrollLeft-p.clientWidth,behavior:`smooth`})},_=()=>{p.scrollTo({left:p.scrollLeft+p.clientWidth,behavior:`smooth`})},v=e=>{C()},y=()=>{!p||!window.ResizeObserver||(m=new ResizeObserver(()=>{b()}),m.observe(p))},b=()=>{p&&(f.value=p.scrollWidth>p.clientWidth,C())},C=()=>{p&&(u.value=p.scrollLeft>0,d.value=p.scrollLeft+p.clientWidth<p.scrollWidth-1)};return U.addEvent(`toggleAnnotAttrbutePanel`,()=>t.toggleElement(H.STYLE_PANEL)),(e,t)=>{let r=GA,i=lx,s=_Y,p=VA;return R((S(),V(`div`,{class:D([`tools-header`,{disabled:n.value,overflow:f.value}])},[R(c(`div`,vY,[x(i,{class:`flip-button`,onClick:g},{default:G(()=>[x(r)]),_:1})],512),[[Re,K(P)&&u.value]]),x(s,{items:a.value,class:`tools`,ref_key:`toolbarRef`,ref:l,onScroll:v},null,8,[`items`]),R(c(`div`,yY,[x(i,{class:`flip-button`,onClick:_},{default:G(()=>[x(p)]),_:1})],512),[[Re,K(P)&&d.value]])],2)),[[Re,o.value]])}}},[[`__scopeId`,`data-v-bbeb83db`]]),xY={key:1,class:`click-tip`},SY={__name:`Header`,setup(e){let t=ye(),n=fw(),{t:r}=It(),i=T(()=>t.getActiveHeaderItems),a=T(()=>t.getToolMode),o=T(()=>t.getSignatureVerify),l=T(()=>t.getDisabledHeader),u=T(()=>n.getActiveTool),f=T(()=>t.isShowCompareTip),p=T(()=>t.getCompareStatus),m=T(()=>n.getCompareFile(`oldFile`)&&n.getCompareFile(`newFile`)&&p.value!==`finished`),g=T(()=>t.getCurrentPage),_=e=>{let t=e.target.files[0];if(!t)return;if(t&&t.size>2*1024*1024){window.$message.error(r(`signatures.uploadError`),{duration:5e3,icon:()=>h(`img`,{src:pw})}),e.target.value=``;return}if(a.value===`annotation`&&U.handleCreateStatus({bool:!0,fileData:t}),u.value!==L.IMAGE)return;n.setToolState(L.IMAGE);let i=new FileReader;i.onload=function(e){let t=new Image;t.onload=function(){let n={imageBase64:e.target.result,width:t.width,height:t.height,pageNum:g.value};U.addAnnotationImage(n)},t.onerror=function(e){console.log(e)},t.src=e.target.result},i.onerror=function(e){console.log(e)},i.readAsDataURL(t)},v=e=>{let t=e.target.files[0];if(!t)return;if(t.size>2*1024*1024){window.$message.error(r(`contentEditor.imageProperties.maxSize`),{duration:3e3,icon:()=>h(`img`,{src:pw})}),e.target.value=``;return}let n=new FileReader;n.onload=function(e){let t=new Image;t.onload=function(){let n={imageBase64:e.target.result,width:t.width,height:t.height,pageNum:g.value};U.addEditorImage(n)},t.onerror=function(e){console.log(e)},t.src=e.target.result},n.onerror=function(e){console.log(e)},n.readAsDataURL(t)};return(e,t)=>{let n=_Y,r=bY,p=CJ,g=pJ,y=sJ;return S(),V(q,null,[c(`div`,{class:D([`header`,{disabled:l.value||[K(L).REDACTION,K(L).REMOVE].includes(u.value)}])},[x(n,{items:i.value},null,8,[`items`])],2),x(r),x(p),o.value&&a.value===`sign`?(S(),s(g,{key:0})):b(``,!0),R(x(y,null,null,512),[[Re,[K(L).REDACTION,K(L).REMOVE].includes(u.value)]]),a.value===`compare`&&m.value&&f.value?(S(),V(`div`,xY,d(e.$t(`toolbar.compareTip`)),1)):b(``,!0),K(P)?(S(),V(q,{key:2},[c(`input`,{type:`file`,id:`annotaionImageInput`,accept:`.png, .jpg, .jpeg`,style:{display:`none`},onChange:_,name:`annotaion`},null,32),c(`input`,{type:`file`,id:`editorImageInput`,accept:`.png, .jpg, .jpeg`,style:{display:`none`},onChange:v,name:`editor`},null,32)],64)):b(``,!0)],64)}}},CY=(e,t)=>new Promise(n=>{e||n();let r=document.createElement(`script`);r.type=`text/javascript`,r.onload=function(){n()},r.onerror=function(){t&&console.warn(t),n()},r.src=e,document.querySelector(`head`).appendChild(r)}),wY=e=>new Promise(async t=>{window.parent===window?t():(window.addEventListener(`message`,async function n(r){if(r.data.type===`responseConfig`){let{value:i,options:a}=r.data;try{i&&(await CY(r.data.value,`Config script could not be loaded`),window.removeEventListener(`message`,n))}finally{await e(a),t()}}}),window.parent.postMessage({type:`requestConfig`,docId:parseInt(UD(`docId`),10)},`*`))}),TY=(e={})=>{let t=new te(e);U.setDocumentViewer(1,t)};function EY(e){return{dispatch(t){if(typeof e.dispatch==`function`)return e.dispatch(t);throw Error(`Original store does not have a dispatch method.`)},getState(t){if(typeof e.getState==`function`)return JSON.parse(JSON.stringify(e.getState(t)));throw Error(`Original store does not have a getState method.`)}}}var DY=e=>t=>{typeof t==`string`?e.dispatch(`disableElement`)(t):Array.isArray(t)?e.dispatch(`disableElements`)(t):console.error(`Wrong dataElements type.`)},OY=e=>t=>{typeof t==`string`?e.dispatch(`enableElement`)(t):Array.isArray(t)?e.dispatch(`enableElements`)(t):console.error(`Wrong dataElements type.`)},kY=e=>t=>{let n=Object.keys(e.headers),r=Object.create(AY).initialize(e,n);t(r),n.forEach(t=>{e.headers[t]=r.headers[t]})},AY={initialize(e){return this.headers={...e.headers,rightHeaders:e.rightHeaders,tools:e.tools,toolItems:e.toolItems,documentEditorHeaders:e.documentEditorHeaders},this.headerGroup=`default`,this.index=-1,this},get(e){if(this.index!==-1){let e=this.headers[this.headerGroup][this.index];Object.keys(e).forEach(e=>{delete this[e]})}if(this._setIndex(e),this.index===-1)console.warn(`${e} does not exist in ${this.headerGroup} header`);else{let e=this.headers[this.headerGroup][this.index];Object.keys(e).forEach(t=>{this[t]=e[t]})}return this},getItems(){return this.headers[this.headerGroup]},getHeader(e){let t=Object.keys(this.headers);return t.includes(e)?(this.headerGroup=e,this._resetIndex()):console.warn(`Header must be one of: ${t.join(` or `)}.`),this.headers[e]},insertBefore(e){return this.index===-1?console.warn(`Please use .get(dataElement) first before using insertBefore`):this.headers[this.headerGroup].splice(this.index,0,e),this},insertAfter(e){return this.index===-1?console.warn(`Please use .get(dataElement) first before using insertAfter`):(this.index++,this.headers[this.headerGroup].splice(this.index,0,e)),this},delete(e){let t;return typeof e==`number`?t=e:typeof e==`string`?this._getIndexOfElement(e)===-1?console.warn(`${e} does not exist in ${this.headerGroup} header`):t=this._getIndexOfElement(e):e===void 0?this.index===-1?console.warn(`Please use .get(dataElement) first before using delete()`):t=this.index:Array.isArray(e)?e.forEach(e=>{(typeof e==`number`||typeof e==`string`)&&this.delete(e)}):console.warn(`Argument must be empty, a number, a string or an array`),t!==void 0&&t!==-1&&(this.headers[this.headerGroup].splice(t,1),this._resetIndex()),this},shift(){return this.headers[this.headerGroup].shift(),this},unshift(...e){return this.headers[this.headerGroup].unshift(...e),this},push(...e){return this.headers[this.headerGroup].push(...e),this},pop(){return this.headers[this.headerGroup].pop(),this},update(e){return Array.isArray(e)?this._updateItems(e):console.warn(`Argument must be an array`),this},_updateItems(e){return this.headers[this.headerGroup].length=0,this.headers[this.headerGroup].push(...e),this},_setIndex(e){this.index=this._getIndexOfElement(e)},_getIndexOfElement(e){return this.headers[this.headerGroup].findIndex(t=>t.dataElement===e)},_resetIndex(){this.index=-1}},jY=(e,t)=>n=>{if(!n||e.isElementDisabled(n)){t.setToolState();return}let r=ne[n];if(!r){console.warn(`DataElement "${n}" has no corresponding tool.`);return}t.setToolState(r.toolName||r.tool)},MY=e=>async t=>{await Nt.changeLanguage(t),e.setLanguage(t),window.localStorage.setItem(`language`,t)},NY=e=>()=>e.dispatch(`getPassword`),PY=(e,t)=>Object.create(FY).initialize(e,t),FY={initialize(e,t){return this.store=e,this.popupDataElement=t,this},add(e,t){Array.isArray(e)||(e=[e]);let n=this._getIndexByDataElement(t);this.getItems().splice(n+1,0,...e)},update(e){e||=[],Array.isArray(e)||(e=[e]);let t=this.getItems();t.length=0,t.push(...e)},getItems(){return this.store.dispatch(`getPopupItems`)(this.popupDataElement)},_getIndexByDataElement(e){let t;return t=e===void 0?-1:this.store.dispatch(`getPopupItems`)(this.popupDataElement).findIndex(t=>t.dataElement===e),t}},IY=e=>PY(e,`textPopup`),LY=e=>t=>e.dispatch(`openElement`)(t),RY=e=>t=>e.dispatch(`closeElement`)(t),zY=e=>t=>e.dispatch(`isElementOpen`)(t),BY=e=>(t,n)=>{e.activeElementsTab.hasOwnProperty(t)?e.setActiveElementTab(t,n):console.warn(`DataElement not found.`)},VY=e=>t=>{Array.isArray(t)?e.setCustomFonts(t):console.error(`setCustomFonts: fonts must be an array`)},HY=e=>()=>e.getCustomFonts,UY=e=>t=>{e.setCurrentUser(t||`Guest`)},WY=e=>t=>{e.setCurrentUser(t||`Guest`)},GY=e=>t=>e[t].color,KY=e=>t=>({...e[t]}),qY=e=>()=>e.getActiveTool,JY=e=>PY(e,`cropPagePopup`),YY=e=>t=>{e.setAutoJumpNextSign(!!t)},XY=e=>t=>{e.setSignatureDialogTabs(t)},ZY=e=>(t,n,r=!1)=>{e.setSignatureDialogProperties(t,n,r)},QY=e=>t=>{e.setCustomLoading(t)},$Y=e=>()=>{e.setAnnotationExport(!1)},eX=e=>()=>{e.setAnnotationImport(!1)},tX=e=>()=>{e.setAnnotationExport(!0)},nX=e=>()=>{e.setAnnotationImport(!0)},rX=e=>()=>{e.setDisableSignatureTool(!1)},iX=e=>()=>{e.setDisableSignatureTool(!0)},aX=e=>{let t=document.createElement(`style`);t.innerHTML=e,document.getElementsByTagName(`head`)[0].appendChild(t)},oX=e=>t=>{e.setTheme(t)},sX=(e,t,n)=>(...r)=>(console.warn(`[ComPDF] "${e}" is deprecated and will be removed in a future version. Please use "${t}" instead.`),n(...r)),cX=e=>()=>{e.setDocumentEditorSaveStatus(!1)},lX=e=>()=>{e.setDocumentEditorSaveAsStatus(!1)},uX=e=>()=>{e.setDocumentEditorSaveStatus(!0)},dX=e=>()=>{e.setDocumentEditorSaveAsStatus(!0)},fX=(e,t,n)=>async()=>{let r=await n.saveDocumentEdit();if(!r)return;t.resetSetting(),t.setToolState(``),e.setActiveToolMode(`view`),e.setToolbarGroup(`toolbarGroup-View`),e.setActiveHeaderGroup(`default`),e.setUpload(!0),e.setUploadLoading(!0);let i=e.getScale;t.setCurrentPdfData(r);let a=n.getPagesCount();t.setTotalPages(a),t.setOutline(n.getOutlines()),e.setCurrentPage(1);let o=e.getScrollMode,s=e.getPageMode;n.switchScrollMode(o===`Vertical`?0:1),n.switchSpreadMode(s),e.setCurrentScale(i/100),n.scaleChanged(i/100),e.setUploadLoading(!1)},pX=e=>t=>{e.setAuthor(t||``)},mX=e=>t=>{e.setHighlightForm(t)},hX=e=>t=>{e.setHighlightLink(t)},gX=e=>t=>{e.setEnableSignatureTemplates(t)},_X=e=>t=>{e.addLanguage(t)},vX=e=>t=>{e.removeLanguage(t)},yX=e=>t=>{e.setLanguages(t)},bX=e=>t=>{e.setFormBoardFold(t)},xX=e=>t=>{e.setFormBoardPosition(t)},SX=e=>()=>e.getState(`genericPanels`).map(t=>new CX(e,t)),CX=class{_dataElement;_render;_location;getGenericPanels;setGenericPanels;constructor(e,t){this._dataElement=t.dataElement,this._render=t.render,this._location=t.location,this.getGenericPanels=()=>e.getState(`genericPanels`),this.setGenericPanels=t=>{e.dispatch(`resetPanels`)(),e.dispatch(`setGenericPanels`)(t)}}setLocation(e){this.location=[`left`,`right`].includes(e)?e:`right`;let t=this.getGenericPanels(),n=t.find(e=>e.dataElement===this._dataElement);if(!n){console.warn(`Cannot set location for panel ${this._dataElement}. It may have been deleted.`);return}n.location=e,this.setGenericPanels(t)}delete(){let e=this.getGenericPanels(),t=e.findIndex(e=>e.dataElement===this._dataElement);t!==-1&&(e.splice(t,1),this.setGenericPanels(e))}updatePanelInStore(e=void 0){let t=this.getGenericPanels(),n=t.findIndex(t=>t.dataElement===(e||this._dataElement));if(n===-1)return;let[r]=t.splice(n,1);t.push({...r,...this.toObject()}),this.setGenericPanels(t)}toObject(){return{dataElement:this._dataElement,location:this._location,render:this._render}}get dataElement(){return this._dataElement}set dataElement(e){let t=this._dataElement;this._dataElement=e+``,this.updatePanelInStore(t)}get render(){return this._render}set render(e){this._render=e,this.updatePanelInStore()}get location(){return this._location}set location(e){this._location=[`left`,`right`].includes(e)?e:`right`,this.updatePanelInStore()}},wX=e=>t=>{t instanceof CX&&(t=t.toObject());let n=e.getState(`genericPanels`);e.setGenericPanels([...n,t])},TX=e=>t=>{t=t.map(e=>(e instanceof CX&&(e=e.toObject()),e)),e.setGenericPanels(t)},EX=e=>t=>{e.addCustomModal(t)},DX=e=>PY(e,`contentEditorPopup`),OX=e=>PY(e,`annotationPopup`),kX={"toolbarGroup-Compare":`compare`,"toolbarGroup-Document":`document`},AX=e=>t=>{if(t&&t.startsWith(`toolMenu-`)){let e=t.replace(`toolMenu-`,`toolbarGroup-`);console.warn(`[ComPDF] "toolMenu-*" data-element is deprecated. Please use "${e}" instead.`),t=e}e.setToolbarGroup(t),e.setActiveHeaderGroup(kX[t]||`default`);let n=t.substring(13).toLowerCase();e.setActiveToolMode(n)},jX=e=>t=>e.dispatch(`openElements`)(t),MX=e=>t=>e.dispatch(`closeElements`)(t),NX=e=>t=>{e.setStampPanelTabs(t)},PX=e=>t=>{e.setImportStamps(t)},FX=e=>t=>{e.addCustomStamps(t)},IX=e=>t=>{e.setCustomStamps(t)},LX=e=>()=>e.getCustomStamps,RX=e=>()=>e.getFontSizes,zX=e=>t=>{Array.isArray(t)?e.setFontSizes(t):console.error(`setFontSizes: fontSizes must be an array`)},BX=()=>(e,t={})=>(me(e),U.registerTool(e,t)),VX=()=>{let e=ye(),t=fw(),n=EY(e),r=EY(t);e.setLanguage(Nt.language);let i=oX(e),a=AX(e),o={...U},s={disableElements:DY(e),enableElements:OY(e),setHeaderItems:kY(e),setActiveTool:jY(e,t),setLanguage:MY(e),getPassword:NY(r),textPopup:IY(n),openElement:LY(e),closeElement:RY(e),isElementOpen:zY(e),setActiveElementTab:BY(e),setCustomFonts:VY(e),getCustomFonts:HY(e),setAnnotator:UY(t),setCurrentUser:WY(t),getActiveTool:qY(t),getToolColor:GY(t),getTool:KY(t),cropPagePopup:JY(n),setAutoJumpNextSign:YY(t),setSignatureDialogTabs:XY(e),setSignatureDialogProperties:ZY(e),setCustomLoading:QY(e),disableAnnotationExport:$Y(e),disableAnnotationImport:eX(e),enableAnnotationExport:tX(e),enableAnnotationImport:nX(e),enableSignatureTool:rX(e),disableSignatureTool:iX(e),setCustomStyle:aX,setTheme:i,setThemeMode:sX(`setThemeMode`,`setTheme`,i),disableDocumentEditorSave:cX(e),disableDocumentEditorSaveAs:lX(e),enableDocumentEditorSave:uX(e),enableDocumentEditorSaveAs:dX(e),saveDocumentEditor:fX(e,t,U),setAuthor:pX(t),setHighlightForm:mX(t),setHighlightLink:hX(t),setEnableSignatureTemplates:gX(e),addLanguage:_X(e),getCustomStamps:LX(e),removeLanguage:vX(e),setLanguages:yX(e),setFormBoardFold:bX(e),setFormBoardPosition:xX(e),addPanel:wX(e),getPanels:SX(e),setPanels:TX(e),addCustomModal:EX(e),contentEditorPopup:DX(n),annotationPopup:OX(n),setToolbarGroup:a,setActiveToolMode:sX(`setActiveToolMode`,`setToolbarGroup`,a),setActiceToolMode:sX(`setActiceToolMode`,`setToolbarGroup`,a),openElements:jX(e),closeElements:MX(e),setStampPanelTabs:NX(e),setImportStamps:PX(e),addCustomStamps:FX(e),setCustomStamps:IX(e),setFontSizes:zX(e),getFontSizes:RX(e),registerTool:BX()};window.instance={docViewer:U.getDocumentViewer(),Core:o,UI:s}};function HX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function UX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?HX(Object(n),!0).forEach(function(t){GX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function WX(e){"@babel/helpers - typeof";return WX=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},WX(e)}function GX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KX(){return KX=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KX.apply(this,arguments)}function qX(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function JX(e,t){if(e==null)return{};var n=qX(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function YX(e){return XX(e)||ZX(e)||QX(e)||eZ()}function XX(e){if(Array.isArray(e))return $X(e)}function ZX(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function QX(e,t){if(e){if(typeof e==`string`)return $X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $X(e,t)}}function $X(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eZ(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2507
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var tZ=`1.15.2`;function nZ(e){if(typeof window<`u`&&window.navigator)return!!navigator.userAgent.match(e)}var rZ=nZ(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),iZ=nZ(/Edge/i),aZ=nZ(/firefox/i),oZ=nZ(/safari/i)&&!nZ(/chrome/i)&&!nZ(/android/i),sZ=nZ(/iP(ad|od|hone)/i),cZ=nZ(/chrome/i)&&nZ(/android/i),lZ={capture:!1,passive:!1};function uZ(e,t,n){e.addEventListener(t,n,!rZ&&lZ)}function dZ(e,t,n){e.removeEventListener(t,n,!rZ&&lZ)}function fZ(e,t){if(t){if(t[0]===`>`&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function pZ(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function mZ(e,t,n,r){if(e){n||=document;do{if(t!=null&&(t[0]===`>`?e.parentNode===n&&fZ(e,t):fZ(e,t))||r&&e===n)return e;if(e===n)break}while(e=pZ(e))}return null}var hZ=/\s+/g;function gZ(e,t,n){e&&t&&(e.classList?e.classList[n?`add`:`remove`](t):e.className=((` `+e.className+` `).replace(hZ,` `).replace(` `+t+` `,` `)+(n?` `+t:``)).replace(hZ,` `))}function _Z(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,``):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf(`webkit`)===-1&&(t=`-webkit-`+t),r[t]=n+(typeof n==`string`?``:`px`)}}function vZ(e,t){var n=``;if(typeof e==`string`)n=e;else do{var r=_Z(e,`transform`);r&&r!==`none`&&(n=r+` `+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function yZ(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i<a;i++)n(r[i],i);return r}return[]}function bZ(){return document.scrollingElement||document.documentElement}function xZ(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,o,s,c,l,u,d;if(e!==window&&e.parentNode&&e!==bZ()?(a=e.getBoundingClientRect(),o=a.top,s=a.left,c=a.bottom,l=a.right,u=a.height,d=a.width):(o=0,s=0,c=window.innerHeight,l=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i||=e.parentNode,!rZ))do if(i&&i.getBoundingClientRect&&(_Z(i,`transform`)!==`none`||n&&_Z(i,`position`)!==`static`)){var f=i.getBoundingClientRect();o-=f.top+parseInt(_Z(i,`border-top-width`)),s-=f.left+parseInt(_Z(i,`border-left-width`)),c=o+a.height,l=s+a.width;break}while(i=i.parentNode);if(r&&e!==window){var p=vZ(i||e),m=p&&p.a,g=p&&p.d;p&&(o/=g,s/=m,d/=m,u/=g,c=o+u,l=s+d)}return{top:o,left:s,bottom:c,right:l,width:d,height:u}}}function SZ(e,t,n){for(var r=OZ(e,!0),i=xZ(e)[t];r;){var a=xZ(r)[n],o=void 0;if(o=n===`top`||n===`left`?i>=a:i<=a,!o)return r;if(r===bZ())break;r=OZ(r,!1)}return!1}function CZ(e,t,n,r){for(var i=0,a=0,o=e.children;a<o.length;){if(o[a].style.display!==`none`&&o[a]!==HQ.ghost&&(r||o[a]!==HQ.dragged)&&mZ(o[a],n.draggable,e,!1)){if(i===t)return o[a];i++}a++}return null}function wZ(e,t){for(var n=e.lastElementChild;n&&(n===HQ.ghost||_Z(n,`display`)===`none`||t&&!fZ(n,t));)n=n.previousElementSibling;return n||null}function TZ(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!==`TEMPLATE`&&e!==HQ.clone&&(!t||fZ(e,t))&&n++;return n}function EZ(e){var t=0,n=0,r=bZ();if(e)do{var i=vZ(e),a=i.a,o=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*o}while(e!==r&&(e=e.parentNode));return[t,n]}function DZ(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function OZ(e,t){if(!e||!e.getBoundingClientRect)return bZ();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=_Z(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX==`auto`||i.overflowX==`scroll`)||n.clientHeight<n.scrollHeight&&(i.overflowY==`auto`||i.overflowY==`scroll`)){if(!n.getBoundingClientRect||n===document.body)return bZ();if(r||t)return n;r=!0}}while(n=n.parentNode);return bZ()}function kZ(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function AZ(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var jZ;function MZ(e,t){return function(){if(!jZ){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),jZ=setTimeout(function(){jZ=void 0},t)}}}function NZ(){clearTimeout(jZ),jZ=void 0}function PZ(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function FZ(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function IZ(e,t){_Z(e,`position`,`absolute`),_Z(e,`top`,t.top),_Z(e,`left`,t.left),_Z(e,`width`,t.width),_Z(e,`height`,t.height)}function LZ(e){_Z(e,`position`,``),_Z(e,`top`,``),_Z(e,`left`,``),_Z(e,`width`,``),_Z(e,`height`,``)}function RZ(e,t,n){var r={};return Array.from(e.children).forEach(function(i){if(!(!mZ(i,t.draggable,e,!1)||i.animated||i===n)){var a=xZ(i);r.left=Math.min(r.left??1/0,a.left),r.top=Math.min(r.top??1/0,a.top),r.right=Math.max(r.right??-1/0,a.right),r.bottom=Math.max(r.bottom??-1/0,a.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var zZ=`Sortable`+new Date().getTime();function BZ(){var e=[],t;return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){if(!(_Z(t,`display`)===`none`||t===HQ.ghost)){e.push({target:t,rect:xZ(t)});var n=UX({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=vZ(t,!0);r&&(n.top-=r.f,n.left-=r.e)}t.fromRect=n}})},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(DZ(e,{target:t}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(t),typeof n==`function`&&n();return}var i=!1,a=0;e.forEach(function(e){var t=0,n=e.target,o=n.fromRect,s=xZ(n),c=n.prevFromRect,l=n.prevToRect,u=e.rect,d=vZ(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&AZ(c,s)&&!AZ(o,s)&&(u.top-s.top)/(u.left-s.left)===(o.top-s.top)/(o.left-s.left)&&(t=HZ(u,c,l,r.options)),AZ(s,o)||(n.prevFromRect=o,n.prevToRect=s,t||=r.options.animation,r.animate(n,u,s,t)),t&&(i=!0,a=Math.max(a,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},t),n.thisAnimationDuration=t)}),clearTimeout(t),i?t=setTimeout(function(){typeof n==`function`&&n()},a):typeof n==`function`&&n(),e=[]},animate:function(e,t,n,r){if(r){_Z(e,`transition`,``),_Z(e,`transform`,``);var i=vZ(this.el),a=i&&i.a,o=i&&i.d,s=(t.left-n.left)/(a||1),c=(t.top-n.top)/(o||1);e.animatingX=!!s,e.animatingY=!!c,_Z(e,`transform`,`translate3d(`+s+`px,`+c+`px,0)`),this.forRepaintDummy=VZ(e),_Z(e,`transition`,`transform `+r+`ms`+(this.options.easing?` `+this.options.easing:``)),_Z(e,`transform`,`translate3d(0,0,0)`),typeof e.animated==`number`&&clearTimeout(e.animated),e.animated=setTimeout(function(){_Z(e,`transition`,``),_Z(e,`transform`,``),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}}function VZ(e){return e.offsetWidth}function HZ(e,t,n,r){return Math.sqrt((t.top-e.top)**2+(t.left-e.left)**2)/Math.sqrt((t.top-n.top)**2+(t.left-n.left)**2)*r.animation}var UZ=[],WZ={initializeByDefault:!0},GZ={mount:function(e){for(var t in WZ)WZ.hasOwnProperty(t)&&!(t in e)&&(e[t]=WZ[t]);UZ.forEach(function(t){if(t.pluginName===e.pluginName)throw`Sortable: Cannot mount plugin ${e.pluginName} more than once`}),UZ.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+`Global`;UZ.forEach(function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](UX({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](UX({sortable:t},n)))})},initializePlugins:function(e,t,n,r){for(var i in UZ.forEach(function(r){var i=r.pluginName;if(!(!e.options[i]&&!r.initializeByDefault)){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,KX(n,a.defaults)}}),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);a!==void 0&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return UZ.forEach(function(r){typeof r.eventProperties==`function`&&KX(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return UZ.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[t]==`function`&&(r=i.optionListeners[t].call(e[i.pluginName],n))}),r}};function KZ(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,a=e.cloneEl,o=e.toEl,s=e.fromEl,c=e.oldIndex,l=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,m=e.extraEventProperties;if(t||=n&&n[zZ],t){var g,_=t.options,v=`on`+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!rZ&&!iZ?g=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(g=document.createEvent(`Event`),g.initEvent(r,!0,!0)),g.to=o||n,g.from=s||n,g.item=i||n,g.clone=a,g.oldIndex=c,g.newIndex=l,g.oldDraggableIndex=u,g.newDraggableIndex=d,g.originalEvent=f,g.pullMode=p?p.lastPutMode:void 0;var y=UX(UX({},m),GZ.getEventProperties(r,t));for(var b in y)g[b]=y[b];n&&n.dispatchEvent(g),_[v]&&_[v].call(t,g)}}var qZ=[`evt`],JZ=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=JX(n,qZ);GZ.pluginEvent.bind(HQ)(e,t,UX({dragEl:XZ,parentEl:ZZ,ghostEl:QZ,rootEl:$Z,nextEl:eQ,lastDownEl:tQ,cloneEl:nQ,cloneHidden:rQ,dragStarted:yQ,putSortable:lQ,activeSortable:HQ.active,originalEvent:r,oldIndex:iQ,oldDraggableIndex:oQ,newIndex:aQ,newDraggableIndex:sQ,hideGhostForTarget:RQ,unhideGhostForTarget:zQ,cloneNowHidden:function(){rQ=!0},cloneNowShown:function(){rQ=!1},dispatchSortableEvent:function(e){YZ({sortable:t,name:e,originalEvent:r})}},i))};function YZ(e){KZ(UX({putSortable:lQ,cloneEl:nQ,targetEl:XZ,rootEl:$Z,oldIndex:iQ,oldDraggableIndex:oQ,newIndex:aQ,newDraggableIndex:sQ},e))}var XZ,ZZ,QZ,$Z,eQ,tQ,nQ,rQ,iQ,aQ,oQ,sQ,cQ,lQ,uQ=!1,dQ=!1,fQ=[],pQ,mQ,hQ,gQ,_Q,vQ,yQ,bQ,xQ,SQ=!1,CQ=!1,wQ,TQ,EQ=[],DQ=!1,OQ=[],kQ=typeof document<`u`,AQ=sZ,jQ=iZ||rZ?`cssFloat`:`float`,MQ=kQ&&!cZ&&!sZ&&`draggable`in document.createElement(`div`),NQ=function(){if(kQ){if(rZ)return!1;var e=document.createElement(`x`);return e.style.cssText=`pointer-events:auto`,e.style.pointerEvents===`auto`}}(),PQ=function(e,t){var n=_Z(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=CZ(e,0,t),a=CZ(e,1,t),o=i&&_Z(i),s=a&&_Z(a),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+xZ(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+xZ(a).width;if(n.display===`flex`)return n.flexDirection===`column`||n.flexDirection===`column-reverse`?`vertical`:`horizontal`;if(n.display===`grid`)return n.gridTemplateColumns.split(` `).length<=1?`vertical`:`horizontal`;if(i&&o.float&&o.float!==`none`){var u=o.float===`left`?`left`:`right`;return a&&(s.clear===`both`||s.clear===u)?`vertical`:`horizontal`}return i&&(o.display===`block`||o.display===`flex`||o.display===`table`||o.display===`grid`||c>=r&&n[jQ]===`none`||a&&n[jQ]===`none`&&c+l>r)?`vertical`:`horizontal`},FQ=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,a=n?e.width:e.height,o=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return r===o||i===s||r+a/2===o+c/2},IQ=function(e,t){var n;return fQ.some(function(r){var i=r[zZ].options.emptyInsertThreshold;if(!(!i||wZ(r))){var a=xZ(r),o=e>=a.left-i&&e<=a.right+i,s=t>=a.top-i&&t<=a.bottom+i;if(o&&s)return n=r}}),n},LQ=function(e){function t(e,n){return function(r,i,a,o){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(e==null&&(n||s))return!0;if(e==null||e===!1)return!1;if(n&&e===`clone`)return e;if(typeof e==`function`)return t(e(r,i,a,o),n)(r,i,a,o);var c=(n?r:i).options.group.name;return e===!0||typeof e==`string`&&e===c||e.join&&e.indexOf(c)>-1}}var n={},r=e.group;(!r||WX(r)!=`object`)&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},RQ=function(){!NQ&&QZ&&_Z(QZ,`display`,`none`)},zQ=function(){!NQ&&QZ&&_Z(QZ,`display`,``)};kQ&&!cZ&&document.addEventListener(`click`,function(e){if(dQ)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),dQ=!1,!1},!0);var BQ=function(e){if(XZ){e=e.touches?e.touches[0]:e;var t=IQ(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[zZ]._onDragOver(n)}}},VQ=function(e){XZ&&XZ.parentNode[zZ]._isOutsideThisEl(e.target)};function HQ(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw`Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;this.el=e,this.options=t=KX({},t),e[zZ]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?`>li`:`>*`,swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return PQ(e,this.options)},ghostClass:`sortable-ghost`,chosenClass:`sortable-chosen`,dragClass:`sortable-drag`,ignore:`a, img`,filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData(`Text`,t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:`data-id`,delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:`sortable-fallback`,fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:HQ.supportPointer!==!1&&`PointerEvent`in window&&!oZ,emptyInsertThreshold:5};for(var r in GZ.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in LQ(t),this)i.charAt(0)===`_`&&typeof this[i]==`function`&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:MQ,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?uZ(e,`pointerdown`,this._onTapStart):(uZ(e,`mousedown`,this._onTapStart),uZ(e,`touchstart`,this._onTapStart)),this.nativeDraggable&&(uZ(e,`dragover`,this),uZ(e,`dragenter`,this)),fQ.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),KX(this,BZ())}HQ.prototype={constructor:HQ,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(bQ=null)},_getDirection:function(e,t){return typeof this.options.direction==`function`?this.options.direction.call(this,e,t,XZ):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&e.pointerType===`touch`&&e,s=(o||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(QQ(n),!XZ&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&oZ&&s&&s.tagName.toUpperCase()===`SELECT`)&&(s=mZ(s,r.draggable,n,!1),!(s&&s.animated)&&tQ!==s)){if(iQ=TZ(s),oQ=TZ(s,r.draggable),typeof l==`function`){if(l.call(this,e,s,this)){YZ({sortable:t,rootEl:c,name:`filter`,targetEl:s,toEl:n,fromEl:n}),JZ(`filter`,t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(l&&(l=l.split(`,`).some(function(r){if(r=mZ(c,r.trim(),n,!1),r)return YZ({sortable:t,rootEl:r,name:`filter`,targetEl:s,fromEl:n,toEl:n}),JZ(`filter`,t,{evt:e}),!0}),l)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!mZ(c,r.handle,n,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,n){var r=this,i=r.el,a=r.options,o=i.ownerDocument,s;if(n&&!XZ&&n.parentNode===i){var c=xZ(n);if($Z=i,XZ=n,ZZ=XZ.parentNode,eQ=XZ.nextSibling,tQ=n,cQ=a.group,HQ.dragged=XZ,pQ={target:XZ,clientX:(t||e).clientX,clientY:(t||e).clientY},_Q=pQ.clientX-c.left,vQ=pQ.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,XZ.style[`will-change`]=`all`,s=function(){if(JZ(`delayEnded`,r,{evt:e}),HQ.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!aZ&&r.nativeDraggable&&(XZ.draggable=!0),r._triggerDragStart(e,t),YZ({sortable:r,name:`choose`,originalEvent:e}),gZ(XZ,a.chosenClass,!0)},a.ignore.split(`,`).forEach(function(e){yZ(XZ,e.trim(),GQ)}),uZ(o,`dragover`,BQ),uZ(o,`mousemove`,BQ),uZ(o,`touchmove`,BQ),uZ(o,`mouseup`,r._onDrop),uZ(o,`touchend`,r._onDrop),uZ(o,`touchcancel`,r._onDrop),aZ&&this.nativeDraggable&&(this.options.touchStartThreshold=4,XZ.draggable=!0),JZ(`delayStart`,this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(iZ||rZ))){if(HQ.eventCanceled){this._onDrop();return}uZ(o,`mouseup`,r._disableDelayedDrag),uZ(o,`touchend`,r._disableDelayedDrag),uZ(o,`touchcancel`,r._disableDelayedDrag),uZ(o,`mousemove`,r._delayedDragTouchMoveHandler),uZ(o,`touchmove`,r._delayedDragTouchMoveHandler),a.supportPointer&&uZ(o,`pointermove`,r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){XZ&&GQ(XZ),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;dZ(e,`mouseup`,this._disableDelayedDrag),dZ(e,`touchend`,this._disableDelayedDrag),dZ(e,`touchcancel`,this._disableDelayedDrag),dZ(e,`mousemove`,this._delayedDragTouchMoveHandler),dZ(e,`touchmove`,this._delayedDragTouchMoveHandler),dZ(e,`pointermove`,this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t||=e.pointerType==`touch`&&e,!this.nativeDraggable||t?this.options.supportPointer?uZ(document,`pointermove`,this._onTouchMove):t?uZ(document,`touchmove`,this._onTouchMove):uZ(document,`mousemove`,this._onTouchMove):(uZ(XZ,`dragend`,this),uZ($Z,`dragstart`,this._onDragStart));try{document.selection?$Q(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(uQ=!1,$Z&&XZ){JZ(`dragStarted`,this,{evt:t}),this.nativeDraggable&&uZ(document,`dragover`,VQ);var n=this.options;!e&&gZ(XZ,n.dragClass,!1),gZ(XZ,n.ghostClass,!0),HQ.active=this,e&&this._appendGhost(),YZ({sortable:this,name:`start`,originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(mQ){this._lastX=mQ.clientX,this._lastY=mQ.clientY,RQ();for(var e=document.elementFromPoint(mQ.clientX,mQ.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(mQ.clientX,mQ.clientY),e!==t);)t=e;if(XZ.parentNode[zZ]._isOutsideThisEl(e),t)do{if(t[zZ]){var n=void 0;if(n=t[zZ]._onDragOver({clientX:mQ.clientX,clientY:mQ.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);zQ()}},_onTouchMove:function(e){if(pQ){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=QZ&&vZ(QZ,!0),o=QZ&&a&&a.a,s=QZ&&a&&a.d,c=AQ&&TQ&&EZ(TQ),l=(i.clientX-pQ.clientX+r.x)/(o||1)+(c?c[0]-EQ[0]:0)/(o||1),u=(i.clientY-pQ.clientY+r.y)/(s||1)+(c?c[1]-EQ[1]:0)/(s||1);if(!HQ.active&&!uQ){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(QZ){a?(a.e+=l-(hQ||0),a.f+=u-(gQ||0)):a={a:1,b:0,c:0,d:1,e:l,f:u};var d=`matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;_Z(QZ,`webkitTransform`,d),_Z(QZ,`mozTransform`,d),_Z(QZ,`msTransform`,d),_Z(QZ,`transform`,d),hQ=l,gQ=u,mQ=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!QZ){var e=this.options.fallbackOnBody?document.body:$Z,t=xZ(XZ,!0,AQ,!0,e),n=this.options;if(AQ){for(TQ=e;_Z(TQ,`position`)===`static`&&_Z(TQ,`transform`)===`none`&&TQ!==document;)TQ=TQ.parentNode;TQ!==document.body&&TQ!==document.documentElement?(TQ===document&&(TQ=bZ()),t.top+=TQ.scrollTop,t.left+=TQ.scrollLeft):TQ=bZ(),EQ=EZ(TQ)}QZ=XZ.cloneNode(!0),gZ(QZ,n.ghostClass,!1),gZ(QZ,n.fallbackClass,!0),gZ(QZ,n.dragClass,!0),_Z(QZ,`transition`,``),_Z(QZ,`transform`,``),_Z(QZ,`box-sizing`,`border-box`),_Z(QZ,`margin`,0),_Z(QZ,`top`,t.top),_Z(QZ,`left`,t.left),_Z(QZ,`width`,t.width),_Z(QZ,`height`,t.height),_Z(QZ,`opacity`,`0.8`),_Z(QZ,`position`,AQ?`absolute`:`fixed`),_Z(QZ,`zIndex`,`100000`),_Z(QZ,`pointerEvents`,`none`),HQ.ghost=QZ,e.appendChild(QZ),_Z(QZ,`transform-origin`,_Q/parseInt(QZ.style.width)*100+`% `+vQ/parseInt(QZ.style.height)*100+`%`)}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;if(JZ(`dragStart`,this,{evt:e}),HQ.eventCanceled){this._onDrop();return}JZ(`setupClone`,this),HQ.eventCanceled||(nQ=FZ(XZ),nQ.removeAttribute(`id`),nQ.draggable=!1,nQ.style[`will-change`]=``,this._hideClone(),gZ(nQ,this.options.chosenClass,!1),HQ.clone=nQ),n.cloneId=$Q(function(){JZ(`clone`,n),!HQ.eventCanceled&&(n.options.removeCloneOnHide||$Z.insertBefore(nQ,XZ),n._hideClone(),YZ({sortable:n,name:`clone`}))}),!t&&gZ(XZ,i.dragClass,!0),t?(dQ=!0,n._loopId=setInterval(n._emulateDragOver,50)):(dZ(document,`mouseup`,n._onDrop),dZ(document,`touchend`,n._onDrop),dZ(document,`touchcancel`,n._onDrop),r&&(r.effectAllowed=`move`,i.setData&&i.setData.call(n,r,XZ)),uZ(document,`drop`,n),_Z(XZ,`transform`,`translateZ(0)`)),uQ=!0,n._dragStartId=$Q(n._dragStarted.bind(n,t,e)),uZ(document,`selectstart`,n),yQ=!0,oZ&&_Z(document.body,`user-select`,`none`)},_onDragOver:function(e){var t=this.el,n=e.target,r,i,a,o=this.options,s=o.group,c=HQ.active,l=cQ===s,u=o.sort,d=lQ||c,f,p=this,m=!1;if(DQ)return;function g(o,s){JZ(o,p,UX({evt:e,isOwner:l,axis:f?`vertical`:`horizontal`,revert:a,dragRect:r,targetRect:i,canSort:u,fromSortable:d,target:n,completed:v,onMove:function(n,i){return WQ($Z,t,XZ,r,n,xZ(n),e,i)},changed:y},s))}function _(){g(`dragOverAnimationCapture`),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function v(r){return g(`dragOverCompleted`,{insertion:r}),r&&(l?c._hideClone():c._showClone(p),p!==d&&(gZ(XZ,lQ?lQ.options.ghostClass:c.options.ghostClass,!1),gZ(XZ,o.ghostClass,!0)),lQ!==p&&p!==HQ.active?lQ=p:p===HQ.active&&lQ&&(lQ=null),d===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){g(`dragOverAnimationComplete`),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(n===XZ&&!XZ.animated||n===t&&!n.animated)&&(bQ=null),!o.dragoverBubble&&!e.rootEl&&n!==document&&(XZ.parentNode[zZ]._isOutsideThisEl(e.target),!r&&BQ(e)),!o.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function y(){aQ=TZ(XZ),sQ=TZ(XZ,o.draggable),YZ({sortable:p,name:`change`,toEl:t,newIndex:aQ,newDraggableIndex:sQ,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=mZ(n,o.draggable,t,!0),g(`dragOver`),HQ.eventCanceled)return m;if(XZ.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return v(!1);if(dQ=!1,c&&!o.disabled&&(l?u||(a=ZZ!==$Z):lQ===this||(this.lastPutMode=cQ.checkPull(this,c,XZ,e))&&s.checkPut(this,c,XZ,e))){if(f=this._getDirection(e,n)===`vertical`,r=xZ(XZ),g(`dragOverValid`),HQ.eventCanceled)return m;if(a)return ZZ=$Z,_(),this._hideClone(),g(`revert`),HQ.eventCanceled||(eQ?$Z.insertBefore(XZ,eQ):$Z.appendChild(XZ)),v(!0);var b=wZ(t,o.draggable);if(!b||JQ(e,f,this)&&!b.animated){if(b===XZ)return v(!1);if(b&&t===e.target&&(n=b),n&&(i=xZ(n)),WQ($Z,t,XZ,r,n,i,e,!!n)!==!1)return _(),b&&b.nextSibling?t.insertBefore(XZ,b.nextSibling):t.appendChild(XZ),ZZ=t,y(),v(!0)}else if(b&&qQ(e,f,this)){var x=CZ(t,0,o,!0);if(x===XZ)return v(!1);if(n=x,i=xZ(n),WQ($Z,t,XZ,r,n,i,e,!1)!==!1)return _(),t.insertBefore(XZ,x),ZZ=t,y(),v(!0)}else if(n.parentNode===t){i=xZ(n);var S=0,C,w=XZ.parentNode!==t,T=!FQ(XZ.animated&&XZ.toRect||r,n.animated&&n.toRect||i,f),E=f?`top`:`left`,D=SZ(n,`top`,`top`)||SZ(XZ,`top`,`top`),O=D?D.scrollTop:void 0;bQ!==n&&(C=i[E],SQ=!1,CQ=!T&&o.invertSwap||w),S=YQ(e,n,i,f,T?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,CQ,bQ===n);var k;if(S!==0){var A=TZ(XZ);do A-=S,k=ZZ.children[A];while(k&&(_Z(k,`display`)===`none`||k===QZ))}if(S===0||k===n)return v(!1);bQ=n,xQ=S;var j=n.nextElementSibling,M=!1;M=S===1;var N=WQ($Z,t,XZ,r,n,i,e,M);if(N!==!1)return(N===1||N===-1)&&(M=N===1),DQ=!0,setTimeout(KQ,30),_(),M&&!j?t.appendChild(XZ):n.parentNode.insertBefore(XZ,M?j:n),D&&PZ(D,0,O-D.scrollTop),ZZ=XZ.parentNode,C!==void 0&&!CQ&&(wQ=Math.abs(C-xZ(n)[E])),y(),v(!0)}if(t.contains(XZ))return v(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){dZ(document,`mousemove`,this._onTouchMove),dZ(document,`touchmove`,this._onTouchMove),dZ(document,`pointermove`,this._onTouchMove),dZ(document,`dragover`,BQ),dZ(document,`mousemove`,BQ),dZ(document,`touchmove`,BQ)},_offUpEvents:function(){var e=this.el.ownerDocument;dZ(e,`mouseup`,this._onDrop),dZ(e,`touchend`,this._onDrop),dZ(e,`pointerup`,this._onDrop),dZ(e,`touchcancel`,this._onDrop),dZ(document,`selectstart`,this)},_onDrop:function(e){var t=this.el,n=this.options;if(aQ=TZ(XZ),sQ=TZ(XZ,n.draggable),JZ(`drop`,this,{evt:e}),ZZ=XZ&&XZ.parentNode,aQ=TZ(XZ),sQ=TZ(XZ,n.draggable),HQ.eventCanceled){this._nulling();return}uQ=!1,CQ=!1,SQ=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),e$(this.cloneId),e$(this._dragStartId),this.nativeDraggable&&(dZ(document,`drop`,this),dZ(t,`dragstart`,this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),oZ&&_Z(document.body,`user-select`,``),_Z(XZ,`transform`,``),e&&(yQ&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),QZ&&QZ.parentNode&&QZ.parentNode.removeChild(QZ),($Z===ZZ||lQ&&lQ.lastPutMode!==`clone`)&&nQ&&nQ.parentNode&&nQ.parentNode.removeChild(nQ),XZ&&(this.nativeDraggable&&dZ(XZ,`dragend`,this),GQ(XZ),XZ.style[`will-change`]=``,yQ&&!uQ&&gZ(XZ,lQ?lQ.options.ghostClass:this.options.ghostClass,!1),gZ(XZ,this.options.chosenClass,!1),YZ({sortable:this,name:`unchoose`,toEl:ZZ,newIndex:null,newDraggableIndex:null,originalEvent:e}),$Z===ZZ?aQ!==iQ&&aQ>=0&&(YZ({sortable:this,name:`update`,toEl:ZZ,originalEvent:e}),YZ({sortable:this,name:`sort`,toEl:ZZ,originalEvent:e})):(aQ>=0&&(YZ({rootEl:ZZ,name:`add`,toEl:ZZ,fromEl:$Z,originalEvent:e}),YZ({sortable:this,name:`remove`,toEl:ZZ,originalEvent:e}),YZ({rootEl:ZZ,name:`sort`,toEl:ZZ,fromEl:$Z,originalEvent:e}),YZ({sortable:this,name:`sort`,toEl:ZZ,originalEvent:e})),lQ&&lQ.save()),HQ.active&&((aQ==null||aQ===-1)&&(aQ=iQ,sQ=oQ),YZ({sortable:this,name:`end`,toEl:ZZ,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){JZ(`nulling`,this),$Z=XZ=ZZ=QZ=eQ=nQ=tQ=rQ=pQ=mQ=yQ=aQ=sQ=iQ=oQ=bQ=xQ=lQ=cQ=HQ.dragged=HQ.ghost=HQ.clone=HQ.active=null,OQ.forEach(function(e){e.checked=!0}),OQ.length=hQ=gQ=0},handleEvent:function(e){switch(e.type){case`drop`:case`dragend`:this._onDrop(e);break;case`dragenter`:case`dragover`:XZ&&(this._onDragOver(e),UQ(e));break;case`selectstart`:e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,i=n.length,a=this.options;r<i;r++)t=n[r],mZ(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||ZQ(t));return e},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(e,t){var i=r.children[t];mZ(i,this.options.draggable,r,!1)&&(n[e]=i)},this),t&&this.captureAnimationState(),e.forEach(function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return mZ(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var r=GZ.modifyOption(this,e,t);r===void 0?n[e]=t:n[e]=r,e===`group`&&LQ(n)},destroy:function(){JZ(`destroy`,this);var e=this.el;e[zZ]=null,dZ(e,`mousedown`,this._onTapStart),dZ(e,`touchstart`,this._onTapStart),dZ(e,`pointerdown`,this._onTapStart),this.nativeDraggable&&(dZ(e,`dragover`,this),dZ(e,`dragenter`,this)),Array.prototype.forEach.call(e.querySelectorAll(`[draggable]`),function(e){e.removeAttribute(`draggable`)}),this._onDrop(),this._disableDelayedDragEvents(),fQ.splice(fQ.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!rQ){if(JZ(`hideClone`,this),HQ.eventCanceled)return;_Z(nQ,`display`,`none`),this.options.removeCloneOnHide&&nQ.parentNode&&nQ.parentNode.removeChild(nQ),rQ=!0}},_showClone:function(e){if(e.lastPutMode!==`clone`){this._hideClone();return}if(rQ){if(JZ(`showClone`,this),HQ.eventCanceled)return;XZ.parentNode==$Z&&!this.options.group.revertClone?$Z.insertBefore(nQ,XZ):eQ?$Z.insertBefore(nQ,eQ):$Z.appendChild(nQ),this.options.group.revertClone&&this.animate(XZ,nQ),_Z(nQ,`display`,``),rQ=!1}}};function UQ(e){e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),e.cancelable&&e.preventDefault()}function WQ(e,t,n,r,i,a,o,s){var c,l=e[zZ],u=l.options.onMove,d;return window.CustomEvent&&!rZ&&!iZ?c=new CustomEvent(`move`,{bubbles:!0,cancelable:!0}):(c=document.createEvent(`Event`),c.initEvent(`move`,!0,!0)),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=i||t,c.relatedRect=a||xZ(t),c.willInsertAfter=s,c.originalEvent=o,e.dispatchEvent(c),u&&(d=u.call(l,c,o)),d}function GQ(e){e.draggable=!1}function KQ(){DQ=!1}function qQ(e,t,n){var r=xZ(CZ(n.el,0,n.options,!0)),i=RZ(n.el,n.options,QZ),a=10;return t?e.clientX<i.left-a||e.clientY<r.top&&e.clientX<r.right:e.clientY<i.top-a||e.clientY<r.bottom&&e.clientX<r.left}function JQ(e,t,n){var r=xZ(wZ(n.el,n.options.draggable)),i=RZ(n.el,n.options,QZ),a=10;return t?e.clientX>i.right+a||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+a||e.clientX>r.right&&e.clientY>r.top}function YQ(e,t,n,r,i,a,o,s){var c=r?e.clientY:e.clientX,l=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!o){if(s&&wQ<l*i){if(!SQ&&(xQ===1?c>u+l*a/2:c<d-l*a/2)&&(SQ=!0),SQ)f=!0;else if(xQ===1?c<u+wQ:c>d-wQ)return-xQ}else if(c>u+l*(1-i)/2&&c<d-l*(1-i)/2)return XQ(t)}return f||=o,f&&(c<u+l*a/2||c>d-l*a/2)?c>u+l/2?1:-1:0}function XQ(e){return TZ(XZ)<TZ(e)?1:-1}function ZQ(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function QQ(e){OQ.length=0;for(var t=e.getElementsByTagName(`input`),n=t.length;n--;){var r=t[n];r.checked&&OQ.push(r)}}function $Q(e){return setTimeout(e,0)}function e$(e){return clearTimeout(e)}kQ&&uZ(document,`touchmove`,function(e){(HQ.active||uQ)&&e.cancelable&&e.preventDefault()}),HQ.utils={on:uZ,off:dZ,css:_Z,find:yZ,is:function(e,t){return!!mZ(e,t,e,!1)},extend:kZ,throttle:MZ,closest:mZ,toggleClass:gZ,clone:FZ,index:TZ,nextTick:$Q,cancelNextTick:e$,detectDirection:PQ,getChild:CZ},HQ.get=function(e){return e[zZ]},HQ.mount=function(){var e=[...arguments];e[0].constructor===Array&&(e=e[0]),e.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw`Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;e.utils&&(HQ.utils=UX(UX({},HQ.utils),e.utils)),GZ.mount(e)})},HQ.create=function(e,t){return new HQ(e,t)},HQ.version=tZ;var t$=[],n$,r$,i$=!1,a$,o$,s$,c$;function l$(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)e.charAt(0)===`_`&&typeof this[e]==`function`&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?uZ(document,`dragover`,this._handleAutoScroll):this.options.supportPointer?uZ(document,`pointermove`,this._handleFallbackAutoScroll):t.touches?uZ(document,`touchmove`,this._handleFallbackAutoScroll):uZ(document,`mousemove`,this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?dZ(document,`dragover`,this._handleAutoScroll):(dZ(document,`pointermove`,this._handleFallbackAutoScroll),dZ(document,`touchmove`,this._handleFallbackAutoScroll),dZ(document,`mousemove`,this._handleFallbackAutoScroll)),d$(),u$(),NZ()},nulling:function(){s$=r$=n$=i$=c$=a$=o$=null,t$.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,i);if(s$=e,t||this.options.forceAutoScrollFallback||iZ||rZ||oZ){f$(e,this.options,a,t);var o=OZ(a,!0);i$&&(!c$||r!==a$||i!==o$)&&(c$&&d$(),c$=setInterval(function(){var a=OZ(document.elementFromPoint(r,i),!0);a!==o&&(o=a,u$()),f$(e,n.options,a,t)},10),a$=r,o$=i)}else{if(!this.options.bubbleScroll||OZ(a,!0)===bZ()){u$();return}f$(e,this.options,OZ(a,!1),!1)}}},KX(e,{pluginName:`scroll`,initializeByDefault:!0})}function u$(){t$.forEach(function(e){clearInterval(e.pid)}),t$=[]}function d$(){clearInterval(c$)}var f$=MZ(function(e,t,n,r){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,o=t.scrollSensitivity,s=t.scrollSpeed,c=bZ(),l=!1,u;r$!==n&&(r$=n,u$(),n$=t.scroll,u=t.scrollFn,n$===!0&&(n$=OZ(n,!0)));var d=0,f=n$;do{var p=f,m=xZ(p),g=m.top,_=m.bottom,v=m.left,y=m.right,b=m.width,x=m.height,S=void 0,C=void 0,w=p.scrollWidth,T=p.scrollHeight,E=_Z(p),D=p.scrollLeft,O=p.scrollTop;p===c?(S=b<w&&(E.overflowX===`auto`||E.overflowX===`scroll`||E.overflowX===`visible`),C=x<T&&(E.overflowY===`auto`||E.overflowY===`scroll`||E.overflowY===`visible`)):(S=b<w&&(E.overflowX===`auto`||E.overflowX===`scroll`),C=x<T&&(E.overflowY===`auto`||E.overflowY===`scroll`));var k=S&&(Math.abs(y-i)<=o&&D+b<w)-(Math.abs(v-i)<=o&&!!D),A=C&&(Math.abs(_-a)<=o&&O+x<T)-(Math.abs(g-a)<=o&&!!O);if(!t$[d])for(var j=0;j<=d;j++)t$[j]||(t$[j]={});(t$[d].vx!=k||t$[d].vy!=A||t$[d].el!==p)&&(t$[d].el=p,t$[d].vx=k,t$[d].vy=A,clearInterval(t$[d].pid),(k!=0||A!=0)&&(l=!0,t$[d].pid=setInterval(function(){r&&this.layer===0&&HQ.active._onTouchMove(s$);var t=t$[this.layer].vy?t$[this.layer].vy*s:0,n=t$[this.layer].vx?t$[this.layer].vx*s:0;typeof u==`function`&&u.call(HQ.dragged.parentNode[zZ],n,t,e,s$,t$[this.layer].el)!==`continue`||PZ(t$[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=OZ(f,!1)));i$=l}},30),p$=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var c=n||i;o();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(l.clientX,l.clientY);s(),c&&!c.el.contains(u)&&(a(`spill`),this.onSpill({dragEl:r,putSortable:n}))}};function m$(){}m$.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=CZ(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:p$},KX(m$,{pluginName:`revertOnSpill`});function h$(){}h$.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:p$},KX(h$,{pluginName:`removeOnSpill`});var g$=[],_$=[],v$,y$,b$=!1,x$=!1,S$=!1,C$,w$,T$;function E$(){function e(e){for(var t in this)t.charAt(0)===`_`&&typeof this[t]==`function`&&(this[t]=this[t].bind(this));e.options.avoidImplicitDeselect||(e.options.supportPointer?uZ(document,`pointerup`,this._deselectMultiDrag):(uZ(document,`mouseup`,this._deselectMultiDrag),uZ(document,`touchend`,this._deselectMultiDrag))),uZ(document,`keydown`,this._checkKeyDown),uZ(document,`keyup`,this._checkKeyUp),this.defaults={selectedClass:`sortable-selected`,multiDragKey:null,avoidImplicitDeselect:!1,setData:function(t,n){var r=``;g$.length&&y$===e?g$.forEach(function(e,t){r+=(t?`, `:``)+e.textContent}):r=n.textContent,t.setData(`Text`,r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){C$=e.dragEl},delayEnded:function(){this.isMultiDrag=~g$.indexOf(C$)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<g$.length;r++)_$.push(FZ(g$[r])),_$[r].sortableIndex=g$[r].sortableIndex,_$[r].draggable=!1,_$[r].style[`will-change`]=``,gZ(_$[r],this.options.selectedClass,!1),g$[r]===C$&&gZ(_$[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,i=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||g$.length&&y$===t&&(O$(!0,n),r(`clone`),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(O$(!1,n),_$.forEach(function(e){_Z(e,`display`,``)}),t(),T$=!1,r())},hideClone:function(e){var t=this;e.sortable;var n=e.cloneNowHidden,r=e.cancel;this.isMultiDrag&&(_$.forEach(function(e){_Z(e,`display`,`none`),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)}),n(),T$=!0,r())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&y$&&y$.multiDrag._deselectMultiDrag(),g$.forEach(function(e){e.sortableIndex=TZ(e)}),g$=g$.sort(function(e,t){return e.sortableIndex-t.sortableIndex}),S$=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){g$.forEach(function(e){e!==C$&&_Z(e,`position`,`absolute`)});var r=xZ(C$,!1,!0,!0);g$.forEach(function(e){e!==C$&&IZ(e,r)}),x$=!0,b$=!0}n.animateAll(function(){x$=!1,b$=!1,t.options.animation&&g$.forEach(function(e){LZ(e)}),t.options.sort&&k$()})}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;x$&&~g$.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;g$.length>1&&(g$.forEach(function(e){r.addAnimationState({target:e,rect:x$?xZ(e):i}),LZ(e),e.fromRect=i,t.removeAnimationState(e)}),x$=!1,D$(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,i=e.activeSortable,a=e.parentEl,o=e.putSortable,s=this.options;if(r){if(n&&i._hideClone(),b$=!1,s.animation&&g$.length>1&&(x$||!n&&!i.options.sort&&!o)){var c=xZ(C$,!1,!0,!0);g$.forEach(function(e){e!==C$&&(IZ(e,c),a.appendChild(e))}),x$=!0}if(!n)if(x$||k$(),g$.length>1){var l=T$;i._showClone(t),i.options.animation&&!T$&&l&&_$.forEach(function(e){i.addAnimationState({target:e,rect:w$}),e.fromRect=w$,e.thisAnimationDuration=null})}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(g$.forEach(function(e){e.thisAnimationDuration=null}),r.options.animation&&!n&&r.multiDrag.isMultiDrag){w$=KX({},t);var i=vZ(C$,!0);w$.top-=i.f,w$.left-=i.e}},dragOverAnimationComplete:function(){x$&&(x$=!1,k$())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,i=e.sortable,a=e.dispatchSortableEvent,o=e.oldIndex,s=e.putSortable,c=s||this.sortable;if(t){var l=this.options,u=r.children;if(!S$)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),gZ(C$,l.selectedClass,!~g$.indexOf(C$)),~g$.indexOf(C$))g$.splice(g$.indexOf(C$),1),v$=null,KZ({sortable:i,rootEl:n,name:`deselect`,targetEl:C$,originalEvent:t});else{if(g$.push(C$),KZ({sortable:i,rootEl:n,name:`select`,targetEl:C$,originalEvent:t}),t.shiftKey&&v$&&i.el.contains(v$)){var d=TZ(v$),f=TZ(C$);if(~d&&~f&&d!==f){var p,m;for(f>d?(m=d,p=f):(m=f,p=d+1);m<p;m++)~g$.indexOf(u[m])||(gZ(u[m],l.selectedClass,!0),g$.push(u[m]),KZ({sortable:i,rootEl:n,name:`select`,targetEl:u[m],originalEvent:t}))}}else v$=C$;y$=c}if(S$&&this.isMultiDrag){if(x$=!1,(r[zZ].options.sort||r!==n)&&g$.length>1){var g=xZ(C$),_=TZ(C$,`:not(.`+this.options.selectedClass+`)`);if(!b$&&l.animation&&(C$.thisAnimationDuration=null),c.captureAnimationState(),!b$&&(l.animation&&(C$.fromRect=g,g$.forEach(function(e){if(e.thisAnimationDuration=null,e!==C$){var t=x$?xZ(e):g;e.fromRect=t,c.addAnimationState({target:e,rect:t})}})),k$(),g$.forEach(function(e){u[_]?r.insertBefore(e,u[_]):r.appendChild(e),_++}),o===TZ(C$))){var v=!1;g$.forEach(function(e){if(e.sortableIndex!==TZ(e)){v=!0;return}}),v&&(a(`update`),a(`sort`))}g$.forEach(function(e){LZ(e)}),c.animateAll()}y$=c}(n===r||s&&s.lastPutMode!==`clone`)&&_$.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)})}},nullingGlobal:function(){this.isMultiDrag=S$=!1,_$.length=0},destroyGlobal:function(){this._deselectMultiDrag(),dZ(document,`pointerup`,this._deselectMultiDrag),dZ(document,`mouseup`,this._deselectMultiDrag),dZ(document,`touchend`,this._deselectMultiDrag),dZ(document,`keydown`,this._checkKeyDown),dZ(document,`keyup`,this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(S$!==void 0&&S$)&&y$===this.sortable&&!(e&&mZ(e.target,this.options.draggable,this.sortable.el,!1))&&!(e&&e.button!==0))for(;g$.length;){var t=g$[0];gZ(t,this.options.selectedClass,!1),g$.shift(),KZ({sortable:this.sortable,rootEl:this.sortable.el,name:`deselect`,targetEl:t,originalEvent:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},KX(e,{pluginName:`multiDrag`,utils:{select:function(e){var t=e.parentNode[zZ];!t||!t.options.multiDrag||~g$.indexOf(e)||(y$&&y$!==t&&(y$.multiDrag._deselectMultiDrag(),y$=t),gZ(e,t.options.selectedClass,!0),g$.push(e))},deselect:function(e){var t=e.parentNode[zZ],n=g$.indexOf(e);!t||!t.options.multiDrag||!~n||(gZ(e,t.options.selectedClass,!1),g$.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return g$.forEach(function(r){t.push({multiDragElement:r,index:r.sortableIndex});var i=x$&&r!==C$?-1:x$?TZ(r,`:not(.`+e.options.selectedClass+`)`):TZ(r);n.push({multiDragElement:r,index:i})}),{items:YX(g$),clones:[].concat(_$),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),e===`ctrl`?e=`Control`:e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function D$(e,t){g$.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function O$(e,t){_$.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function k$(){g$.forEach(function(e){e!==C$&&e.parentNode&&e.parentNode.removeChild(e)})}HQ.mount(new l$),HQ.mount(h$,m$);var A$={pageModePanel:`PageModePanel`,stampPanel:`StampPanel`},j$={stylePanel:`StylePanel`,leftPanel:`LeftPanel`,rightPanel:`RightPanel`,linkPanel:`LinkPanel`,colorSeparationPanel:`ColorSeparationPanel`,contentEditorPanel:`ContentEditorPanel`,redactionPanel:`RedactionPanel`},M$={class:`colors-container`},N$={key:0,class:`cell-container`},P$=[`onClick`],F$={class:`color-picker`},I$=B({__name:`ColorContainer`,props:{propertyColor:{type:String},colors:{type:Array,default:()=>[`rgb(100, 188, 56)`,`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`]},noColor:{type:Boolean,default:!1},to:{type:String,default:`.style-panel`}},emits:[`setActiveColor`],setup(e,{emit:t}){let n=e,r=t,i=J(`rgb(0, 0, 0)`),a=e=>{_w(e,n.propertyColor)||r(`setActiveColor`,e)},o=e=>{_w(e,n.propertyColor)||a(e)},s=e=>{i.value=e};return(t,n)=>{let r=_x;return S(),V(`div`,M$,[e.noColor?(S(),V(`span`,N$,[c(`span`,{class:D([`cell-outer`,{active:!e.propertyColor}]),onClick:n[0]||=e=>a(``)},[x(r)],2)])):b(``,!0),(S(!0),V(q,null,z(e.colors,(t,n)=>(S(),V(`span`,{class:`cell-container`,key:n},[c(`span`,{class:D([`cell-outer`,{active:K(_w)(e.propertyColor,t)}]),onClick:e=>a(t)},[c(`span`,{class:`cell`,style:A({backgroundColor:t})},null,4)],10,P$)]))),128)),c(`div`,F$,[c(`div`,{class:D([`preview-container`,{active:e.propertyColor===i.value}])},[c(`div`,{class:`preview`,onClick:n[1]||=e=>a(i.value),style:A({backgroundColor:i.value})},null,4)],2),x(K(gv),{to:e.to,onComplete:o,"onUpdate:value":s,value:i.value,"show-alpha":!1},{label:G(()=>[...n[2]||=[c(`img`,{src:``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,alt:`colorPicker`},null,-1)]]),_:1},8,[`to`,`value`])])])}}},[[`__scopeId`,`data-v-b6d61687`]]),L$={class:`style-panel property-panel annotation-panel`},R$={class:`sidebar-title`},z$={class:`edit-container`},B$={key:0,class:`color`},V$={class:`color-title subtitle`},H$={key:1,class:`opacity`},U$={class:`subtitle`},W$={class:`tool`},G$={key:2,class:`color`},K$={class:`color-title subtitle`},q$={key:3,class:`line-style`},J$={class:`line-style-title subtitle`},Y$={key:4,class:`border-width`},X$={class:`subtitle`},Z$={class:`tool slider`},Q$={key:5,class:`border-text-opacity`},$$={class:`subtitle`},e1={class:`tool slider`},t1={key:6,class:`line-style`},n1={class:`line-style-title subtitle`},r1={class:`block`},i1={class:`line-select`},a1={class:`solid`},o1={class:`line-select`},s1={class:`solid`},c1={key:7,class:`arrow-style`},l1={class:`subtitle`},u1={class:`content-block`},d1={key:8,class:`color`},f1={class:`color-title subtitle`},p1={key:9,class:`text font-style`},m1={class:`text-title subtitle`},h1={class:`content-block`},g1={key:10,class:`text-align`},_1={class:`border`},v1={class:`border`},y1={key:11,class:`note`},b1={class:`subtitle`},x1={key:12},S1={class:`subtitle`},C1={class:`tool slider`},w1={class:`subtitle`},T1={__name:`StylePanel`,setup(e){let t=ye(),n=fw(),r=T(()=>t.isElementOpen(H.STYLE_PANEL)),i=T(()=>t.getCustomFonts),a=T(()=>n.getActiveTool),{t:o}=It(),l={fontName:`Helvetica`,fontStyle:`normal`,fontSize:14,textAlignment:`left`,color:`rgb(0, 0, 0)`,borderWidth:0,borderColor:`rgb(0, 0, 0)`,opacity:1,fillColor:``,borderStyle:`solid`,dashes:2,head:`openarrow`,tail:`openarrow`,contents:``,size:12},u=J({...l}),f={fontName:``,fontStyle:``,fontSize:``,textAlignment:``,color:``,borderWidth:``,borderColor:``,opacity:``,fillColor:``,fillTransparency:``,borderStyle:``,dashes:0,head:``,tail:``,size:``},p=(e,t)=>e===null?typeof f[t]==`number`?0:typeof f[t]==`string`?`-`:e:e===void 0?f[t]:e,m=(e,t=0)=>e===`-`?t:e,g=J(``),_=J(``),v=T(()=>[L.FREETEXT,`text`].includes(g.value)?[`rgb(0, 0, 0)`,`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`]:[`rgb(100, 188, 56)`,`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`]),y=T(()=>[L.FREETEXT,L.CALLOUT].includes(g.value)?[`rgb(0, 0, 0)`,`rgb(255, 0, 0)`,`rgb(255, 236, 102)`]:[`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`]),C=T(()=>[L.FREETEXT,L.CALLOUT].includes(g.value)?[`rgb(0, 0, 0)`,`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`]:[`rgb(100, 188, 56)`,`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`]),w=[2,4,6,8,10].map(e=>({label:`${e} pt`,value:e})),E=e=>e===`-`?{label:`-`,value:e}:{label:e+` pt`,value:e};U.addEvent(`LoadFont`,e=>{let n=e.fontFamily;t.setCustomFonts(n)}),W(()=>i.value,e=>{ee.value=O(e)},{deep:!0});let O=e=>{if(e.length)return e.map(e=>({label:e.fontFamily,value:e.fontName}))},k=[{label:sL,value:`solid`},{label:GI,value:`dashed-4-4`},{label:rL,value:`dashed-6-6`},{label:LI,value:`dashed-10-10`},{label:YI,value:`dashed-6-2-1-2`},{label:$I,value:`dashed-6-2-2-2`},{label:VI,value:`dashed-2-2-10-2`}],A=[{label:sL,value:`solid`},{label:GI,value:`dashed-4-4`},{label:rL,value:`dashed-6-6`},{label:LI,value:`dashed-10-10`},{label:YI,value:`dashed-6-2-1-2`},{label:$I,value:`dashed-6-2-2-2`},{label:VI,value:`dashed-2-2-10-2`},{label:kI,value:`cloudy-1`},{label:NI,value:`cloudy-2`}],j=[{label:GP,value:`none`},{label:TP,value:`openarrow`},{label:LP,value:`closedarrow`},{label:sF,value:`square`},{label:NP,value:`circle`},{label:VP,value:`diamond`},{label:kP,value:`butt`},{label:$P,value:`ropenarrow`},{label:YP,value:`rclosedarrow`},{label:rF,value:`slash`}],M=e=>typeof e.label==`string`?e.label:[Y(e.label,{style:{verticalAlign:`middle`}})],N=e=>typeof e.label==`string`?e.label:[Y(e.label,{style:{verticalAlign:`-0.15em`}})],P=e=>typeof e.label==`string`?e.label:[Y(e.label,{style:{verticalAlign:`-0.15em`,transform:`scaleX(-1)`}})],ee=J([]);ee.value=O(i.value);let F=T(()=>[{label:o(`common.fontStyles.regular`),value:`normal`},{label:o(`common.fontStyles.bold`),value:`bold`},{label:o(`common.fontStyles.boldOblique`),value:`boldOblique`},{label:o(`common.fontStyles.oblique`),value:`oblique`}]),te=[{label:`25%`,value:.25},{label:`50%`,value:.5},{label:`75%`,value:.75},{label:`100%`,value:1}],I=e=>e===`-`?{label:`-`,value:e}:{label:Math.round(e*100)+`%`,value:e},z=e=>e===`-`?{label:`-`,value:e}:{label:Math.round(e*100)+`%`,value:e},ne=[6,8,10,12,14,16,20,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72].map(e=>({label:`${e} pt`,value:e})),re=e=>e===`-`?{label:`-`,value:e}:{label:e+` pt`,value:e},ie=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18].map(e=>({label:`${e} pt`,value:e})),B=e=>e===`-`?{label:`-`,value:e}:{label:e+` pt`,value:e},ae=J(`partial`),oe=T(()=>[{label:o(`panels.eraser.partialErase`),value:`partial`},{label:o(`panels.eraser.eraseAll`),value:`whole`}]),se=e=>e===`-`?{label:`-`,value:e}:{label:e,value:e},ce=()=>{u.value.borderWidth!==`-`&&Pe({borderWidth:u.value.borderWidth})},le=()=>{u.value.opacity!==`-`&&Pe({opacity:u.value.opacity})},ue=()=>{u.value.fillTransparency!==`-`&&Pe({fillTransparency:u.value.fillTransparency})},de=e=>{e!==null&&(u.value.dashes=Math.round(e),Pe({dashes:`${u.value.dashes},${u.value.dashes}`}))},fe=e=>e===``?2:Number.parseInt(e),pe=e=>e===null||e===0?`-`:e+` pt`,me=()=>{u.value.size!==`-`&&Pe({size:u.value.size})},he=()=>{U.setEraseMode(ae.value)};W(()=>r.value,e=>{if(e&&!ke.length){t.closeElement(H.PAGE_MODE_PANEL),we();let e=U.getEraseMode();e&&(ae.value=e)}}),W(()=>u.value.fontName,e=>{!e||e===`-`||Pe({fontName:e})}),W(()=>u.value.fontStyle,e=>{if(!e||e===`-`)return;let t=/bold/i.test(e)?`bold`:`normal`;Pe({fontStyle:/(oblique|italic)/i.test(e)?`oblique`:`normal`,fontWeight:t})}),W(()=>u.value.fontSize,e=>{e!==void 0&&typeof e==`number`&&Pe({fontSize:u.value.fontSize})}),W(()=>u.value.head,e=>{!e||e===`-`||![L.LINE,`arrow`,`lineMeasurement`].includes(g.value)||Pe({head:e})}),W(()=>u.value.tail,e=>{!e||e===`-`||![L.LINE,`arrow`,`lineMeasurement`].includes(g.value)||Pe({tail:e})}),W(()=>u.value.borderStyle,e=>{!e||e===`-`||![L.FREETEXT,L.CALLOUT].includes(g.value)&&be(e)});let ge=(e,t)=>{u.value[e]=t,Pe({[e]:t})},_e=e=>{u.value.textAlignment=e,Pe({textAlignment:u.value.textAlignment})},ve=e=>{u.value.borderStyle=e,u.value.borderStyle===`dashed`?Pe({borderStyle:e,dashes:`${u.value.dashes},${u.value.dashes}`}):Pe({borderStyle:e})},be=e=>{let t=e.split(`-`),n=t.shift();ke.length&&![L.FREETEXT,L.CALLOUT].includes(ke[0].type)||a.value!==L.FREETEXT&&a.value!==L.CALLOUT?Pe(n===`dashed`?{borderStyle:n,dashes:t.join(`,`)}:n===`cloudy`?{borderStyle:n,intensity:t.join(`,`)}:{borderStyle:e}):Pe({borderStyle:n})},xe=()=>{let e=U.getDocumentViewer().annotationHistoryManager,t=ke.length>1&&e&&!e.isInProgress();t&&e.beginBatchOperation(),ke.forEach(e=>U.getAnnotationManager()?.setNoteContents(e,u.value.contents)),t&&e.endBatchOperation()},Se=null,Ce=()=>{clearTimeout(Se),Se=setTimeout(()=>{xe()},500)},we=(e,t)=>{let n=t||e||a.value;if(!n){Fe();return}let r=U.getToolStyles(n);if(Te(void 0,n),De(),r){let e=`solid`,t=`2,2`;if(r.borderStyle===`dashed`?e=`dashed-${r.dashes.split(`,`).join(`-`)}`:r.borderStyle===`cloudy`&&(e=`cloudy-${r.intensity}`),[L.FREETEXT,L.CALLOUT].includes(n)&&(e=r.borderStyle,t=(r.dashes||`2,2`).split(`,`)[0]),u.value={...r,borderStyle:e,dashes:t},r.dashes){let e=Number(r.dashes.split(`,`)[0].trim());u.value.dashes=e}}else Fe()};U.addEvent(`toolChanged`,we);let Te=(e,t)=>{g.value=(e?.measure?e.type+`Measurement`:e?.type||``)||t||a.value},Ee=e=>{if(!e||e.type!==L.LINE)return!1;let t=e.getStartStyle?.()||e.head,n=e.getEndStyle?.()||e.tail;return!!(t&&t!==`none`||n&&n!==`none`)},q=e=>g.value===`text`?`note`:Ee(e)?`arrow`:e.borderStyle===`cloudy`?`cloudy`:g.value===`stamp`&&(e.stampType===`image`||e.annotation?.stampType===`image`)?`image`:g.value,De=e=>{g.value?g.value.includes(`Measurement`)?_.value=o(`panels.measurement.appearance`):e?_.value=o(`toolbar.annotationTools.${q(e)}`):_.value=o(`toolbar.annotationTools.${g.value}`):_.value=``},Oe=e=>{if(Te(e),De(e),u.value={fontName:p(e.fontName===void 0?l.fontName:e.fontName,`fontName`),textAlignment:p(e.textAlignment===void 0?l.textAlignment:e.textAlignment,`textAlignment`),color:p(e.color===void 0?l.color:e.color,`color`),borderStyle:p(e.borderStyle===void 0?l.borderStyle:e.borderStyle,`borderStyle`),borderWidth:p(e.borderWidth===void 0?l.borderWidth:e.borderWidth,`borderWidth`),borderColor:p(e.borderColor===void 0?l.borderColor:e.borderColor,`borderColor`),opacity:p(e.opacity===void 0?l.opacity:e.opacity,`opacity`),fillColor:p(e.fillColor===void 0?l.fillColor:e.fillColor,`fillColor`),fillTransparency:p(e.fillTransparency===void 0?l.fillTransparency:e.fillTransparency,`fillTransparency`),dashes:p(e.dashes===void 0?l.dashes:e.dashes,`dashes`),contents:p(e.contents===void 0?l.contents:e.contents,`contents`),fontSize:p(e.fontSize===void 0?l.fontSize:e.fontSize,`fontSize`)},e.borderStyle&&![L.FREETEXT,L.CALLOUT].includes(e.type)&&(e.borderStyle===`solid`?u.value.borderStyle=`solid`:e.borderStyle===`dashed`?u.value.borderStyle=`dashed-`+(e.dashes||`4,4`).split(`,`).join(`-`):u.value.borderStyle=e.borderStyle+`-`+e.intensity),[L.FREETEXT,L.CALLOUT].includes(e.type)&&(e.borderStyle===`dashed`?u.value.borderStyle=`dashed`:u.value.borderStyle=`solid`,e.dashes&&(u.value.dashes=Number(e.dashes.split(`,`)[0].trim()))),e.type===L.LINE){let t=e.getStartStyle?.()||e.head,n=e.getEndStyle?.()||e.tail;u.value.head=p(t===void 0?l.head:t,`head`),u.value.tail=p(n===void 0?l.tail:n,`tail`)}[`highlight`,`underline`,`squiggly`,`strikeout`,`markup`].includes(e.type)&&e.color&&(u.value.borderColor=e.color);let t=e.fontWeight,n=e.fontStyle;t===null||n===null?u.value.fontStyle=`-`:(t||`normal`)===`bold`&&(n||`normal`)===`oblique`?u.value.fontStyle=`boldOblique`:(t||`normal`)===`bold`?u.value.fontStyle=`bold`:(n||`normal`)===`oblique`?u.value.fontStyle=`oblique`:u.value.fontStyle=`normal`},ke=[],Ae=[`highlight`,`underline`,`squiggly`,`strikeout`];U.addEvent(`annotationSelected`,e=>{if(ke=e,e.length===1){Oe(e[0]);return}new Set(e.map(e=>Ae.includes(e.annotation.type)?`markup`:e.annotation.type)).size===1&&Oe(Ie(e))});let je=e=>{ke=U.getDocumentViewer().getAnnotationManager().getSelectedAnnotations(),!(e.length===1&&ke[0]&&e[0].name!==ke[0].name)&&(we(),Fe())},Ne=null;U.addEvent(`annotationDeselected`,je),U.addEvent(`annotationChanged`,(e,t)=>{e=Array.isArray(e)?e[0]:e,t===`modify`&&ke.some(t=>t===e)&&(Ne&&cancelAnimationFrame(Ne),Ne=requestAnimationFrame(()=>{Ne=null,ke.length===1?Oe(ke[0]):ke.length>1&&Oe(Ie(ke))}))});let Pe=e=>{if(e)if(ke.length){let t=ke.length===1?ke[0]:Ie(ke),n={};Object.keys(e).forEach(r=>{e[r]!==t[r]&&t[r]!==void 0&&(n[r]=e[r])});let r=t=>{if(e.head||e.tail){let n=t.getStartStyle?.(),r=t.getEndStyle?.();e.head&&e.head!==n&&t.setStartStyle?.(e.head),e.tail&&e.tail!==r&&t.setEndStyle?.(e.tail)}Object.keys(n).length>0&&U.setAnnotationStyles(t,n)},i=U.getDocumentViewer().annotationHistoryManager,a=ke.length>1&&i&&!i.isInProgress();a&&i.beginBatchOperation(),ke.forEach(r),a&&i.endBatchOperation()}else a.value&&U.setToolStyles(a.value,e)},Fe=()=>{t.closeElement(H.STYLE_PANEL)},Ie=e=>{if(e.length===0)return{};let t=e.map(e=>e.annotation),n=t[0],r={};for(let e in n){let i=n[e];e===`type`&&Ae.includes(i)&&(i=`markup`),r[e]=t.every(t=>{let n=t[e];return e===`type`&&Ae.includes(n)&&(n=`markup`),n===i})?i:null}return r};return(e,t)=>{let n=I$,r=nw,i=$b,a=Yb,o=Gb,l=Vb;return S(),V(`div`,L$,[c(`div`,R$,d(_.value),1),c(`div`,z$,[K(u)?.fillColor!==void 0&&[K(L).FREETEXT,K(L).CALLOUT,`circle`,`polygon`,`cloudy`,K(L).RECTANGLE,`square`,`circleMeasurement`,`polygonMeasurement`,`rectangleMeasurement`].includes(g.value)?(S(),V(`div`,B$,[c(`div`,V$,d(e.$t(`panels.freeText.fillColor`)),1),x(n,{colors:y.value,propertyColor:K(u).fillColor,noColor:!0,onSetActiveColor:t[0]||=e=>ge(`fillColor`,e)},null,8,[`colors`,`propertyColor`])])):b(``,!0),K(u)?.fillTransparency!==void 0&&[`circle`,`polygon`,`cloudy`,K(L).RECTANGLE,`square`,`circleMeasurement`,`polygonMeasurement`,`rectangleMeasurement`].includes(g.value)?(S(),V(`div`,H$,[c(`div`,U$,d(e.$t(`panels.measurement.fillOpacity`)),1),c(`div`,W$,[x(K(xb),{value:m(K(u).fillTransparency),tooltip:!1,step:.1,max:1,min:0,class:`width-slider`,"on-dragend":ue,"onUpdate:value":t[1]||=e=>K(u).fillTransparency=e},{thumb:G(()=>[x(r)]),_:1},8,[`value`]),x(K(kv),{value:K(u).fillTransparency,"onUpdate:value":[t[2]||=e=>K(u).fillTransparency=e,ue],"fallback-option":z,options:te,to:`.style-panel`},{arrow:G(()=>[x(i)]),_:1},8,[`value`])])])):b(``,!0),K(u)?.borderColor!==void 0&&![`text`,`stamp`,`image`,`highlight`,`underline`,`squiggly`,`strikeout`,`markup`].includes(g.value)?(S(),V(`div`,G$,[c(`div`,K$,d([K(L).FREETEXT,K(L).CALLOUT].includes(g.value)?e.$t(`panels.freeText.borderColor`):e.$t(`panels.measurement.lineColor`)),1),x(n,{colors:C.value,propertyColor:K(u).borderColor,onSetActiveColor:t[3]||=e=>ge(`borderColor`,e)},null,8,[`colors`,`propertyColor`])])):b(``,!0),K(u)?.borderStyle!==void 0&&[K(L).LINE,`arrow`,`circle`,`polyline`,`square`,`polygon`,`cloudy`,`lineMeasurement`,`polylineMeasurement`,`circleMeasurement`,`polygonMeasurement`,`rectangleMeasurement`].includes(g.value)?(S(),V(`div`,q$,[c(`div`,J$,d(e.$t(`panels.measurement.lineStyle`)),1),c(`div`,null,[[K(L).LINE,`arrow`,`circle`,`polyline`,`lineMeasurement`,`polylineMeasurement`,`circleMeasurement`,`polygonMeasurement`,`rectangleMeasurement`].includes(g.value)?(S(),s(K(kv),{key:0,value:K(u).borderStyle,"onUpdate:value":t[4]||=e=>K(u).borderStyle=e,options:k,to:`.style-panel`,class:`line-style`,"render-label":M,"fallback-option":se},{arrow:G(()=>[x(i)]),_:1},8,[`value`])):(S(),s(K(kv),{key:1,value:K(u).borderStyle,"onUpdate:value":t[5]||=e=>K(u).borderStyle=e,options:A,to:`.style-panel`,class:`line-style`,"render-label":M,"fallback-option":se},{arrow:G(()=>[x(i)]),_:1},8,[`value`]))])])):b(``,!0),K(u)?.borderWidth!==void 0&&![`highlight`,`underline`,`squiggly`,`strikeout`,`markup`,`text`,`stamp`,`image`].includes(g.value)?(S(),V(`div`,Y$,[c(`div`,X$,d(g.value.includes(`Measurement`)?e.$t(`panels.measurement.lineWidth`):e.$t(`panels.freeText.borderWidth`)),1),c(`div`,Z$,[x(K(xb),{keyboard:!1,value:m(K(u).borderWidth),tooltip:!1,step:1,max:10,min:+![K(L).FREETEXT,K(L).CALLOUT].includes(g.value),class:`width-slider`,"on-dragend":ce,"onUpdate:value":t[6]||=e=>K(u).borderWidth=e},{thumb:G(()=>[x(r)]),_:1},8,[`value`,`min`]),x(K(kv),{value:K(u).borderWidth,"onUpdate:value":[t[7]||=e=>K(u).borderWidth=e,ce],"fallback-option":E,options:K(w),to:`.style-panel`},{arrow:G(()=>[x(i)]),_:1},8,[`value`,`options`])])])):b(``,!0),K(u)?.opacity!==void 0&&![`stamp`,`eraser`].includes(g.value)?(S(),V(`div`,Q$,[c(`div`,$$,d([`text`,K(L).FREETEXT,`highlight`,`underline`,`squiggly`,`strikeout`,`markup`].includes(g.value)?e.$t(`common.uiElements.opacity`):g.value.includes(`Measurement`)?e.$t(`panels.measurement.lineTextOpacity`):e.$t(`panels.measurement.lineOpacity`)),1),c(`div`,e1,[x(K(xb),{value:m(K(u).opacity),tooltip:!1,step:.01,max:1,min:0,class:`width-slider`,"on-dragend":le,"onUpdate:value":t[8]||=e=>K(u).opacity=e},{thumb:G(()=>[x(r)]),_:1},8,[`value`]),x(K(kv),{value:K(u).opacity,"onUpdate:value":[t[9]||=e=>K(u).opacity=e,le],"fallback-option":I,options:te,to:`.style-panel`},{arrow:G(()=>[x(i)]),_:1},8,[`value`])])])):b(``,!0),K(u)?.borderStyle!==void 0&&[K(L).FREETEXT,K(L).CALLOUT].includes(g.value)?(S(),V(`div`,t1,[c(`div`,n1,d(e.$t(`panels.measurement.lineStyle`)),1),c(`div`,r1,[c(`div`,i1,[c(`div`,{class:D([`checkbox`,{active:K(u).borderStyle===`solid`}]),onClick:t[10]||=e=>ve(`solid`)},[R(c(`div`,a1,null,512),[[Re,K(u).borderStyle===`solid`]])],2),t[26]||=c(`div`,{class:`solid-line`},null,-1)]),t[28]||=c(`div`,null,null,-1),c(`div`,o1,[c(`div`,{class:D([`checkbox`,{active:K(u).borderStyle===`dashed`}]),onClick:t[11]||=e=>ve(`dashed`)},[R(c(`div`,s1,null,512),[[Re,K(u).borderStyle===`dashed`]])],2),t[27]||=c(`div`,{class:`dashed-line`},null,-1)]),x(K(gb),{value:K(u).dashes,"onUpdate:value":[t[12]||=e=>K(u).dashes=e,de],placeholder:`2 pt`,min:`1`,max:`10`,step:1,parse:fe,format:pe,"update-value-on-input":!1,disabled:K(u).borderStyle!==`dashed`},{"minus-icon":G(()=>[c(`div`,{class:D([`arrow down`,{disabled:K(u).borderStyle!==`dashed`}])},null,2)]),"add-icon":G(()=>[c(`div`,{class:D([`arrow up`,{disabled:K(u).borderStyle!==`dashed`}])},null,2)]),_:1},8,[`value`,`disabled`])])])):b(``,!0),[`lineMeasurement`,K(L).LINE].includes(g.value)?(S(),V(`div`,c1,[c(`div`,l1,d(e.$t(`panels.measurement.lineStart`))+` & `+d(e.$t(`panels.measurement.lineEnd`)),1),c(`div`,u1,[x(K(kv),{value:K(u).head,"onUpdate:value":t[13]||=e=>K(u).head=e,"fallback-option":se,options:j,to:`.style-panel`,class:`font-style-select`,"render-label":N},{arrow:G(()=>[x(i)]),_:1},8,[`value`]),x(K(kv),{value:K(u).tail,"onUpdate:value":t[14]||=e=>K(u).tail=e,"fallback-option":se,options:j,to:`.style-panel`,class:`font-size-select`,"render-label":P},{arrow:G(()=>[x(i)]),_:1},8,[`value`])])])):b(``,!0),K(u)?.color!==void 0&&([K(L).FREETEXT,`text`,`highlight`,`underline`,`squiggly`,`strikeout`,`markup`].includes(g.value)||g.value.includes(`Measurement`))?(S(),V(`div`,d1,[c(`div`,f1,d(e.$t(`panels.freeText.fontColor`)),1),x(n,{colors:v.value,propertyColor:K(u).color,onSetActiveColor:t[15]||=e=>ge(`color`,e)},null,8,[`colors`,`propertyColor`])])):b(``,!0),K(u)?.fontName!==void 0&&K(u)?.fontStyle!==void 0&&K(u)?.fontSize!==void 0&&(g.value===K(L).FREETEXT||g.value.includes(`Measurement`))?(S(),V(`div`,p1,[c(`div`,m1,d(e.$t(`panels.freeText.fontStyle`)),1),x(K(kv),{value:K(u).fontName,"onUpdate:value":t[16]||=e=>K(u).fontName=e,"fallback-option":se,options:ee.value,to:`.style-panel`,class:`text-family`},{arrow:G(()=>[x(i)]),_:1},8,[`value`,`options`]),c(`div`,h1,[x(K(kv),{value:K(u).fontStyle,"onUpdate:value":t[17]||=e=>K(u).fontStyle=e,"fallback-option":se,options:F.value,to:`.style-panel`,class:`font-style-select`},{arrow:G(()=>[x(i)]),_:1},8,[`value`,`options`]),x(K(kv),{value:K(u).fontSize,"onUpdate:value":t[18]||=e=>K(u).fontSize=e,"fallback-option":re,options:K(ne),to:`.style-panel`,class:`font-size-select`},{arrow:G(()=>[x(i)]),_:1},8,[`value`,`options`])])])):b(``,!0),K(u)?.textAlignment!==void 0&&g.value===K(L).FREETEXT?(S(),V(`div`,g1,[c(`div`,{class:D({active:K(u).textAlignment===`left`}),onClick:t[19]||=e=>_e(`left`)},[c(`span`,_1,[x(a)])],2),c(`div`,{class:D({active:K(u).textAlignment===`center`}),onClick:t[20]||=e=>_e(`center`)},[c(`span`,v1,[x(o)])],2),c(`div`,{class:D({active:K(u).textAlignment===`right`}),onClick:t[21]||=e=>_e(`right`)},[c(`span`,null,[x(l)])],2)])):b(``,!0),K(u)?.contents!==void 0&&K(ke).length?(S(),V(`div`,y1,[c(`div`,b1,d(e.$t(`panels.measurement.note`)),1),R(c(`textarea`,{name:`note`,rows:`4`,"onUpdate:modelValue":t[22]||=e=>K(u).contents=e,onBlur:xe,onInput:Ce},null,544),[[Me,K(u).contents]])])):b(``,!0),K(u)?.size!==void 0&&g.value===`eraser`?(S(),V(`div`,x1,[c(`div`,S1,d(e.$t(`common.uiElements.size`)),1),c(`div`,C1,[x(K(xb),{keyboard:!1,value:m(K(u).size),tooltip:!1,step:1,max:18,min:1,class:`width-slider`,"on-dragend":me,"onUpdate:value":t[23]||=e=>K(u).size=e},{thumb:G(()=>[x(r)]),_:1},8,[`value`]),x(K(kv),{value:K(u).size,"onUpdate:value":[t[24]||=e=>K(u).size=e,me],"fallback-option":B,options:K(ie),to:`.style-panel`},{arrow:G(()=>[x(i)]),_:1},8,[`value`,`options`])]),c(`div`,w1,d(e.$t(`panels.eraser.eraseMode`)),1),x(K(kv),{value:ae.value,"onUpdate:value":[t[25]||=e=>ae.value=e,he],options:oe.value,to:`.style-panel`},{arrow:G(()=>[x(i)]),_:1},8,[`value`,`options`])])):b(``,!0)])])}}},E1={key:0,class:`page-title`},D1=[`innerHTML`],O1={__name:`SearchItem`,props:[`searchResults`,`result`,`currentIndex`],setup(e){let t=e.currentIndex===0?e.currentIndex:e.currentIndex-1,n=e.searchResults[e.currentIndex],r=e.searchResults[t],i=r===n,a=r.pageNum!==n.pageNum,o=new RegExp(e.result.searchValue,`gi`),s=e.result.content.replace(o,function(e,t){return`<span class="highlight">${e}</span>`}),l=fw(),u=t=>{U.setActiveSearchResult(w(e.searchResults[t]),t),l.setActiveSearchResult({index:t,searchResult:e.searchResults[t]})};return(t,n)=>(S(),V(q,null,[i||a?(S(),V(`div`,E1,d(e.result.pageNum),1)):b(``,!0),c(`div`,{class:`item-content`,innerHTML:K(s),onClick:n[0]||=t=>u(e.currentIndex)},null,8,D1)],64))}},k1={class:`search-number`},A1={class:`search-container`},j1={key:1,class:`no-annotations`},M1={__name:`SearchContent`,setup(e){let t=fw(),n=T(()=>t.getSearchResults);return(e,t)=>{let r=O1;return S(),V(q,null,[R(c(`div`,k1,[t[0]||=c(`div`,{id:`findResultsCount`,class:`toolbarLabel`},null,-1),c(`div`,null,d(e.$t(`panels.left.search.page`)),1)],512),[[Re,n.value.length]]),c(`div`,A1,[n.value.length?(S(!0),V(q,{key:0},z(n.value,(e,t)=>(S(),s(r,{key:e,searchResults:n.value,result:e,currentIndex:t},null,8,[`searchResults`,`result`,`currentIndex`]))),128)):(S(),V(`div`,j1,d(e.$t(`panels.left.search.noResults`)),1))])],64)}}},N1=e(r(((e,t)=>{var n=`Expected a function`,r=NaN,i=`[object Symbol]`,a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u=typeof global==`object`&&global&&global.Object===Object&&global,d=typeof self==`object`&&self&&self.Object===Object&&self,f=u||d||Function(`return this`)(),p=Object.prototype.toString,m=Math.max,g=Math.min,_=function(){return f.Date.now()};function v(e,t,r){var i,a,o,s,c,l,u=0,d=!1,f=!1,p=!0;if(typeof e!=`function`)throw TypeError(n);t=S(t)||0,y(r)&&(d=!!r.leading,f=`maxWait`in r,o=f?m(S(r.maxWait)||0,t):o,p=`trailing`in r?!!r.trailing:p);function v(t){var n=i,r=a;return i=a=void 0,u=t,s=e.apply(r,n),s}function b(e){return u=e,c=setTimeout(w,t),d?v(e):s}function x(e){var n=e-l,r=e-u,i=t-n;return f?g(i,o-r):i}function C(e){var n=e-l,r=e-u;return l===void 0||n>=t||n<0||f&&r>=o}function w(){var e=_();if(C(e))return T(e);c=setTimeout(w,x(e))}function T(e){return c=void 0,p&&i?v(e):(i=a=void 0,s)}function E(){c!==void 0&&clearTimeout(c),u=0,i=l=a=c=void 0}function D(){return c===void 0?s:T(_())}function O(){var e=_(),n=C(e);if(i=arguments,a=this,l=e,n){if(c===void 0)return b(l);if(f)return c=setTimeout(w,t),v(l)}return c===void 0&&(c=setTimeout(w,t)),s}return O.cancel=E,O.flush=D,O}function y(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function b(e){return!!e&&typeof e==`object`}function x(e){return typeof e==`symbol`||b(e)&&p.call(e)==i}function S(e){if(typeof e==`number`)return e;if(x(e))return r;if(y(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=y(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(a,``);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?r:+e}t.exports=v}))()),P1={id:`findbarInputContainer`,class:`findbar-input-container`},F1={class:`input-container`},I1=[`placeholder`],L1={class:`button-container`},R1=200,z1={__name:`SearchHeader`,setup(e){let t=J(!1),n=J(``),r=fw(),i=ye(),a=J([]),o=T(()=>r.getActiveSearchResult?r.getActiveSearchResult.index:0),s=()=>{let e=a.value,t=o.value;if(e.length>0){let n=t<=0?e.length-1:t-1;U.setActiveSearchResult(w(e[n]),n),r.setActiveSearchResult({index:n,searchResult:e[n]})}},l=()=>{let e=a.value,t=o.value;if(e.length>0){let n=t===e.length-1?0:t+1;U.setActiveSearchResult(w(e[n]),n),r.setActiveSearchResult({index:n,searchResult:e[n]})}},u=()=>{t.value=!1,n.value=``,r.setSearchResults([]),U.clearSearchResults(),a.value=[],r.setActiveSearchResult(null)},d=(0,N1.default)(async e=>{if(e&&e.length>0){t.value=!0;let n=await U.search(e);r.setSearchResults(n),a.value=n,r.setActiveSearchResult({index:0,searchResult:n[0]})}else u()},R1),f=e=>{d(e)};W(n,()=>{f(n.value)});let p=T(()=>i.getActiveElementTab(H.LEFT_PANEL)),m=T(()=>i.isElementOpen(H.LEFT_PANEL));return W([p,m],()=>{(p.value!==H.SEARCH_TAB||!m.value)&&(U.clearSearchResults(),n.value=``,r.setActiveSearchResult(null))}),(e,t)=>{let r=hN,i=GA,o=lx,d=VA;return S(),V(`div`,{id:`findbar`,class:D([`findbar`,{mobile:K(P)}])},[c(`div`,P1,[c(`div`,F1,[R(c(`input`,{type:`text`,autocomplete:`off`,placeholder:e.$t(`panels.left.search.placeholder`),"onUpdate:modelValue":t[0]||=e=>n.value=e,name:`search`},null,8,I1),[[Me,n.value]]),x(r,{id:`emptyInput`,class:D([`empty-input`,!n.value&&`hidden`]),onClick:u},null,8,[`class`])]),c(`div`,L1,[x(o,{img:`icon-previous-left`,id:`findPrevious`,class:D([`toolbarButton`,!a.value.length&&`disabled`]),title:e.$t(`panels.left.search.previous`),onClick:s},{default:G(()=>[x(i)]),_:1},8,[`class`,`title`]),x(o,{img:`icon-next-right`,id:`findNext`,class:D([`toolbarButton`,!a.value.length&&`disabled`]),title:e.$t(`panels.left.search.next`),onClick:l},{default:G(()=>[x(d)]),_:1},8,[`class`,`title`])])])],2)}}},B1={};function V1(e,t){let n=z1,r=M1;return S(),V(q,null,[x(n),x(r)],64)}var H1=B(B1,[[`render`,V1]]),U1={class:`container`},W1={class:`signature-title`},G1={key:0,class:`signatures`},K1=[`onClick`],q1=[`title`],J1={class:`drop-down medium`},Y1={key:1,class:`no-signatures`},X1={__name:`SignatureContainer`,setup(e){let t=ye(),n=fw(),r=T(()=>n.getSignatures),i=T(()=>n.getSelectedSignature),a=J(!1),o=e=>{e<0||U.pageNumberChanged({value:(e*1+1).toString()})},l=()=>{a.value=!1,n.setSelectedSignature(null)},u=e=>{a.value=!1,t.openElement(e)},f=(e,t)=>{a.value=!0;let r=e.signature;r.index=t,n.setSelectedSignature(r)};return(e,t)=>{let n=rV,p=YB,m=$B,g=xR,_=lx;return S(),V(`div`,U1,[c(`div`,W1,d(e.$t(`panels.left.signatures.list`)),1),r.value.length?(S(),V(`div`,G1,[(S(!0),V(q,null,z(r.value,(r,v)=>(S(),V(`div`,{key:v,class:D([`signature`,{focus:i.value&&i.value.index===r.index}]),onClick:e=>o(r.pageIndex)},[(S(!0),V(q,null,z(r.signature.signerList,o=>(S(),V(q,null,[o.isCertTrusted&&o.isSignVerified?(S(),s(n,{key:0})):o.isCertTrusted||o.isSignVerified?(S(),s(p,{key:1})):(S(),s(m,{key:2})),c(`span`,{title:r.name},d((o.certificateList[0].subject.CN?o.certificateList[0].subject.CN:``)+`'s signature`),9,q1),x(K(Og),{placement:`bottom-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,show:i.value?.index===v&&a.value,onClickoutside:l},{trigger:G(()=>[x(_,{class:`more`,onClick:Ae(e=>f(r,v),[`stop`])},{default:G(()=>[x(g)]),_:1},8,[`onClick`])]),default:G(()=>[c(`div`,J1,[c(`div`,{class:`drop-item`,onClick:t[0]||=e=>u(`signatureDetailsDialog`)},d(e.$t(`panels.left.signatures.details`)),1),c(`div`,{class:`drop-item`,onClick:t[1]||=e=>u(`certificateViewerDialog`)},d(e.$t(`panels.left.signatures.certification`)),1),c(`div`,{class:`drop-item`,onClick:t[2]||=e=>u(`deleteConfirmDialog`)},d(e.$t(`common.actions.delete`)),1)])]),_:2},1032,[`show`])],64))),256))],10,K1))),128))])):(S(),V(`div`,Y1,d(e.$t(`panels.left.signatures.empty`)),1))])}}},Z1={key:0,class:`layer-property-popup`},Q1={class:`title`},$1={class:`container`},e0=[`placeholder`],t0={class:`text-start`},n0={class:`select-container`},r0={value:1},i0={value:0},a0={class:`select-container`},o0={value:0},s0={value:1},c0={value:2},l0={class:`select-container`},u0={value:0},d0={value:1},f0={value:2},p0=`layerPropertyDialog`,m0={__name:`LayerPropertyDialog`,setup(e){let t=ye(),n=fw(),r=T(()=>t.isElementOpen(p0)),i=T(()=>n.getSelectedLayer),a=J(``),o=J(0),s=J(0),l=J(3),u=J(3),f=J(!1);W(r,(e,t)=>{e&&(a.value=i.value.name,o.value=i.value.defaultVisible,s.value=i.value.isLocked,l.value=i.value.printState,u.value=i.value.exportState),f.value=!1}),W([a,o,s,l,u],(e,t)=>{i.value&&(f.value=!((i.value.name===e[0]||e[0].trim()===``)&&i.value.defaultVisible===e[1]&&i.value.isLocked===e[2]&&i.value.printState===e[3]&&i.value.exportState===e[4]))});let p=()=>{t.closeElement(p0),n.setSelectedLayer(null)},m=async()=>{let e={node:i.value.node};a.value!==``&&a.value!==i.value.name&&(e.name=i.value.name=a.value),o.value!==i.value.defaultVisible&&(e.defaultVisible=i.value.defaultVisible=o.value),s.value!==i.value.isLocked&&(e.isLocked=i.value.isLocked=s.value),l.value!==i.value.printState&&(e.printState=i.value.printState=l.value),u.value!==i.value.exportState&&(e.exportState=i.value.exportState=u.value),o.value!==i.value.visible&&(e.visible=i.value.visible=o.value,e.ocg=i.value.ocg),U.setLayers(e),p()};return(e,t)=>{let n=JT,i=QC,g=WC;return r.value?(S(),V(`div`,Z1,[x(g,{show:r.value,dialogName:p0,close:p},{header:G(()=>[c(`p`,Q1,d(e.$t(`layer.properties.layerProperty`)),1)]),footer:G(()=>[c(`div`,{class:D([`rect-button blue`,{disabled:!f.value}]),onClick:m},d(e.$t(`common.actions.ok`)),3)]),default:G(()=>[c(`div`,$1,[c(`span`,null,d(e.$t(`layer.properties.name`)),1),R(c(`input`,{type:`text`,placeholder:e.$t(`layer.properties.namePlaceholder`),name:`layerName`,"onUpdate:modelValue":t[0]||=e=>a.value=e,maxlength:`50`},null,8,e0),[[Me,a.value]]),c(`span`,t0,d(e.$t(`layer.properties.defaultSettings`)),1),c(`div`,null,[c(`div`,n0,[R(c(`select`,{name:`defaultSetting`,"onUpdate:modelValue":t[1]||=e=>o.value=e},[c(`option`,r0,d(e.$t(`layer.properties.defaultShow`)),1),c(`option`,i0,d(e.$t(`layer.properties.defaultHide`)),1)],512),[[Oe,o.value]]),x(n)]),c(`div`,{class:`check-box`,onClick:t[2]||=e=>s.value=(s.value+1)%2},[c(`div`,{class:D([`check`,{active:s.value}])},[R(x(i,null,null,512),[[Re,s.value]])],2),c(`span`,null,d(e.$t(`layer.properties.lockLayer`)),1)])]),c(`span`,null,d(e.$t(`layer.properties.printProperty`)),1),c(`div`,a0,[R(c(`select`,{name:`printProperty`,"onUpdate:modelValue":t[3]||=e=>l.value=e},[c(`option`,o0,d(e.$t(`layer.properties.always`)),1),c(`option`,s0,d(e.$t(`layer.properties.never`)),1),c(`option`,c0,d(e.$t(`layer.properties.printVisible`)),1)],512),[[Oe,l.value]]),x(n)]),c(`span`,null,d(e.$t(`layer.properties.exportProperty`)),1),c(`div`,l0,[R(c(`select`,{name:`exportProperty`,"onUpdate:modelValue":t[4]||=e=>u.value=e},[c(`option`,u0,d(e.$t(`layer.properties.always`)),1),c(`option`,d0,d(e.$t(`layer.properties.never`)),1),c(`option`,f0,d(e.$t(`layer.properties.exportVisible`)),1)],512),[[Oe,u.value]]),x(n)])])]),_:1},8,[`show`])])):b(``,!0)}}},h0={class:`layer`},g0=[`title`],_0={class:`drop-down medium`},v0={__name:`Layer`,props:[`layer`,`level`],setup(e,{emit:t}){let n=t,r=fw(),i=ye(),a=T(()=>r.getSelectedLayer),o=J(!1),l=J(!1),u=J(!1),f=J(``),p=J(null),m=e=>{e.stopPropagation(),o.value=!o.value},_=()=>{l.value=!1,r.setSelectedLayer(null)},v=e=>{l.value=!1,i.openElement(e)},y=e=>{l.value=!0,r.setSelectedLayer(e)},C=e=>{if(e.isLocked){w(e);return}e.visible=(e.visible+1)%2,U.setLayers({node:e.node,visible:e.visible,ocg:e.ocg})},w=e=>{r.setSelectedLayer(e),n(`showTipDialog`,e)},O=async e=>{l.value=!1,i.setCommonLoading(!0);let t=(e=>{for(;e;){if(e.ocg)return e.ocg;e=e.children[0]}})(e);if(!t){console.error(`Unable to export.`),r.setSelectedLayer(null),i.setCommonLoading(!1);return}await U.exportLayers(t,!0),r.setSelectedLayer(null),i.setCommonLoading(!1)},k=e=>{f.value=e,u.value=!0,E(()=>{p.value.focus(),p.value.select()})},j=e=>{if(!f.value.trim()){u.value=!1;return}e.name=f.value,U.setLayers({node:e.node,name:f.value}),u.value=!1},N=e=>{u.value&&p.value&&!p.value.contains(e.target)&&(u.value=!1)};return M(()=>{window.addEventListener(`click`,N)}),g(()=>{window.removeEventListener(`click`,N)}),(t,n)=>{let r=lH,i=pI,g=lI,T=CL,E=xR,M=lx,P=fe(`Layer`,!0);return S(),V(`div`,h0,[c(`div`,{class:D([`layer-item`,{focus:a.value&&a.value.node===e.layer.node}])},[c(`div`,{class:D([`layer-item-toggle`,o.value&&`active`]),style:A({marginLeft:12*e.level+`px`})},[e.layer.children.length?(S(),s(r,{key:0,onClick:m})):b(``,!0)],6),e.layer.visible?(S(),s(i,{key:0,onClick:n[0]||=t=>C(e.layer)})):(S(),s(g,{key:1,onClick:n[1]||=t=>C(e.layer)})),c(`div`,{class:`layer-item-name`,onClick:N},[u.value?R((S(),V(`input`,{key:1,type:`text`,"onUpdate:modelValue":n[3]||=e=>f.value=e,onBlur:n[4]||=e=>u.value=!1,onKeyup:n[5]||=ke(t=>j(e.layer),[`enter`]),ref_key:`nameInputRef`,ref:p,maxlength:`50`},null,544)),[[Me,f.value]]):(S(),V(`span`,{key:0,onDblclick:n[2]||=t=>k(e.layer.name),title:e.layer.name},d(e.layer.name),41,g0))]),e.layer.isLocked?(S(),s(T,{key:2,onClick:n[6]||=t=>w(e.layer)})):b(``,!0),x(K(Og),{placement:`bottom-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,show:a.value?.name===e.layer.name&&l.value,onClickoutside:_,class:`no-margin-top`},{trigger:G(()=>[x(M,{class:`more`,onClick:n[7]||=Ae(t=>y(e.layer),[`stop`]),title:t.$t(`panels.left.layers.menu`)},{default:G(()=>[x(E)]),_:1},8,[`title`])]),default:G(()=>[c(`div`,_0,[c(`div`,{class:`drop-item`,onClick:n[8]||=e=>v(`layerPropertyDialog`)},d(t.$t(`panels.left.layers.layerProperty`)),1),c(`div`,{class:`drop-item`,onClick:n[9]||=t=>O(e.layer)},d(t.$t(`panels.left.layers.exportLayer`)),1)])]),_:1},8,[`show`])],2),o.value?(S(!0),V(q,{key:0},z(e.layer.children,t=>(S(),s(P,{layer:t,level:e.level+1,onShowTipDialog:w},null,8,[`layer`,`level`]))),256)):b(``,!0)])}}},y0={class:`container`},b0={class:`layer-title`},x0={class:`drop-down medium`},S0={key:1,class:`no-layers`},C0={key:0,class:`layer-locked-tip-popup`},w0={__name:`LayerContainer`,setup(e){let t=ye(),n=fw(),r=T(()=>n.getLayers),i=T(()=>{let e=t=>t.some(t=>{if(t.exportState===0||t.exportState!==1&&t.visible)return!0;if(Array.isArray(t.children)&&t.children.length)return e(t.children)});return e(r.value)}),a=T(()=>v(!1)),o=T(()=>v(!0)),l=T(()=>{let e=t=>t.some(t=>t.visible===t.defaultVisible?Array.isArray(t.children)&&t.children.length&&e(t.children):!0);return e(r.value)}),u=J(!1),f=J(),p=J(!1);U.addEvent(`getLayers`,e=>{n.setLayers(e),p.value=!e.some(e=>e.children.length)});let m=e=>{u.value=!1,e?t.openElement(H.LAYER_PROPERTY_DIALOG):n.setSelectedLayer(null)},g=()=>{u.value=!0},_=async e=>{if(f.value.setShow(!1),e===`show`||e===`hide`){let t=[],n=(e,r)=>{e.forEach(e=>{e.isLocked||(e.visible=r,t.push({node:e.node,visible:r,ocg:e.ocg})),Array.isArray(e.children)&&e.children.length&&n(e.children,r)})};n(r.value,+(e===`show`)),t.length&&U.setLayers(t)}if(e===`restore`){let e=[],t=n=>{n.forEach(n=>{n.visible!==n.defaultVisible&&(n.visible=n.defaultVisible,e.push({node:n.node,visible:n.defaultVisible,ocg:n.ocg})),Array.isArray(n.children)&&n.children.length&&t(n.children)})};t(r.value),e.length&&U.setLayers(e)}e===`export`&&(t.setCommonLoading(!0),await U.exportLayers(null,!0),t.setCommonLoading(!1))},v=e=>r.value.some(t=>(e?t.visible:!t.visible)?!0:Array.isArray(t.children)&&t.children.length?v(t.children,e):!1);return(e,t)=>{let n=TR,v=v0,C=JC,w=WC,T=m0;return S(),V(q,null,[c(`div`,y0,[c(`div`,b0,[y(d(e.$t(`panels.left.layers.title`))+` `,1),r.value.length?(S(),s(K(Og),{key:0,placement:`bottom-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,class:`no-margin-top layer-title-popover`,ref_key:`layersMenuPopover`,ref:f},{trigger:G(()=>[x(n)]),default:G(()=>[c(`div`,x0,[c(`div`,{class:D([`drop-item`,{disabled:!a.value}]),onClick:t[0]||=e=>_(`show`)},d(e.$t(`panels.left.layers.showAll`)),3),c(`div`,{class:D([`drop-item`,{disabled:!o.value}]),onClick:t[1]||=e=>_(`hide`)},d(e.$t(`panels.left.layers.hideAll`)),3),c(`div`,{class:D([`drop-item`,{disabled:!l.value}]),onClick:t[2]||=e=>_(`restore`)},d(e.$t(`panels.left.layers.restoreSettings`)),3),c(`div`,{class:D([`drop-item`,{disabled:!i.value}]),onClick:t[3]||=e=>_(`export`)},d(e.$t(`panels.left.layers.exportLayers`)),3)])]),_:1},512)):b(``,!0)]),r.value.length?(S(),V(`div`,{key:0,class:D([`layers`,{single:p.value}])},[(S(!0),V(q,null,z(r.value,e=>(S(),s(v,{layer:e,level:0,onShowTipDialog:g},null,8,[`layer`]))),256))],2)):(S(),V(`div`,S0,d(e.$t(`panels.left.layers.empty`)),1))]),u.value?(S(),V(`div`,C0,[x(w,{show:u.value,close:!1},{footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:t[4]||=e=>m()},d(e.$t(`common.actions.ok`)),1),c(`div`,{class:`rect-button blue`,onClick:t[5]||=e=>m(!0)},d(e.$t(`layer.properties.title`)),1)]),default:G(()=>[x(C),c(`p`,null,d(e.$t(`layer.lockedWarning`)),1)]),_:1},8,[`show`])])):b(``,!0),x(T)],64)}}},T0={class:`outlines`},E0={class:`outline-item-title`},D0=`-`,O0={__name:`Outlines`,props:{outline:{type:Object,required:!0}},setup(e,{emit:t}){let n=fw(),r=ye(),i=e=>{let t=e.title;return`${a(e)}${D0}${t}`},a=e=>o(e).reverse().join(D0),o=e=>{let t=[],n=e;for(;n;)t.push(n.index),n=n.parent;return t},l=T(()=>i(e.outline)),u=J(!1),f=T(()=>n.getActiveOutlineId===l.value),p=()=>{n.setActiveOutlineId(l.value),U.pageNumberChanged({value:e.outline.pageNumber}),oe&&r.closeElement(H.LEFT_PANEL)},m=e=>{e.stopPropagation(),u.value=!u.value};return(t,n)=>{let r=lH,i=fe(`Outlines`,!0);return S(),V(`div`,T0,[c(`div`,{class:D([`outline-item`,f.value&&`selected`]),onClick:p},[c(`div`,{class:D([`outline-item-toggle`,u.value&&`active`]),style:A({marginLeft:12*e.outline.level+`px`})},[e.outline.children.length?(S(),s(r,{key:0,onClick:m})):b(``,!0)],6),c(`div`,E0,d(e.outline.title),1)],2),u.value?(S(!0),V(q,{key:0},z(e.outline.children,e=>(S(),s(i,{outline:e},null,8,[`outline`]))),256)):b(``,!0)])}}},k0={class:`outline`},A0={class:`outline-title`},j0={key:0,class:`outlines-container`},M0={key:1,class:`no-outlines`},N0={__name:`OutlinesPanel`,setup(e){let t=fw(),n=T(()=>t.getOutlines);return(e,t)=>{let r=O0;return S(),V(`div`,k0,[c(`div`,A0,d(e.$t(`panels.left.outlines.title`)),1),n.value.length?(S(),V(`div`,j0,[(S(!0),V(q,null,z(n.value,e=>(S(),s(r,{outline:e},null,8,[`outline`]))),256))])):(S(),V(`div`,M0,d(e.$t(`panels.left.outlines.empty`)),1))])}}},P0={class:`page-title`},F0=[`id`,`onClick`],I0={class:`item-header`},L0={class:`info`},R0={class:`name`},z0={class:`date`},B0={key:0,class:`content`},V0=[`onClick`],H0={key:0,class:`item-reply`},U0={key:0},W0=[`placeholder`],G0={class:`buttons`},K0=[`onClick`],q0={class:`replies`},J0={key:0,class:`info`},Y0={class:`info-header`},X0={class:`name`},Z0={class:`date`},Q0={key:0,class:`content`},$0={class:`buttons`},e2=[`onClick`],t2={key:1,class:`content`},n2={class:`drop-down`},r2={key:1,class:`item-footer`},i2={class:`drop-down`},a2=[`onClick`],o2=[`onClick`],s2=[`onClick`],c2=[`onClick`],l2=[`onClick`],u2={class:`re`},d2={key:0},f2={key:1,class:`no-annotations`},p2={__name:`AnnotationContent`,setup(e){let t=fw(),n=ye(),r=T(()=>t.getAllAnnotations),i=T(()=>n.getActiveElementTab(H.LEFT_PANEL)),a=T(()=>n.isElementOpen(H.LEFT_PANEL)),o=T(()=>t.getAnnotator),l=T(()=>n.getToolMode),u=T(()=>t.getSelectedAnnotation),f=T(()=>n.isElementOpen(H.REPLY)),p=T(()=>n.isElementDisabled(H.REPLY_BUTTON)),m=J(null),g=J(null),_=J(!1),v=J(``),C=J(!1),O=J(``),k=T(()=>n.getUserAdmin),A=T(()=>n.getReadOnly),j=J(``),N=J(!1),P=J(0),ee=J(0),F=J(!1),te=e=>e?.author||``,I=e=>o.value===te(e),L=e=>e?.getStatus?.()||``,ne=e=>e?.getMarked?.()||``,re=(e,t)=>L(e)===t,ie=e=>ne(e)===`MARKED`,B=e=>e?.replies?.filter(e=>e.contents).length||0,ae=()=>!p.value,se=e=>!e||!ae()?!1:k.value?!0:!A.value&&I(e),ce=e=>!e||!ae()?!1:k.value?!0:!A.value,le=(e,t)=>[...e?.getReplies?.()||[]].filter(e=>e.isReply&&e.stateModel===t).sort((e,t)=>t.dateCreated-e.dateCreated)[0],ue=(e,t)=>t===`Marked`?!!ne(e):!!L(e),de=(e,t)=>{if(!e||!ae())return!1;if(k.value)return!0;if(A.value)return!1;let n=le(e,t);return n?I(n):!0};W([i,a],e=>{e[0]===`ANNOTATION`&&e[1]&&pe()});let fe=e=>{U.jumpToAnnotation(e);let t=U.getPermission(`allowsDocumentChanges`),r=U.getPermission(`allowsCommenting`);!t||!r||(m.value?.name!==e.name&&(m.value?.handleOutside(),l.value!==`editor`&&setTimeout(()=>e.selectAnnotation(),100),v.value=``,m.value=e,_.value=!1),oe&&n.closeElement(H.LEFT_PANEL))},pe=()=>{_.value=!1,v.value=``},me=async(e,t)=>{if(e=w(e),!de(e,`Review`))return;let n=le(e,`Review`);n?n.setState(t):await U.getAnnotationManager().createAnnotationReply(e,{state:t}),j.value=``},he=e=>{de(e,`Review`)&&(j.value?j.value=``:j.value=e.name)},ge=(e,t)=>{if(!se(t))return;if(N.value){Ce();return}let n=e.target;for(;n.parentElement&&!n.classList.contains(`more`);)n=n.parentElement;if(n.classList.contains(`more`)){let e=n.getBoundingClientRect();P.value=e.left,ee.value=e.bottom,N.value=!0,g.value=t}},_e=async e=>{if(e=w(e),!de(e,`Marked`))return;let t=e.getMarked(),n=le(e,`Marked`);if(n){let e=t===`MARKED`?`UNMARKED`:`MARKED`;n.setState(e)}else await U.getAnnotationManager().createAnnotationReply(e,{state:`MARKED`});F.value=!F.value},ve=async e=>{v.value!==``&&(e=w(e),ce(e)&&(await U.getAnnotationManager().createAnnotationReply(e,{author:o.value,title:o.value,contents:v.value,date:new Date}),v.value=``))},be=e=>{se(e)&&(g.value=e,_.value=!1,N.value=!1,C.value&&O.value!==e.contents?(e.setContents(O.value),C.value=!1):(C.value=!0,O.value=e.contents,E(()=>{let e=document.querySelector(`.replyEditInput`);e.focus(),e.setSelectionRange(e.value.length,e.value.length)})))},xe=e=>{se(e)&&(U.getAnnotationManager().deleteAnnotation(e),Ce())},Se=e=>{document.querySelector(`.button.more.active`)?.contains(e.target)||Ce()},Ce=()=>{N.value=!1,C.value||(g.value=null)},we=()=>{C.value=!1,O.value=``,g.value=null},Te=e=>{document.querySelector(`.button.state.active`)?.contains(e.target)||(j.value=``)},Ee=(e,t)=>{ce(e)&&(_.value=!0,m.value?.name!==e.name&&(m.value=e,v.value=``),!t&&E(()=>{document.querySelector(`.annotReplyInput`)?.focus()}))};return W(()=>f.value,e=>{e&&(m.value=u.value,_.value=!0)}),W(()=>u.value,e=>{(!e||m.value&&u.value.name!==m.value.name)&&(n.closeElement(H.REPLY),Ce(),m.value=null,_.value=!1),m.value=u.value,_.value=!1}),M(()=>{u.value&&f.value&&(m.value=u.value,_.value=!0)}),(e,t)=>{let n=hF,i=dV,a=CV,f=pH,p=ZL,w=FL,T=UL,E=LA,k=qF,A=qL,M=Nb,te=YA,I=Lb,L=zL,ne=dN,ae=FV,oe=yj,le=LR,H=yV,U=Zj,W=tR,ye=aR,Ce=Dz,J=jz,Y=_R,De=lx,Oe=pA,ke=Zz,je=Cj,Ne=lM,Pe=NR,Fe=aB,Ie=lB;return S(),V(`div`,{class:D([`annotation-view`,{pb:![`view`,`sign`,`document`].includes(l.value)}])},[K(r).annotationsCount>0?(S(!0),V(q,{key:0},z(K(r).annotations,(r,l)=>(S(),V(`div`,null,[r.pageAnnotationsCount>0?(S(),V(q,{key:0},[c(`div`,P0,[c(`span`,null,d(e.$t(`panels.left.search.pageIndicator`,{page:l*1+1})),1),c(`span`,null,d(r.pageAnnotationsCount),1)]),(S(!0),V(q,null,z(r.annotations,(r,l)=>(S(),V(q,null,[![`link`,`reply`].includes(r.type)&&!r.isDelete&&!r.isHidden?(S(),V(`div`,{class:D([`annotation-item`,{selected:m.value&&m.value.name===r.name,"selected-annotation":u.value&&u.value.name===r.name}]),id:r.name?`annotationList-${r.name}`:null,onClick:e=>fe(r),key:l,onMousedown:t[8]||=Ae(()=>{},[`stop`]),onTouchstart:t[9]||=Ae(()=>{},[`stop`])},[c(`div`,I0,[r.type===`highlight`?(S(),s(n,{key:0})):r.type===`squiggly`?(S(),s(i,{key:1})):r.type===`strikeout`?(S(),s(a,{key:2})):r.type===`underline`?(S(),s(f,{key:3})):r.type===`polyline`&&r.measure?(S(),s(p,{key:4})):r.type===`ink`&&r.measure&&r.arcPoints?(S(),s(w,{key:5})):r.type===`ink`&&r.measure?(S(),s(T,{key:6})):r.type===`arc`?(S(),s(E,{key:7})):r.type===`ink`?(S(),s(k,{key:8})):r.type===`line`&&r.measure?(S(),s(A,{key:9})):r.type===`line`&&((r.tail===`none`||r.tail===`unknown`)&&(r.head===`none`||r.head===`unknown`)||!r.tail&&!r.head)?(S(),s(M,{key:10})):r.type===`line`&&(r.tail===`openarrow`||r.head===`openarrow`||r.arrow)?(S(),s(te,{key:11})):r.type===`square`||r.type===`rectangle`&&!r.measure?(S(),s(I,{key:12})):r.type===`circle`&&r.measure?(S(),s(L,{key:13})):r.type===`circle`?(S(),s(ne,{key:14})):r.type===`freetext`&&r.annotation.intent===`FreeText`?(S(),s(ae,{key:15})):r.type===`freetext`&&r.annotation.intent===`FreeTextCallout`?(S(),s(oe,{key:16})):r.type===`text`?(S(),s(le,{key:17})):r.type===`image`||r.type===`stamp`?(S(),s(H,{key:18})):r.type===`polygon`&&r.borderStyle===`cloudy`?(S(),s(U,{key:19})):r.type===`polygon`&&r.measure?(S(),s(W,{key:20})):r.type===`rectangle`&&r.measure?(S(),s(ye,{key:21})):r.type===`polygon`?(S(),s(Ce,{key:22})):r.type===`polyline`?(S(),s(J,{key:23})):b(``,!0),c(`div`,L0,[c(`p`,R0,d(r.author||r.title||`Guest`),1),c(`p`,z0,d(K(xx.default)(r.dateCreated).format(`DD/MM/YYYY HH:mm:ss`)),1),r.contents?(S(),V(`div`,B0,d(r.contents),1)):b(``,!0)]),de(r,`Marked`)?(S(),s(K(Og),{key:24,trigger:`hover`,placement:`bottom`,to:`#outerContainer`,class:`mark-popover`},{trigger:G(()=>[(S(),V(`div`,{class:D([`mark-box`,{marked:ie(r)}]),onClick:Ae(e=>_e(r),[`stop`]),key:F.value},null,10,V0))]),default:G(()=>[c(`span`,null,d(ie(r)?e.$t(`panels.left.reply.marked`):e.$t(`panels.left.reply.unmarked`)),1)]),_:2},1024)):ue(r,`Marked`)?(S(),V(`div`,{class:D([`mark-box`,{marked:ie(r)}]),key:F.value},null,2)):b(``,!0)]),m.value&&m.value.name===r.name&&(_.value&&ce(r)||r.replies?.length)?(S(),V(`div`,H0,[_.value&&ce(r)?(S(),V(`div`,U0,[R(c(`textarea`,{onClick:t[0]||=Ae(()=>{},[`stop`]),onMousedown:t[1]||=Ae(()=>{},[`stop`]),placeholder:e.$t(`panels.left.reply.replyPlaceholder`),"onUpdate:modelValue":t[2]||=e=>v.value=e,class:`annotReplyInput`},null,40,W0),[[Me,v.value]]),c(`div`,G0,[c(`span`,{onClick:Ae(pe,[`stop`])},d(e.$t(`common.actions.cancel`)),1),c(`button`,{class:D({active:v.value,disabled:!v.value}),onClick:Ae(e=>ve(r),[`stop`])},d(e.$t(`common.actions.reply`)),11,K0)])])):b(``,!0),c(`div`,q0,[(S(!0),V(q,null,z(r.replies,(n,r)=>(S(),V(q,{key:r},[n.contents?(S(),V(`div`,J0,[c(`div`,Y0,[c(`div`,null,[c(`p`,X0,d(n.author||n.title||o.value),1),c(`p`,Z0,d(K(xx.default)(n.dateCreated).format(`DD/MM/YYYY HH:mm:ss`)),1)]),se(n)?(S(),s(De,{key:0,class:D([`more`,{active:N.value&&n.name===g.value?.name}]),onClick:Ae(e=>ge(e,n),[`stop`])},{default:G(()=>[x(Y)]),_:1},8,[`class`,`onClick`])):b(``,!0)]),C.value&&n.name===g.value?.name&&se(n)?(S(),V(`div`,Q0,[R(c(`textarea`,{"onUpdate:modelValue":t[3]||=e=>O.value=e,class:`replyEditInput`},null,512),[[Me,O.value]]),c(`div`,$0,[c(`span`,{onClick:Ae(we,[`stop`])},d(e.$t(`common.actions.cancel`)),1),c(`button`,{class:D([O.value&&O.value!==n.contents?`active`:`disabled`]),onClick:Ae(e=>be(n),[`stop`])},d(e.$t(`common.actions.confirm`)),11,e2)])])):(S(),V(`div`,t2,d(n.contents),1))])):b(``,!0)],64))),128))]),x(K(Og),{placement:`bottom-start`,trigger:`manual`,"show-arrow":!1,to:`#outerContainer`,raw:!0,"z-index":96,class:`reply-popover`,show:N.value&&se(g.value),x:P.value,y:ee.value,onClickoutside:Se},{default:G(()=>[c(`div`,n2,[c(`div`,{class:`drop-item`,onMousedown:t[4]||=Ae(()=>{},[`stop`]),onClick:t[5]||=Ae(e=>be(g.value),[`stop`])},d(e.$t(`common.actions.edit`)),33),c(`div`,{class:`drop-item`,onMousedown:t[6]||=Ae(()=>{},[`stop`]),onClick:t[7]||=Ae(e=>xe(g.value),[`stop`])},d(e.$t(`common.actions.delete`)),33)])]),_:1},8,[`show`,`x`,`y`])])):b(``,!0),ue(r,`Review`)||de(r,`Review`)||ce(r)?(S(),V(`div`,r2,[de(r,`Review`)?(S(),s(K(Og),{key:0,placement:`bottom`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,"z-index":96,class:`state-popover`,show:j.value===r.name,onClickoutside:Te},{trigger:G(()=>[x(De,{class:D({active:j.value===r.name}),onClick:Ae(e=>he(r),[`stop`])},{default:G(()=>[re(r,`ACCEPTED`)?(S(),s(Oe,{key:0})):re(r,`REJECTED`)?(S(),s(ke,{key:1})):re(r,`CANCELLED`)?(S(),s(je,{key:2})):re(r,`COMPLETED`)?(S(),s(Ne,{key:3})):(S(),s(Pe,{key:4}))]),_:2},1032,[`class`,`onClick`])]),default:G(()=>[c(`div`,i2,[c(`div`,{class:`drop-item`,onClick:Ae(e=>me(r,`ACCEPTED`),[`stop`])},[x(Oe),y(d(e.$t(`panels.left.reply.accepted`)),1)],8,a2),c(`div`,{class:`drop-item`,onClick:Ae(e=>me(r,`REJECTED`),[`stop`])},[x(ke),y(d(e.$t(`panels.left.reply.rejected`)),1)],8,o2),c(`div`,{class:`drop-item`,onClick:Ae(e=>me(r,`CANCELLED`),[`stop`])},[x(je),y(d(e.$t(`panels.left.reply.cancelled`)),1)],8,s2),c(`div`,{class:`drop-item`,onClick:Ae(e=>me(r,`COMPLETED`),[`stop`])},[x(Ne),y(d(e.$t(`panels.left.reply.completed`)),1)],8,c2),c(`div`,{class:`drop-item`,onClick:Ae(e=>me(r,`NONE`),[`stop`])},[x(Pe),y(d(e.$t(`panels.left.reply.none`)),1)],8,l2)])]),_:2},1032,[`show`])):ue(r,`Review`)?(S(),s(De,{key:1},{default:G(()=>[re(r,`ACCEPTED`)?(S(),s(Oe,{key:0})):re(r,`REJECTED`)?(S(),s(ke,{key:1})):re(r,`CANCELLED`)?(S(),s(je,{key:2})):re(r,`COMPLETED`)?(S(),s(Ne,{key:3})):(S(),s(Pe,{key:4}))]),_:2},1024)):b(``,!0),c(`div`,u2,[x(Fe),B(r)?(S(),V(`span`,d2,d(B(r)),1)):b(``,!0),ce(r)?(S(),s(Ie,{key:1,class:`return`,onClick:Ae(e=>Ee(r),[`stop`])},null,8,[`onClick`])):b(``,!0)])])):b(``,!0)],42,F0)):b(``,!0)],64))),256))],64)):b(``,!0)]))),256)):(S(),V(`div`,f2,d(e.$t(`panels.left.annotations.empty`)),1))],2)}}},m2={class:`annotation-header`},h2={class:`annotation-title`},g2={class:`annotation-header-buttons`},_2={__name:`AnnotationHeader`,setup(e){let t=fw(),n=ye(),r=T(()=>n.isAnnotationExport),i=T(()=>n.isAnnotationImport),{removeAllAnnotations:a,importAnnotations:o,exportXfdf:l}=U,u=()=>{mw(_e?``:`.xfdf`).then(async e=>{if(e.name.split(`.`).pop().toLowerCase()!==`xfdf`)return;await o(e);let n=U.getAnnotationsList();t.initAnnotations(n)})},f=T(()=>t.getTotalPages),p=T(()=>t.getAllAnnotations);T(()=>t.getOptionUrl);let m=T(()=>t.info);m.value&&m.value.token&&atob(m.value.token).replace(`.pdf`,`.xfdf`);let g=async()=>{try{n.setDownloading(!0);let e=await l(!0);n.setDownloading(!1),e||n.setDownloadError(`Downloaded`)}catch(e){console.log(e),n.setDownloading(!1),n.setDownloadError(`Downloaded`)}};return(e,t)=>{let n=zF,a=lx,o=DN;return S(),V(`div`,m2,[c(`h2`,h2,d(e.$t(`panels.left.annotations.title`)),1),c(`div`,g2,[r.value?(S(),s(a,{key:0,className:`button-icon`,img:`icon-import`,onClick:g,title:e.$t(`panels.left.annotations.export`),disabled:!p.value||p.value.annotationsCount===0},{default:G(()=>[x(n)]),_:1},8,[`title`,`disabled`])):b(``,!0),i.value?(S(),s(a,{key:1,className:`button-icon`,img:`icon-export`,onClick:u,title:e.$t(`panels.left.annotations.import`),disabled:f.value<=0},{default:G(()=>[x(o)]),_:1},8,[`title`,`disabled`])):b(``,!0)])])}}},v2={class:`left-panel`,id:`leftPanel`},y2={class:`sidebar-content`},b2={__name:`LeftPanel`,setup(e){let t=ye(),n=fw(),r=T(()=>t.getActiveElementTab(H.LEFT_PANEL)),i=T(()=>t.isElementOpen(H.LEFT_PANEL)),a=T(()=>n.getActiveTool);return W(i,e=>{e&&a.value===L.CROP_PAGE&&n.setToolState(``)}),(e,t)=>{let n=_2,i=p2,a=N0,o=w0,s=X1,l=H1;return S(),V(`div`,v2,[c(`div`,y2,[c(`div`,{class:D([`thumbnail-container`,{hidden:r.value!==K(H).THUMBS}])},[c(`h2`,null,d(e.$t(`panels.left.thumbnails`)),1),t[0]||=c(`div`,{class:`thumbnail-view`},null,-1)],2),r.value===K(H).ANNOTATION_TAB?(S(),V(`div`,{key:0,class:D([`annotation-container`,{hidden:r.value!==K(H).ANNOTATION_TAB}])},[x(n),x(i)],2)):b(``,!0),R(x(a,null,null,512),[[Re,r.value===K(H).OUTLINE]]),c(`div`,{class:D([`layer-container`,{hidden:r.value!==K(H).LAYER}])},[x(o)],2),c(`div`,{class:D([`signature-container`,{hidden:r.value!==K(H).SIGNATURE_TAB}])},[x(s)],2),c(`div`,{class:D([`findbar-container`,{hidden:r.value!==K(H).SEARCH_TAB}])},[x(l)],2)])])}}},x2={__name:`RightPanelTabs`,props:[`activePanelTab`,`selectedElement`],setup(e){let t=ye(),n=(e,n)=>{t.setActiveElementTab(H.RIGHT_PANEL,e)};return(t,r)=>{let i=lx;return S(),V(q,null,[x(i,{className:e.activePanelTab===K(H).GENERAL?`active`:``,"data-element":K(H).GENERAL,isActive:e.activePanelTab===K(H).GENERAL,onClick:r[0]||=e=>n(K(H).GENERAL,`general`)},{default:G(()=>[c(`span`,null,d(t.$t(`panels.right.general.title`)),1)]),_:1},8,[`className`,`data-element`,`isActive`]),r[4]||=c(`div`,{class:`divider`},null,-1),e.selectedElement===K(L).SIGNATURE_FIELDS?b(``,!0):(S(),s(i,{key:0,className:e.activePanelTab===K(H).APPEARANCE?`active`:``,"data-element":K(H).APPEARANCE,isActive:e.activePanelTab===K(H).APPEARANCE,onClick:r[1]||=e=>n(K(H).APPEARANCE,`appearance`)},{default:G(()=>[c(`span`,null,d(t.$t(`panels.right.appearance.title`)),1)]),_:1},8,[`className`,`data-element`,`isActive`])),e.selectedElement===K(L).SIGNATURE_FIELDS?b(``,!0):(S(),V(q,{key:1},[r[3]||=c(`div`,{class:`divider`},null,-1),x(i,{className:e.activePanelTab===K(H).PREFERENCE?`active`:``,"data-element":K(H).PREFERENCE,isActive:e.activePanelTab===K(H).PREFERENCE,onClick:r[2]||=e=>n(K(H).PREFERENCE,`preferences`)},{default:G(()=>[c(`span`,null,d(t.$t(`panels.right.preferences.title`)),1)]),_:1},8,[`className`,`data-element`,`isActive`])],64))],64)}}},S2={class:`sidebar-title`},C2={class:`sidebar-tabs-header`},w2={class:`sidebar-content`},T2={class:`content-block`},E2={key:0,class:`error-text`},D2={key:0,class:`content-block`},O2={class:`content-block`},k2={value:`0`},A2={value:`1`},j2={class:`content-block`},M2={class:`indicator-content`},N2={class:`content-block`},P2={class:`wider`},F2={class:`content-block`},I2={class:`wider`},L2={class:`content-block form-family`},R2={class:`content-block`},z2={class:`text-style`},B2={value:`normal`},V2={value:`bold`},H2={value:`oblique`},U2={value:`boldOblique`},W2={class:`content-block`},G2={value:`left`},K2={value:`center`},q2={value:`right`},J2={class:`content-block`},Y2={class:`content-block`},X2={class:`content-block`},Z2={value:`0`},Q2={value:`1`},$2={value:`2`},e4={value:`3`},t4={value:`4`},n4={value:`5`},r4={class:`content-block`},i4={class:`content-block`},a4={value:`1`},o4={value:`6`},s4={class:`content-block`},c4=[`placeholder`],l4={class:`content-block`},u4={class:`content-block`},d4={class:`button-content`},f4={class:`content-block`},p4={class:`button-content item-list`},m4=[`onClick`],h4={class:`buttons`},g4={__name:`RightPanel`,setup(e){let{t}=It(),n=ye(),r=fw(),i=[`rgb(251, 189, 191)`,`rgb(255, 255, 255)`,`rgb(253, 244, 178)`,`rgb(221, 233, 255)`],a=[`rgb(255, 0, 0)`,`rgb(0, 0, 0)`,`rgb(45, 119, 250)`],o={fieldName:``,title:``,isHidden:0,fillColor:``,color:``,fontName:`Helvetica`,fontStyle:`normal`,fontSize:`12`,textAlignment:`left`,isMultiLine:!1,contents:``,checkStyle:`0`,isChecked:!1,required:0,indicator:!1,indicatorText:``,actionType:0,destPage:``,url:``,projectList:[],items:[]},s=T(()=>n.getCustomFonts);W(()=>s.value,(e,t)=>{u.value=l(e)},{deep:!0});let l=e=>{if(e.length)return e.map(e=>({label:e.fontFamily,value:e.fontName}))},u=J([]);u.value=l(s.value);let f=J({...o}),p=``,m=``,g=!1,_=T(()=>{if(E.value===`form`){if(k.value===L.TEXTFIELD)return t(`toolbar.formTools.textField`);if(k.value===L.CHECKBOX)return t(`toolbar.formTools.checkbox`);if(k.value===L.RADIOBUTTON)return t(`toolbar.formTools.radioButton`);if(k.value===L.PUSHBUTTON)return t(`toolbar.formTools.button`);if(k.value===L.LISTBOX)return t(`toolbar.formTools.listBox`);if(k.value===L.COMBOBOX)return t(`toolbar.formTools.comboButton`)}else if(E.value===`sign`&&k.value===L.SIGNATURE_FIELDS)return t(`toolbar.formTools.signataireField`)}),y=T(()=>n.getActiveElementTab(H.RIGHT_PANEL)),C=T(()=>n.isElementOpen(H.RIGHT_PANEL)),w=T(()=>r.getTotalPages),E=T(()=>n.getToolMode),O=J(!1),k=J(null),A=J(null),j=J(null),M=J([]),N=J(!0),ee=J(null);r.setProperty(`indicatorText`,t(`panels.right.general.fill`));let F=e=>{e&&r.setPropertyPanel(e)},te=e=>{if(e===`fieldName`&&F({fieldName:f.value.fieldName}),e===`title`&&F({title:f.value.title}),e===`destPage`){let e=f.value.destPage;e!==``&&e!=p&&(F({actionType:1,destPage:e.toString()}),p=e)}else if(e===`url`){let e=f.value.url;e===``?f.value.url=m:(!e.startsWith(`http://`)&&!e.startsWith(`https://`)&&(e=`https://`+e),F({url:e,actionType:6}),m=e)}};W(()=>C.value,e=>{e&&(n.closeElement(H.PAGE_MODE_PANEL),f.value.indicatorText&&(ee.value.focus(),ee.value.blur()))}),W(()=>f.value.fontName,e=>{e&&ce()}),W(()=>f.value.destPage,(e,t)=>{e!==``&&(e>w.value||e<=0||!/^\d+$/.test(e))&&(f.value.destPage=t)});let I=e=>{if(g=!0,A.value=``,j.value=null,f.value.required=0,f.value.indicator=!1,f.value.indicatorText=``,e)k.value=e.type.replace(`-`,``),(k.value===L.LISTBOX||k.value===L.COMBOBOX||k.value===L.PUSHBUTTON)&&n.setActiveElementTab(H.RIGHT_PANEL,H.PREFERENCE),k.value!==L.CHECKBOX&&(N.value=!0);else{k.value=null,Se(),g=!1;return}for(let t in e)if(t in o){if(t===`fontStyle`||t===`fontWeight`){let t=e.fontWeight||`normal`,n=e.fontStyle||`normal`;t===`bold`&&n===`oblique`?f.value.fontStyle=`boldOblique`:t===`bold`?f.value.fontStyle=`bold`:n===`oblique`?f.value.fontStyle=`oblique`:f.value.fontStyle=`normal`;continue}t===`items`?M.value=Array.from(e[t]):f.value[t]=e[t]}g=!1},ne=e=>{e===`editor`?n.toggleElement(H.CONTENT_EDITOR_PANEL):n.toggleElement(H.RIGHT_PANEL)},re=(e,t)=>{f.value[e]=t,F({[e]:t})},ie=()=>{f.value.isChecked=!f.value.isChecked,F({isChecked:+f.value.isChecked})},B=()=>{f.value.required=!f.value.required,F({required:+f.value.required})},ae=()=>{if(f.value.indicator=!f.value.indicator,F({indicator:f.value.indicator}),f.value.indicator&&!f.value.indicatorText){let e=k.value===L.SIGNATURE_FIELDS?t(`panels.right.general.signHere`):t(`panels.right.general.fill`);f.value.indicatorText=e,F({indicatorText:e})}},oe=()=>{F({contents:f.value.contents===``?` `:f.value.contents})},se=()=>{g||(F({isHidden:f.value.isHidden}),f.value.indicator&&(f.value.indicator=!1,F({indicator:!1})))},ce=()=>{g||F({fontName:f.value.fontName})},le=()=>{g||F({fontWeight:/bold/i.test(f.value.fontStyle)?`bold`:`normal`,fontStyle:/(oblique|italic)/i.test(f.value.fontStyle)?`oblique`:`normal`})},ue=()=>{g||F({fontSize:f.value.fontSize})},de=()=>{g||F({textAlignment:f.value.textAlignment})},fe=()=>{f.value.isMultiLine=!f.value.isMultiLine,F({isMultiLine:f.value.isMultiLine})},pe=()=>{g||F({checkStyle:parseInt(f.value.checkStyle)})},me=()=>{if(g)return;let e=f.value.actionType;(e===`1`&&f.value.destPage!==``||e===`6`&&f.value.url!==``)&&F({actionType:e})},he=()=>{g||F({indicatorText:f.value.indicatorText})};U.addEvent(`judgeRadioBtnIsOne`,e=>{O.value=e}),U.addEvent(`judgeCheckboxIsOne`,e=>{N.value=e});let ge=(e,t)=>{j.value=e,A.value=t},_e=()=>{for(var e=0;e<M.value.length;e++)if(M.value[e]===A.value)return;if(A.value)M.value.push({Value:A.value,String:A.value});else return;j.value=null,F({item:A.value}),A.value=``},ve=()=>{for(var e=0;e<M.value.length;e++)M.value[e]===M.value[j.value]&&(M.value.splice(e,1),F({deleteItemIndex:e,selected:0}),A.value=``,j.value=null)},be=()=>{if(j.value){for(var e=0;e<M.value.length;e++)if(M.value[e]===M.value[j.value]){M.value.splice(e-1,2,M.value[e],M.value[e-1]),F({moveOption:{fromIndex:e,toIndex:e-1}}),--j.value;break}}},xe=()=>{if(j.value!==M.value.length-1){for(var e=0;e<M.value.length;e++)if(M.value[e]===M.value[j.value]&&e<M.value.length-1){M.value.splice(e,2,M.value[e+1],M.value[e]),F({moveOption:{fromIndex:e,toIndex:e+1}}),j.value+=1;break}}},Se=()=>{n.closeElement(H.RIGHT_PANEL)};return U.addEvent(`propertyChange`,I),U.addEvent(`toggleAttrbutePanel`,ne),U.addEvent(`annotationDeselected`,()=>{Se()}),(e,t)=>{let n=x2,r=QC,o=$b,s=Cz,l=lR,p=TH,m=YM;return S(),V(`div`,{class:D([`right-panel`,{mobile:K(P)}])},[c(`div`,S2,d(_.value),1),c(`div`,C2,[x(n,{activePanelTab:y.value,selectedElement:k.value},null,8,[`activePanelTab`,`selectedElement`])]),c(`div`,w2,[R(c(`div`,{class:`radio-top-tip`},d(e.$t(`panels.right.preferences.radioTips`)[0]),513),[[Re,O.value&&k.value===K(L).RADIOBUTTON]]),c(`div`,{class:D([`general-container`,{hidden:y.value!==`GENERAL`}])},[c(`div`,T2,[c(`h2`,null,d(e.$t(`panels.right.general.name`)),1),R(c(`input`,{type:`text`,"onUpdate:modelValue":t[0]||=e=>f.value.fieldName=e,onBlur:t[1]||=e=>te(`fieldName`),name:`form`},null,544),[[Me,f.value.fieldName]]),N.value?b(``,!0):(S(),V(`p`,E2,d(e.$t(`panels.right.general.nameConflict`)),1))]),k.value===K(L).PUSHBUTTON&&E.value===`form`?(S(),V(`div`,D2,[c(`h2`,null,d(e.$t(`panels.right.general.buttonText`)),1),R(c(`input`,{type:`text`,"onUpdate:modelValue":t[2]||=e=>f.value.title=e,onBlur:t[3]||=e=>te(`title`),name:`form`},null,544),[[Me,f.value.title]])])):b(``,!0),c(`div`,O2,[c(`h2`,null,d(e.$t(`panels.right.general.formField`)),1),R(c(`select`,{name:`field`,id:`field`,"onUpdate:modelValue":t[4]||=e=>f.value.isHidden=e,onChange:se},[c(`option`,k2,d(e.$t(`panels.right.general.visibility.visible`)),1),c(`option`,A2,d(e.$t(`panels.right.general.visibility.hidden`)),1)],544),[[Oe,f.value.isHidden,void 0,{number:!0}]])]),c(`div`,j2,[c(`h2`,null,d(e.$t(`panels.right.general.properties`)),1),c(`div`,{class:`check-box`,onClick:B},[c(`div`,{class:D([`check`,{active:f.value.required}])},[R(x(r,null,null,512),[[Re,f.value.required]])],2),c(`span`,null,d(e.$t(`panels.right.general.required`)),1)]),k.value===K(L).PUSHBUTTON?b(``,!0):(S(),V(`div`,{key:0,class:D([`indicator-box`,f.value.isHidden===`1`&&`disabled`])},[c(`div`,{class:D([`check`,{active:f.value.indicator}]),onClick:ae},[R(x(r,null,null,512),[[Re,f.value.indicator]])],2),c(`div`,M2,[c(`div`,{class:`label`,onClick:ae},d(e.$t(`panels.right.general.indicator`)),1),R(c(`div`,null,[R(c(`input`,{ref_key:`inputRef`,ref:ee,type:`text`,"onUpdate:modelValue":t[5]||=e=>f.value.indicatorText=e,onBlur:he},null,544),[[Me,f.value.indicatorText]])],512),[[Re,f.value.indicator]])])],2))])],2),c(`div`,{class:D([`appearance-container`,{hidden:y.value!==`APPEARANCE`}])},[c(`div`,N2,[c(`h2`,P2,d(e.$t(`panels.right.appearance.backgroundColor`)),1),x(I$,{colors:i,propertyColor:f.value.fillColor,to:`.right-panel`,onSetActiveColor:t[6]||=e=>re(`fillColor`,e)},null,8,[`propertyColor`])]),(k.value===K(L).TEXTFIELD||k.value===K(L).PUSHBUTTON||k.value===K(L).COMBOBOX||k.value===K(L).LISTBOX)&&E.value===`form`?(S(),V(q,{key:0},[c(`div`,F2,[c(`h2`,I2,d(e.$t(`common.uiElements.font`)),1),x(I$,{colors:a,propertyColor:f.value.color,to:`.right-panel`,onSetActiveColor:t[7]||=e=>re(`color`,e)},null,8,[`propertyColor`])]),c(`div`,L2,[x(K(kv),{"consistent-menu-width":!1,value:f.value.fontName,"onUpdate:value":t[8]||=e=>f.value.fontName=e,options:u.value,to:`.form-family`,class:`text-family`},{arrow:G(()=>[x(o)]),_:1},8,[`value`,`options`])]),c(`div`,R2,[c(`div`,z2,[R(c(`select`,{"onUpdate:modelValue":t[9]||=e=>f.value.fontStyle=e,class:`font-family-select`,onChange:le},[c(`option`,B2,d(e.$t(`common.fontStyles.regular`)),1),c(`option`,V2,d(e.$t(`common.fontStyles.bold`)),1),c(`option`,H2,d(e.$t(`common.fontStyles.oblique`)),1),c(`option`,U2,d(e.$t(`common.fontStyles.boldOblique`)),1)],544),[[Oe,f.value.fontStyle]]),R(c(`select`,{"onUpdate:modelValue":t[10]||=e=>f.value.fontSize=e,class:`font-size-select`,onChange:ue},[...t[20]||=[v(`<option value="12">12</option><option value="14">14</option><option value="16">16</option><option value="20">20</option><option value="24">24</option><option value="28">28</option>`,6)]],544),[[Oe,f.value.fontSize]])])])],64)):b(``,!0)],2),c(`div`,{class:D([`preferences-container`,{hidden:y.value!==`PREFERENCE`}])},[k.value===K(L).TEXTFIELD&&E.value===`form`?(S(),V(q,{key:0},[c(`div`,W2,[c(`h2`,null,d(e.$t(`panels.right.preferences.alignment.title`)),1),R(c(`select`,{name:`alignment`,id:`alignment`,"onUpdate:modelValue":t[11]||=e=>f.value.textAlignment=e,onChange:de},[c(`option`,G2,d(e.$t(`panels.right.preferences.alignment.left`)),1),c(`option`,K2,d(e.$t(`panels.right.preferences.alignment.center`)),1),c(`option`,q2,d(e.$t(`panels.right.preferences.alignment.right`)),1)],544),[[Oe,f.value.textAlignment]])]),c(`div`,J2,[c(`h2`,null,d(e.$t(`panels.right.preferences.defaultValue`)),1),R(c(`textarea`,{name:`default-value`,id:`default-value`,rows:`3`,"onUpdate:modelValue":t[12]||=e=>f.value.contents=e,onChange:oe},null,544),[[Me,f.value.contents]])]),c(`div`,Y2,[c(`div`,{class:`check-box`,onClick:fe},[c(`div`,{class:D([`check`,{active:f.value.isMultiLine}])},[R(x(r,null,null,512),[[Re,f.value.isMultiLine]])],2),c(`span`,null,d(e.$t(`panels.right.preferences.multiLine`)),1)])])],64)):b(``,!0),(k.value===K(L).CHECKBOX||k.value===K(L).RADIOBUTTON)&&E.value===`form`?(S(),V(q,{key:1},[c(`div`,X2,[c(`h2`,null,d(e.$t(`panels.right.preferences.buttonStyle`)),1),R(c(`select`,{"onUpdate:modelValue":t[13]||=e=>f.value.checkStyle=e,onChange:pe},[c(`option`,Z2,d(e.$t(`panels.right.preferences.styles.check`)),1),c(`option`,Q2,d(e.$t(`panels.right.preferences.styles.circle`)),1),c(`option`,$2,d(e.$t(`panels.right.preferences.styles.cross`)),1),c(`option`,e4,d(e.$t(`panels.right.preferences.styles.diamond`)),1),c(`option`,t4,d(e.$t(`panels.right.preferences.styles.square`)),1),c(`option`,n4,d(e.$t(`panels.right.preferences.styles.star`)),1)],544),[[Oe,f.value.checkStyle]])]),c(`div`,r4,[c(`div`,{class:`check-box`,onClick:ie},[c(`div`,{class:D([`check`,{active:f.value.isChecked}])},[R(x(r,null,null,512),[[Re,f.value.isChecked]])],2),c(`span`,null,d(e.$t(`panels.right.preferences.defaultChecked`)),1)])])],64)):b(``,!0),k.value===K(L).PUSHBUTTON&&E.value===`form`?(S(),V(q,{key:2},[c(`div`,i4,[c(`h2`,null,d(e.$t(`panels.right.preferences.selectAction.title`)),1),R(c(`select`,{"onUpdate:modelValue":t[14]||=e=>f.value.actionType=e,onChange:me},[R(c(`option`,{value:`0`},d(e.$t(`panels.right.preferences.selectAction.none`)),513),[[Re,f.value.actionType==0]]),c(`option`,a4,d(e.$t(`panels.right.preferences.selectAction.goPage`)),1),c(`option`,o4,d(e.$t(`panels.right.preferences.selectAction.openLink`)),1)],544),[[Oe,f.value.actionType]])]),R(c(`div`,s4,[c(`h2`,null,d(e.$t(`panels.right.preferences.selectAction.goPage`)),1),R(c(`input`,{type:`text`,pattern:`\\d*`,placeholder:e.$t(`panels.right.preferences.addResource.page`),"onUpdate:modelValue":t[15]||=e=>f.value.destPage=e,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,onBlur:t[16]||=e=>te(`destPage`),name:`form`},null,40,c4),[[Me,f.value.destPage]])],512),[[Re,f.value.actionType==1]]),R(c(`div`,l4,[c(`h2`,null,d(e.$t(`panels.right.preferences.selectAction.openLink`)),1),R(c(`input`,{type:`text`,placeholder:`https://`,"onUpdate:modelValue":t[17]||=e=>f.value.url=e,onBlur:t[18]||=e=>te(`url`),name:`form`},null,544),[[Me,f.value.url]])],512),[[Re,f.value.actionType==6]])],64)):b(``,!0),(k.value===K(L).COMBOBOX||k.value===K(L).LISTBOX)&&E.value===`form`?(S(),V(q,{key:3},[c(`div`,u4,[c(`h2`,null,d(e.$t(`panels.right.preferences.item`)),1),c(`div`,d4,[R(c(`input`,{type:`text`,class:`item`,"onUpdate:modelValue":t[19]||=e=>A.value=e,name:`form`},null,512),[[Me,A.value,void 0,{trim:!0}]]),c(`div`,{class:D([`operate-button`,{disabled:!A.value}]),onClick:_e},[x(s)],2)])]),c(`div`,f4,[c(`h2`,null,d(e.$t(`panels.right.preferences.itemList`)),1),c(`div`,p4,[c(`ul`,null,[(S(!0),V(q,null,z(M.value,(e,t)=>(S(),V(`li`,{key:t,class:D({active:t===j.value}),onClick:n=>ge(t,e.Value)},d(e.Value),11,m4))),128))]),c(`div`,h4,[c(`div`,{class:D([`operate-button`,{disabled:!j.value&&j.value!==0}]),onClick:ve},[x(l)],2),c(`div`,{class:D([`operate-button`,{disabled:j.value===0||!j.value}]),onClick:be},[x(p)],2),c(`div`,{class:D([`operate-button`,{disabled:j.value===M.value.length-1||!j.value&&j.value!==0}]),onClick:xe},[x(m)],2)])])])],64)):b(``,!0)],2),R(c(`div`,{class:`radio-bottom-tip`},d(e.$t(`panels.right.preferences.radioTips`)[1]),513),[[Re,k.value===K(L).RADIOBUTTON]]),R(c(`div`,{class:`radio-bottom-tip`},d(e.$t(`panels.right.preferences.listBoxTip`)),513),[[Re,k.value===K(L).COMBOBOX]])])],2)}}},_4={class:`sidebar-title`},v4={class:`sidebar-tabs-header`},y4={class:`sidebar-content`},b4={class:`input-container`},x4={class:`input-container`},S4=[`placeholder`],C4={class:`input-container`},w4={__name:`LinkPanel`,setup(e){let t=ye(),n=fw(),r=J(H.URL),i=T(()=>t.isElementOpen(H.LINK_PANEL)),a=T(()=>n.getActiveTool),o=T(()=>n.getTotalPages),s=J(``),l=J(``),u=J(``);W(()=>a.value,(e,n)=>{e!==L.LINK&&t.closeElement(H.LINK_PANEL)}),W(()=>i.value,(e,n)=>{e&&(t.closeElement(H.PAGE_MODE_PANEL),r.value=s.value?H.URL:l.value?H.PAGE:u.value?H.EMAIL:H.URL)}),W(()=>l.value,(e,t)=>{e!==``&&(e>o.value||e<=0||!/^\d+$/.test(e))&&(l.value=t)});let f=e=>{r.value=e},p=()=>r.value===H.URL&&g(s.value)||r.value===H.PAGE&&l.value||r.value===H.EMAIL&&m(u.value),m=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),g=e=>/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/i.test(e),_=()=>{if(r.value===H.URL)n.setPropertyPanel({destPage:``,url:s.value});else if(r.value===H.PAGE)n.setPropertyPanel({url:``,destPage:l.value});else if(r.value===H.EMAIL){let e=u.value.startsWith(`mailto:`);n.setPropertyPanel({destPage:``,url:e?u.value:`mailto:`+u.value})}t.closeElement(H.LINK_PANEL)};U.addEvent(`linkPanelChange`,e=>{e?(e.url&&e.url.startsWith(`mailto:`)?(u.value=e.url.replace(`mailto:`,``),s.value=``,l.value=``,r.value=H.EMAIL):e.url?(s.value=e.url,u.value=``,l.value=``,r.value=H.URL):e.destPage?(l.value=e.destPage,s.value=``,u.value=``,r.value=H.PAGE):(l.value=``,s.value=``,u.value=``,r.value=H.URL),t.openElement(H.LINK_PANEL)):t.closeElement(H.LINK_PANEL)});let v=()=>{r.value===H.URL?s.value=``:r.value===H.PAGE?l.value=``:r.value===H.EMAIL&&(u.value=``)};return(e,t)=>{let n=lx,i=hN;return S(),V(`div`,{class:D([`link-panel`,{mobile:K(P)}]),id:`linkPanel`},[c(`div`,_4,d(e.$t(`panels.link.title`)),1),c(`div`,v4,[x(n,{className:r.value===K(H).URL?`active`:``,isActive:r.value===K(H).URL,"data-element":K(H).URL,onClick:t[0]||=e=>f(K(H).URL)},{default:G(()=>[c(`span`,null,d(e.$t(`panels.link.types.url`)),1)]),_:1},8,[`className`,`isActive`,`data-element`]),x(n,{className:r.value===K(H).PAGE?`active`:``,isActive:r.value===K(H).PAGE,"data-element":K(H).PAGE,onClick:t[1]||=e=>f(K(H).PAGE)},{default:G(()=>[c(`span`,null,d(e.$t(`panels.link.types.pages`)),1)]),_:1},8,[`className`,`isActive`,`data-element`]),x(n,{className:r.value===K(H).EMAIL?`active`:``,isActive:r.value===K(H).EMAIL,"data-element":K(H).EMAIL,onClick:t[2]||=e=>f(K(H).EMAIL)},{default:G(()=>[c(`span`,null,d(e.$t(`panels.link.types.email`)),1)]),_:1},8,[`className`,`isActive`,`data-element`])]),c(`div`,y4,[R(c(`div`,b4,[R(c(`input`,{type:`text`,placeholder:`https://www.example.com`,"onUpdate:modelValue":t[3]||=e=>ue(s)?s.value=e:s=e,name:`link`},null,512),[[Me,K(s)]]),R(x(i,{onClick:v},null,512),[[Re,K(s)]])],512),[[Re,r.value===K(H).URL]]),R(c(`div`,x4,[R(c(`input`,{type:`text`,pattern:`\\d*`,placeholder:`1~${o.value}`,"onUpdate:modelValue":t[4]||=e=>ue(l)?l.value=e:l=e,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,name:`link`},null,8,S4),[[Me,K(l)]]),R(x(i,{onClick:v},null,512),[[Re,K(l)]])],512),[[Re,r.value===K(H).PAGE]]),R(c(`div`,C4,[R(c(`input`,{type:`text`,placeholder:`support@compdf.com`,"onUpdate:modelValue":t[5]||=e=>ue(u)?u.value=e:u=e,name:`link`},null,512),[[Me,K(u)]]),R(x(i,{onClick:v},null,512),[[Re,K(u)]])],512),[[Re,r.value===K(H).EMAIL]]),c(`div`,{class:D([`save rect-button blue`,{disabled:!p()}]),onClick:_},d(e.$t(`panels.link.action`)),3)])],2)}}},T4=e(r(((e,t)=>{(function(n){typeof e==`object`&&t!==void 0?t.exports=n():typeof define==`function`&&define.amd?define([],n):(typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this).JSZip=n()})(function(){return function e(t,r,i){function a(s,c){if(!r[s]){if(!t[s]){var l=typeof n==`function`&&n;if(!c&&l)return l(s,!0);if(o)return o(s,!0);var u=Error(`Cannot find module '`+s+`'`);throw u.code=`MODULE_NOT_FOUND`,u}var d=r[s]={exports:{}};t[s][0].call(d.exports,function(e){var n=t[s][1][e];return a(n||e)},d,d.exports,e,t,r,i)}return r[s].exports}for(var o=typeof n==`function`&&n,s=0;s<i.length;s++)a(i[s]);return a}({1:[function(e,t,n){var r=e(`./utils`),i=e(`./support`),a=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`;n.encode=function(e){for(var t,n,i,o,s,c,l,u=[],d=0,f=e.length,p=f,m=r.getTypeOf(e)!==`string`;d<e.length;)p=f-d,i=m?(t=e[d++],n=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),n=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),o=t>>2,s=(3&t)<<4|n>>4,c=1<p?(15&n)<<2|i>>6:64,l=2<p?63&i:64,u.push(a.charAt(o)+a.charAt(s)+a.charAt(c)+a.charAt(l));return u.join(``)},n.decode=function(e){var t,n,r,o,s,c,l=0,u=0,d=`data:`;if(e.substr(0,d.length)===d)throw Error(`Invalid base64 input, it looks like a data url.`);var f,p=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,``)).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&p--,e.charAt(e.length-2)===a.charAt(64)&&p--,p%1!=0)throw Error(`Invalid base64 input, bad content length.`);for(f=i.uint8array?new Uint8Array(0|p):Array(0|p);l<e.length;)t=a.indexOf(e.charAt(l++))<<2|(o=a.indexOf(e.charAt(l++)))>>4,n=(15&o)<<4|(s=a.indexOf(e.charAt(l++)))>>2,r=(3&s)<<6|(c=a.indexOf(e.charAt(l++))),f[u++]=t,s!==64&&(f[u++]=n),c!==64&&(f[u++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){var r=e(`./external`),i=e(`./stream/DataWorker`),a=e(`./stream/Crc32Probe`),o=e(`./stream/DataLengthProbe`);function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o(`data_length`)),t=this;return e.on(`end`,function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw Error(`Bug : uncompressed data size mismatch`)}),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo(`compressedSize`,this.compressedSize).withStreamInfo(`uncompressedSize`,this.uncompressedSize).withStreamInfo(`crc32`,this.crc32).withStreamInfo(`compression`,this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o(`uncompressedSize`)).pipe(t.compressWorker(n)).pipe(new o(`compressedSize`)).withStreamInfo(`compression`,t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){var r=e(`./stream/GenericWorker`);n.STORE={magic:`\0\0`,compressWorker:function(){return new r(`STORE compression`)},uncompressWorker:function(){return new r(`STORE decompression`)}},n.DEFLATE=e(`./flate`)},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){var r=e(`./utils`),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return e!==void 0&&e.length?r.getTypeOf(e)===`string`?function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){var r=null;r=typeof Promise<`u`?Promise:e(`lie`),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){var r=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Uint32Array<`u`,i=e(`pako`),a=e(`./utils`),o=e(`./stream/GenericWorker`),s=r?`uint8array`:`array`;function c(e,t){o.call(this,`FlateWorker/`+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic=`\b\0`,a.inherits(c,o),c.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},c.prototype.flush=function(){o.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new c(`Deflate`,e)},n.uncompressWorker=function(){return new c(`Inflate`,{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){function r(e,t){var n,r=``;for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,o,u){var d,f,p=e.file,m=e.compression,g=u!==s.utf8encode,_=a.transformTo(`string`,u(p.name)),v=a.transformTo(`string`,s.utf8encode(p.name)),y=p.comment,b=a.transformTo(`string`,u(y)),x=a.transformTo(`string`,s.utf8encode(y)),S=v.length!==p.name.length,C=x.length!==y.length,w=``,T=``,E=``,D=p.dir,O=p.date,k={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(k.crc32=e.crc32,k.compressedSize=e.compressedSize,k.uncompressedSize=e.uncompressedSize);var A=0;t&&(A|=8),g||!S&&!C||(A|=2048);var j=0,M=0;D&&(j|=16),o===`UNIX`?(M=798,j|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(p.unixPermissions,D)):(M=20,j|=function(e){return 63&(e||0)}(p.dosPermissions)),d=O.getUTCHours(),d<<=6,d|=O.getUTCMinutes(),d<<=5,d|=O.getUTCSeconds()/2,f=O.getUTCFullYear()-1980,f<<=4,f|=O.getUTCMonth()+1,f<<=5,f|=O.getUTCDate(),S&&(T=r(1,1)+r(c(_),4)+v,w+=`up`+r(T.length,2)+T),C&&(E=r(1,1)+r(c(b),4)+x,w+=`uc`+r(E.length,2)+E);var N=``;return N+=`
2508
- \0`,N+=r(A,2),N+=m.magic,N+=r(d,2),N+=r(f,2),N+=r(k.crc32,4),N+=r(k.compressedSize,4),N+=r(k.uncompressedSize,4),N+=r(_.length,2),N+=r(w.length,2),{fileRecord:l.LOCAL_FILE_HEADER+N+_+w,dirRecord:l.CENTRAL_FILE_HEADER+r(M,2)+N+r(b.length,2)+`\0\0\0\0`+r(j,4)+r(i,4)+_+w+b}}var a=e(`../utils`),o=e(`../stream/GenericWorker`),s=e(`../utf8`),c=e(`../crc32`),l=e(`../signature`);function u(e,t,n,r){o.call(this,`ZipFileWorker`),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,o),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return l.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,i=function(e,t,n,i,o){var s=a.transformTo(`string`,o(i));return l.CENTRAL_DIRECTORY_END+`\0\0\0\0`+r(e,2)+r(e,2)+r(t,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on(`data`,function(e){t.processChunk(e)}),e.on(`end`,function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on(`error`,function(e){t.error(e)}),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch{}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){var r=e(`../compressions`),i=e(`./ZipFileWorker`);n.generateWorker=function(e,t,n){var a=new i(t.streamFiles,n,t.platform,t.encodeFileName),o=0;try{e.forEach(function(e,n){o++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw Error(n+` is not a valid compression method !`);return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,l=n.date;n._compressWorker(i,s).withStreamInfo(`file`,{name:e,dir:c,date:l,comment:n.comment||``,unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)}),a.entriesCount=o}catch(e){a.error(e)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw Error(`The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.`);this.files=Object.create(null),this.comment=null,this.root=``,this.clone=function(){var e=new r;for(var t in this)typeof this[t]!=`function`&&(e[t]=this[t]);return e}}(r.prototype=e(`./object`)).loadAsync=e(`./load`),r.support=e(`./support`),r.defaults=e(`./defaults`),r.version=`3.10.1`,r.loadAsync=function(e,t){return new r().loadAsync(e,t)},r.external=e(`./external`),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){var r=e(`./utils`),i=e(`./external`),a=e(`./utf8`),o=e(`./zipEntries`),s=e(`./stream/Crc32Probe`),c=e(`./nodejsUtils`);function l(e){return new i.Promise(function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on(`error`,function(e){n(e)}).on(`end`,function(){r.streamInfo.crc32===e.decompressed.crc32?t():n(Error(`Corrupted zip : CRC32 mismatch`))}).resume()})}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(Error(`JSZip can't accept a stream when loading a zip file.`)):r.prepareContent(`the loaded zip file`,e,!0,t.optimizedBinaryString,t.base64).then(function(e){var n=new o(t);return n.load(e),n}).then(function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var a=0;a<r.length;a++)n.push(l(r[a]));return i.Promise.all(n)}).then(function(e){for(var i=e.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],c=s.fileNameStr,l=r.resolve(s.fileNameStr);n.file(l,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(l).unsafeOriginalName=c)}return i.zipComment.length&&(n.comment=i.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){var r=e(`../utils`),i=e(`../stream/GenericWorker`);function a(e,t){i.call(this,`Nodejs stream input adapter for `+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on(`data`,function(e){t.push({data:e,meta:{percent:0}})}).on(`error`,function(e){t.isPaused?this.generatedError=e:t.error(e)}).on(`end`,function(){t.isPaused?t._upstreamEnded=!0:t.end()})},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){var r=e(`readable-stream`).Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on(`data`,function(e,t){i.push(e)||i._helper.pause(),n&&n(t)}).on(`error`,function(e){i.emit(`error`,e)}).on(`end`,function(){i.push(null)})}e(`../utils`).inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){t.exports={isNode:typeof Buffer<`u`,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e==`number`)throw Error(`The "data" argument must not be a number`);return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on==`function`&&typeof e.pause==`function`&&typeof e.resume==`function`}}},{}],15:[function(e,t,n){function r(e,t,n){var r,i=a.getTypeOf(t),s=a.extend(n||{},c);s.date=s.date||new Date,s.compression!==null&&(s.compression=s.compression.toUpperCase()),typeof s.unixPermissions==`string`&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=g(e)),s.createFolders&&(r=m(e))&&_.call(this,r,!0);var d=i===`string`&&!1===s.binary&&!1===s.base64;n&&n.binary!==void 0||(s.binary=!d),(t instanceof l&&t.uncompressedSize===0||s.dir||!t||t.length===0)&&(s.base64=!1,s.binary=!0,t=``,s.compression=`STORE`,i=`string`);var v=null;v=t instanceof l||t instanceof o?t:f.isNode&&f.isStream(t)?new p(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var y=new u(e,v,s);this.files[e]=y}var i=e(`./utf8`),a=e(`./utils`),o=e(`./stream/GenericWorker`),s=e(`./stream/StreamHelper`),c=e(`./defaults`),l=e(`./compressedObject`),u=e(`./zipObject`),d=e(`./generate`),f=e(`./nodejsUtils`),p=e(`./nodejs/NodejsStreamInputAdapter`),m=function(e){e.slice(-1)===`/`&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf(`/`);return 0<t?e.substring(0,t):``},g=function(e){return e.slice(-1)!==`/`&&(e+=`/`),e},_=function(e,t){return t=t===void 0?c.createFolders:t,e=g(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return Object.prototype.toString.call(e)===`[object RegExp]`}t.exports={load:function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach(function(n,r){e(n,r)&&t.push(r)}),t},file:function(e,t,n){if(arguments.length!==1)return e=this.root+e,r.call(this,e,t,n),this;if(v(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(v(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=_.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||=(e.slice(-1)!==`/`&&(e+=`/`),this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},generateInternalStream:function(e){var t,n={};try{if((n=a.extend(e||{},{streamFiles:!1,compression:`STORE`,compressionOptions:null,type:``,platform:`DOS`,comment:null,mimeType:`application/zip`,encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),n.type===`binarystring`&&(n.type=`string`),!n.type)throw Error(`No output type specified.`);a.checkSupport(n.type),n.platform!==`darwin`&&n.platform!==`freebsd`&&n.platform!==`linux`&&n.platform!==`sunos`||(n.platform=`UNIX`),n.platform===`win32`&&(n.platform=`DOS`);var r=n.comment||this.comment||``;t=d.generateWorker(this,n,r)}catch(e){(t=new o(`error`)).error(e)}return new s(t,n.type||`string`,n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e||={}).type||(e.type=`nodebuffer`),this.generateInternalStream(e).toNodejsStream(t)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){t.exports=e(`stream`)},{stream:void 0}],17:[function(e,t,n){var r=e(`./DataReader`);function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e(`../utils`).inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&n===a[1]&&r===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){var r=e(`../utils`);function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw Error(`End of data reached (data length = `+this.length+`, asked index = `+e+`). Corrupted zip ?`)},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo(`string`,this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){var r=e(`./Uint8ArrayReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){var r=e(`./DataReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){var r=e(`./ArrayReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array;var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){var r=e(`../utils`),i=e(`../support`),a=e(`./ArrayReader`),o=e(`./StringReader`),s=e(`./NodeBufferReader`),c=e(`./Uint8ArrayReader`);t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),t!==`string`||i.uint8array?t===`nodebuffer`?new s(e):i.uint8array?new c(r.transformTo(`uint8array`,e)):new a(r.transformTo(`array`,e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){n.LOCAL_FILE_HEADER=`PK`,n.CENTRAL_FILE_HEADER=`PK`,n.CENTRAL_DIRECTORY_END=`PK`,n.ZIP64_CENTRAL_DIRECTORY_LOCATOR=`PK\x07`,n.ZIP64_CENTRAL_DIRECTORY_END=`PK`,n.DATA_DESCRIPTOR=`PK\x07\b`},{}],24:[function(e,t,n){var r=e(`./GenericWorker`),i=e(`../utils`);function a(e){r.call(this,`ConvertWorker to `+e),this.destType=e}i.inherits(a,r),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){var r=e(`./GenericWorker`),i=e(`../crc32`);function a(){r.call(this,`Crc32Probe`),this.withStreamInfo(`crc32`,0)}e(`../utils`).inherits(a,r),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){var r=e(`../utils`),i=e(`./GenericWorker`);function a(e){i.call(this,`DataLengthProbe for `+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){var r=e(`../utils`),i=e(`./GenericWorker`);function a(e){i.call(this,`DataWorker`);var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=``,this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case`string`:e=this.data.substring(this.index,t);break;case`uint8array`:e=this.data.subarray(this.index,t);break;case`array`:case`nodebuffer`:e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){function r(e){this.name=e||`default`,this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit(`data`,e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(`end`),this.cleanUp(),this.isFinished=!0}catch(e){this.emit(`error`,e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit(`error`,e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw Error(`The stream '`+this+`' has already been used.`);this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on(`data`,function(e){t.processChunk(e)}),e.on(`end`,function(){t.end()}),e.on(`error`,function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw Error(`The stream '`+this+`' has already been used.`);this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e=`Worker `+this.name;return this.previous?this.previous+` -> `+e:e}},t.exports=r},{}],29:[function(e,t,n){var r=e(`../utils`),i=e(`./ConvertWorker`),a=e(`./GenericWorker`),o=e(`../base64`),s=e(`../support`),c=e(`../external`),l=null;if(s.nodestream)try{l=e(`../nodejs/NodejsStreamOutputAdapter`)}catch{}function u(e,t){return new c.Promise(function(n,i){var a=[],s=e._internalType,c=e._outputType,l=e._mimeType;e.on(`data`,function(e,n){a.push(e),t&&t(n)}).on(`error`,function(e){a=[],i(e)}).on(`end`,function(){try{n(function(e,t,n){switch(e){case`blob`:return r.newBlob(r.transformTo(`arraybuffer`,t),n);case`base64`:return o.encode(t);default:return r.transformTo(e,t)}}(c,function(e,t){var n,r=0,i=null,a=0;for(n=0;n<t.length;n++)a+=t[n].length;switch(e){case`string`:return t.join(``);case`array`:return Array.prototype.concat.apply([],t);case`uint8array`:for(i=new Uint8Array(a),n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case`nodebuffer`:return Buffer.concat(t);default:throw Error(`concat : unsupported type '`+e+`'`)}}(s,a),l))}catch(e){i(e)}a=[]}).resume()})}function d(e,t,n){var o=t;switch(t){case`blob`:case`arraybuffer`:o=`uint8array`;break;case`base64`:o=`string`}try{this._internalType=o,this._outputType=t,this._mimeType=n,r.checkSupport(o),this._worker=e.pipe(new i(o)),e.lock()}catch(e){this._worker=new a(`error`),this._worker.error(e)}}d.prototype={accumulate:function(e){return u(this,e)},on:function(e,t){var n=this;return e===`data`?this._worker.on(e,function(e){t.call(n,e.data,e.meta)}):this._worker.on(e,function(){r.delay(t,arguments,n)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport(`nodestream`),this._outputType!==`nodebuffer`)throw Error(this._outputType+` is not supported by this method`);return new l(this,{objectMode:this._outputType!==`nodebuffer`},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer=typeof ArrayBuffer<`u`&&typeof Uint8Array<`u`,n.nodebuffer=typeof Buffer<`u`,n.uint8array=typeof Uint8Array<`u`,typeof ArrayBuffer>`u`)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=new Blob([r],{type:`application/zip`}).size===0}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=i.getBlob(`application/zip`).size===0}catch{n.blob=!1}}}try{n.nodestream=!!e(`readable-stream`).Readable}catch{n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){for(var r=e(`./utils`),i=e(`./support`),a=e(`./nodejsUtils`),o=e(`./stream/GenericWorker`),s=Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;s[254]=s[254]=1;function l(){o.call(this,`utf-8 decode`),this.leftOver=null}function u(){o.call(this,`utf-8 encode`)}n.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,`utf-8`):function(e){var t,n,r,a,o,s=e.length,c=0;for(a=0;a<s;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(r=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(c):Array(c),a=o=0;o<c;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(r=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo(`nodebuffer`,e).toString(`utf-8`):function(e){var t,n,i,a,o=e.length,c=Array(2*o);for(t=n=0;t<o;)if((i=e[t++])<128)c[n++]=i;else if(4<(a=s[i]))c[n++]=65533,t+=a-1;else{for(i&=a===2?31:a===3?15:7;1<a&&t<o;)i=i<<6|63&e[t++],a--;1<a?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(e=r.transformTo(i.uint8array?`uint8array`:`array`,e))},r.inherits(l,o),l.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?`uint8array`:`array`,e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t||=e.length)>e.length&&(t=e.length),n=t-1;0<=n&&(192&e[n])==128;)n--;return n<0||n===0?t:n+s[e[n]]>t?n:t}(t),c=t;o!==t.length&&(i.uint8array?(c=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(c=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=l,r.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){var r=e(`./support`),i=e(`./base64`),a=e(`./nodejsUtils`),o=e(`./external`);function s(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e(`setimmediate`),n.newBlob=function(e,t){n.checkSupport(`blob`);try{return new Blob([e],{type:t})}catch{try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch{throw Error(`Bug : can't construct the Blob.`)}}};var l={stringifyByChunk:function(e,t,n){var r=[],i=0,a=e.length;if(a<=n)return String.fromCharCode.apply(null,e);for(;i<a;)t===`array`||t===`nodebuffer`?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,a)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,a)))),i+=n;return r.join(``)},stringifyByChar:function(e){for(var t=``,n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}}()}};function u(e){var t=65536,r=n.getTypeOf(e),i=!0;if(r===`uint8array`?i=l.applyCanBeUsed.uint8array:r===`nodebuffer`&&(i=l.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return l.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return l.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=u;var f={};f.string={string:s,array:function(e){return c(e,Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,a.allocBuffer(e.length))}},f.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},f.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:u,array:function(e){return d(e,Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},f.nodebuffer={string:u,array:function(e){return d(e,Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){return t||=``,e?(n.checkSupport(e),f[n.getTypeOf(t)][e](t)):t},n.resolve=function(e){for(var t=e.split(`/`),n=[],r=0;r<t.length;r++){var i=t[r];i===`.`||i===``&&r!==0&&r!==t.length-1||(i===`..`?n.pop():n.push(i))}return n.join(`/`)},n.getTypeOf=function(e){return typeof e==`string`?`string`:Object.prototype.toString.call(e)===`[object Array]`?`array`:r.nodebuffer&&a.isBuffer(e)?`nodebuffer`:r.uint8array&&e instanceof Uint8Array?`uint8array`:r.arraybuffer&&e instanceof ArrayBuffer?`arraybuffer`:void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw Error(e+` is not supported by this platform`)},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r=``;for(n=0;n<(e||``).length;n++)r+=`\\x`+((t=e.charCodeAt(n))<16?`0`:``)+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){setImmediate(function(){e.apply(n||null,t||[])})},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&n[t]===void 0&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,a,s,l){return o.Promise.resolve(t).then(function(e){return r.blob&&(e instanceof Blob||[`[object File]`,`[object Blob]`].indexOf(Object.prototype.toString.call(e))!==-1)&&typeof FileReader<`u`?new o.Promise(function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)}):e}).then(function(t){var u=n.getTypeOf(t);return u?(u===`arraybuffer`?t=n.transformTo(`uint8array`,t):u===`string`&&(l?t=i.decode(t):a&&!0!==s&&(t=function(e){return c(e,r.uint8array?new Uint8Array(e.length):Array(e.length))}(t))),t):o.Promise.reject(Error(`Can't read the data of '`+e+`'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?`))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){var r=e(`./reader/readerFor`),i=e(`./utils`),a=e(`./signature`),o=e(`./zipEntry`),s=e(`./support`);function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw Error(`Corrupted zip or bug: unexpected signature (`+i.pretty(t)+`, expected `+i.pretty(e)+`)`)}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?`uint8array`:`array`,n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error(`Multi-volumes zip are not supported`)},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw Error(`Corrupted zip or bug: expected `+this.centralDirRecords+` records in central dir, got `+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?Error(`Corrupted zip: can't find end of central directory`):Error(`Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html`);this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error(`Corrupted zip: can't find the ZIP64 end of central directory locator`);if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error(`Corrupted zip: can't find the ZIP64 end of central directory`);this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw Error(`Corrupted zip: missing `+Math.abs(r)+` bytes.`)},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){var r=e(`./reader/readerFor`),i=e(`./utils`),a=e(`./compressedObject`),o=e(`./crc32`),s=e(`./utf8`),c=e(`./compressions`),l=e(`./support`);function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),this.compressedSize===-1||this.uncompressedSize===-1)throw Error(`Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)`);if((t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod))===null)throw Error(`Corrupted zip : compression `+i.pretty(this.compressionMethod)+` unknown (inner file : `+i.transformTo(`string`,this.fileName)+`)`);this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw Error(`Encrypted zip are not supported`);e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),e==0&&(this.dosPermissions=63&this.externalFileAttributes),e==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!==`/`||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||={};e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=l.uint8array?`uint8array`:`array`;if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(r!==null)this.fileCommentStr=r;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return t.readInt(1)===1&&o(this.fileName)===t.readInt(4)?s.utf8decode(t.readData(e.length-5)):null}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return t.readInt(1)===1&&o(this.fileComment)===t.readInt(4)?s.utf8decode(t.readData(e.length-5)):null}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e(`./stream/StreamHelper`),a=e(`./stream/DataWorker`),o=e(`./utf8`),s=e(`./compressedObject`),c=e(`./stream/GenericWorker`);r.prototype={internalStream:function(e){var t=null,n=`string`;try{if(!e)throw Error(`No output type specified.`);var r=(n=e.toLowerCase())===`string`||n===`text`;n!==`binarystring`&&n!==`text`||(n=`string`),t=this._decompressWorker();var a=!this._dataBinary;a&&!r&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&r&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new c(`error`)).error(e)}return new i(t,n,``)},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||`nodebuffer`).toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var l=[`asText`,`asBinary`,`asNodeBuffer`,`asUint8Array`,`asArrayBuffer`],u=function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},d=0;d<l.length;d++)r.prototype[l[d]]=u;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(u),s=e.document.createTextNode(``);o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(e.setImmediate||e.MessageChannel===void 0)n=`document`in e&&`onreadystatechange`in e.document.createElement(`script`)?function(){var t=e.document.createElement(`script`);t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;r=!0;for(var n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}r=!1}t.exports=function(e){l.push(e)!==1||r||n()}}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}],37:[function(e,t,n){var r=e(`immediate`);function i(){}var a={},o=[`REJECTED`],s=[`FULFILLED`],c=[`PENDING`];function l(e){if(typeof e!=`function`)throw TypeError(`resolver must be a function`);this.state=c,this.queue=[],this.outcome=void 0,e!==i&&p(this,e)}function u(e,t,n){this.promise=e,typeof t==`function`&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof n==`function`&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r(function(){var r;try{r=t(n)}catch(t){return a.reject(e,t)}r===e?a.reject(e,TypeError(`Cannot resolve promise with itself`)):a.resolve(e,r)})}function f(e){var t=e&&e.then;if(e&&(typeof e==`object`||typeof e==`function`)&&typeof t==`function`)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,a.reject(e,t))}function i(t){n||(n=!0,a.resolve(e,t))}var o=m(function(){t(i,r)});o.status===`error`&&r(o.value)}function m(e,t){var n={};try{n.value=e(t),n.status=`success`}catch(e){n.status=`error`,n.value=e}return n}(t.exports=l).prototype.finally=function(e){if(typeof e!=`function`)return this;var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if(typeof e!=`function`&&this.state===s||typeof t!=`function`&&this.state===o)return this;var n=new this.constructor(i);return this.state===c?this.queue.push(new u(n,e,t)):d(n,this.state===s?e:t,this.outcome),n},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=m(f,t);if(n.status===`error`)return a.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=s,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},l.reject=function(e){var t=new this(i);return a.reject(t,e)},l.all=function(e){var t=this;if(Object.prototype.toString.call(e)!==`[object Array]`)return this.reject(TypeError(`must be an array`));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=Array(n),s=0,c=-1,l=new this(i);++c<n;)u(e[c],c);return l;function u(e,i){t.resolve(e).then(function(e){o[i]=e,++s!==n||r||(r=!0,a.resolve(l,o))},function(e){r||(r=!0,a.reject(l,e))})}},l.race=function(e){var t=this;if(Object.prototype.toString.call(e)!==`[object Array]`)return this.reject(TypeError(`must be an array`));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=-1,s=new this(i);++o<n;)c=e[o],t.resolve(c).then(function(e){r||(r=!0,a.resolve(s,e))},function(e){r||(r=!0,a.reject(s,e))});var c;return s}},{immediate:36}],38:[function(e,t,n){var r={};(0,e(`./lib/utils/common`).assign)(r,e(`./lib/deflate`),e(`./lib/inflate`),e(`./lib/zlib/constants`)),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){var r=e(`./zlib/deflate`),i=e(`./utils/common`),a=e(`./utils/strings`),o=e(`./zlib/messages`),s=e(`./zlib/zstream`),c=Object.prototype.toString,l=0,u=-1,d=0,f=8;function p(e){if(!(this instanceof p))return new p(e);this.options=i.assign({level:u,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:``},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==l)throw Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var m;if(m=typeof t.dictionary==`string`?a.string2buf(t.dictionary):c.call(t.dictionary)===`[object ArrayBuffer]`?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,m))!==l)throw Error(o[n]);this._dict_set=!0}}function m(e,t){var n=new p(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}p.prototype.push=function(e,t){var n,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,typeof e==`string`?s.input=a.string2buf(e):c.call(e)===`[object ArrayBuffer]`?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(s.avail_out===0&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),(n=r.deflate(s,o))!==1&&n!==l)return this.onEnd(n),!(this.ended=!0);s.avail_out!==0&&(s.avail_in!==0||o!==4&&o!==2)||(this.options.to===`string`?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||s.avail_out===0)&&n!==1);return o===4?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l):o!==2||(this.onEnd(l),!(s.avail_out=0))},p.prototype.onData=function(e){this.chunks.push(e)},p.prototype.onEnd=function(e){e===l&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=p,n.deflate=m,n.deflateRaw=function(e,t){return(t||={}).raw=!0,m(e,t)},n.gzip=function(e,t){return(t||={}).gzip=!0,m(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){var r=e(`./zlib/inflate`),i=e(`./utils/common`),a=e(`./utils/strings`),o=e(`./zlib/constants`),s=e(`./zlib/messages`),c=e(`./zlib/zstream`),l=e(`./zlib/gzheader`),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:``},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw Error(s[n]);this.header=new l,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,c,l,d,f,p=this.strm,m=this.options.chunkSize,g=this.options.dictionary,_=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,typeof e==`string`?p.input=a.binstring2buf(e):u.call(e)===`[object ArrayBuffer]`?p.input=new Uint8Array(e):p.input=e,p.next_in=0,p.avail_in=p.input.length;do{if(p.avail_out===0&&(p.output=new i.Buf8(m),p.next_out=0,p.avail_out=m),(n=r.inflate(p,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&g&&(f=typeof g==`string`?a.string2buf(g):u.call(g)===`[object ArrayBuffer]`?new Uint8Array(g):g,n=r.inflateSetDictionary(this.strm,f)),n===o.Z_BUF_ERROR&&!0===_&&(n=o.Z_OK,_=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);p.next_out&&(p.avail_out!==0&&n!==o.Z_STREAM_END&&(p.avail_in!==0||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||(this.options.to===`string`?(c=a.utf8border(p.output,p.next_out),l=p.next_out-c,d=a.buf2string(p.output,c),p.next_out=l,p.avail_out=m-l,l&&i.arraySet(p.output,p.output,c,l,0),this.onData(d)):this.onData(i.shrinkBuf(p.output,p.next_out)))),p.avail_in===0&&p.avail_out===0&&(_=!0)}while((0<p.avail_in||p.avail_out===0)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(p.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=f,n.inflateRaw=function(e,t){return(t||={}).raw=!0,f(e,t)},n.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){var r=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Int32Array<`u`;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if(typeof n!=`object`)throw TypeError(n+`must be non-object`);for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],42:[function(e,t,n){var r=e(`./common`),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n=``,o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,n.string2buf=function(e){var t,n,i,a,o,s=e.length,c=0;for(a=0;a<s;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(i=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(i-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(c),a=o=0;o<c;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(i=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,a,s=t||e.length,l=Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)l[r++]=i;else if(4<(a=o[i]))l[r++]=65533,n+=a-1;else{for(i&=a===2?31:a===3?15:7;1<a&&n<s;)i=i<<6|63&e[n++],a--;1<a?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return c(l,r)},n.utf8border=function(e,t){var n;for((t||=e.length)>e.length&&(t=e.length),n=t-1;0<=n&&(192&e[n])==128;)n--;return n<0||n===0?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){t.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;n!==0;){for(n-=o=2e3<n?2e3:n;a=a+(i=i+t[r++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16|0}},{}],44:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){var r,i=e(`../utils/common`),a=e(`./trees`),o=e(`./adler32`),s=e(`./crc32`),c=e(`./messages`),l=0,u=4,d=0,f=-2,p=-1,m=4,g=2,_=8,v=9,y=286,b=30,x=19,S=2*y+1,C=15,w=3,T=258,E=T+w+1,D=42,O=113,k=1,A=2,j=3,M=4;function N(e,t){return e.msg=c[t],t}function P(e){return(e<<1)-(4<e?9:0)}function ee(e){for(var t=e.length;0<=--t;)e[t]=0}function F(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))}function te(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,F(e.strm)}function I(e,t){e.pending_buf[e.pending++]=t}function L(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function R(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-E?e.strstart-(e.w_size-E):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+T,p=l[a+o-1],m=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do if(l[(n=t)+o]===m&&l[n+o-1]===p&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do;while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<f);if(r=T-(f-a),a=f-T,o<r){if(e.match_start=t,s<=(o=r))break;p=l[a+o-1],m=l[a+o]}}while((t=d[t&u])>c&&--i!=0);return o<=e.lookahead?o:e.lookahead}function z(e){var t,n,r,a,c,l,u,d,f,p,m=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-E)){for(i.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=n=e.hash_size;r=e.head[--t],e.head[t]=m<=r?r-m:0,--n;);for(t=n=m;r=e.prev[--t],e.prev[t]=m<=r?r-m:0,--n;);a+=m}if(e.strm.avail_in===0)break;if(l=e.strm,u=e.window,d=e.strstart+e.lookahead,f=a,p=void 0,p=l.avail_in,f<p&&(p=f),n=p===0?0:(l.avail_in-=p,i.arraySet(u,l.input,l.next_in,p,d),l.state.wrap===1?l.adler=o(l.adler,u,p,d):l.state.wrap===2&&(l.adler=s(l.adler,u,p,d)),l.next_in+=p,l.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=w)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+w-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<w)););}while(e.lookahead<E&&e.strm.avail_in!==0)}function ne(e,t){for(var n,r;;){if(e.lookahead<E){if(z(e),e.lookahead<E&&t===l)return k;if(e.lookahead===0)break}if(n=0,e.lookahead>=w&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-E&&(e.match_length=R(e,n)),e.match_length>=w)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-w),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=w){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,--e.match_length!=0;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(te(e,!1),e.strm.avail_out===0))return k}return e.insert=e.strstart<w-1?e.strstart:w-1,t===u?(te(e,!0),e.strm.avail_out===0?j:M):e.last_lit&&(te(e,!1),e.strm.avail_out===0)?k:A}function re(e,t){for(var n,r,i;;){if(e.lookahead<E){if(z(e),e.lookahead<E&&t===l)return k;if(e.lookahead===0)break}if(n=0,e.lookahead>=w&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=w-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-E&&(e.match_length=R(e,n),e.match_length<=5&&(e.strategy===1||e.match_length===w&&4096<e.strstart-e.match_start)&&(e.match_length=w-1)),e.prev_length>=w&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-w,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-w),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),--e.prev_length!=0;);if(e.match_available=0,e.match_length=w-1,e.strstart++,r&&(te(e,!1),e.strm.avail_out===0))return k}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&te(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return k}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(r=a._tr_tally(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<w-1?e.strstart:w-1,t===u?(te(e,!0),e.strm.avail_out===0?j:M):e.last_lit&&(te(e,!1),e.strm.avail_out===0)?k:A}function ie(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function B(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=_,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*S),this.dyn_dtree=new i.Buf16(2*(2*b+1)),this.bl_tree=new i.Buf16(2*(2*x+1)),ee(this.dyn_ltree),ee(this.dyn_dtree),ee(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(C+1),this.heap=new i.Buf16(2*y+1),ee(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*y+1),ee(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ae(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=g,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?D:O,e.adler=t.wrap===2?0:1,t.last_flush=l,a._tr_init(t),d):N(e,f)}function oe(e){var t=ae(e);return t===d&&function(e){e.window_size=2*e.w_size,ee(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=w-1,e.match_available=0,e.ins_h=0}(e.state),t}function se(e,t,n,r,a,o){if(!e)return f;var s=1;if(t===p&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),a<1||v<a||n!==_||r<8||15<r||t<0||9<t||o<0||m<o)return N(e,f);r===8&&(r=9);var c=new B;return(e.state=c).strm=e,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+w-1)/w),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=o,c.method=n,oe(e)}r=[new ie(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(z(e),e.lookahead===0&&t===l)return k;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,te(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-E&&(te(e,!1),e.strm.avail_out===0))return k}return e.insert=0,t===u?(te(e,!0),e.strm.avail_out===0?j:M):(e.strstart>e.block_start&&(te(e,!1),e.strm.avail_out),k)}),new ie(4,4,8,4,ne),new ie(4,5,16,8,ne),new ie(4,6,32,32,ne),new ie(4,4,16,16,re),new ie(8,16,32,32,re),new ie(8,16,128,128,re),new ie(8,32,128,256,re),new ie(32,128,258,1024,re),new ie(32,258,258,4096,re)],n.deflateInit=function(e,t){return se(e,t,_,15,8,0)},n.deflateInit2=se,n.deflateReset=oe,n.deflateResetKeep=ae,n.deflateSetHeader=function(e,t){return e&&e.state&&e.state.wrap===2?(e.state.gzhead=t,d):f},n.deflate=function(e,t){var n,i,o,c;if(!e||!e.state||5<t||t<0)return e?N(e,f):f;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===666&&t!==u)return N(e,e.avail_out===0?-5:f);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===D)if(i.wrap===2)e.adler=0,I(i,31),I(i,139),I(i,8),i.gzhead?(I(i,+!!i.gzhead.text+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),I(i,255&i.gzhead.time),I(i,i.gzhead.time>>8&255),I(i,i.gzhead.time>>16&255),I(i,i.gzhead.time>>24&255),I(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),I(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(I(i,255&i.gzhead.extra.length),I(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(I(i,0),I(i,0),I(i,0),I(i,0),I(i,0),I(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),I(i,3),i.status=O);else{var p=_+(i.w_bits-8<<4)<<8;p|=(2<=i.strategy||i.level<2?0:i.level<6?1:i.level===6?2:3)<<6,i.strstart!==0&&(p|=32),p+=31-p%31,i.status=O,L(i,p),i.strstart!==0&&(L(i,e.adler>>>16),L(i,65535&e.adler)),e.adler=1}if(i.status===69)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),F(e),o=i.pending,i.pending!==i.pending_buf_size));)I(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(i.status===73)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),F(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,I(i,c)}while(c!==0);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),c===0&&(i.gzindex=0,i.status=91)}else i.status=91;if(i.status===91)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),F(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,I(i,c)}while(c!==0);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),c===0&&(i.status=103)}else i.status=103;if(i.status===103&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&F(e),i.pending+2<=i.pending_buf_size&&(I(i,255&e.adler),I(i,e.adler>>8&255),e.adler=0,i.status=O)):i.status=O),i.pending!==0){if(F(e),e.avail_out===0)return i.last_flush=-1,d}else if(e.avail_in===0&&P(t)<=P(n)&&t!==u)return N(e,-5);if(i.status===666&&e.avail_in!==0)return N(e,-5);if(e.avail_in!==0||i.lookahead!==0||t!==l&&i.status!==666){var m=i.strategy===2?function(e,t){for(var n;;){if(e.lookahead===0&&(z(e),e.lookahead===0)){if(t===l)return k;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(te(e,!1),e.strm.avail_out===0))return k}return e.insert=0,t===u?(te(e,!0),e.strm.avail_out===0?j:M):e.last_lit&&(te(e,!1),e.strm.avail_out===0)?k:A}(i,t):i.strategy===3?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=T){if(z(e),e.lookahead<=T&&t===l)return k;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=w&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+T;do;while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=T-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=w?(n=a._tr_tally(e,1,e.match_length-w),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(te(e,!1),e.strm.avail_out===0))return k}return e.insert=0,t===u?(te(e,!0),e.strm.avail_out===0?j:M):e.last_lit&&(te(e,!1),e.strm.avail_out===0)?k:A}(i,t):r[i.level].func(i,t);if(m!==j&&m!==M||(i.status=666),m===k||m===j)return e.avail_out===0&&(i.last_flush=-1),d;if(m===A&&(t===1?a._tr_align(i):t!==5&&(a._tr_stored_block(i,0,0,!1),t===3&&(ee(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),F(e),e.avail_out===0))return i.last_flush=-1,d}return t===u?i.wrap<=0?1:(i.wrap===2?(I(i,255&e.adler),I(i,e.adler>>8&255),I(i,e.adler>>16&255),I(i,e.adler>>24&255),I(i,255&e.total_in),I(i,e.total_in>>8&255),I(i,e.total_in>>16&255),I(i,e.total_in>>24&255)):(L(i,e.adler>>>16),L(i,65535&e.adler)),F(e),0<i.wrap&&(i.wrap=-i.wrap),i.pending===0?1:d):d},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==D&&t!==69&&t!==73&&t!==91&&t!==103&&t!==O&&t!==666?N(e,f):(e.state=null,t===O?N(e,-3):d):f},n.deflateSetDictionary=function(e,t){var n,r,a,s,c,l,u,p,m=t.length;if(!e||!e.state||(s=(n=e.state).wrap)===2||s===1&&n.status!==D||n.lookahead)return f;for(s===1&&(e.adler=o(e.adler,t,m,0)),n.wrap=0,m>=n.w_size&&(s===0&&(ee(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new i.Buf8(n.w_size),i.arraySet(p,t,m-n.w_size,n.w_size,0),t=p,m=n.w_size),c=e.avail_in,l=e.next_in,u=e.input,e.avail_in=m,e.next_in=0,e.input=t,z(n);n.lookahead>=w;){for(r=n.strstart,a=n.lookahead-(w-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+w-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--a;);n.strstart=r,n.lookahead=w-1,z(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=w-1,n.match_available=0,e.next_in=l,e.input=u,e.avail_in=c,n.wrap=s,d},n.deflateInfo=`pako deflate (from Nodeca project)`},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=``,this.comment=``,this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){t.exports=function(e,t){var n=e.state,r=e.next_in,i,a,o,s,c,l,u,d,f,p,m,g,_,v,y,b,x,S,C,w,T,E=e.input,D;i=r+(e.avail_in-5),a=e.next_out,D=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,d=n.wnext,f=n.window,p=n.hold,m=n.bits,g=n.lencode,_=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{m<15&&(p+=E[r++]<<m,m+=8,p+=E[r++]<<m,m+=8),b=g[p&v];t:for(;;){if(p>>>=x=b>>>24,m-=x,(x=b>>>16&255)==0)D[a++]=65535&b;else{if(!(16&x)){if(!(64&x)){b=g[(65535&b)+(p&(1<<x)-1)];continue t}if(32&x){n.mode=12;break e}e.msg=`invalid literal/length code`,n.mode=30;break e}S=65535&b,(x&=15)&&(m<x&&(p+=E[r++]<<m,m+=8),S+=p&(1<<x)-1,p>>>=x,m-=x),m<15&&(p+=E[r++]<<m,m+=8,p+=E[r++]<<m,m+=8),b=_[p&y];r:for(;;){if(p>>>=x=b>>>24,m-=x,!(16&(x=b>>>16&255))){if(!(64&x)){b=_[(65535&b)+(p&(1<<x)-1)];continue r}e.msg=`invalid distance code`,n.mode=30;break e}if(C=65535&b,m<(x&=15)&&(p+=E[r++]<<m,(m+=8)<x&&(p+=E[r++]<<m,m+=8)),c<(C+=p&(1<<x)-1)){e.msg=`invalid distance too far back`,n.mode=30;break e}if(p>>>=x,m-=x,(x=a-o)<C){if(u<(x=C-x)&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break e}if(T=f,(w=0)===d){if(w+=l-x,x<S){for(S-=x;D[a++]=f[w++],--x;);w=a-C,T=D}}else if(d<x){if(w+=l+d-x,(x-=d)<S){for(S-=x;D[a++]=f[w++],--x;);if(w=0,d<S){for(S-=x=d;D[a++]=f[w++],--x;);w=a-C,T=D}}}else if(w+=d-x,x<S){for(S-=x;D[a++]=f[w++],--x;);w=a-C,T=D}for(;2<S;)D[a++]=T[w++],D[a++]=T[w++],D[a++]=T[w++],S-=3;S&&(D[a++]=T[w++],1<S&&(D[a++]=T[w++]))}else{for(w=a-C;D[a++]=D[w++],D[a++]=D[w++],D[a++]=D[w++],2<(S-=3););S&&(D[a++]=D[w++],1<S&&(D[a++]=D[w++]))}break}}break}}while(r<i&&a<s);r-=S=m>>3,p&=(1<<(m-=S<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=p,n.bits=m}},{}],49:[function(e,t,n){var r=e(`../utils/common`),i=e(`./adler32`),a=e(`./crc32`),o=e(`./inffast`),s=e(`./inftrees`),c=1,l=2,u=0,d=-2,f=1,p=852,m=592;function g(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function _(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg=``,t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(p),t.distcode=t.distdyn=new r.Buf32(m),t.sane=1,t.back=-1,u):d}function y(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,v(e)):d}function b(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,y(e))):d}function x(e,t){var n,r;return e?(r=new _,(e.state=r).window=null,(n=b(e,t))!==u&&(e.state=null),n):d}var S,C,w=!0;function T(e){if(w){var t;for(S=new r.Buf32(512),C=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,S,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(l,e.lens,0,32,C,0,e.work,{bits:5}),w=!1}e.lencode=S,e.lenbits=9,e.distcode=C,e.distbits=5}function E(e,t,n,i){var a,o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=y,n.inflateReset2=b,n.inflateResetKeep=v,n.inflateInit=function(e){return x(e,15)},n.inflateInit2=x,n.inflate=function(e,t){var n,p,m,_,v,y,b,x,S,C,w,D,O,k,A,j,M,N,P,ee,F,te,I,L,R=0,z=new r.Buf8(4),ne=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return d;(n=e.state).mode===12&&(n.mode=13),v=e.next_out,m=e.output,b=e.avail_out,_=e.next_in,p=e.input,y=e.avail_in,x=n.hold,S=n.bits,C=y,w=b,te=u;e:for(;;)switch(n.mode){case f:if(n.wrap===0){n.mode=13;break}for(;S<16;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if(2&n.wrap&&x===35615){z[n.check=0]=255&x,z[1]=x>>>8&255,n.check=a(n.check,z,2,0),S=x=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&x)<<8)+(x>>8))%31){e.msg=`incorrect header check`,n.mode=30;break}if((15&x)!=8){e.msg=`unknown compression method`,n.mode=30;break}if(S-=4,F=8+(15&(x>>>=4)),n.wbits===0)n.wbits=F;else if(F>n.wbits){e.msg=`invalid window size`,n.mode=30;break}n.dmax=1<<F,e.adler=n.check=1,n.mode=512&x?10:12,S=x=0;break;case 2:for(;S<16;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if(n.flags=x,(255&n.flags)!=8){e.msg=`unknown compression method`,n.mode=30;break}if(57344&n.flags){e.msg=`unknown header flags set`,n.mode=30;break}n.head&&(n.head.text=x>>8&1),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=a(n.check,z,2,0)),S=x=0,n.mode=3;case 3:for(;S<32;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}n.head&&(n.head.time=x),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,z[2]=x>>>16&255,z[3]=x>>>24&255,n.check=a(n.check,z,4,0)),S=x=0,n.mode=4;case 4:for(;S<16;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}n.head&&(n.head.xflags=255&x,n.head.os=x>>8),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=a(n.check,z,2,0)),S=x=0,n.mode=5;case 5:if(1024&n.flags){for(;S<16;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}n.length=x,n.head&&(n.head.extra_len=x),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=a(n.check,z,2,0)),S=x=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(y<(D=n.length)&&(D=y),D&&(n.head&&(F=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),r.arraySet(n.head.extra,p,_,D,F)),512&n.flags&&(n.check=a(n.check,p,D,_)),y-=D,_+=D,n.length-=D),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(y===0)break e;for(D=0;F=p[_+ D++],n.head&&F&&n.length<65536&&(n.head.name+=String.fromCharCode(F)),F&&D<y;);if(512&n.flags&&(n.check=a(n.check,p,D,_)),y-=D,_+=D,F)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(y===0)break e;for(D=0;F=p[_+ D++],n.head&&F&&n.length<65536&&(n.head.comment+=String.fromCharCode(F)),F&&D<y;);if(512&n.flags&&(n.check=a(n.check,p,D,_)),y-=D,_+=D,F)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;S<16;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if(x!==(65535&n.check)){e.msg=`header crc mismatch`,n.mode=30;break}S=x=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;S<32;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}e.adler=n.check=g(x),S=x=0,n.mode=11;case 11:if(n.havedict===0)return e.next_out=v,e.avail_out=b,e.next_in=_,e.avail_in=y,n.hold=x,n.bits=S,2;e.adler=n.check=1,n.mode=12;case 12:if(t===5||t===6)break e;case 13:if(n.last){x>>>=7&S,S-=7&S,n.mode=27;break}for(;S<3;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}switch(n.last=1&x,--S,3&(x>>>=1)){case 0:n.mode=14;break;case 1:if(T(n),n.mode=20,t!==6)break;x>>>=2,S-=2;break e;case 2:n.mode=17;break;case 3:e.msg=`invalid block type`,n.mode=30}x>>>=2,S-=2;break;case 14:for(x>>>=7&S,S-=7&S;S<32;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if((65535&x)!=(x>>>16^65535)){e.msg=`invalid stored block lengths`,n.mode=30;break}if(n.length=65535&x,S=x=0,n.mode=15,t===6)break e;case 15:n.mode=16;case 16:if(D=n.length){if(y<D&&(D=y),b<D&&(D=b),D===0)break e;r.arraySet(m,p,_,D,v),y-=D,_+=D,b-=D,v+=D,n.length-=D;break}n.mode=12;break;case 17:for(;S<14;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if(n.nlen=257+(31&x),x>>>=5,S-=5,n.ndist=1+(31&x),x>>>=5,S-=5,n.ncode=4+(15&x),x>>>=4,S-=4,286<n.nlen||30<n.ndist){e.msg=`too many length or distance symbols`,n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;S<3;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}n.lens[ne[n.have++]]=7&x,x>>>=3,S-=3}for(;n.have<19;)n.lens[ne[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,I={bits:n.lenbits},te=s(0,n.lens,0,19,n.lencode,0,n.work,I),n.lenbits=I.bits,te){e.msg=`invalid code lengths set`,n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;j=(R=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,M=65535&R,!((A=R>>>24)<=S);){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if(M<16)x>>>=A,S-=A,n.lens[n.have++]=M;else{if(M===16){for(L=A+2;S<L;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if(x>>>=A,S-=A,n.have===0){e.msg=`invalid bit length repeat`,n.mode=30;break}F=n.lens[n.have-1],D=3+(3&x),x>>>=2,S-=2}else if(M===17){for(L=A+3;S<L;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}S-=A,F=0,D=3+(7&(x>>>=A)),x>>>=3,S-=3}else{for(L=A+7;S<L;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}S-=A,F=0,D=11+(127&(x>>>=A)),x>>>=7,S-=7}if(n.have+D>n.nlen+n.ndist){e.msg=`invalid bit length repeat`,n.mode=30;break}for(;D--;)n.lens[n.have++]=F}}if(n.mode===30)break;if(n.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,n.mode=30;break}if(n.lenbits=9,I={bits:n.lenbits},te=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,I),n.lenbits=I.bits,te){e.msg=`invalid literal/lengths set`,n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,I={bits:n.distbits},te=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,I),n.distbits=I.bits,te){e.msg=`invalid distances set`,n.mode=30;break}if(n.mode=20,t===6)break e;case 20:n.mode=21;case 21:if(6<=y&&258<=b){e.next_out=v,e.avail_out=b,e.next_in=_,e.avail_in=y,n.hold=x,n.bits=S,o(e,w),v=e.next_out,m=e.output,b=e.avail_out,_=e.next_in,p=e.input,y=e.avail_in,x=n.hold,S=n.bits,n.mode===12&&(n.back=-1);break}for(n.back=0;j=(R=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,M=65535&R,!((A=R>>>24)<=S);){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if(j&&!(240&j)){for(N=A,P=j,ee=M;j=(R=n.lencode[ee+((x&(1<<N+P)-1)>>N)])>>>16&255,M=65535&R,!(N+(A=R>>>24)<=S);){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}x>>>=N,S-=N,n.back+=N}if(x>>>=A,S-=A,n.back+=A,n.length=M,j===0){n.mode=26;break}if(32&j){n.back=-1,n.mode=12;break}if(64&j){e.msg=`invalid literal/length code`,n.mode=30;break}n.extra=15&j,n.mode=22;case 22:if(n.extra){for(L=n.extra;S<L;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}n.length+=x&(1<<n.extra)-1,x>>>=n.extra,S-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;j=(R=n.distcode[x&(1<<n.distbits)-1])>>>16&255,M=65535&R,!((A=R>>>24)<=S);){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if(!(240&j)){for(N=A,P=j,ee=M;j=(R=n.distcode[ee+((x&(1<<N+P)-1)>>N)])>>>16&255,M=65535&R,!(N+(A=R>>>24)<=S);){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}x>>>=N,S-=N,n.back+=N}if(x>>>=A,S-=A,n.back+=A,64&j){e.msg=`invalid distance code`,n.mode=30;break}n.offset=M,n.extra=15&j,n.mode=24;case 24:if(n.extra){for(L=n.extra;S<L;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}n.offset+=x&(1<<n.extra)-1,x>>>=n.extra,S-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg=`invalid distance too far back`,n.mode=30;break}n.mode=25;case 25:if(b===0)break e;if(D=w-b,n.offset>D){if((D=n.offset-D)>n.whave&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break}O=D>n.wnext?(D-=n.wnext,n.wsize-D):n.wnext-D,D>n.length&&(D=n.length),k=n.window}else k=m,O=v-n.offset,D=n.length;for(b<D&&(D=b),b-=D,n.length-=D;m[v++]=k[O++],--D;);n.length===0&&(n.mode=21);break;case 26:if(b===0)break e;m[v++]=n.length,b--,n.mode=21;break;case 27:if(n.wrap){for(;S<32;){if(y===0)break e;y--,x|=p[_++]<<S,S+=8}if(w-=b,e.total_out+=w,n.total+=w,w&&(e.adler=n.check=n.flags?a(n.check,m,w,v-w):i(n.check,m,w,v-w)),w=b,(n.flags?x:g(x))!==n.check){e.msg=`incorrect data check`,n.mode=30;break}S=x=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;S<32;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if(x!==(4294967295&n.total)){e.msg=`incorrect length check`,n.mode=30;break}S=x=0}n.mode=29;case 29:te=1;break e;case 30:te=-3;break e;case 31:return-4;case 32:default:return d}return e.next_out=v,e.avail_out=b,e.next_in=_,e.avail_in=y,n.hold=x,n.bits=S,(n.wsize||w!==e.avail_out&&n.mode<30&&(n.mode<27||t!==4))&&E(e,e.output,e.next_out,w-e.avail_out)?(n.mode=31,-4):(C-=e.avail_in,w-=e.avail_out,e.total_in+=C,e.total_out+=w,n.total+=w,n.wrap&&w&&(e.adler=n.check=n.flags?a(n.check,m,w,e.next_out-w):i(n.check,m,w,e.next_out-w)),e.data_type=n.bits+(n.last?64:0)+(n.mode===12?128:0)+(n.mode===20||n.mode===15?256:0),(C==0&&w===0||t===4)&&te===u&&(te=-5),te)},n.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&=null,e.state=null,u},n.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?((n.head=t).done=!1,u):d},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?(n=e.state).wrap!==0&&n.mode!==11?d:n.mode===11&&i(1,t,r,0)!==n.check?-3:E(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,u):d},n.inflateInfo=`pako inflate (from Nodeca project)`},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){var r=e(`../utils/common`),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,c,l,u,d,f){var p,m,g,_,v,y,b,x,S,C=f.bits,w=0,T=0,E=0,D=0,O=0,k=0,A=0,j=0,M=0,N=0,P=null,ee=0,F=new r.Buf16(16),te=new r.Buf16(16),I=null,L=0;for(w=0;w<=15;w++)F[w]=0;for(T=0;T<c;T++)F[t[n+T]]++;for(O=C,D=15;1<=D&&F[D]===0;D--);if(D<O&&(O=D),D===0)return l[u++]=20971520,l[u++]=20971520,f.bits=1,0;for(E=1;E<D&&F[E]===0;E++);for(O<E&&(O=E),w=j=1;w<=15;w++)if(j<<=1,(j-=F[w])<0)return-1;if(0<j&&(e===0||D!==1))return-1;for(te[1]=0,w=1;w<15;w++)te[w+1]=te[w]+F[w];for(T=0;T<c;T++)t[n+T]!==0&&(d[te[t[n+T]]++]=T);if(y=e===0?(P=I=d,19):e===1?(P=i,ee-=257,I=a,L-=257,256):(P=o,I=s,-1),w=E,v=u,A=T=N=0,g=-1,_=(M=1<<(k=O))-1,e===1&&852<M||e===2&&592<M)return 1;for(;;){for(b=w-A,S=d[T]<y?(x=0,d[T]):d[T]>y?(x=I[L+d[T]],P[ee+d[T]]):(x=96,0),p=1<<w-A,E=m=1<<k;l[v+(N>>A)+(m-=p)]=b<<24|x<<16|S|0,m!==0;);for(p=1<<w-1;N&p;)p>>=1;if(p===0?N=0:(N&=p-1,N+=p),T++,--F[w]==0){if(w===D)break;w=t[n+d[T]]}if(O<w&&(N&_)!==g){for(A===0&&(A=O),v+=E,j=1<<(k=w-A);k+A<D&&!((j-=F[k+A])<=0);)k++,j<<=1;if(M+=1<<k,e===1&&852<M||e===2&&592<M)return 1;l[g=N&_]=O<<24|k<<16|v-u|0}}return N!==0&&(l[v+N]=w-A<<24|4194304),f.bits=O,0}},{"../utils/common":41}],51:[function(e,t,n){t.exports={2:`need dictionary`,1:`stream end`,0:``,"-1":`file error`,"-2":`stream error`,"-3":`data error`,"-4":`insufficient memory`,"-5":`buffer error`,"-6":`incompatible version`}},{}],52:[function(e,t,n){var r=e(`../utils/common`),i=0,a=1;function o(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,c=29,l=256,u=l+1+c,d=30,f=19,p=2*u+1,m=15,g=16,_=7,v=256,y=16,b=17,x=18,S=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],E=Array(2*(u+2));o(E);var D=Array(2*d);o(D);var O=Array(512);o(O);var k=Array(256);o(k);var A=Array(c);o(A);var j,M,N,P=Array(d);function ee(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function F(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function te(e){return e<256?O[e]:O[256+(e>>>7)]}function I(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function L(e,t,n){e.bi_valid>g-n?(e.bi_buf|=t<<e.bi_valid&65535,I(e,e.bi_buf),e.bi_buf=t>>g-e.bi_valid,e.bi_valid+=n-g):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function R(e,t,n){L(e,n[2*t],n[2*t+1])}function z(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function ne(e,t,n){var r,i,a=Array(m+1),o=0;for(r=1;r<=m;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];s!==0&&(e[2*i]=z(a[s]++,s))}}function re(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<f;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*v]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function ie(e){8<e.bi_valid?I(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function B(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function ae(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&B(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!B(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function oe(e,t,n){var r,i,a,o,s=0;if(e.last_lit!==0)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,r===0?R(e,i,t):(R(e,(a=k[i])+l+1,t),(o=S[a])!==0&&L(e,i-=A[a],o),R(e,a=te(--r),n),(o=C[a])!==0&&L(e,r-=P[a],o)),s<e.last_lit;);R(e,v,t)}function se(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=p,n=0;n<c;n++)a[2*n]===0?a[2*n+1]=0:(e.heap[++e.heap_len]=l=n,e.depth[n]=0);for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;1<=n;n--)ae(e,a,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],ae(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,ae(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,c=t.dyn_tree,l=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,g=t.stat_desc.extra_base,_=t.stat_desc.max_length,v=0;for(a=0;a<=m;a++)e.bl_count[a]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<p;n++)_<(a=c[2*c[2*(r=e.heap[n])+1]+1]+1)&&(a=_,v++),c[2*r+1]=a,l<r||(e.bl_count[a]++,o=0,g<=r&&(o=f[r-g]),s=c[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(u[2*r+1]+o)));if(v!==0){do{for(a=_-1;e.bl_count[a]===0;)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[_]--,v-=2}while(0<v);for(a=_;a!==0;a--)for(r=e.bl_count[a];r!==0;)l<(i=e.heap[--n])||(c[2*i+1]!==a&&(e.opt_len+=(a-c[2*i+1])*c[2*i],c[2*i+1]=a),r--)}}(e,t),ne(a,l,e.bl_count)}function V(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<c&&i===o||(s<l?e.bl_tree[2*i]+=s:i===0?s<=10?e.bl_tree[2*b]++:e.bl_tree[2*x]++:(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*y]++),a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4))}function ce(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<c&&i===o)){if(s<l)for(;R(e,i,e.bl_tree),--s!=0;);else i===0?s<=10?(R(e,b,e.bl_tree),L(e,s-3,3)):(R(e,x,e.bl_tree),L(e,s-11,7)):(i!==a&&(R(e,i,e.bl_tree),s--),R(e,y,e.bl_tree),L(e,s-3,2));a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4)}}o(P);var le=!1;function H(e,t,n,i){L(e,(s<<1)+ +!!i,3),function(e,t,n,i){ie(e),i&&(I(e,n),I(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){le||=(function(){var e,t,n,r,i,a=Array(m+1);for(r=n=0;r<c-1;r++)for(A[r]=n,e=0;e<1<<S[r];e++)k[n++]=r;for(k[n-1]=r,r=i=0;r<16;r++)for(P[r]=i,e=0;e<1<<C[r];e++)O[i++]=r;for(i>>=7;r<d;r++)for(P[r]=i<<7,e=0;e<1<<C[r]-7;e++)O[256+ i++]=r;for(t=0;t<=m;t++)a[t]=0;for(e=0;e<=143;)E[2*e+1]=8,e++,a[8]++;for(;e<=255;)E[2*e+1]=9,e++,a[9]++;for(;e<=279;)E[2*e+1]=7,e++,a[7]++;for(;e<=287;)E[2*e+1]=8,e++,a[8]++;for(ne(E,u+1,a),e=0;e<d;e++)D[2*e+1]=5,D[2*e]=z(e,5);j=new ee(E,S,l+1,u,m),M=new ee(D,C,0,d,m),N=new ee([],w,0,f,_)}(),!0),e.l_desc=new F(e.dyn_ltree,j),e.d_desc=new F(e.dyn_dtree,M),e.bl_desc=new F(e.bl_tree,N),e.bi_buf=0,e.bi_valid=0,re(e)},n._tr_stored_block=H,n._tr_flush_block=function(e,t,n,r){var o,s,c=0;0<e.level?(e.strm.data_type===2&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&e.dyn_ltree[2*t]!==0)return i;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return a;for(t=32;t<l;t++)if(e.dyn_ltree[2*t]!==0)return a;return i}(e)),se(e,e.l_desc),se(e,e.d_desc),c=function(e){var t;for(V(e,e.dyn_ltree,e.l_desc.max_code),V(e,e.dyn_dtree,e.d_desc.max_code),se(e,e.bl_desc),t=f-1;3<=t&&e.bl_tree[2*T[t]+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=n+5,n+4<=o&&t!==-1?H(e,t,n,r):e.strategy===4||s===o?(L(e,2+ +!!r,3),oe(e,E,D)):(L(e,4+ +!!r,3),function(e,t,n,r){var i;for(L(e,t-257,5),L(e,n-1,5),L(e,r-4,4),i=0;i<r;i++)L(e,e.bl_tree[2*T[i]+1],3);ce(e,e.dyn_ltree,t-1),ce(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),oe(e,e.dyn_ltree,e.dyn_dtree)),re(e),r&&ie(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,t===0?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(k[n]+l+1)]++,e.dyn_dtree[2*te(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){L(e,2,3),R(e,v,E),function(e){e.bi_valid===16?(I(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=``,this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){(function(e,t){if(!e.setImmediate){var n,r,i,a,o=1,s={},c=!1,l=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,n={}.toString.call(e.process)===`[object process]`?function(e){process.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage(``,`*`),e.onmessage=n,t}}()?(a=`setImmediate$`+Math.random()+`$`,e.addEventListener?e.addEventListener(`message`,p,!1):e.attachEvent(`onmessage`,p),function(t){e.postMessage(a+t,`*`)}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){i.port2.postMessage(e)}):l&&`onreadystatechange`in l.createElement(`script`)?(r=l.documentElement,function(e){var t=l.createElement(`script`);t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(f,0,e)},u.setImmediate=function(e){typeof e!=`function`&&(e=Function(``+e));for(var t=Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];return s[o]={callback:e,args:t},n(o),o++},u.clearImmediate=d}function d(e){delete s[e]}function f(e){if(c)setTimeout(f,0,e);else{var n=s[e];if(n){c=!0;try{(function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}})(n)}finally{d(e),c=!1}}}}function p(t){t.source===e&&typeof t.data==`string`&&t.data.indexOf(a)===0&&f(+t.data.slice(a.length))}})(typeof self>`u`?e===void 0?this:e:self)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}]},{},[10])(10)})}))()),E4={class:`sidebar-title`},D4={class:`edit-container`},O4={class:`color`},k4={class:`color-title subtitle`},A4={class:`opacity`},j4={class:`opacity-title subtitle`},M4={class:`tool`},N4={class:`text`},P4={class:`text-title subtitle`},F4={class:`content-block`},I4={class:`text-align`},L4={class:`border`},R4={class:`border`},z4={class:`spacing`},B4={class:`spacing-title`},V4={class:`block`},H4={class:`layer`},U4={class:`subtitle`},W4={class:`buttons`},G4=[`title`],K4=[`title`],q4=[`title`],J4=[`title`],Y4={class:`edit-container`},X4={class:`overview`},Z4=[`src`],Q4={class:`rotate`},$4={class:`subtitle`},e3={class:`buttons`},t3=[`title`],n3=[`title`],r3={class:`flips`},i3={class:`subtitle`},a3={class:`buttons`},o3=[`title`],s3=[`title`],c3={class:`opacity`},l3={class:`opacity-title subtitle`},u3={class:`tool`},d3={class:`tools`},f3={class:`subtitle`},p3={class:`buttons`},m3=[`title`],h3=[`title`],g3=[`title`],_3={class:`layer`},v3={class:`subtitle`},y3={class:`buttons`},b3=[`title`],x3=[`title`],S3=[`title`],C3=[`title`],w3={__name:`ContentEditorPanel`,setup(e){let t=ye(),n=T(()=>t.isElementOpen(H.CONTENT_EDITOR_PANEL)),r=T(()=>t.getContentEditorType),i=T(()=>t.getCustomFonts),a=T(()=>t.getFontSizes),{t:o}=It(),s=!1,l=N({color:`rgb(0, 0, 0)`,opacity:100,fontFamily:`Helvetica`,fontStyle:0,alignType:2,fontSize:14,lineSpacing:1,paragraphSpacing:0,characterSpacing:0}),u=P?[`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`,`rgb(255, 246, 179)`,`rgb(254, 191, 191)`,`rgb(100, 188, 56)`]:[`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`],f=J(`100%`),p=[25,50,75,100].map(e=>({label:`${e}%`,value:`${e}%`,class:`edit-select`}));U.addEvent(`LoadFont`,e=>{let n=e.fontFamily;t.setCustomFonts(n)}),W(()=>i.value,e=>{g.value=m(e)},{deep:!0}),W(()=>a.value,e=>{v.value=e.map(e=>({label:`${e} pt`,value:e,class:`edit-select`}))});let m=e=>{if(e.length)return e.map(e=>({label:e.fontFamily,value:e.fontName,class:`edit-select`}))},g=J([]);g.value=m(i.value);let _=T(()=>[{label:o(`common.fontStyles.regular`),value:0,class:`edit-select`},{label:o(`common.fontStyles.bold`),value:1,class:`edit-select`},{label:o(`common.fontStyles.boldOblique`),value:3,class:`edit-select`},{label:o(`common.fontStyles.oblique`),value:2,class:`edit-select`}]),v=J([]);v.value=a.value.map(e=>({label:`${e} pt`,value:e,class:`edit-select`}));let b=J(``),C=J(!1);W(()=>n.value,e=>{e&&t.closeElement(H.PAGE_MODE_PANEL)});let w=()=>{F(`opacity`,l.opacity)};W(()=>l.fontFamily,e=>{F(`fontFamily`,e)}),W(()=>l.fontStyle,e=>{F(`fontStyle`,e)}),W(()=>l.opacity,e=>{f.value=e===null?`-`:`${e}%`}),W(()=>l.fontSize,e=>{typeof e==`number`&&F(`fontSize`,l.fontSize)});let O=e=>{l.color=e,F(`color`,e)},k=()=>{l.opacity=Number.isNaN(Number.parseInt(f.value))?100:Number.parseInt(f.value),F(`opacity`,l.opacity)},A=e=>{l.alignType=e,F(`alignType`,l.alignType)},j=e=>{e!==null&&(l.lineSpacing=Math.round(e*2)/2,F(`lineSpacing`,l.lineSpacing))},M=e=>{e!==null&&(l.paragraphSpacing=Math.round(e*2)/2,F(`paragraphSpacing`,l.paragraphSpacing))},ee=e=>{e!==null&&(l.characterSpacing=Math.round(e*2)/2,F(`characterSpacing`,l.characterSpacing))};U.addEvent(`contentPropertyChange`,async e=>{s=!0;for(let n in e){n===`type`&&t.setContentEditorType(e[n]),n===`isOpen`&&(e.isOpen?t.openElement(H.CONTENT_EDITOR_PANEL):t.closeElement(H.CONTENT_EDITOR_PANEL)),n===`imageUrl`&&(b.value=e[n]),C.value=e.isMultiple||!1;for(let t in l)n===t&&(l[t]=ie(e[n],t),n===`fontSize`&&e.fontSize&&!a.value.includes(e.fontSize)&&(l.fontSize=e.fontSize+` pt`))}await E(),s=!1});let F=async(e,t)=>{if(s)return;let n=U.getContentEditManager().getSelectedEditBoxes();n.length===1?U.setContentEditorProperty(r.value,{[e]:t}):e===`tool`&&t===`export`?await ne(n):n.length>1&&await U.getContentEditManager().setEditBoxesProperty(n,{[e]:t})},te=()=>{let e=U.getContentEditManager().getSelectedEditBoxes();e.length===1&&e[0].bringToFront()},I=()=>{let e=U.getContentEditManager().getSelectedEditBoxes();e.length===1&&e[0].bringForward()},L=()=>{let e=U.getContentEditManager().getSelectedEditBoxes();e.length===1&&e[0].bringToBack()},z=()=>{let e=U.getContentEditManager().getSelectedEditBoxes();e.length===1&&e[0].bringBackward()},ne=async e=>{let t=new T4.default,n=t.folder(`images`);await Promise.all(e.map(async e=>{let t=(await e.getImageData()).replace(/^data:image\/\w+;base64,/,``),r=`image_${e.pageNumber}_${e.editAreaIndex+1}.png`;n.file(r,t,{base64:!0})}));try{(0,LD.saveAs)(await t.generateAsync({type:`blob`}),`images.zip`)}catch(e){console.error(`Download Failed: `,e)}},re={color:``,fontFamily:``,fontStyle:``,alignType:0,fontSize:``,lineSpacing:0,paragraphSpacing:0,characterSpacing:0},ie=(e,t)=>e===null?typeof re[t]==`number`?0:typeof re[t]==`string`?`-`:e:e===void 0?re[t]:e;return(e,t)=>{let n=I$,i=nw,a=$b,o=Yb,s=Gb,m=Vb,T=TI,E=hz,N=Dj,ne=hj,re=sj,ie=dj,B=rj,ae=pB,oe=_B,se=lP,ce=pP,le=tB,H=jN,de=_M;return S(),V(`div`,{class:D([`editor-panel property-panel`,{mobile:K(P)}]),id:`editorPanel`},[c(`div`,E4,d(r.value===`text`?e.$t(`contentEditor.textProperties.title`):e.$t(`contentEditor.imageProperties.title`)),1),R(c(`div`,D4,[c(`div`,O4,[c(`div`,k4,d(e.$t(`contentEditor.textProperties.fontColor`)),1),x(n,{colors:K(u),propertyColor:K(l).color,onSetActiveColor:t[0]||=e=>O(e),to:`#editorPanel`},null,8,[`colors`,`propertyColor`])]),c(`div`,A4,[c(`div`,j4,d(e.$t(`common.uiElements.opacity`)),1),c(`div`,M4,[x(K(xb),{value:K(l).opacity,"onUpdate:value":t[1]||=e=>K(l).opacity=e,tooltip:!1,step:1,max:100,min:0,class:`width-slider`,"on-dragend":w},{thumb:G(()=>[x(i)]),_:1},8,[`value`]),x(K(kv),{value:K(f),"onUpdate:value":[t[2]||=e=>ue(f)?f.value=e:f=e,k],options:K(p),to:`#editorPanel`},{arrow:G(()=>[x(a)]),_:1},8,[`value`,`options`])])]),c(`div`,N4,[c(`div`,P4,d(e.$t(`common.uiElements.font`)),1),x(K(kv),{value:K(l).fontFamily,"onUpdate:value":t[3]||=e=>K(l).fontFamily=e,options:g.value,to:`#editorPanel`,class:`text-family`},{arrow:G(()=>[x(a)]),_:1},8,[`value`,`options`]),c(`div`,F4,[x(K(kv),{value:K(l).fontStyle,"onUpdate:value":t[4]||=e=>K(l).fontStyle=e,options:_.value,to:`#editorPanel`,class:`font-style-select`},{arrow:G(()=>[x(a)]),_:1},8,[`value`,`options`]),x(K(kv),{value:K(l).fontSize,"onUpdate:value":t[5]||=e=>K(l).fontSize=e,options:v.value,to:`#editorPanel`,class:`font-size-select`},{arrow:G(()=>[x(a)]),_:1},8,[`value`,`options`])]),c(`div`,I4,[c(`div`,{class:D({active:K(l).alignType===2}),onClick:t[6]||=e=>A(2)},[c(`span`,L4,[x(o)])],2),c(`div`,{class:D({active:K(l).alignType===5}),onClick:t[7]||=e=>A(5)},[c(`span`,R4,[x(s)])],2),c(`div`,{class:D({active:K(l).alignType===3}),onClick:t[8]||=e=>A(3)},[c(`span`,null,[x(m)])],2)])]),c(`div`,z4,[c(`div`,B4,d(e.$t(`contentEditor.textProperties.spacing`)),1),c(`div`,V4,[c(`div`,null,[x(T),x(K(gb),{value:K(l).lineSpacing,"onUpdate:value":[t[9]||=e=>K(l).lineSpacing=e,j],placeholder:e.$t(`contentEditor.textProperties.lineSpacing`),min:`1`,max:`10`,step:.5,"update-value-on-input":!1},{"minus-icon":G(()=>[...t[21]||=[c(`div`,{class:`arrow down`},null,-1)]]),"add-icon":G(()=>[...t[22]||=[c(`div`,{class:`arrow up`},null,-1)]]),_:1},8,[`value`,`placeholder`])]),c(`div`,null,[x(E),x(K(gb),{value:K(l).paragraphSpacing,"onUpdate:value":[t[10]||=e=>K(l).paragraphSpacing=e,M],placeholder:e.$t(`contentEditor.textProperties.paragraphSpacing`),min:`0`,max:`10`,step:.5,"update-value-on-input":!1},{"minus-icon":G(()=>[...t[23]||=[c(`div`,{class:`arrow down`},null,-1)]]),"add-icon":G(()=>[...t[24]||=[c(`div`,{class:`arrow up`},null,-1)]]),_:1},8,[`value`,`placeholder`])]),c(`div`,null,[x(N),x(K(gb),{value:K(l).characterSpacing,"onUpdate:value":[t[11]||=e=>K(l).characterSpacing=e,ee],placeholder:e.$t(`contentEditor.textProperties.characterSpacing`),min:`0`,max:`10`,step:.5,"update-value-on-input":!1},{"minus-icon":G(()=>[...t[25]||=[c(`div`,{class:`arrow down`},null,-1)]]),"add-icon":G(()=>[...t[26]||=[c(`div`,{class:`arrow up`},null,-1)]]),_:1},8,[`value`,`placeholder`])])])]),R(c(`div`,H4,[c(`div`,U4,d(e.$t(`contentEditor.layer.title`)),1),c(`div`,W4,[c(`div`,{onClick:te,title:e.$t(`contentEditor.layer.bringToFront`)},[c(`span`,null,[x(ne)])],8,G4),c(`div`,{onClick:I,title:e.$t(`contentEditor.layer.bringForward`)},[c(`span`,null,[x(re)])],8,K4),c(`div`,{onClick:L,title:e.$t(`contentEditor.layer.bringToBack`)},[c(`span`,null,[x(ie)])],8,q4),c(`div`,{onClick:z,title:e.$t(`contentEditor.layer.bringBackward`)},[c(`span`,null,[x(B)])],8,J4)])],512),[[Re,!C.value]])],512),[[Re,r.value===`text`]]),R(c(`div`,Y4,[R(c(`div`,X4,[R(c(`img`,{src:b.value},null,8,Z4),[[Re,b.value]])],512),[[Re,!C.value]]),c(`div`,Q4,[c(`div`,$4,d(e.$t(`contentEditor.imageProperties.rotate`)),1),c(`div`,e3,[c(`div`,{onClick:t[12]||=e=>F(`angle`,`90`),title:e.$t(`contentEditor.imageProperties.rotateLeft`)},[x(ae),y(d(e.$t(`contentEditor.imageProperties.rotateLeft`)),1)],8,t3),c(`div`,{onClick:t[13]||=e=>F(`angle`,`-90`),title:e.$t(`contentEditor.imageProperties.rotateRight`)},[x(oe),y(d(e.$t(`contentEditor.imageProperties.rotateRight`)),1)],8,n3)])]),c(`div`,r3,[c(`div`,i3,d(e.$t(`contentEditor.imageProperties.flip`)),1),c(`div`,a3,[c(`div`,{onClick:t[14]||=e=>F(`flip`,`x`),title:e.$t(`contentEditor.imageProperties.flipHorizontal`)},[c(`span`,null,[x(se)])],8,o3),c(`div`,{onClick:t[15]||=e=>F(`flip`,`y`),title:e.$t(`contentEditor.imageProperties.flipVertical`)},[c(`span`,null,[x(ce)])],8,s3)])]),c(`div`,c3,[c(`div`,l3,d(e.$t(`common.uiElements.opacity`)),1),c(`div`,u3,[x(K(xb),{value:K(l).opacity,"onUpdate:value":t[16]||=e=>K(l).opacity=e,tooltip:!1,step:1,max:100,min:0,"on-dragend":w,class:`width-slider`},{thumb:G(()=>[x(i)]),_:1},8,[`value`]),x(K(kv),{value:K(f),"onUpdate:value":[t[17]||=e=>ue(f)?f.value=e:f=e,k],options:K(p),to:`#editorPanel`},{arrow:G(()=>[x(a)]),_:1},8,[`value`,`options`])])]),c(`div`,d3,[c(`div`,f3,d(e.$t(`contentEditor.imageProperties.tools`)),1),c(`div`,p3,[R(c(`div`,{onClick:t[18]||=e=>F(`tool`,`replace`),title:e.$t(`contentEditor.imageProperties.replace`)},[c(`span`,null,[x(le)])],8,m3),[[Re,!C.value]]),c(`div`,{onClick:t[19]||=e=>F(`tool`,`export`),title:e.$t(`contentEditor.imageProperties.export`)},[c(`span`,null,[x(H)])],8,h3),R(c(`div`,{onClick:t[20]||=e=>F(`tool`,`crop`),title:e.$t(`contentEditor.imageProperties.crop`)},[c(`span`,null,[x(de)])],8,g3),[[Re,!C.value]])])]),R(c(`div`,_3,[c(`div`,v3,d(e.$t(`contentEditor.layer.title`)),1),c(`div`,y3,[c(`div`,{onClick:te,title:e.$t(`contentEditor.layer.bringToFront`)},[c(`span`,null,[x(ne)])],8,b3),c(`div`,{onClick:I,title:e.$t(`contentEditor.layer.bringForward`)},[c(`span`,null,[x(re)])],8,x3),c(`div`,{onClick:L,title:e.$t(`contentEditor.layer.bringToBack`)},[c(`span`,null,[x(ie)])],8,S3),c(`div`,{onClick:z,title:e.$t(`contentEditor.layer.bringBackward`)},[c(`span`,null,[x(B)])],8,C3)])],512),[[Re,!C.value]])],512),[[Re,r.value===`image`]])],2)}}},T3={class:`color-separation-panel`},E3={class:`sidebar-title`},D3={class:`container`},O3={class:`all`},k3={class:`color-list`},A3=[`onClick`],j3={class:`name`},M3=B({__name:`ColorSeparationPanel`,setup(e){let t=ye(),n=T(()=>t.isElementOpen(H.COLOR_SEPARATION_PANEL)),r=T(()=>t.getToolMode),i=J([]),a=J(new Set);W(r,e=>{e===`separation`?(t.openElement(H.COLOR_SEPARATION_PANEL),t.closeElement(H.PAGE_MODE_PANEL)):n.value&&(t.closeElement(H.COLOR_SEPARATION_PANEL),a.value.clear())}),U.addEvent(`colorSeparationUpdate`,e=>{i.value=e}),U.addEvent(`ignoreColorsUpdate`,e=>{a.value.clear(),e.forEach(e=>a.value.add(e))});let o=async()=>{t.setCommonLoading(!0);let e=a.value.size!==0;i.value.forEach(t=>{e?a.value.delete(t.index):a.value.add(t.index)}),await U.updateViewWithColorIndex(Array.from(a.value)),t.setCommonLoading(!1)},s=async e=>{t.setCommonLoading(!0),a.value.has(e.index)?a.value.delete(e.index):a.value.add(e.index),await U.updateViewWithColorIndex(Array.from(a.value)),t.setCommonLoading(!1)},l=(e,t=220)=>{let n=/rgb\(\s*(\d+),\s*(\d+),\s*(\d+)\s*\)/.exec(e);if(!n)return null;let r=parseInt(n[1]),i=parseInt(n[2]),a=parseInt(n[3]);return .299*r+.587*i+.114*a>t};return(e,t)=>{let n=Fj;return S(),V(`div`,T3,[c(`div`,E3,d(e.$t(`toolbar.toolbarGroup.separation`)),1),c(`div`,D3,[c(`div`,O3,[c(`div`,{class:D([`check-box`,{active:a.value.size===0}]),onClick:o},[R(x(n,null,null,512),[[Re,a.value.size===0]])],2),c(`span`,null,d(e.$t(`colorSeparation.toggleColor`)),1)]),c(`div`,k3,[(S(!0),V(q,null,z(i.value,e=>(S(),V(`div`,{class:`row`,key:e.index},[c(`div`,{class:D([`check-box`,{active:!a.value.has(e.index),darker:l(e.color)}]),onClick:t=>s(e),style:A({borderColor:e.color,color:e.color})},[R(x(n,null,null,512),[[Re,!a.value.has(e.index)]])],14,A3),c(`span`,j3,d(e.name),1),c(`span`,null,d(e.intensity||0)+`%`,1)]))),128))])])])}}},[[`__scopeId`,`data-v-69cc04dc`]]),N3={class:`redaction-panel property-panel`},P3={class:`sidebar-title`},F3={class:`edit-container`},I3={class:`color`},L3={class:`color-title subtitle`},R3={class:`color`},z3={class:`color-title subtitle`},B3={class:`note`},V3={class:`subtitle`},H3={class:`text`},U3={class:`subtitle`},W3={class:`content-block`},G3={class:`text-align`},K3={class:`color`},q3={class:`color-title subtitle`},J3={__name:`RedactionPanel`,setup(e){let t=ye(),n=T(()=>t.isElementOpen(H.REDACTION_PANEL)),r=T(()=>t.getCustomFonts),i=T(()=>t.getCurrentToolbarGroup),{t:a}=It(),o=a,s=N({borderColor:`#FF0000`,fillColor:`rgb(0, 0, 0)`,color:`#FF0000`,fontName:`Helvetica`,fontStyle:`normal`,textAlignment:`left`,fontSize:14,overlayText:``}),l=P?[`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`,`rgb(255, 246, 179)`,`rgb(254, 191, 191)`,`rgb(100, 188, 56)`]:[`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`];U.addEvent(`LoadFont`,e=>{let n=e.fontFamily;t.setCustomFonts(n)}),W(()=>r.value,e=>{f.value=u(e)},{deep:!0});let u=e=>{if(e.length)return e.map(e=>({label:e.fontFamily,value:e.fontName,class:`edit-select`}))},f=J([]);f.value=u(r.value);let p=T(()=>[{label:a(`common.fontStyles.regular`),value:`normal`},{label:a(`common.fontStyles.bold`),value:`bold`},{label:a(`common.fontStyles.boldOblique`),value:`boldOblique`},{label:a(`common.fontStyles.oblique`),value:`oblique`}]),m=[12,14,16,20,24,28].map(e=>({label:`${e} pt`,value:e,class:`edit-select`}));W(()=>n.value,e=>{e&&w(U.getToolStyles(`redact`))}),W(()=>i.value,e=>{e!==`toolbarGroup-Redaction`&&E()}),W(()=>s.fontName,e=>{C({fontName:e})}),W(()=>s.fontStyle,e=>{let t=/bold/i.test(e)?`bold`:`normal`;C({fontStyle:/(oblique|italic)/i.test(e)?`oblique`:`normal`,fontWeight:t})}),W(()=>s.fontSize,e=>{typeof e==`number`&&C({fontSize:s.fontSize})});let g=(e,t)=>{s[e]=t,C({[e]:t})},_=e=>{s.textAlignment=e,C({textAlignment:e})},v=()=>{C({overlayText:s.overlayText})},y=null,b=()=>{clearTimeout(y),y=setTimeout(()=>{v()},500)},C=e=>{let t=U.getAnnotationManager().getSelectedAnnotations();if(!t.length){U.setToolStyles(`redact`,e);return}t.forEach(t=>{t.annotation.type===`redact`&&!t.annotation.erasure&&t.setRichTextStyle(e)})},w=e=>{let t=e.fontStyle||`normal`,n=e.fontWeight||`normal`;n===`bold`&&t===`oblique`?s.fontStyle=`boldOblique`:n===`bold`?s.fontStyle=`bold`:t===`oblique`?s.fontStyle=`oblique`:s.fontStyle=`normal`;for(let t in s)Object.hasOwn(e,t)&&(s[t]=e[t])},E=()=>{t.closeElement(H.REDACTION_PANEL)};return U.addEvent(`annotationSelected`,e=>{e.length===1&&w(e[0].annotation)}),U.addEvent(`annotationDeselected`,()=>{w(U.getToolStyles(`redact`))}),(e,t)=>{let n=I$,r=$b,i=Yb,a=Gb,u=Vb;return S(),V(`div`,N3,[c(`div`,P3,d(K(o)(`common.properties`)),1),c(`div`,F3,[c(`div`,I3,[c(`div`,L3,d(K(o)(`panels.redaction.borderColor`)),1),x(n,{colors:K(l),propertyColor:s.borderColor,onSetActiveColor:t[0]||=e=>g(`borderColor`,e),to:`.redaction-panel`},null,8,[`colors`,`propertyColor`])]),c(`div`,R3,[c(`div`,z3,d(K(o)(`panels.redaction.fillColor`)),1),x(n,{colors:K(l),propertyColor:s.fillColor,onSetActiveColor:t[1]||=e=>g(`fillColor`,e),to:`.redaction-panel`},null,8,[`colors`,`propertyColor`])]),c(`div`,B3,[c(`div`,V3,d(K(o)(`panels.redaction.overlayText`)),1),R(c(`textarea`,{name:`note`,rows:`4`,"onUpdate:modelValue":t[2]||=e=>s.overlayText=e,onBlur:v,onInput:b},null,544),[[Me,s.overlayText]])]),c(`div`,H3,[c(`div`,U3,d(K(o)(`common.uiElements.font`)),1),x(K(kv),{value:s.fontName,"onUpdate:value":t[3]||=e=>s.fontName=e,options:f.value,to:`.redaction-panel`,class:`text-family`},{arrow:G(()=>[x(r)]),_:1},8,[`value`,`options`]),c(`div`,W3,[x(K(kv),{value:s.fontStyle,"onUpdate:value":t[4]||=e=>s.fontStyle=e,options:p.value,to:`.redaction-panel`,class:`font-style-select`},{arrow:G(()=>[x(r)]),_:1},8,[`value`,`options`]),x(K(kv),{value:s.fontSize,"onUpdate:value":t[5]||=e=>s.fontSize=e,options:K(m),to:`.redaction-panel`,class:`font-size-select`},{arrow:G(()=>[x(r)]),_:1},8,[`value`,`options`])]),c(`div`,G3,[c(`div`,{class:D({active:s.textAlignment===`left`}),onClick:t[6]||=e=>_(`left`)},[c(`span`,{class:D({border:s.textAlignment===`right`})},[x(i)],2)],2),c(`div`,{class:D({active:s.textAlignment===`center`}),onClick:t[7]||=e=>_(`center`)},[c(`span`,{class:D({border:s.textAlignment===`left`})},[x(a)],2)],2),c(`div`,{class:D({active:s.textAlignment===`right`}),onClick:t[8]||=e=>_(`right`)},[c(`span`,null,[x(u)])],2)])]),c(`div`,K3,[c(`div`,q3,d(K(o)(`contentEditor.textProperties.fontColor`)),1),x(n,{colors:K(l),propertyColor:s.color,onSetActiveColor:t[9]||=e=>g(`color`,e),to:`.redaction-panel`},null,8,[`colors`,`propertyColor`])])])])}}},Y3={AnnotationPopup:l(()=>Xt(()=>Promise.resolve().then(()=>oU),void 0,import.meta.url)),PageModePanel:l(()=>Xt(()=>import(`./RightPanelPageMode-BIjlk7Gw.js`),__vite__mapDeps([2,3,1,4]),import.meta.url)),StampPanel:l(()=>Xt(()=>import(`./StampPanel--iZcsv3K.js`),__vite__mapDeps([5,3,1,6,7]),import.meta.url)),CustomModal:l(()=>Xt(()=>import(`./CustomModal-Ch2Wefy4.js`),__vite__mapDeps([8,3,1,6,9]),import.meta.url))},X3={StylePanel:T1,LeftPanel:b2,RightPanel:g4,LinkPanel:w4,ColorSeparationPanel:M3,ContentEditorPanel:w3,RedactionPanel:J3},Z3={class:`signatures-popup`},Q3={class:`sign-title`},$3={class:`sign-content`},e6={key:0,class:`sign-popup-header`},t6={class:`signatures-popup-lists`},n6={key:0,class:`signatures-popup-empty`},r6={class:`no-signatures`},i6={key:1,class:`signatures-popup-list-container`},a6=[`onClick`],o6=[`src`],s6={class:`signatures-popup-create`},c6={class:`create-sign-header`},l6=[`onClick`],u6=[`width`,`height`],d6={class:`keyboard-paint`},f6=[`placeholder`],p6={key:0,class:`property-container`},m6={class:`width-tool`},h6={key:0},g6={class:`font-tool sign-font-tool`},_6={key:0},v6={class:`color-tool`},y6={key:0},b6={class:`colors-container`},x6=[`onClick`],S6={key:0,class:`color-picker`},C6={class:`footer`},w6={class:`clear-container`},T6={key:0,class:`left-btns`},E6={key:0},D6={key:1},O6={class:`buttons-container`},k6={class:`right-btns`},A6={key:0,class:`delete-page-popup`},j6={__name:`SignCreateDialog`,setup(e){let{t}=It(),n=ye(),r=fw(),i=J(null),a=T(()=>n.isElementOpen(H.SIGNATURE_DIALOG)),o=T(()=>n.getActiveElementTab(`signPanel`)),l=T(()=>n.getToolMode),u=T(()=>n.getSignatureDialogTabs),f=T(()=>n.getSignatureDialogProperties),p=T(()=>n.getElectronicSignaturesList),m=T(()=>n.getTheme),g=T(()=>r.getActiveTool),_=T(()=>n.getEnableSignatureTemplates),v=J(!1),C=J(0),O=J(``),k=J(``),j=J(f.value.trackpad.lineWidth||5),M=J(f.value[o.value].colors[0].value||`#000000`),N=J(f.value.keyboard.fonts[0].fontFamily||`Courier New`),P=J(f.value.keyboard.fonts.map(e=>({label:e.label,value:e.fontFamily,style:{fontFamily:e.fontFamily}}))),ee=J(),F=J(oe?289:578),te=J(270),I=J(`rgb(0, 0, 0)`),ne=J(`create`),re=J(!0);p.value.length>=5&&(re.value=!1);let ie=(e,t)=>{e.stopPropagation(),v.value=!0,C.value=t},B=()=>{n.removeElectronicSignature(C.value),v.value=!1};W(()=>f.value.keyboard.fonts,(e,t)=>{N.value=e[0]||`Courier New`,P.value=e.map(e=>({label:e.label,value:e.fontFamily,style:{fontFamily:e.fontFamily}}))}),W(()=>l.value,(e,t)=>{if(!(t===`sign`&&e===`view`)&&e!==t){let e=document.getElementById(`sign-image-save`);e&&e.remove()}}),W(()=>j.value,(e,t)=>{e!==``&&(e>10||e<=0||!/^\d+$/.test(e))&&(j.value=t),o.value===`trackpad`&&U.handleSign({flag:`update`,param:{width:j.value,color:M.value}})}),W(()=>M.value,(e,t)=>{if(U.handleSign({flag:`update`,param:{width:j.value,color:M.value}}),o.value===`keyboard`){I.value=M.value;let e=document.querySelector(`.keyboard-paint input`);e&&(e.style.color=M.value)}}),W(()=>a.value,(e,t)=>{e&&(oe&&E(()=>{let{clientWidth:e,clientHeight:t}=ee.value;e&&F.value!==e&&(F.value=e),t&&te.value!==t&&(te.value=t)}),n.setActiveSignWay(`keyboard`),O.value=``,U.handleSign({flag:`create`,type:2}))}),W(()=>ne.value,(e,t)=>{e===`create`&&oe&&E(()=>{let{clientWidth:e,clientHeight:t}=ee.value;e&&F.value!==e&&(F.value=e),t&&te.value!==t&&(te.value=t)})}),W(()=>p.value,e=>{e&&e.length>=5?re.value=!1:re.value||=!0},{deep:!0}),W(()=>a.value,e=>{_.value&&(e&&p.value.length>0?ne.value=`list`:e&&p.value.length===0&&(ne.value=`create`))}),W(()=>o.value,(e,t)=>{t===`trackpad`&&U.handleSign({flag:`clear`}),O.value=``,k.value=``});let ae=e=>{o.value!==e&&(n.setActiveSignWay(e),le(),ue())},se=e=>{n.toggleElement(`signatureDialog`),U.handleSign({flag:`reset`}),o.value!==`trackpad`&&le(),ue(),document.body.style.overflow=``},ce=()=>{he(),p.value.length<5&&re.value&&n.addElectronicSignature(k.value)},le=()=>{if(o.value===`keyboard`&&(O.value=``),o.value===`image`){k.value=``;let e=i.value,t=e.querySelector(`input`),n=e.querySelector(`a`),r=e.querySelector(`img`);e&&(r&&(e.removeChild(r),t.value=``),n&&(n.style.display=`block`))}o.value===`trackpad`&&U.handleSign({flag:`clear`})},ue=()=>{let e=f.value.trackpad.lineWidth||5,t=[`trackpad`,`keyboard`].includes(o.value)&&f.value[o.value].colors[0].value||`#000000`,n=f.value.keyboard.fonts[0].fontFamily||`Courier New`;M.value!==t&&(M.value=t),N.value!==n&&(N.value=n),j.value!==e&&(j.value=e,U.handleSign({flag:`update`,param:{width:j.value,color:M.value}}))},de=e=>{e.preventDefault(),e.stopPropagation();let t=e.dataTransfer.files[0];pe(t)},fe=e=>{let n=e.target.files[0];if(n.size>1024*1024){window.$message.error(t(`signatures.uploadError`),{duration:5e3,icon:()=>Y(`img`,{src:pw})}),e.target.value=``;return}e.target.value=``,pe(n)},pe=e=>{e instanceof File||(e=ve(e,`image`)),l.value===`annotation`&&(r.setToolState(L.IMAGE),U.handleCreateStatus({bool:!0,fileData:e}));let t=new FileReader;t.readAsDataURL(e),t.onload=function(){k.value=t.result;let e=i.value,n=e.querySelector(`a`);if(e){let t=document.createElement(`img`);t.setAttribute(`src`,k.value),t.style.maxHeight=`220px`,t.style.maxWidth=`568px`,n.style.display=`none`,e.append(t)}let r=new Image;r.onload=function(){he()},r.src=k.value}},me=e=>{l.value===`annotation`&&r.setToolState(L.IMAGE)},he=async()=>{let e=``,t=n.getSelectedSignatureField;if((o.value===`image`&&k.value!==``||k.value!==``)&&(e=k.value),o.value===`keyboard`&&O.value!==``){let t=document.createElement(`canvas`).getContext(`2d`);t.font=`46px ${N.value}`;let n=t.measureText(O.value),r=n.width,i=n.actualBoundingBoxAscent||46*.6,a=i+(n.actualBoundingBoxDescent||46*.6),o=document.createElement(`canvas`);o.width=r+16,o.height=a+16;let s=o.getContext(`2d`);s.font=`46px ${N.value}`,s.fillStyle=M.value,s.textBaseline=`alphabetic`,s.fillText(O.value,8,8+i),e=o.toDataURL()}o.value===`trackpad`&&(e=await U.handleSign({flag:`save`,param:{width:j.value,color:M.value,annotation:w(t)}})),p.value.length<5&&re.value&&n.addElectronicSignature(e),_e(e)},ge=e=>{let t=document.querySelector(`.content`);if(!t)return;let n=document.getElementById(`sign-image-save`);n||(n=document.createElement(`img`),n.style.position=`absolute`,n.style.zIndex=10,n.style.pointerEvents=`none`,n.style.maxHeight=`220px`,n.style.maxWidth=`568px`,n.style.border=`2px solid blue`,n.style.cursor=`crosshair`,n.id=`sign-image-save`),n.setAttribute(`src`,e),n.style.left=`50%`,n.style.top=`50%`,n.style.display=`hidden`,t.append(n);let i=0,a=0;n.offsetWidth>0&&n.offsetHeight>0&&(i=n.offsetWidth,a=n.offsetHeight);let o=Math.min(parseInt(i/2),568/2),s=Math.min(parseInt(a/2),220/2);n.style.left=`calc(50% -`+o+`)`,n.style.top=`calc(50% -`+s+`)`,n.style.display=`block`,t.onmousemove=function(e){n.style.left=e.clientX-o+`px`,n.style.top=e.clientY-s+`px`},r.setToolState(L.IMAGE)},_e=e=>{let t=ve(e,`image`);l.value===`annotation`&&(r.setToolState(L.IMAGE),U.handleCreateStatus({bool:!0,fileData:t})),g.value===L.IMAGE&&ge(e),n.toggleElement(H.SIGNATURE_DIALOG)};function ve(e,t){let[n,r]=e.split(`,`),i=n.match(/:(.*?);/)?.[1]||`application/octet-stream`,a=atob(r||n),o=new Uint8Array(a.length);for(let e=0;e<a.length;e++)o[e]=a.charCodeAt(e);return new File([o],t,{type:i})}let be=e=>{e.target.value||(j.value=1)},xe=e=>{M.value=e},Se=e=>{_w(e,M.value)||xe(e)},Ce=e=>{I.value=e};U.addEvent(`signaturesImageChanged`,e=>{k.value=e.imageBase64});let we=({option:e})=>Y(`div`,{style:{fontFamily:e.style.fontFamily}},{default:()=>e.label});return(e,t)=>{let n=Fe,r=uw,a=lx,l=ow,g=nw,C=$b,w=QC,T=JC,E=WC;return S(),V(q,null,[c(`div`,{class:`signatures-popup-wrapper`,onMousedown:t[11]||=Ae(()=>{},[`stop`])},[c(`div`,Z3,[c(`div`,Q3,d(e.$t(`signatures.electronicSignature.title`)),1),c(`div`,{onClick:t[0]||=e=>se(`cancel`),class:`close-button`},[x(n)]),c(`div`,$3,[_.value?(S(),V(`div`,e6,[c(`div`,{onClick:t[1]||=e=>ne.value=`list`,class:D({active:ne.value===`list`})},d(e.$t(`signatures.electronicSignature.mySignatures`)),3),c(`div`,{onClick:t[2]||=e=>ne.value=`create`,class:D({active:ne.value===`create`})},d(e.$t(`signatures.electronicSignature.create`)),3)])):b(``,!0),R(c(`div`,t6,[p.value.length===0?(S(),V(`div`,n6,[c(`div`,r6,[m.value===`light`?(S(),s(xw,{key:0})):(S(),s(r,{key:1})),c(`div`,{onClick:t[3]||=e=>ne.value=`create`},d(e.$t(`signatures.electronicSignature.empty`)),1)])])):(S(),V(`div`,i6,[(S(!0),V(q,null,z(p.value,(e,t)=>(S(),V(`div`,{class:`signatures-popup-list`,onClick:t=>_e(e),key:t},[c(`img`,{src:e},null,8,o6),x(a,{class:D([`close-button`,{show:K(oe)}]),onClick:e=>ie(e,t)},{default:G(()=>[x(n)]),_:1},8,[`class`,`onClick`])],8,a6))),128))]))],512),[[Re,ne.value===`list`]]),R(c(`div`,s6,[c(`div`,c6,[(S(!0),V(q,null,z(u.value,(t,n)=>(S(),V(`div`,{key:n,onClick:e=>ae(t),class:D({active:o.value===t})},d(e.$t(`signatures.`+t)),11,l6))),128))]),c(`div`,{class:D([`sign-create-container`,{mobile:K(oe)}])},[c(`div`,{class:`paint-container`,ref_key:`paintContainer`,ref:ee},[R(c(`canvas`,{id:`signTrackpadCanvas`,width:F.value,height:te.value},null,8,u6),[[Re,o.value===`trackpad`]]),R(c(`div`,d6,[R(c(`input`,{type:`text`,placeholder:e.$t(`signatures.signHere`),"onUpdate:modelValue":t[4]||=e=>O.value=e,name:`signature`,style:A({fontFamily:N.value})},null,12,f6),[[Me,O.value]])],512),[[Re,o.value===`keyboard`]]),R(c(`div`,{ref_key:`imageRef`,ref:i,class:`image-paint`,onDrop:de,onDragover:t[5]||=Ae(()=>{},[`prevent`])},[R(c(`div`,null,[x(l),c(`div`,null,d(e.$t(`signatures.electronicSignature.dropFile`)),1),c(`a`,null,[y(d(e.$t(`signatures.selectFile`)),1),c(`input`,{type:`file`,id:`signImageInput`,onChange:fe,accept:`.png, .jpg, .jpeg`,onClick:me,name:`signature`},null,32)])],512),[[Re,!k.value]])],544),[[Re,o.value===`image`]])],512),[`trackpad`,`keyboard`].includes(o.value)?(S(),V(`div`,p6,[R(c(`div`,m6,[K(oe)?b(``,!0):(S(),V(`span`,h6,d(e.$t(`signatures.lineWidth`)),1)),x(K(xb),{value:j.value,"onUpdate:value":t[6]||=e=>j.value=e,step:1,max:10,min:1,class:`width-slider`},{thumb:G(()=>[x(g)]),_:1},8,[`value`]),R(c(`input`,{"onUpdate:modelValue":t[7]||=e=>j.value=e,type:`text`,pattern:`\\d*`,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,onBlur:be,name:`signature`},null,544),[[Me,j.value]])],512),[[Re,o.value===`trackpad`&&f.value.trackpad.enableLineWidth]]),R(c(`div`,g6,[K(oe)?b(``,!0):(S(),V(`span`,_6,d(e.$t(`common.uiElements.font`)),1)),x(K(kv),{value:N.value,"onUpdate:value":t[8]||=e=>N.value=e,options:P.value,"render-tag":we,to:`.sign-font-tool`,class:`font-family-select`},{arrow:G(()=>[x(C)]),_:1},8,[`value`,`options`])],512),[[Re,o.value===`keyboard`]]),R(c(`div`,v6,[K(oe)?b(``,!0):(S(),V(`span`,y6,d(e.$t(`common.uiElements.color`)),1)),c(`div`,b6,[(S(!0),V(q,null,z(f.value[o.value].colors,(e,t)=>(S(),V(`span`,{class:D([`cell-container`,{mobile:K(oe),show:!f.value[o.value].enableCustomColor}]),key:t},[c(`span`,{class:D([`cell-outer`,{active:K(_w)(M.value,e.value)}]),onClick:t=>xe(e.value)},[c(`span`,{class:`cell`,style:A(`background-color: ${e.value}`)},null,4)],10,x6)],2))),128)),f.value[o.value].enableCustomColor?(S(),V(`div`,S6,[c(`div`,{class:`preview`,style:A({backgroundColor:I.value})},null,4),x(K(gv),{to:`.signatures-popup`,onComplete:Se,"onUpdate:value":Ce,value:I.value,"show-alpha":!1},{label:G(()=>[...t[13]||=[c(`img`,{src:``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,alt:`colorPicker`},null,-1)]]),_:1},8,[`value`])])):b(``,!0)])],512),[[Re,o.value===`trackpad`||o.value===`keyboard`]])])):b(``,!0)],2),c(`div`,C6,[c(`div`,w6,[c(`span`,{class:`clear top`,onClick:le},d(e.$t(`common.actions.clear`)),1),_.value?(S(),V(`div`,T6,[c(`div`,{class:D([`check`,{active:re.value,disabled:p.value.length>=5}]),onClick:t[9]||=e=>p.value.length<5&&(re.value=!re.value)},[R(x(w,null,null,512),[[Re,re.value]])],2),p.value.length<5?(S(),V(`span`,E6,d(e.$t(`signatures.electronicSignature.saveTemplate`)),1)):(S(),V(`span`,D6,d(e.$t(`signatures.fullStorage`)),1))])):b(``,!0)]),c(`div`,O6,[c(`span`,{class:`clear bottom`,onClick:le},d(e.$t(`common.actions.clear`)),1),c(`div`,k6,[c(`div`,{class:`button`,onClick:t[10]||=e=>se(`cancel`)},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:D([`button blue`,{disabled:!O.value&&!k.value}]),onClick:ce},d(e.$t(`common.actions.apply`)),3)])])])],512),[[Re,ne.value===`create`]])])])],32),v.value?(S(),V(`div`,A6,[x(E,{show:v.value,dialogName:e.dialogName},{footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:t[12]||=e=>v.value=!1},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:B},d(e.$t(`common.actions.ok`)),1)]),default:G(()=>[x(T),c(`p`,null,d(e.$t(`signatures.deleteConfirm`)),1)]),_:1},8,[`show`,`dialogName`])])):b(``,!0)],64)}}},M6={class:`content`},N6={class:`loading`},P6={class:`error-dialog`},F6={class:`close-btn`},I6={class:`fail-logo`},L6={class:`text`},R6={class:`mask active`},z6={class:`mask active`},B6={__name:`index`,async setup(e){let t,n;[t,n]=le(()=>En),await t,n(),HQ.mount(new E$);let{t:r}=It();TY({$t:r}),VX();let i=ye(),a=fw(),o=T(()=>i.getTheme),l=T(()=>i.getDownloading),u=T(()=>i.getDownloadError),f=T(()=>i.isElementOpen(H.SIGN_CREATE_PANEL)),p=T(()=>i.isElementOpen(H.SIGNATURE_DIALOG)),m=T(()=>i.isElementOpen(H.DIGITAL_SIGN_CREATE_PANEL)),g=T(()=>i.getPopoverChanged),_=T(()=>i.getToolMode),v=T(()=>i.isElementOpen(H.CREATE_CUSTOM_STAMP_DIALOG)),y=T(()=>i.isElementDisabled(H.HEADER)),C=T(()=>i.getGenericPanels),w=T(()=>i.getCustomModals),E={isAnnotationPopup:e=>i.toggleAnnotationPopup(e),renderLayerPermission:e=>!e&&i.disableElement(`layers`),webviewerServer:e=>i.setWebviewerMode(e),autoJumpNextSign:e=>a.setAutoJumpNextSign(e),disableDigitalSignature:e=>e&&a.setDisableDigitalSignature(e),disableElectronicSignature:e=>e&&a.setDisableElectronicSignature(e),enableReply:e=>!e&&i.disableElement(`replyButton`)},O=async e=>{e&&(i.setUpload(!0),i.setUploadLoading(!0),i.setDisableHeader(!0),await U.initConfig(e),Object.entries(e).forEach(([e,t])=>{e in E&&E[e](t)}))};[t,n]=le(()=>wY(O)),await t,n();let k=UD(`css`,null);if(k){let e=document.createElement(`link`);e.rel=`stylesheet`,e.type=`text/css`,e.href=k,document.getElementsByTagName(`head`)[0].appendChild(e)}let A=UD(`theme`,!1);A&&(A=A.toLowerCase(),(A===`dark`||A===`light`)&&(i.setTheme(A),A===`dark`&&document.documentElement.classList.toggle(`dark`))),UD(`header`,!0)||i.disableElement(H.HEADER),window.instance.changeFile=()=>{let e=document.getElementById(`fileInput`);e&&e.click(),(f.value||m.value)&&(i.closeElement(H.SIGN_CREATE_PANEL),i.closeElement(H.DIGITAL_SIGN_CREATE_PANEL)),i.setActiveToolMode(`view`),i.setToolbarGroup(`toolbarGroup-View`),i.setActiveHeaderGroup(`default`),g.value||i.setPopoverChanged(!0),_.value===`document`&&U.saveDocumentEdit(`cancel`)};let j=()=>{i.setDownloadError(``)};return i.setStampPanelTabs([{type:`tab`,dataElement:`STANDARD`},{type:`tab`,dataElement:`DYNAMIC`},{type:`tab`,dataElement:`CUSTOM`}]),M(()=>{window.parent.postMessage({type:`viewerLoaded`,docId:parseInt(UD(`docId`),10)},`*`)}),(e,t)=>{let n=SY,r=iJ,i=Wk,a=MD,m=hT,g=mT,T=fT,E=uT,O=Fe,k=lx,A=oT,M=nT,N=BC,P=kb;return S(),V(q,null,[c(`div`,{id:`outerContainer`,class:D([`app`,{dark:o.value===`dark`}])},[R(c(`div`,null,[x(n)],512),[[Re,!y.value]]),c(`div`,M6,[x(r),x(i),_.value===`document`?(S(),s(a,{key:0,Sortable:K(HQ)},null,8,[`Sortable`])):b(``,!0),(S(!0),V(q,null,z(C.value,(e,t)=>(S(),s(T,{key:t,dataElement:e.dataElement,location:e.location,isFullHeight:e.isFullHeight,close:e.close},{default:G(()=>[Object.keys(K(j$)).includes(e.render)?(S(),s(ve(K(X3)[K(j$)[e.render]]),{key:0,dataElement:e.dataElement},null,8,[`dataElement`])):Object.keys(K(A$)).includes(e.render)?(S(),s(m,{key:1,Component:K(Y3)[K(A$)[e.render]],dataElement:e.dataElement},null,8,[`Component`,`dataElement`])):(S(),s(g,{key:2,className:`Panel ${e.dataElement}`,display:e.dataElement,dataElement:e.dataElement,render:e.render},null,8,[`className`,`display`,`dataElement`,`render`]))]),_:2},1032,[`dataElement`,`location`,`isFullHeight`,`close`]))),128)),w.value.length?(S(),s(m,{key:1,Component:K(Y3).CustomModal,dataElement:`customModal`},null,8,[`Component`])):b(``,!0)]),c(`div`,{class:D([`mask`,{active:l.value||u.value!==``}])},[R(c(`div`,N6,[x(E)],512),[[Re,l.value]]),R(c(`div`,P6,[c(`div`,F6,[x(k,{onClick:j},{default:G(()=>[x(O)]),_:1})]),c(`div`,I6,[x(A)]),c(`div`,L6,d(u.value)+` failed`,1),c(`div`,{class:`confirm-btn`,onClick:j},`OK`)],512),[[Re,u.value!==``]])],2),R(c(`div`,R6,[x(M)],512),[[Re,f.value]]),R(c(`div`,z6,[x(j6)],512),[[Re,p.value]]),v.value?(S(),s(N,{key:0})):b(``,!0)],2),t[0]||=c(`div`,{id:`printContainer`},null,-1),x(P)],64)}}},V6={__name:`Suspenser`,setup(e){return(e,t)=>(S(),s(ee,null,{default:G(()=>[x(B6)]),_:1}))}},H6=ce();function U6(e){e.use(H6)}U6(Pe(V6)),Dn(Pe(V6)).mount(`#app`);export{DF as a,fw as c,lx as d,xI as i,JC as l,sV as n,GM as o,YR as r,kM as s,NH as t,WC as u};
2506
+ `),F.location&&(e+=oe(`location`)),e},ae=async e=>{let t=ce(e);t.rect={width:582,height:187,top:0,left:0,right:582,bottom:187};let n=await U.getSignature(t);r.setDigitalSignaturePreview(n)},oe=e=>{let n={};switch(e){case`name`:n.title=t(`signatures.appearance.name`),n.value=C.value.CN;break;case`date`:let e=new Date,r=`${e.getFullYear()}.${e.getMonth()+1<10?`0${e.getMonth()+1}`:e.getMonth()+1}.${e.getDate()<10?`0${e.getDate()}`:e.getDate()} ${e.getHours()<10?`0${e.getHours()}`:e.getHours()}:${e.getMinutes()<10?`0${e.getMinutes()}`:e.getMinutes()}:${e.getSeconds()<10?`0${e.getSeconds()}`:e.getSeconds()}`;n.title=t(`signatures.appearance.date`),n.value=r;break;case`reason`:n.title=t(`signatures.appearance.reason`),n.value=F.reasonText;break;case`dName`:let i=[`CN`,`O`,`OU`,`email`,`L`,`ST`,`C`].map(e=>`${e}=${C.value[e]}`).join(`,`);n.title=t(`signatures.appearance.distinguishableName`),n.value=i;break;case`version`:n.title=t(`signatures.appearance.version`),n.value=`2.9.3`;break;case`location`:n.title=t(`signatures.appearance.location`),n.value=F.locationText;break;default:break}return F.labels?`${n.title}: ${n.value}`:n.value},ce=e=>{let t={content:e,isContentAlginLeft:F.alignment!==`left`};return u.value===`keyboard`?t.text=j.value:t.text=``,(u.value===`image`||u.value===`trackpad`)&&(t.imageBase64=M.value),F.logo&&(t.isDrawLogo=!0,t.logoBase64=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAEYCAYAAACHjumMAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA9kSURBVHgB7d1vbJXlGcfx635KpUWqJWgiZGgxg2ZG52k1pmqmJdYl6kZwW8S5F4hlKvGFmG3RZWYU4wuX7QUsMdpsSn3j3LJMo3FLJobqMmMWpDUuS4BkdpKAyWAFi4JAz737Oj2Hlv45PX+e+/x57u8nOZ4/Lbw4nvPjuq77fp7HSAy67x9tPSWyzhhJpSNzhbGSsmJa3fNWAeqBtSNiZMSk7YfWyLCkZfD9gSUjgrIYKVEmVKLoUTG22/013QIkjBE7bK3dQdiUruiAyQWLFdlChYJgWBmQdHobQVOcogKm64HjWwkWBM1K3/svXrxNUJCCAqbr/tE20xC96sIlJUDorIy4amYN1cz8ovl+oav3sw02ioYIFyDLSJttiIZu7B1dJ8grb8BoS+TieoCWCDifK/1brUSvTnxHMJc5W6TMG2ekTwDkx1xmTrMGjJZ+ms4CoEDm/vdfuOglwXlmBIwOdHXmQlsEFM7NKI+Z8XQHg9/zzZzBRNFuwgUojs5kdKVVcJ7zAiY7d2kTAEXTldauB0b7BOeca5G0NZKG6GMBUDJtlZrH0ysHB5YcE0ypYFgxAsqmrdKpSLYIMjIVDNULEB+qmElR9r/dAiAWVDGTMgFjTPSoAIiPabhVIIb2CPCjaTy9JPQ2KaI9AvxwbVLwB0NGenpLARA7vlsuYGxkrhUAsUtHUZsELnJraisFQOxcBRP8P96RW0K6QgDEznJM3/xntANQGt0PI4EjYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAmwUCFGjZUiOXXRLJMr0tjTLPFy8y0uJu+ppa3DzxHBM6v/+8lTpgjYyIdbe0fOieDcu4DA7fsXlEykTAYAYNiK+uiGTVigZZ7e5XX94gl7lAITiSy1hpc3dtrqfpds8yvU1qV/+wpNM7ygkbAgaZ4PhGxwIXJg1yi7vX6gQwYlMSmZ0TYfP8gJyx24oNGtPVe7wuSjjEq6O9QW7taJROd6+VCvzofLtfksQa0zd820PbCv19AiYguVC586ZG2p0KSVrAZI3YM3ZNIdUMLVLCESrwoM00ypCb0Wwc7nnotXy/SMAkkAbJHS5QbnXzlM52/hfDB9PqZjSvpt7uz9sy8elLEA2We3oaZX3PQqoVVISxts+FjMwVMgRMAugelN61C+UuV7UAlZYJmV39I65demn6z1iPrGMaLM/+ZJH86ZnFhAuqykh6e+ovz7VNf50Kpg5RsaD2uJlMo3nVPeiY+ioVTB3RuUrv2gvkpZ9fSLigBtlU6q3n+qa+QsDUCd1h+9LWC2XT2iYGuKhZxsijqd07W3PPaZFqnLZDT25sYrkZdcK0ytlTW9yDPn1GBVPD1vdMtEOEC+rJ1CqGT24NompBfZusYvgE1xitWnSFiDkL6pkx5la9J2BqRG6FSHfhAgnQrW0SAVMDchvmOA8LEuXMqXUETJXp8vOTG5tpiZA8kUkRMFW0aa3OW5oESCJjbRsBUyVb7l3IvAXJZsy1BEyFaSv0zCPNLEEjAJYhbyXpMPcXLlw4By7CYAiYSmGlCCHi014BhAtCxSfeM8IFIeNT7xHhgtDxyfdEV4t0oEu4IGR8+j352cYmVosQPALGA91Epxc7A0JHwMRsE0dEA+cQMDHSAxc5tgiYRMDEZOIsdM0CYBIBEwNdMdLlaE65AJyPgImBnomO5WhgJr4VZbrz5kaGusAcCJgy6Nxly3qGusBcCJgy6KVFmLsAcyNgSqT7XThpFJAfAVMCbY3uYe4CzIuAKQEXRgMKQ8AUSVeN7rqJ44yAQhAwRdCqZdNaWiOgUARMEdb3NLKhDigC35YC6WCXAxmB4hAwBeqlNQKKRsAUQKsXBrtA8QiYAlC9AKUhYOZB9QKUjoCZB9ULUDoCJg+qF6A8BEweVC9AeQiYPDrbua4RUA4CZg56zBG7doHy8A2aw709FwiA8nDGpFmsXtHAZV8LdPjUmOz53yHZd+Jo5vEhdxs7czpzDxAws7jndqqXfD4YPSS7/zsig+5GkCAfAmYWDHdnGjv7pbx88J/y8icfZR4DhSBgptFwYbg7iWBBOQiYae68mfYoR0Ol/+MPCBaUjICZhvZIMnOVvn8Nyh43awHKQcBMQXtE1YJ4ETBT3NIR9nFHvzrwXiZggLgQMFOE3B5tdS3RG4f3CRAnAiZLj5wOdXPdvf/4o+wfOypA3FiPzVq1Isy3QisXwgW+EDBZIc5f+v+9h7YIXhEwWasDq2Byq0WATwSMTFyxMaT5i+5zIVxQCQSMhDd/+eHeN9jngoogYESCql5edzOXwyc5AhqVQcCI7n8JY7We1giVRsCI7oExEoKXD35E9YKKImAkjBZJq5c3Du0XoJKCDxjdwRsCPTKawS4qjYBZGkZ7xOwF1RB8wFx2SfLbIz2HLrMXVAMVTAAVzOuHmb2gOgiYAGYwe45xZjpUR/AB09Kc7ApGV49oj1AtwQfM4kWSaPvHjghQLVQwi5JdwezjXC+oIiqYRcl+C/SSrkC1EDDNkmiHubQrqogWKeEt0mdnTgtQLRyLlHBUMKgmAgaANwQMAG8IGADeEDAJt6ypRYBqCT5gxr6wkmQXNV4gQLUEHzAnTkqiUcGgmmiREm45AYMqCj5gDh8ZlyRbvXipANVCi/SFJNr1S5YLUC0MeU8me8i7vLmFOQyqhhbpSFqSbs2lbQJUAwFzNNkVjOomYFAlwQfMpwkf8iqdw7QsWChApVHBBFDBqPtWXC1ApREwbgaT9N286r7Lr6GKQcWx0c759GjyB70aLlQxqDQCxtl/MPkBo6hiUGkEjHPgk+QPepWGy4MrOwWoFALGOXAwjIBRP7j863Jd6zIBKoGAEQ2YMFqknG1XraFVQkUQMDJxTphQlquVHj5Aq4RKIGCy3h06IyHRVum+FdcI4BMBkxXKStJUP159k3xrWbsAvhAwWX8LrILJeeqqblndwjlj4AcBk6VzmJBWk6Z65YbvUcnACwJmir37wgwYpZXMgyuvEyBOBMwUoQ16p3v4yuvlR6tuZAkbsSFgptAKJoQDH/PR1aXf3fBdzoKHWBAw0/z5vbCrGKX7ZN68+T7p+1o3QYOyEDDThN4mTbV2ebv8pvPbmf0ytE0ohenqPR52TzCLv/66RVoWGcGkQyfHZM/oIen/+AM5fGpMgEI0fKXzp32C8yy9OJKrr2wQTGppXCjtLZe4Gc01cl32UihjZ0/LCXcD5rJAMIO2Set7uKbzXPQcv7nrLWlls+/EEdk/dtTdH8081+ChyoEiYGahq0l7952VznbenvnoQFhvay5dKZip8+1+CRlD3jm8O3RWAJSHgJmDLleHvicGKBcBMwcNlz/sYoAJlIOAyeP3BAxQFgImD61i3mRnL1AyAmYeL7z+pQAoDQEzD73yoy5ZAygeAVOAp3eeEgDFI2AKoFUMsxigeARMgXQWw74YoDgETIG0imFfDFAcAqYIui/m8NHwLm8ClIqAKYK2SNtfYeALFIqAKZIeBMmyNVAYAqYEumzNwBeYHwFTAh34vsgOX2BeBEyJXnEDX1olID8Cpgy0SkB+BEwZaJWA/AiYMmmrxHljgNkRMDHQwwjYgAfMRMDEQOcwj/zyC+YxwDQETEx0HvP0zpMCYBIBEyPd5csZ8IBJBEzMfusChqEvMIGA8UAPiGQTHkDAePPEsyflwMFxAUJGwHiiK0qPu5Bh+RohI2A80pUlXb4mZBAqAsYzQgYhI2AqgJBBqAiYCsmFDINfhCSyIscEFZELmXeGuMYSwhAZa48LKkZXl3QJm814CEFkjB0WVJxuxuOwAiRdJGkZEVSFHlbw+LMchY3kiqwRKpgq0gMkNzz1OStMSKSoKS2vCapKh78btn3OXAaJEw0OLHGrSGZQUFW5q0bqOWVomZAUE/tg7Pg7gprw5t/PZFomjsZGEmQCxrVJ29kPUzty+2V0lYlqBvUsEzDaJhmb3iGoKbrKpNXMm++xMQ/16dyhAlQxtSlzrt8XT2ZmM6w0od6cCxiqmNqWmc24lSY256GemOkv3Nh7fMhVMilBzVp2SSS9axfKXTc1Cmpb59v9ErIZR1PbxvTdtEq1Ldc2feeJE8xnUNPMbC92PTB6v5hop6AuUNHUrtArGDPXD7o2He8TK1sFdSMXNJ3tDbJsKaf6qQUETB6ETP266+ZGWd+zUFatIGiqiYCZx429o+vSEu10v9gqqDurVjTI+tsvoKqpEgKmAF0Pj7bJmWi3e9gmqFud7QvkTlfZEDaVQ8AUgZYpOTRsbulYkLmnjfKHgClStprpcw83CBJBh8PaSmngrHb3BE58CJgSZYLmtHS7v2KLGHOtIDFaFplM4GjQdLgKZ3kmgAidUhAwMciFjTFRylqru4DbXOhcIUgUndtotXOZuy1bajLPF7swasne9PHi5omAwgQCJnAdu57nfAiAJ9S9ALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANAQPAGwIGgDcEDABvCBgA3hAwALwhYAB4Q8AA8IaAAeANASP2mADwgoAROS4AfBgJPmCsNcMCIH7W/ocKxsiIAIidNWaYgDGWCgbwwX23CJio6TUBEL9IBoMPmOE1G3UVaVAAxGl4eM1mhrzKWvuOAIiNNXaH3hMwakHTdvbDADGKJroCAkYm2iRrZYcAKJsxMqDtkT4mYHKoYoBYpCO7LfeYgMmiigHKZ6zdlqteMs8F5+nY1T/kKpmUACiOkZGh2x5eOfUlKphpbEP6bloloEjGHrORXTP9ZQJmGi3vrJHHBEDBrI02Tm2NcgiYWQzftnlAe0kBMK/M3KXnoVl3xDODyaPzref6rDFbBcCsNFz23r65b86fC/JK7epfZyS9071VrQJggpu5mHF5bO83Nw/k/TXBvFK7n2szabNbrLQJEDwzrIshs81cZvymoGC0TAiaVi1p2ZGvJZrxRwRFyVQz49Ln3roNAoQgGyzpBU3bs2cfKPyPCkqiQSNp6TbWbHFPrxUgaax9xwXEYCnBkkPAxCAXNpE1KWttyr2rbe6tvUKAeuAqFDdfPO5uw8aYkbSe5TFqeq3UUJnq/zPmsRQ9GquGAAAAAElFTkSuQmCC`),u.value===`none`&&(t.isDrawOnlyContent=!0),t},le=async e=>{if(!(e===u.value&&[`image`,`none`].includes(e))){if(U.handleSign({flag:`create`,type:1}),r.setActiveSignWay(e),e===`trackpad`&&r.openElement(H.DIGITAL_SIGN_CREATE_PANEL),e===`keyboard`){r.openElement(`digitalKeyboardCreatePanel`),await E();let e=document.querySelector(`.digital-signature-dialog .keyboard-paint input`);e.select(),e.focus()}de()}},ue=e=>{r.closeElement(n),u.value!==`trackpad`&&de(),U.handleSign({flag:`reset`}),document.body.style.overflow=``,!f.value&&e===`cancel`&&_.value&&v.value&&r.openElement(H.SELECT_SIGN_TYPE_DIALOG),r.setActiveSignWay(`keyboard`),Object.assign(F,{name:!0,dName:!1,date:!0,version:!1,logo:!0,location:!1,reason:!1,labels:!0,alignment:`left`,reasonText:t(`signatures.none`),locationText:``})},de=async()=>{M.value=``,u.value===`trackpad`&&U.handleSign({flag:`clear`}),await ae(B())},fe=()=>{k.value.click()},pe=async e=>{let n=e.target.files[0];if(n.size>1024*1024){window.$message.error(t(`signatures.uploadError`),{duration:5e3,icon:()=>Y(`img`,{src:mw})}),e.target.value=``;return}let r=new FileReader;M.value=await new Promise((e,t)=>{r.addEventListener(`load`,async t=>{e(t.target.result)}),r.addEventListener(`error`,()=>{t(`Error reading the local image`)}),r.readAsDataURL(n)}),await ae(B())},me=async()=>{r.setCommonLoading(!0);let e=ce(B()),t=i.getPkcs12;await U.handleSign({type:1,flag:`save`,param:{annotation:w(r.getSelectedSignatureField),...e},pkcs12Buffer:t.pkcs12Buffer,password:t.password}),ue(),r.setCommonLoading(!1),ee.value&&A.value.length<5&&r.addDigitalSignature(p.value)},he=()=>{u.value===`keyboard`&&le(`keyboard`),u.value===`trackpad`&&le(`trackpad`)};return(e,t)=>{let r=Ne,i=Sw,o=dw,f=Fe,_=lx,v=$C,C=Yb,w=Vb,T=YT,E=GC,M=$G,N=XG,L=YC;return S(),V(q,null,[l.value?(S(),V(`div`,{key:0,class:`signature-appearance-dialog`,onMousedown:t[22]||=Ae(()=>{},[`stop`])},[x(E,{show:l.value,dialogName:K(n),class:`appearance-dialog`},se({header:G(()=>[c(`p`,null,d(e.$t(`signatures.appearance.title`)),1),x(r,{class:`close`,onClick:ue})]),default:G(()=>[c(`div`,eK,[c(`div`,tK,[c(`div`,{onClick:t[0]||=e=>P.value=`list`,class:D({active:P.value===`list`})},d(e.$t(`signatures.electronicSignature.mySignatures`)),3),c(`div`,{onClick:t[1]||=e=>P.value=`create`,class:D({active:P.value===`create`})},d(e.$t(`signatures.electronicSignature.create`)),3)]),P.value===`list`?(S(),V(`div`,nK,[A.value.length===0?(S(),V(`div`,rK,[c(`div`,iK,[O.value===`light`?(S(),s(i,{key:0})):(S(),s(o,{key:1})),c(`div`,{onClick:t[2]||=e=>P.value=`create`},d(e.$t(`signatures.electronicSignature.empty`)),1)])])):(S(),V(`div`,aK,[(S(!0),V(q,null,z(A.value,(e,t)=>(S(),V(`div`,{class:`signatures-popup-list`,key:t},[c(`img`,{onClick:t=>ne(e),src:e},null,8,oK),x(_,{class:`close-button`,onClick:e=>te(t)},{default:G(()=>[x(f)]),_:1},8,[`onClick`])]))),128))]))])):(S(),V(`div`,sK,[c(`div`,cK,[c(`div`,{onClick:t[3]||=e=>le(`keyboard`),class:D({active:u.value===`keyboard`})},d(e.$t(`signatures.keyboard`)),3),c(`div`,{onClick:t[4]||=e=>le(`trackpad`),class:D({active:u.value===`trackpad`})},d(e.$t(`signatures.trackpad`)),3),c(`div`,{onClick:t[5]||=e=>le(`image`),class:D({active:u.value===`image`})},d(e.$t(`signatures.image`)),3),c(`div`,{onClick:t[6]||=e=>le(`none`),class:D({active:u.value===`none`})},d(e.$t(`signatures.none`)),3)]),c(`div`,{class:`preview-area`,onClick:t[7]||=e=>he()},[c(`img`,{src:p.value},null,8,lK)]),c(`div`,uK,[u.value===`image`?(S(),V(q,{key:0},[c(`span`,{class:`upload`,onClick:fe},[y(d(e.$t(`common.actions.upload`)),1),c(`input`,{ref_key:`uploadImageEl`,ref:k,type:`file`,onChange:pe,accept:`.png, .jpg, .jpeg`,name:`signature`},null,544)]),c(`span`,{onClick:de},d(e.$t(`common.actions.clear`)),1)],64)):b(``,!0)]),c(`p`,dK,d(e.$t(`signatures.appearance.includeText`)),1),c(`div`,fK,[c(`div`,pK,[c(`div`,mK,[c(`div`,{class:`check-box`,onClick:t[8]||=e=>F.name=!F.name},[c(`div`,{class:D([`check`,{active:F.name}])},[R(x(v,null,null,512),[[Re,F.name]])],2),c(`span`,null,d(e.$t(`signatures.appearance.name`)),1)]),c(`div`,{class:`check-box`,onClick:t[9]||=e=>F.dName=!F.dName},[c(`div`,{class:D([`check`,{active:F.dName}])},[R(x(v,null,null,512),[[Re,F.dName]])],2),c(`span`,null,d(e.$t(`signatures.appearance.distinguishableName`)),1)]),c(`div`,{class:`check-box`,onClick:t[10]||=e=>F.date=!F.date},[c(`div`,{class:D([`check`,{active:F.date}])},[R(x(v,null,null,512),[[Re,F.date]])],2),c(`span`,null,d(e.$t(`signatures.appearance.date`)),1)]),c(`div`,{class:`check-box`,onClick:t[11]||=e=>F.version=!F.version},[c(`div`,{class:D([`check`,{active:F.version}])},[R(x(v,null,null,512),[[Re,F.version]])],2),c(`span`,null,d(e.$t(`signatures.appearance.version`)),1)]),c(`div`,{class:`check-box`,onClick:t[12]||=e=>F.logo=!F.logo},[c(`div`,{class:D([`check`,{active:F.logo}])},[R(x(v,null,null,512),[[Re,F.logo]])],2),c(`span`,null,d(e.$t(`signatures.appearance.logo`)),1)]),c(`div`,{class:`check-box`,onClick:t[13]||=e=>F.location=!F.location},[c(`div`,{class:D([`check`,{active:F.location}])},[R(x(v,null,null,512),[[Re,F.location]])],2),c(`span`,null,d(e.$t(`signatures.appearance.location`)),1)]),c(`div`,{class:`check-box`,onClick:t[14]||=e=>F.reason=!F.reason},[c(`div`,{class:D([`check`,{active:F.reason}])},[R(x(v,null,null,512),[[Re,F.reason]])],2),c(`span`,null,d(e.$t(`signatures.appearance.reason`)),1)]),c(`div`,{class:`check-box`,onClick:t[15]||=e=>F.labels=!F.labels},[c(`div`,{class:D([`check`,{active:F.labels}])},[R(x(v,null,null,512),[[Re,F.labels]])],2),c(`span`,null,d(e.$t(`signatures.appearance.labels`)),1)])])]),c(`div`,hK,[c(`div`,gK,[c(`span`,null,d(e.$t(`signatures.appearance.textAlignment`)),1),c(`div`,_K,[c(`div`,{class:D({active:F.alignment===`left`}),onClick:t[16]||=e=>F.alignment=`left`},[x(C)],2),c(`div`,{class:D({active:F.alignment===`right`}),onClick:t[17]||=e=>F.alignment=`right`},[x(w)],2)])]),F.reason||F.location?(S(),V(`div`,vK,[F.reason?(S(),V(`div`,yK,[c(`span`,null,d(e.$t(`signatures.appearance.reason`)),1),c(`div`,bK,[R(c(`select`,{"onUpdate:modelValue":t[18]||=e=>F.reasonText=e},[c(`option`,{value:e.$t(`signatures.none`)},d(e.$t(`signatures.none`)),9,xK),c(`option`,{value:e.$t(`signatures.appearance.docOwner`)},d(e.$t(`signatures.appearance.docOwner`)),9,SK),c(`option`,{value:e.$t(`signatures.appearance.approving`)},d(e.$t(`signatures.appearance.approving`)),9,CK),c(`option`,{value:e.$t(`signatures.appearance.reviewed`)},d(e.$t(`signatures.appearance.reviewed`)),9,wK)],512),[[Oe,F.reasonText]]),x(T)])])):b(``,!0),F.location?(S(),V(`div`,TK,[c(`span`,null,d(e.$t(`signatures.appearance.location`)),1),R(c(`input`,{type:`text`,"onUpdate:modelValue":t[19]||=e=>F.locationText=e,name:`signature`},null,512),[[Me,F.locationText]])])):b(``,!0)])):b(``,!0)])])]))])]),_:2},[P.value===`create`?{name:`footer`,fn:G(()=>[c(`div`,EK,[c(`div`,{class:D([`check`,{active:ee.value,disabled:A.value.length>=5}]),onClick:t[20]||=e=>A.value.length<5&&(ee.value=!ee.value)},[R(x(v,null,null,512),[[Re,ee.value]])],2),A.value.length<5?(S(),V(`span`,DK,d(e.$t(`signatures.electronicSignature.saveTemplate`)),1)):(S(),V(`span`,OK,d(e.$t(`signatures.fullStorage`)),1))]),c(`div`,kK,[c(`div`,{class:`rect-button white`,onClick:t[21]||=e=>ue(`cancel`)},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:me},d(e.$t(`common.actions.ok`)),1)])]),key:`0`}:void 0]),1032,[`show`,`dialogName`]),R(x(M,{onModifyImage:re},null,512),[[Re,m.value]]),g.value?(S(),s(N,{key:0,text:j.value,onModifyText:ie},null,8,[`text`])):b(``,!0)],32)):b(``,!0),a.value?(S(),V(`div`,AK,[x(E,{show:a.value,dialogName:K(n)},{footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:t[23]||=e=>a.value=!1},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:I},d(e.$t(`common.actions.ok`)),1)]),default:G(()=>[x(L),c(`p`,null,d(e.$t(`signatures.deleteConfirm`)),1)]),_:1},8,[`show`,`dialogName`])])):b(``,!0)],64)}}},MK={class:`title title-color`},NK={class:`select-text`},PK={class:`text`},FK={class:`title`},IK={class:`text`},LK={class:`title`},RK={__name:`SelectSignTypeDialog`,setup(e){let t=ye(),n=pw(),r=H.SELECT_SIGN_TYPE_DIALOG,i=T(()=>t.isElementOpen(r)),a=T(()=>n.getActiveTool),o=T(()=>n.getDisableDigitalSignature),l=T(()=>n.getDisableElectronicSignature),u=J(`electronic`);U.addEvent(`openSelectSignTypeDialog`,e=>{t.setSelectedSignatureField(e),a.value===L.ADD_DIGITAL_SIGN||!o.value&&l.value?t.openElement(H.ADD_DIGITAL_FILE_DIALOG):a.value===L.ADD_ELECTRONIC_SIGN||o.value&&!l.value?p():t.openElement(H.SELECT_SIGN_TYPE_DIALOG)});let f=()=>{t.closeElement(r),document.body.style.overflow=`hidden`,u.value===`digital`?t.openElement(`addDigitalFileDialog`):p()},p=()=>{t.toggleElement(H.SIGN_CREATE_PANEL),t.toggleActiveHand(!1),U.switchTool(0),U.switchAnnotationEditorMode(0)};return(e,t)=>{let n=OT,a=wT,o=GC;return i.value?(S(),V(`div`,{key:0,class:`select-type-popup`,onMousedown:t[2]||=Ae(()=>{},[`stop`])},[x(o,{show:i.value,dialogName:K(r),close:!0},{footer:G(()=>[c(`div`,{class:`rect-button blue`,onClick:f},d(e.$t(`signatures.startSigning`)),1)]),default:G(()=>[c(`p`,MK,d(e.$t(`signatures.electronicSignature.title`)),1),c(`div`,NK,[c(`div`,{onClick:t[0]||=e=>u.value=`electronic`,class:`option`},[u.value===`electronic`?(S(),s(n,{key:0})):(S(),s(a,{key:1})),c(`div`,PK,[c(`p`,FK,d(e.$t(`signatures.electronic.title`)),1),c(`p`,null,d(e.$t(`signatures.electronic.description`)),1)])]),c(`div`,{onClick:t[1]||=e=>u.value=`digital`,class:`option`},[u.value===`digital`?(S(),s(n,{key:0})):(S(),s(a,{key:1})),c(`div`,IK,[c(`p`,LK,d(e.$t(`signatures.digital.title`)),1),c(`p`,null,d(e.$t(`signatures.digital.description`)),1)])])])]),_:1},8,[`show`,`dialogName`])],32)):b(``,!0)}}},zK={key:0,class:`edit-dialog`},BK={class:`edit`},VK={class:`close`},HK={class:`warning`},UK={class:`title`},WK={class:`des`},GK={__name:`PreventDialog`,setup(e){let t=ye(),n=T(()=>t.isElementOpen(H.CONTENT_EDITOR_PREVENT_DIALOG)),r=T(()=>t.isElementOpen(H.DOC_EDITOR_PREVENT_DIALOG)),i=()=>t.closeElement(n.value?H.CONTENT_EDITOR_PREVENT_DIALOG:H.DOC_EDITOR_PREVENT_DIALOG);return(e,t)=>{let a=Fe,o=YC;return n.value||r.value?(S(),V(`div`,zK,[c(`div`,BK,[c(`div`,VK,[x(a,{onClick:i})]),c(`div`,HK,[x(o)]),c(`div`,UK,d(e.$t(`prevent.title`)),1),c(`div`,WK,d(n.value?e.$t(`prevent.description`):e.$t(`prevent.description1`)),1),c(`div`,{class:`button`,onClick:i},d(e.$t(`common.actions.ok`)),1)])])):b(``,!0)}}},KK={class:`settings-popup`},qK={class:`title`},JK={class:`container`},YK={class:`info`},XK={class:`row`},ZK={class:`row`},QK={class:`row`},$K={class:`select-box`},eq=[`value`],tq={class:`row`},nq={class:`controller`},rq={class:`row`},iq={class:`controller`},aq={class:`form-sign`},oq={class:`row`},sq={class:`select-box`},cq=[`value`],lq={key:0,class:`row`},uq={class:`controller`},dq={class:`title`},fq={class:`version row`},pq={__name:`SettingsDialog`,setup(e){let{i18next:t,t:n}=It(),r=ye(),i=pw(),a=J(i.getAuthor),o=J(i.getAnnotator),s=T(()=>r.isElementOpen(H.SETTINGS_DIALOG)),l=T(()=>i.getAuthor),u=T(()=>i.getAnnotator),f=J(t.language),p=J(!0),m=J(!0),g=J(!1),_=T(()=>r.getLanguages),v=J(!1),y=J(`signForm`),C=[{label:T(()=>n(`toolbar.settings.signForm`)),value:`signForm`},{label:T(()=>n(`toolbar.settings.sign`)),value:`sign`},{label:T(()=>n(`toolbar.settings.form`)),value:`form`},{label:T(()=>n(`toolbar.settings.disableConsecutively`)),value:!1}];W(()=>s.value,(e,t)=>{e&&(g.value=!1)}),W(()=>t.language,e=>{f.value=e}),W(l,(e,t)=>{a.value=e}),W(u,(e,t)=>{o.value=e}),W([a,o,f,p,m,v,y],(e,n)=>{e[0]!==i.getAuthor||e[1]!==i.getAnnotator||e[2]!==t.language||e[3]!==i.getHighlightLink||e[4]!==i.getHighlightForm||e[5]!==U.isSkipNoRequired()||e[6]!==U.getConsecutiveType()?g.value=!0:g.value=!1});let w=()=>{r.closeElement(H.SETTINGS_DIALOG),f.value=t.language,a.value=l.value,o.value=u.value,p.value=i.getHighlightLink,m.value=i.getHighlightForm,y.value=r.getConsecutiveType,v.value=U.isSkipNoRequired()},E=async()=>{await t.changeLanguage(f.value),window.localStorage.setItem(`language`,f.value),r.closeElement(H.SETTINGS_DIALOG),i.setAuthor(a.value?a.value:`ComPDF`),i.setCurrentUser(o.value?o.value:`Guest`),i.setHighlightLink(p.value),i.setHighlightForm(m.value),v.value?U.enableSkipNoRequired():U.disableSkipNoRequired(),r.setConsecutiveType(y.value),U.setConsecutiveType(y.value)},O=()=>{let e=U.getCurrentUser();e!==u.value&&i.setCurrentUser(e)};return U.addEvent(`updateAnnotationPermission`,O),U.addEvent(`updateConsecutivelyType`,()=>{let e=U.isSkipNoRequired();v.value=e,r.setSkipNoRequired(e);let t=U.getConsecutiveType();r.setConsecutiveType(t),y.value=t}),U.addEvent(`update`,O),M(()=>{let e=U.getCurrentUser();i.setCurrentUser(e);let t=U.getConsecutiveType();r.setConsecutiveType(t),y.value=t}),(e,t)=>{let n=$b,r=GC;return S(),V(`div`,KK,[x(r,{show:s.value},{footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:w},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:D([`rect-button blue`,{disabled:!g.value}]),onClick:E},d(e.$t(`common.actions.save`)),3)]),default:G(()=>[c(`p`,qK,d(e.$t(`toolbar.settings.title`)),1),c(`div`,JK,[c(`div`,YK,[c(`div`,XK,[c(`span`,null,d(e.$t(`toolbar.settings.author`)),1),R(c(`input`,{type:`text`,placeholder:`ComPDF`,"onUpdate:modelValue":t[0]||=e=>a.value=e,name:`settings`},null,512),[[Me,a.value]])]),c(`div`,ZK,[c(`span`,null,d(e.$t(`toolbar.settings.annotator`)),1),R(c(`input`,{type:`text`,placeholder:`Guest`,"onUpdate:modelValue":t[1]||=e=>o.value=e,name:`settings`},null,512),[[Me,o.value]])]),c(`div`,QK,[c(`span`,null,d(e.$t(`toolbar.settings.language`)),1),c(`div`,$K,[R(c(`select`,{name:`language`,"onUpdate:modelValue":t[2]||=e=>f.value=e},[(S(!0),V(q,null,z(_.value,e=>(S(),V(`option`,{value:e.code},d(e.name),9,eq))),256))],512),[[Oe,f.value]]),x(n)])])]),c(`div`,tq,[c(`span`,null,d(e.$t(`toolbar.settings.highlightLink`)),1),c(`div`,nq,[x(K(Tb),{value:p.value,"onUpdate:value":t[3]||=e=>p.value=e},null,8,[`value`])])]),c(`div`,rq,[c(`span`,null,d(e.$t(`toolbar.settings.highlightForm`)),1),c(`div`,iq,[x(K(Tb),{value:m.value,"onUpdate:value":t[4]||=e=>m.value=e},null,8,[`value`])])]),c(`div`,aq,[c(`div`,oq,[c(`span`,null,d(e.$t(`toolbar.settings.signFill`)),1),c(`div`,sq,[R(c(`select`,{name:`consecutively`,"onUpdate:modelValue":t[5]||=e=>y.value=e},[(S(),V(q,null,z(C,e=>c(`option`,{value:e.value},d(e.label.value),9,cq)),64))],512),[[Oe,y.value]]),x(n)])]),y.value?(S(),V(`div`,lq,[c(`span`,null,d(e.$t(`toolbar.settings.skip`)),1),c(`div`,uq,[x(K(Tb),{value:v.value,"onUpdate:value":t[6]||=e=>v.value=e},null,8,[`value`])])])):b(``,!0)])]),c(`p`,dq,d(e.$t(`toolbar.settings.creationInfo`)),1),c(`div`,fq,[c(`span`,null,d(e.$t(`toolbar.settings.version`)),1),t[7]||=c(`span`,null,`2.9.3`,-1)])]),_:1},8,[`show`])])}}},mq={id:`passwordDialog`,class:`enter-document-password-dialog`},hq={class:`password-container`},gq={class:`modal-container`},_q={class:`wrapper`},vq={class:`header-container`},yq={class:`password-title`},bq={class:`input-container`},xq=[`type`,`placeholder`],Sq={class:`wrong-password`,id:`passwordText`},Cq={__name:`EnterDocumentPassword`,setup(e){let{t}=It(),n=ye(),r=J(!1),i=J(``),a=J(``),o=T(()=>n.isElementOpen(H.PERMISSION_PASSWORD_DIALOG)),l=T(()=>n.getCability),u=e=>{e.param===!0||e.param===!1?r.value=e.param:r.value=!r.value};W(()=>i.value,()=>{a.value=``}),W(()=>o.value,()=>{i.value=``,a.value=``});let f=async()=>{if(!await U.checkPermissionPassword(i.value)){a.value=t(`passwordDialog.wrongPwd`);return}n.closeElement(H.PERMISSION_PASSWORD_DIALOG),l.value&&(l.value(),n.setCability(null))};return(e,t)=>{let l=Jj,p=lx,m=wL,g=BN,_=IN;return R((S(),V(`div`,mq,[c(`div`,hq,[c(`div`,gq,[c(`div`,_q,[c(`div`,vq,[t[2]||=c(`span`,{class:`title`},null,-1),x(p,{class:`close-button`,id:`passwordCancel`,onClick:t[0]||=e=>K(n).closeElement(K(H).PERMISSION_PASSWORD_DIALOG)},{default:G(()=>[x(l)]),_:1})]),x(m,{class:`lock-icon`}),c(`div`,yq,d(e.$t(`passwordDialog.enterPermissionPwd`)),1),c(`div`,bq,[R(c(`input`,{id:`permission-password`,"onUpdate:modelValue":t[1]||=e=>i.value=e,type:r.value?`text`:`password`,name:`password`,placeholder:e.$t(`passwordDialog.placeholder`)},null,8,xq),[[Ie,i.value]]),c(`span`,{class:`eye-btn`,id:`eyeVisible`,onClick:u},[r.value?(S(),s(g,{key:0})):(S(),s(_,{key:1}))]),c(`div`,Sq,d(a.value),1)]),c(`span`,{class:D([`set-btn`,!i.value.length&&`disabled`]),id:`passwordSubmit`,onClick:f},d(e.$t(`common.actions.ok`)),3)])])])],512)),[[Re,o.value]])}}},wq={className:`modal-container`},Tq={className:`wrapper`},Eq={className:`header-container`},Dq={class:`title`},Oq={__name:`ModalContainer`,props:[`title`,`onCloseClick`],setup(e){return(t,n)=>{let r=Jj,i=lx;return S(),V(`div`,wq,[c(`div`,Tq,[c(`div`,Eq,[c(`span`,Dq,d(e.title),1),x(i,{className:`close-button`,onClick:e.onCloseClick},{default:G(()=>[x(r)]),_:1},8,[`onClick`])]),be(t.$slots,`default`)])])}}},kq=`data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='&%23230;&%23160;&%23161;&%23233;&%23170;&%23140;_check-one%204'%3e%3cpath%20id='Vector'%20d='M12.5%2021.5C15.1235%2021.5%2017.4978%2020.4372%2019.2175%2018.7175C20.9372%2016.9978%2022%2014.6235%2022%2012C22%209.37654%2020.9372%207.00222%2019.2175%205.28248C17.4978%203.56278%2015.1235%202.5%2012.5%202.5C9.87653%202.5%207.50222%203.56278%205.78248%205.28249M12.5%2021.5L5.78248%205.28249M12.5%2021.5C9.87654%2021.5%207.50222%2020.4372%205.78248%2018.7175C4.06278%2016.9978%203%2014.6235%203%2012C3%209.37653%204.06277%207.00222%205.78248%205.28249M12.5%2021.5L5.78248%205.28249'%20fill='%2300CF85'%20stroke='%2300CF85'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M8.5%2012L11.1667%2015L16.5%209'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e`,Aq={class:`password-container`},jq={class:`encrypt-container`},Mq={class:`encrypt-document`},Nq={class:`document-title`},Pq=[`disabled`,`type`,`placeholder`],Fq={class:`wrong-password`},Iq={class:`note`},Lq={class:`permission`},Rq={class:`permission-title`},zq=[`disabled`,`type`,`placeholder`],Bq={class:`wrong-password`},Vq={class:`items`},Hq={class:`note`},Uq={class:`note`},Wq={class:`btn-container`},Gq={__name:`SetPassword`,setup(e){let{t}=It(),n=ye(),r=J(!1),i=J(``),a=J(``),o=J(!1),l=J(``),u=J(``),f=J(!1),p=J(!1),m=J(!1),g=J(!1),_=N({allowsPrinting:!0,allowsCopying:!0,allowsDocumentChanges:!1,allowsDocumentAssembly:!1,allowsCommenting:!1,allowsFormFieldEntry:!1}),v=J(`readOnly`),b=T(()=>n.isElementOpen(H.SET_PASSWORD_MODAL));W(()=>i.value,(e,t)=>{e&&(e=e.replace(/\s/g,``),e=e.replace(/[^a-zA-Z0-9!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]/,``),e=e.replace(/[\u4e00-\u9fa5\uFE30-\uFFA0]/,``),i.value=e),l.value=``}),W(()=>a.value,(e,t)=>{e&&(e=e.replace(/\s/g,``),e=e.replace(/[^a-zA-Z0-9!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]/,``),e=e.replace(/[\u4e00-\u9fa5\uFE30-\uFFA0]/,``),a.value=e),u.value=``});let C=T(()=>[{label:t(`passwordDialog.readOnly`),value:`readOnly`},{label:t(`passwordDialog.allowPageEdit`),value:`allowPageEdit`},{label:t(`passwordDialog.allowFormFillAndSign`),value:`allowFormFillAndSign`},{label:t(`passwordDialog.allowAnnotateFillAndSign`),value:`allowAnnotateFillAndSign`}]),w=()=>{n.closeElement(H.SET_PASSWORD_MODAL),r.value=!1,i.value=``,f.value=!1,a.value=``,p.value=!1,m.value=!1,_.allowsPrinting=!0,_.allowsCopying=!0,_.allowsDocumentChanges=!1,_.allowsDocumentAssembly=!1,_.allowsCommenting=!1,_.allowsFormFieldEntry=!1,v.value=`readOnly`},E=async()=>{if(!i.value.length&&!a.value.length||o.value)return;if(O())f.value=!1;else{f.value=!0;return}o.value=!0;let e={};p.value&&(e.password=i.value),m.value&&(e.permissionPassword=a.value,e.permission={allowsPrinting:_.allowsPrinting,allowsCopying:_.allowsCopying,allowsDocumentChanges:_.allowsDocumentChanges,allowsDocumentAssembly:_.allowsDocumentAssembly,allowsCommenting:_.allowsCommenting,allowsFormFieldEntry:_.allowsFormFieldEntry});let n=await U.setPassword(e);w(),n?window.$message.success(t(`passwordDialog.setSuccess`),{duration:3e3,icon:()=>Y(`img`,{src:kq})}):window.$message.error(t(`passwordDialog.setFailure`),{duration:3e3,icon:()=>Y(`img`,{src:mw})}),o.value=!1},O=()=>{let e=/^(?=.*[a-zA-Z]+$|.*\d+$|.*[@$!%*?&]+$)[a-zA-Z\d@$!%*?&]{1,20}$/,n=e.test(i.value),r=e.test(a.value);return p.value&&!n&&(l.value=t(`passwordDialog.support`)),m.value&&!r&&(u.value=t(`passwordDialog.support`)),p.value&&m.value&&i.value===a.value?(l.value=t(`passwordDialog.samePwd`),u.value=t(`passwordDialog.samePwd`),!1):i.value.length>20||a.value.length>20?(p.value&&i.value.length>20&&(l.value=t(`passwordDialog.longPwd`)),m.value&&a.value.length>20&&(u.value=t(`passwordDialog.longPwd`)),!1):(!p.value||n)&&(!m.value||r)},k=e=>{switch(e){case`readOnly`:_.allowsDocumentChanges=!1,_.allowsDocumentAssembly=!1,_.allowsCommenting=!1,_.allowsFormFieldEntry=!1;break;case`allowPageEdit`:_.allowsDocumentChanges=!1,_.allowsDocumentAssembly=!0,_.allowsCommenting=!1,_.allowsFormFieldEntry=!1;break;case`allowFormFillAndSign`:_.allowsDocumentChanges=!0,_.allowsDocumentAssembly=!1,_.allowsCommenting=!1,_.allowsFormFieldEntry=!0;break;case`allowAnnotateFillAndSign`:_.allowsDocumentChanges=!0,_.allowsDocumentAssembly=!1,_.allowsCommenting=!0,_.allowsFormFieldEntry=!0;break}};return(e,t)=>{let n=$C,o=BN,f=IN,T=uH,O=$b,A=Oq;return R((S(),V(`div`,Aq,[x(A,{onCloseClick:w,title:e.$t(`passwordDialog.encryptTitle`)},{default:G(()=>[c(`div`,jq,[c(`div`,Mq,[c(`div`,Nq,[c(`div`,{class:D([`check`,{active:p.value}]),onClick:t[0]||=e=>p.value=!p.value},[R(x(n,null,null,512),[[Re,p.value]])],2),c(`span`,null,d(e.$t(`passwordDialog.openPwd`)),1)]),c(`div`,{class:D([`input-container`,!p.value&&`disable`])},[c(`div`,{class:D([`input`,!p.value&&`disabled`])},[R(c(`input`,{disabled:!p.value,type:r.value?`text`:`password`,name:`password`,"onUpdate:modelValue":t[1]||=e=>i.value=e,placeholder:e.$t(`passwordDialog.placeholder`)},null,8,Pq),[[Ie,i.value]]),c(`span`,{class:`eye-btn`,onClick:t[2]||=e=>r.value=!r.value},[r.value?(S(),s(o,{key:0})):(S(),s(f,{key:1}))])],2),R(c(`div`,Fq,[c(`p`,null,d(l.value),1),t[9]||=y(`s `,-1)],512),[[Re,l.value]]),c(`div`,Iq,[x(T),c(`p`,null,d(p.value?e.$t(`passwordDialog.hasOpenPwd`):e.$t(`passwordDialog.noOpenPwd`)),1)])],2)]),c(`div`,Lq,[c(`div`,Rq,[c(`div`,{class:D([`check`,{active:m.value}]),onClick:t[3]||=e=>m.value=!m.value},[R(x(n,null,null,512),[[Re,m.value]])],2),c(`span`,null,d(e.$t(`passwordDialog.permissionPwd`)),1)]),c(`div`,{class:D([`input-container`,!m.value&&`disable`])},[c(`div`,{class:D([`input`,!m.value&&`disabled`])},[R(c(`input`,{disabled:!m.value,type:g.value?`text`:`password`,name:`password`,"onUpdate:modelValue":t[4]||=e=>a.value=e,placeholder:e.$t(`passwordDialog.placeholder`)},null,8,zq),[[Ie,a.value]]),c(`span`,{class:`eye-btn`,onClick:t[5]||=e=>g.value=!g.value},[g.value?(S(),s(o,{key:0})):(S(),s(f,{key:1}))])],2),R(c(`div`,Bq,[c(`p`,null,d(u.value),1)],512),[[Re,u.value]])],2),c(`div`,Vq,[x(K(kv),{value:v.value,"onUpdate:value":[t[6]||=e=>v.value=e,k],options:C.value,disabled:!m.value,to:`.permission`,class:`item`,size:`small`},{arrow:G(()=>[x(O)]),_:1},8,[`value`,`options`,`disabled`]),c(`div`,{class:D([`printing item`,!m.value&&`disabled`])},[c(`div`,{class:D([`check`,{active:_.allowsPrinting}]),onClick:t[7]||=e=>m.value&&(_.allowsPrinting=!_.allowsPrinting)},[R(x(n,null,null,512),[[Re,_.allowsPrinting]])],2),c(`span`,null,d(e.$t(`passwordDialog.allowsPrinting`)),1)],2),c(`div`,{class:D([`copy item`,!m.value&&`disabled`])},[c(`div`,{class:D([`check`,{active:_.allowsCopying}]),onClick:t[8]||=e=>m.value&&(_.allowsCopying=!_.allowsCopying)},[R(x(n,null,null,512),[[Re,_.allowsCopying]])],2),c(`span`,null,d(e.$t(`passwordDialog.allowsCopying`)),1)],2),c(`div`,Hq,[x(T),c(`p`,null,d(m.value?e.$t(`passwordDialog.hasPermissionPwd`):e.$t(`passwordDialog.noPermissionPwd`)),1)])])])]),c(`div`,Uq,[c(`p`,null,d(e.$t(`passwordDialog.notes`)[0]),1),c(`p`,null,d(e.$t(`passwordDialog.notes`)[1]),1),c(`p`,null,d(e.$t(`passwordDialog.notes`)[2]),1)]),c(`div`,Wq,[c(`span`,{onClick:w},d(e.$t(`common.actions.cancel`)),1),c(`span`,{class:D([`blue`,{disabled:!i.value&&p.value&&!m.value||!a.value&&m.value||!p.value&&!m.value}]),onClick:E},d(e.$t(`passwordDialog.encrypt`)),3)])]),_:1},8,[`title`])],512)),[[Re,b.value]])}}},Kq={id:`passwordDialog`,class:`password-dialog enter-password-dialog`},qq={class:`password-container`},Jq={class:`modal-container`},Yq={class:`wrapper`},Xq={class:`header-container`},Zq={class:`password-title`},Qq={class:`input-container`},$q=[`type`,`placeholder`],eJ={class:`set-btn`,id:`passwordSubmit`},tJ={__name:`EnterPassword`,setup(e){let t=J(!1),n=e=>{e.param===!0||e.param===!1?t.value=e.param:t.value=!t.value};return(e,r)=>{let i=Jj,a=lx,o=wL,l=BN,u=IN;return S(),V(`div`,Kq,[c(`div`,qq,[c(`div`,Jq,[c(`div`,Yq,[c(`div`,Xq,[r[0]||=c(`span`,{class:`title`},null,-1),x(a,{class:`close-button`,id:`passwordCancel`},{default:G(()=>[x(i)]),_:1})]),x(o,{class:`lock-icon`}),c(`div`,Zq,d(e.$t(`passwordDialog.enterPwd`)),1),c(`div`,Qq,[c(`input`,{id:`password`,type:t.value?`text`:`password`,name:`password`,placeholder:e.$t(`passwordDialog.placeholder`)},null,8,$q),c(`span`,{class:`eye-btn`,id:`eyeVisible`,onClick:n},[t.value?(S(),s(l,{key:0})):(S(),s(u,{key:1}))]),r[1]||=c(`div`,{class:`wrong-password`,id:`passwordText`},null,-1)]),c(`span`,eJ,d(e.$t(`common.actions.ok`)),1)])])])])}}},nJ=[`data-element`],rJ={class:`form-container`},iJ={__name:`PageNavOverlay`,setup(e){let t=ye(),n=pw(),r=J(t.getCurrentPage);re(()=>r.value=t.getCurrentPage);let i=T(()=>t.getFullScreen),a=T(()=>t.getCurrentPage===1),o=T(()=>n.getTotalPages),s=T(()=>o.value===t.getCurrentPage);W(r,(e,t)=>{e!==``&&o.value!==0&&(e>o.value||e<=0)&&(r.value=t)});let l=()=>{U.previousPage()&&t.setCurrentPage(U.getCurrentPage())},u=()=>{U.nextPage()&&t.setCurrentPage(U.getCurrentPage())},f=e=>{if(e.target.blur(),!e.target.value){r.value=t.getCurrentPage;return}U.pageNumberChanged(e.target)};return(e,t)=>{let n=KA,p=lx,m=HA;return o.value>0&&!i.value?(S(),V(`div`,{key:0,class:`page-nav`,"data-element":K(H).PAGE_NAV_OVERLAY},[x(p,{className:`side-arrow-container`,img:`icon-previous-left`,title:a.value?null:e.$t(`common.navigation.previousPage`),onClick:l,disabled:a.value},{default:G(()=>[x(n)]),_:1},8,[`title`,`disabled`]),c(`div`,rJ,[R(c(`input`,{type:`number`,"onUpdate:modelValue":t[0]||=e=>r.value=e,onInput:t[1]||=(...t)=>e.onChange&&e.onChange(...t),onBlur:f,onKeydown:ke(f,[`enter`]),tabIndex:`-1`,style:A({width:r.value.toString().length*8+2+`px`}),pattern:`\\d*`,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,name:`page-nav`},null,36),[[Me,r.value]]),c(`span`,null,d(`/${o.value}`),1)]),x(p,{className:`side-arrow-container`,img:`icon-next-right`,title:s.value?null:e.$t(`common.navigation.nextPage`),onClick:u,disabled:s.value},{default:G(()=>[x(m)]),_:1},8,[`title`,`disabled`])],8,nJ)):b(``,!0)}}},aJ=[`innerHTML`],oJ={class:`loading`},sJ={class:`upload-container`},cJ={for:`fileInput`},lJ={__name:`DocumentContainer`,setup(e){let{loadDocument:t,initializeViewer:n,getDocumentViewer:r,switchTool:i,switchAnnotationEditorMode:a}=U,o=J(),l=J(),u=ye(),f=pw(),p=null,m=window.localStorage.getItem(`customStamps`),g=window.localStorage.getItem(`electronicSignatures`),_=window.localStorage.getItem(`digitalSignatures`);m&&u.setCustomStamps(JSON.parse(m)),g&&u.setElectronicSignature(JSON.parse(g)),_&&u.setDigitalSignature(JSON.parse(_));let v=T(()=>u.getCustomLoading),y=T(()=>u.isElementDisabled(`header`)),C=T(()=>u.getDisableSignatureTool),w=T(()=>u.isElementOpen(H.LEFT_PANEL)),E=T(()=>u.getPanelSpace),O=T(()=>u.getToolMode),k=T(()=>u.getCompareStatus),j=T(()=>y.value||[`view`,`document`,`separation`].includes(u.getToolMode)||O.value===`compare`&&k.value!==`finished`?0:[L.REDACTION,L.REMOVE].includes(I.value)?window.innerWidth>500?92:132:O.value===`sign`&&C.value?0:ne.value&&O.value===`sign`?88:44),N=T(()=>u.getUploadLoading&&u.getUpload),ee=T(()=>u.getActiveElementTab(H.LEFT_PANEL)),F=T(()=>u.getUpload),te=T(()=>u.isElementDisabled(`pageNavOverlay`)),I=T(()=>f.getActiveTool),z=T(()=>u.getScale),ne=T(()=>u.getSignatureVerify),re=T(()=>u.getCommonLoading),ie=T(()=>u.getVerified),B=T(()=>u.getCurrentPage),ae=100,oe=0,se=[],ce=[`highlight`,`underline`,`squiggly`,`strikeout`,`link`,`signatureFields`,`redaction`];function le(e){if(!P)return;if(I.value===L.POLYGON||I.value===L.POLYLINE||I.value===L.CLOUDY){let t=xe(e),n=U.getSelectedPage(t,t).first;if(n<1)return;let r=U.windowToPage(t,n);U.eventBus().dispatch(`pdfDbclick`,{event:e,...r});return}let t=z.value<ae+100?z.value+50:ae;u.setCurrentScale(t/100),U.scaleChanged(t/100)}function ue(e){let t=o.value.querySelector(`.page-nav`);if(e.target.nodeName===`A`||t?.contains(e.target)||e.target.nodeName===`rect`)return;let n=new Date().getTime();n-oe<300&&le(e),oe=n}async function de(e){let t=e.target.files[0];if(!t)return;u.closeElement(`permissionPasswordDialog`),w.value&&u.closeElement(H.LEFT_PANEL),u.$patch({fullScreen:!1,currentPage:0,scale:``,pageMode:0,scrollMode:`Vertical`,activeTab:0,searchStatus:!1,activeElements:{leftPanel:!1,rightPanel:!1,pageModePanel:!1},activeElementsTab:{leftPanel:`THUMBS`,rightPanel:`GENERAL`},signatureVerify:0}),f.resetSetting(),U.clearSearchResults(),f.setToolState(``),u.setActiveToolMode(`view`),u.setToolbarGroup(`toolbarGroup-View`),u.setUploadLoading(!0),u.setDisableHeader(!0);let n=t.name;u.setUpload(!0),await pe(t,{filename:n}),u.setUploadLoading(!1),u.setDisableHeader(!1)}let fe=T(()=>f.getLoadingProgress);async function pe(e,{filename:n=null,password:i=``,onError:a=null}){let o={extension:WD(`extension`,null),filename:WD(`filename`,null)||n,externalPath:WD(`p`,``),documentId:WD(`did`,null),progress:f.setLoadingProgress,pageChangedCallback:u.setCurrentPage,scaleChangedCallback:u.setCurrentScale,annotationsNumChangedCallback:f.setAnnotationsCount,distanceChangedCallback:f.setDistance,permissionPasswordCallback:()=>u.openElement(`permissionPasswordDialog`),documentPasswordCallback:()=>u.openElement(`permissionPasswordDialog`),onError:a,password:i};try{let n=await t(e,o);if(!n||!n.verified)return;ie.value||(u.setVerified(n.verified),u.setLicense(r()._license));let{pwd:i}=n;f.setFileHasPwd(!!i),f.setPassword(i),f.setCurrentPdfData(e,o),f.setOutline(U.getOutlines())}catch(e){console.log(e),u.resetSetting();let t=document.getElementById(`fileInput`);t.value=``,f.setCurrentPdfData()}let s=U.getPagesCount(),c=U.getScale();f.setTotalPages(s),u.setCurrentPage(1),u.setCurrentScale(c),ae=Math.round(c*100)}let me=e=>{e.length===1&&f.setSelectedAnnotation(e[0])},he=()=>{U.getAnnotationManager().getSelectedAnnotations().length!==1&&f.setSelectedAnnotation(null)},ge=e=>{ee.value!==H.ANNOTATION_TAB&&u.setActiveElementTab(H.LEFT_PANEL,H.ANNOTATION_TAB),w.value||u.openElement(H.LEFT_PANEL),u.openElement(`reply`),p&&=(clearTimeout(p),null),setTimeout(()=>{let e=document.querySelector(`.annotation-item.selected`);if(e.scrollIntoView({behavior:`smooth`}),e.classList.contains(`flash-border`))e.classList.remove(`flash-border`),clearTimeout(p),p=null;else{e.classList.add(`flash-border`);let t=document.querySelector(`.annotation-item.selected`),n=t.querySelector(`textarea`);n&&n.focus(),p=setTimeout(()=>t?.classList.remove(`flash-border`),2e3)}},300)};function _e(e){e.isTrusted&&typeof e.data==`object`&&e.data.type===`viewerLoaded`&&W(e.data.options)}function ve(){u.setUploadLoading(!1),U.addEvent(`updateAnnotationPermission`,()=>{let e=U.isReadOnlyModeEnabled();if(e){O.value&&(u.setActiveToolMode(`view`),u.setToolbarGroup(`toolbarGroup-View`)),f.setToolState(``);let e=U.getAnnotationManager();e.deselectAnnotations(e.getSelectedAnnotations())}let t=U.isUserAdmin();u.setReadOnly(e),u.setUserAdmin(t)}),U.addEvent(`toolModeChanged`,e=>{e!==O.value&&u.setActiveToolMode(e)}),U.addEvent(`toolChanged`,e=>{f.setActiveTool(e)}),U.addEvent(`annotationSelected`,me),U.addEvent(`annotationDeselected`,he),U.addEvent(`openAnnotationReply`,ge);let e=document.querySelector(`.thumbnail-view`),t=document.querySelector(`.outline-view`),r=document.querySelector(`.findbar-view`);n({container:o.value,viewer:l.value,thumbnailView:e,outlineView:t,findbarView:r,toggleButton:document.querySelector(`.toggle-button`)}),U.addEvent(`onPagesUpdated`,e=>{let{pageNumber:t}=e;f.setOutline(U.getOutlines());let n=U.getPagesCount(),r=U.getScale();f.setTotalPages(n),u.setCurrentPage(t||1),u.setCurrentScale(r);let i=u.getScrollMode,a=u.getPageMode,o=i===`Vertical`?0:1;U.switchScrollMode(o),U.switchSpreadMode(a)});let i=(e,t)=>{let n=U.getAnnotationsList();f.initAnnotations(n),setTimeout(()=>{if(t===`add`){let t=document.getElementById(`annotationList-${e.name}`);t&&t.scrollIntoView({behavior:`smooth`,block:`start`})}})};U.addEvent(`annotationChanged`,i),U.addEvent(`documentloaded`,i)}async function W(e){if(e&&e.pdfUrl){let t=e.pdfUrl;delete e.pdfUrl,await window.instance.UI.loadDocument(t,e)}}window.instance.UI.loadDocument=async(e,{filename:t=``,password:n=``,onError:r=null}={})=>{e&&(w.value&&u.closeElement(H.LEFT_PANEL),u.$patch({fullScreen:!1,currentPage:0,scale:``,pageMode:0,scrollMode:`Vertical`,activeTab:0,searchStatus:!1,activeElements:{leftPanel:!1,rightPanel:!1},activeElementsTab:{leftPanel:`THUMBS`,rightPanel:`GENERAL`}}),f.resetSetting(),U.clearSearchResults(),f.setToolState(``),u.setActiveToolMode(`view`),u.setToolbarGroup(`toolbarGroup-View`),u.setUploadLoading(!0),u.setDisableHeader(!0),u.setUpload(!0),await pe(e,{filename:e.name||t,password:n,onError:r}),u.setUploadLoading(!1),u.setDisableHeader(!1))};let be=(e,t)=>{let n=xe(e),r=U.getSelectedPage(n,n).first;if(r<1)return;let i=U.windowToPage(n,r);U.eventBus().dispatch(t,{event:e,...i})},xe=e=>{let t=U.getScrollViewElement(),n=t.scrollLeft||0,r=t.scrollTop||0,i=e.touches&&e.touches.length?e.touches[0]:e;return{x:i.pageX+n,y:i.pageY+r}},G=async e=>{let t=U.getAnnotationManager(),n=t.getSelectedAnnotations(),r=e=>uU({isReadOnly:u.getReadOnly,isUserAdmin:u.getUserAdmin,currentAuthor:f.getAnnotator,annotations:e});if(e===`c`){if(!r(n))return;for(let e of n){if(ce.includes(e.annotation.type)){se=[];return}se.push(JSON.parse(JSON.stringify(e.annotation)))}}if(e===`v`&&se.length&&B.value-1===se[0].pageIndex){if(!r(n.length?n:se)||!r(se))return;se.forEach(e=>{if(delete e.name,delete e.annotPtr,delete e.pagePtr,Object.keys(e).forEach(t=>{e[t]??delete e[t]}),e.rect&&Object.keys(e.rect).forEach(t=>e.rect[t]+=10),e.linePoints&&=e.linePoints.map(e=>e+=10),e.vertices&&e.vertices.forEach(e=>{e.x+=10,e.y+=10}),e.inkPointes)for(let t of e.inkPointes)for(let e of t)e.PointX=Number(e.PointX)+10,e.PointY=Number(e.PointY)+10;e.arcPoints&&e.arcPoints.forEach(e=>{e.x+=10,e.y+=10}),e.floatPoint&&e.floatPoint.forEach(e=>{e.x+=10,e.y+=10})});let e=await U.getDocumentViewer().addAnnotations(se);if(e&&e.length){let n=t.getSelectedAnnotations();n.length&&(n.forEach(e=>e.handleOutside?.(null,!0)),t.deselectAnnotations(n)),e.length===1?e[0].selectAnnotation():t.selectAnnotations(e,B.value)}se=[]}},Se=T(()=>f.getCanUndo(`content`)),Ce=T(()=>f.getCanRedo(`content`)),we=T(()=>f.getCanUndo(`annotation`)),Te=T(()=>f.getCanRedo(`annotation`)),Ee=()=>U.getContentEditManager()?.isInContentEditMode()??!1,Y=async e=>{Ee()?e&&Se.value?await U.getContentEditHistoryManager()?.undo():!e&&Ce.value&&await U.getContentEditHistoryManager()?.redo():e&&we.value?await U.getAnnotationHistoryManager()?.undo():!e&&Te.value&&await U.getAnnotationHistoryManager()?.redo()};return M(()=>{document.addEventListener(`mousewheel`,function(e){e||=window.event,(e.wheelDelta&&event.ctrlKey||e.detail)&&event.preventDefault()},{capture:!1,passive:!1}),document.addEventListener(`keydown`,function(e){(e.ctrlKey===!0||e.metaKey===!0)&&(e.keyCode===61||e.keyCode===107||e.keyCode===173||e.keyCode===109||e.keyCode===187||e.keyCode===189)&&e.preventDefault()},!1),document.documentElement.addEventListener(`keydown`,async e=>{if(e.target.tagName===`INPUT`||e.target.tagName===`TEXTAREA`)return;let t=e.keyCode||e.which,n=e.metaKey||e.ctrlKey;if(t===27&&I.value&&(f.setToolState(I.value),u.toggleActiveHand(!1),i(0),a(0)),!n)return;let r=e.key.toLowerCase();(r===`c`||r===`v`)&&G(r),r===`z`&&!e.shiftKey?await Y(!0):(r===`y`||r===`z`&&e.shiftKey)&&await Y(!1)}),ve(),window.addEventListener(`message`,_e,!1)}),(e,t)=>{let n=iJ,r=tJ,i=Gq,a=Cq,u=pq,f=GK,p=RK,m=jK,g=GG,_=IG,C=vG,w=hG,T=sG,M=dT,P=iG,ee=tG,z=AW,ne=kW,ie=OW,B=TW,ae=xW,oe=QU,se=fU,ce=Jk;return S(),V(q,null,[c(`div`,{ref_key:`mainContainer`,ref:o,class:D([`document-container`,{under:O.value===`compare`&&k.value!==`finished`||O.value===`document`,"no-touch":[K(L).SELECT_TEXT,K(L).HIGHLIGHT,K(L).UNDERLINE,K(L).SQUIGGLY,K(L).STRIKEOUT].includes(I.value),"annot-no-selet":[K(L).REDACTION,K(L).REMOVE,K(L).ERASER].includes(I.value)}]),style:A({width:`calc(100% - ${E.value.left}px - ${E.value.right}px)`,"margin-left":`${E.value.left}px`,"margin-right":`${E.value.right}px`,"margin-top":`${j.value}px`,top:y.value?`0px`:`44px`}),onDblclick:le,onClick:ue},[c(`div`,{ref_key:`viewerContainer`,ref:l,class:`document`,onClick:t[0]||=e=>be(e,`pdfClick`),onTouchstart:t[1]||=e=>be(e,`pdfMousedown`),onMousedown:t[2]||=e=>be(e,`pdfMousedown`),onDblclick:t[3]||=e=>be(e,`pdfDbclick`),onContextmenu:t[4]||=Ae(()=>{},[`prevent`])},null,544),te.value?b(``,!0):(S(),s(n,{key:0,style:A({left:`calc(50% + ${E.value.left/2}px - ${E.value.right/2}px)`})},null,8,[`style`]))],38),x(r),x(i),x(a),x(u),x(f),x(p),x(m),x(g),x(_),x(C),x(w),x(T),N.value&&fe.value<100?(S(),V(`div`,{key:0,class:`loading-state`,innerHTML:v.value?v.value.element:`${e.$t(`common.actions.loading`)}...`,style:A(v.value&&v.value.styles?v.value.styles:``)},null,12,aJ)):b(``,!0),c(`div`,{class:D([`mask`,{active:re.value}])},[R(c(`div`,oJ,[x(M)],512),[[Re,re.value]])],2),R(c(`div`,sJ,[c(`input`,{id:`fileInput`,type:`file`,accept:`.pdf`,onChange:de,name:`document`},null,32),c(`label`,cJ,d(e.$t(`common.actions.upload`)),1)],512),[[Re,[`compare`,`view`].includes(O.value)&&!F.value]]),x(P),x(ee),x(z),x(ne),x(ie),x(B),x(ae),x(oe),x(se),x(ce)],64)}}},uJ={class:`security-apply-bar`},dJ={class:`buttons`},fJ={__name:`SecurityApplyBar`,setup(e){let t=ye(),n=pw(),r=J(0),i=e=>{if(!r.value){n.setToolState(``),t.setActiveToolMode(`view`),t.setToolbarGroup(`toolbarGroup-View`);return}t.setRedactionConfirmDialog(e)};return U.addEvent(`redactAnnotationChanged`,e=>{r.value=e}),(e,t)=>(S(),V(`div`,uJ,[c(`span`,null,d(e.$t(`redaction.applyWarning`)),1),c(`div`,dJ,[c(`div`,{class:`view-button`,onClick:t[0]||=e=>i(0)},d(e.$t(`common.actions.exit`)),1),c(`div`,{class:D([`view-button apply-btn`,{disabled:!r.value}]),onClick:t[1]||=e=>i(1)},d(e.$t(`common.actions.apply`)),3)])]))}},pJ={class:`signature-verify`},mJ={key:0},hJ={key:0},gJ={key:1},_J={key:2},vJ=B({__name:`SignatureVerifyBar`,setup(e){let t=ye(),n=pw(),r=T(()=>t.getSignatureVerify),i=T(()=>n.getSignatures),a=()=>{t.openElement(H.LEFT_PANEL),t.setActiveElementTab(H.LEFT_PANEL,H.SIGNATURE_TAB)};return(e,t)=>{let n=cV,o=eV,s=iV;return S(),V(`div`,pJ,[r.value===1?(S(),V(`div`,mJ,[x(n),c(`span`,null,d(e.$t(`signatures.details.validSignature`)),1)])):i.value.length===1?(S(),V(q,{key:1},[r.value===2?(S(),V(`div`,hJ,[x(o),c(`span`,null,d(e.$t(`signatures.details.invalidSignature`)),1)])):(S(),V(`div`,gJ,[x(s),c(`span`,null,d(e.$t(`signatures.details.unknownSignature`)),1)]))],64)):r.value===2||r.value===3?(S(),V(`div`,_J,[x(o),c(`span`,null,d(e.$t(`signatures.details.invalidSignatures`)),1)])):b(``,!0),c(`div`,{class:`view-button`,onClick:a},d(e.$t(`signatures.details.viewAll`)),1)])}}},[[`__scopeId`,`data-v-13128a5e`]]),yJ={class:`fold-button`},bJ={class:`form-content`},xJ={key:0,class:`text`},SJ={key:1,class:`text`},CJ={key:2,class:`text`},wJ={key:3,class:`text`},TJ={key:4,class:`text`},EJ={key:5,class:`text`},DJ={class:`text`},OJ={__name:`FormBoard`,setup(e){let t=ye(),n=T(()=>t.getToolMode),r=T(()=>t.getConsecutiveType),i=T(()=>t.getEnableFillForm),a=T(()=>t.getReadOnly),o=T(()=>t.getSkipNoRequired),l=T(()=>t.isElementOpen(H.LEFT_PANEL)),u=J(),f=J(!1),p=J(!1),m=T(()=>t.getFormBoardPosition),g=N({x:0,y:0}),_=T(()=>t.getUploadLoading),v=T(()=>t.getFormBoardFold),C=J(0),w=N({formFields:0,requiredFormFields:0,unfilledFormFields:0,unfilledRequiredFormFields:0,signFields:0,requiredSignFields:0,unsignFields:0,unsignRequiredSignFields:0}),E=T(()=>{if(a.value)return!1;let e=o.value,t=r.value,s=i.value&&n.value===`form`||n.value===`view`,c=!1;return c=t===`signForm`?!e&&(w.formFields>0||w.signFields>0)||e&&(w.requiredFormFields>0||w.requiredSignFields>0):t===`sign`?!e&&w.signFields>0||e&&w.requiredSignFields>0:t===`form`?!e&&w.formFields>0||e&&w.requiredFormFields>0:!1,c&&s}),O=null,k=()=>!!U.getAnnotationManager().getCurrentConsecutiveAnnotation?.(),j=()=>{let e=U.getFormSignFilledAndUnfilled();w.formFields=e.formFields,w.requiredFormFields=e.requiredFormFields,w.unfilledFormFields=e.unfilledFormFields,w.unfilledRequiredFormFields=e.unfilledRequiredFormFields,w.signFields=e.signFields,w.requiredSignFields=e.requiredSignFields,w.unsignFields=e.unsignFields,w.unsignRequiredSignFields=e.unsignRequiredSignFields};U.addEvent(`annotationChanged`,()=>{j()}),U.addEvent(`documentloaded`,()=>{j()}),W(l,(e,t)=>{e?C.value=260:C.value=0});let M=()=>{let e=U.getAnnotationManager(),t=e.getConsecutiveAnnotations();t.length&&(U.jumpToAnnotation(t[0]),e.focus(t[0]))},P=()=>{let e=U.getAnnotationManager(),t=e.getPreviousConsecutiveAnnotation();t&&(U.jumpToAnnotation(t),e.focus(t))},ee=()=>{let e=U.getAnnotationManager(),t=e.getNextConsecutiveAnnotation();t&&(U.jumpToAnnotation(t),e.focus(t))},F=()=>{U.setConsecutiveType(!1),t.setConsecutiveType(!1)};U.addEvent(`focus`,e=>{O&&clearTimeout(O),f.value=!0}),U.addEvent(`blur`,e=>{f.value=k()}),U.addEvent(`fieldChanged`,()=>{O=setTimeout(()=>{ee()},500)});let te=pe()?`touchmove`:`mousemove`,I=pe()?`touchend`:`mouseup`,L=e=>{let t,n;if(e.touches&&e.touches.length){let r=e.touches[0];t=r.pageX,n=r.pageY}else if(e.changedTouches){let r=e.changedTouches[0];t=r.pageX,n=r.pageY}else t=e.pageX,n=e.pageY;return{pageX:t,pageY:n}},z=e=>{p.value=!0;let{pageX:t,pageY:n}=L(e);g.x=t-m.value.left,g.y=n-m.value.top,document.addEventListener(te,re),document.addEventListener(I,ne)},ne=()=>{p.value=!1,document.removeEventListener(te,re),document.removeEventListener(I,ne)},re=e=>{if(p.value){let n=u.value.offsetWidth+(l.value?260:0),r=u.value.offsetHeight,{pageX:i,pageY:a}=L(e),o=i-g.x,s=a-g.y,c=window.innerWidth-n,d=window.innerHeight-r;t.setFormBoardPosition({left:Math.min(Math.max(o,0),c),top:Math.min(Math.max(s,0),d)})}},ie=()=>{let e=v.value;t.setFormBoardFold(!e)};return(e,t)=>{let n=vP,i=EH,a=Bz,o=lx,l=PR;return R((S(),V(`div`,{ref_key:`formBoard`,ref:u,class:D([`form-board`,{fold:v.value}]),style:A({left:m.value.left+`px`,top:m.value.top+`px`,transform:`translateX(${C.value}px)`}),onMousedown:z,onTouchstart:z},[c(`div`,yJ,[c(`div`,{onClick:ie},[v.value?(S(),s(i,{key:1})):(S(),s(n,{key:0}))])]),R(c(`div`,bJ,[r.value===`signForm`&&(w.unfilledFormFields>0||w.unsignFields>0)?(S(),V(`div`,xJ,d(e.$t(`form.note1`,{formFields:w.formFields,unfilledFormFields:w.unfilledRequiredFormFields,signFields:w.signFields,unsignFields:w.unsignRequiredSignFields})),1)):r.value===`sign`&&w.unsignFields>0?(S(),V(`div`,SJ,d(e.$t(`form.note2`,{signFields:w.signFields,unsignFields:w.unsignRequiredSignFields})),1)):r.value===`form`&&w.unfilledFormFields>0?(S(),V(`div`,CJ,d(e.$t(`form.note3`,{formFields:w.formFields,unfilledFormFields:w.unfilledRequiredFormFields})),1)):r.value===`signForm`&&w.unfilledFormFields===0&&w.unsignFields===0?(S(),V(`div`,wJ,d(e.$t(`form.formSignFilled`)),1)):r.value===`sign`&&w.unsignFields===0?(S(),V(`div`,TJ,d(e.$t(`form.signFilled`)),1)):r.value===`form`&&w.unfilledFormFields===0?(S(),V(`div`,EJ,d(e.$t(`form.formFilled`)),1)):b(``,!0),c(`div`,DJ,[c(`div`,null,[y(d(e.$t(`form.startFill`)),1),c(`span`,{class:`disable`,onClick:F},d(e.$t(`form.consecutively`)),1)])])],512),[[Re,!v.value]]),c(`div`,{class:`navigator`,onMousedown:t[5]||=Ae(()=>{},[`stop`,`self`]),onMouseup:t[6]||=Ae(()=>{},[`stop`,`self`]),onClick:t[7]||=Ae(()=>{},[`stop`,`prevent`,`self`]),onDblclick:t[8]||=Ae(()=>{},[`stop`,`self`])},[c(`span`,{class:`start-btn`,onClick:M,onMousedown:t[0]||=Ae(()=>{},[`stop`,`self`])},d(e.$t(`form.start`)),33),x(o,{title:e.$t(`form.previous`),onClick:P,onTouchstart:t[1]||=Ae(()=>{},[`stop`,`self`]),onMousedown:t[2]||=Ae(()=>{},[`stop`,`self`]),disabled:!f.value},{default:G(()=>[x(a)]),_:1},8,[`title`,`disabled`]),x(o,{title:e.$t(`form.next`),onClick:ee,onTouchstart:t[3]||=Ae(()=>{},[`stop`,`self`]),onMousedown:t[4]||=Ae(()=>{},[`stop`,`self`]),disabled:!f.value},{default:G(()=>[x(l)]),_:1},8,[`title`,`disabled`])],32)],38)),[[Re,E.value&&!_.value]])}}},kJ=[`data-element`,`onClick`],AJ={key:0,class:`drop`},jJ=B({__name:`Ribbons`,setup(e){let t=ye(),n=pw(),{i18next:r,t:i}=It(),a=T(()=>t.getToolbarGroupDataElements),o=T(()=>a.value.filter(e=>!t.isElementDisabled(e))),c=T(()=>t.getCurrentToolbarGroup),l=T(()=>t.getUpload&&t.getVerified&&!t.getUploadLoading),u=T(()=>t.getWebviewerMode),f=T(()=>n.getDisableDigitalSignature),p=T(()=>t.getReadOnly),m=T(()=>C.value.map(e=>({label:i(k(e)),value:e}))),g=J(null),_=J(0),v=J([]),C=J([]),w=J(c.value),O=[L.TEXTFIELD,L.CHECKBOX,L.RADIOBUTTON,L.LISTBOX,L.COMBOBOX,L.PUSHBUTTON],k=e=>{let t={view:`viewer`,form:`forms`,annotation:`annotations`,sign:`signatures`,security:`security`,redaction:`redaction`,compare:`compare`,editor:`editor`,document:`documentEditor`,separation:`separation`,measurement:`measurement`},n=e.substring(13).toLowerCase();return t[n]?`toolbar.toolbarGroup.${t[n]}`:e},A=e=>{if(w.value===e)return;let n=e.substring(13).toLowerCase();if(P&&[`separation`,`measurement`].includes(n)){t.openElement(H.UNSUPPORTED_MOBILE_DIALOG);return}t.setToolbarGroup(e),w.value=e,N(n)},N=e=>{if(u.value!==`Standalone`&&[`editor`,`document`].includes(e)){t.openElement(e===`editor`?H.CONTENT_EDITOR_PREVENT_DIALOG:H.DOC_EDITOR_PREVENT_DIALOG);return}e===`sign`&&!f&&window.$message.info(i(`signatures.tip`),{duration:3e3,showIcon:!1}),t.setActiveToolMode(e),n.setToolState(``),t.toggleActiveHand(!1),U.switchTool(0);let r=U.getAnnotationManager(),a=r.isInFormFieldFillMode();e===`form`&&!a?(r.endFormFieldFillMode(),t.setEnableFillForm(!1)):(r.startFormFieldFillMode(),t.setEnableFillForm(!0)),U.switchAnnotationEditorMode(0),(e===`compare`||e===`document`)&&(t.resetPanels(),t.setActiveHeaderGroup(e))};W(()=>c.value,e=>{w.value=e,e===`toolbarGroup-Form`&&(U.getAnnotationManager().endFormFieldFillMode(),t.setEnableFillForm(!1)),te()});let ee=()=>{!g.value||o.value.length===0||E(()=>{_.value=g.value.getBoundingClientRect().width;let e=document.createElement(`div`);e.className=`ribbons`,e.style.visibility=`hidden`;let t=g.value.getAttributeNames().find(e=>e.startsWith(`data-v-`));t&&e.setAttribute(t,``),o.value.forEach(n=>{let r=document.createElement(`div`);r.className=`item`,r.textContent=i(k(n)),t&&r.setAttribute(t,``),e.appendChild(r)}),g.value.appendChild(e);let n=e.querySelectorAll(`.item`),r=Array.from(n).map(e=>e.getBoundingClientRect().width+16);g.value.removeChild(e);let a=_.value,s=24,c=[],l=[];for(let e=0;e<o.value.length;e++){let t=r[e],n=e<o.value.length-1?47:0;if(s+t+n<=a)c.push(o.value[e]),s+=t;else{l.push(...o.value.slice(e));break}}c.length===1&&(l.unshift(c[0]),c.length=0),v.value=c,C.value=l})},F=()=>{ee()},te=()=>{let e=U.getUnselectableAnnotationTypes();if(!U.getAnnotationManager().isInFormFieldFillMode()&&c.value===`toolbarGroup-Form`){let t=e.filter(e=>!O.includes(e));U.setUnselectableAnnotationTypes(t)}else U.setUnselectableAnnotationTypes([...new Set([...e,...O])])};return W([o,()=>r.language],()=>{ee()}),M(()=>{ee(),te(),window.addEventListener(`resize`,F)}),j(()=>{window.removeEventListener(`resize`,F)}),(e,t)=>{let n=gk;return S(),V(`div`,{ref_key:`containerRef`,ref:g},[o.value.length&&!p.value?(S(),V(`div`,{key:0,class:D([`ribbons`,{"events-none":!l.value,"single-drop":v.value.length===0}])},[(S(!0),V(q,null,z(v.value,t=>(S(),V(`div`,{key:t,"data-element":t,class:D([`item`,{active:t===c.value}]),onClick:e=>A(t)},d(e.$t(k(t))),11,kJ))),128)),C.value.length>0?(S(),s(K(Tv),{key:0,value:w.value,options:m.value,trigger:`click`,"onUpdate:value":A,class:`narrower`},{default:G(()=>[v.value.length===0?(S(),V(`div`,AJ,[y(d(e.$t(k(w.value))),1),x(n)])):(S(),V(`div`,{key:1,class:D([`item`,{active:C.value.includes(c.value)}])},`···`,2))]),_:1},8,[`value`,`options`])):b(``,!0)],2)):b(``,!0)],512)}}},[[`__scopeId`,`data-v-a936f1e5`]]),MJ=[`data-element`],NJ=[`data-element`],PJ=[`data-element`],FJ=[`data-element`],IJ=[`data-element`],LJ=[`data-element`],RJ={__name:`LeftPanelTabs`,props:[`activePanelTab`,`popover`],setup(e){let t=ye(),n=T(()=>t.isElementOpen(H.LEFT_PANEL)),r=T(()=>t.getActiveElementTab(H.LEFT_PANEL)),i=T(()=>t.isElementDisabled(H.THUMBNAILS)),a=T(()=>t.isElementDisabled(H.OUTLINES)),o=T(()=>t.isElementDisabled(H.ANNOTATION)),s=T(()=>t.isElementDisabled(H.LAYERS)),c=T(()=>t.isElementDisabled(H.SIGNATURE)),l=T(()=>t.isElementDisabled(H.SEARCH)),u=i=>{e.popover&&e.popover.setShow(!1),n.value||t.openElement(H.LEFT_PANEL),i!==r.value&&(t.setActiveElementTab(H.LEFT_PANEL,i),i===H.SEARCH_TAB?(U.webViewerNamedAction(`FindOpen`),t.setSearchStatus(!0)):(U.clearSearchResults(),t.setSearchStatus(!1)))};return(e,t)=>{let n=oH,f=XR,p=PA,m=SI,g=XB,_=RB;return S(),V(q,null,[i.value?b(``,!0):(S(),V(`div`,{key:0,class:D([`drop-item`,{active:r.value===K(H).THUMBS}]),"data-element":K(H).THUMBS,onClick:t[0]||=e=>u(K(H).THUMBS)},[x(n),y(d(e.$t(`panels.left.thumbnails`)),1)],10,MJ)),a.value?b(``,!0):(S(),V(`div`,{key:1,class:D([`drop-item`,{active:r.value===K(H).OUTLINE}]),"data-element":K(H).OUTLINE,onClick:t[1]||=e=>u(K(H).OUTLINE)},[x(f),y(d(e.$t(`panels.left.outlines.title`)),1)],10,NJ)),o.value?b(``,!0):(S(),V(`div`,{key:2,class:D([`drop-item`,{active:r.value===K(H).ANNOTATION_TAB}]),"data-element":K(H).ANNOTATION_TAB,onClick:t[2]||=e=>u(K(H).ANNOTATION_TAB)},[x(p),y(d(e.$t(`panels.left.annotations.title`)),1)],10,PJ)),s.value?b(``,!0):(S(),V(`div`,{key:3,class:D([`drop-item`,{active:r.value===K(H).LAYER}]),"data-element":K(H).LAYER,onClick:t[3]||=e=>u(K(H).LAYER)},[x(m),y(d(e.$t(`panels.left.layers.title`)),1)],10,FJ)),c.value?b(``,!0):(S(),V(`div`,{key:4,"data-element":K(H).SIGNATURE_TAB,class:D([`drop-item`,{active:r.value===K(H).SIGNATURE_TAB}]),onClick:t[4]||=e=>u(K(H).SIGNATURE_TAB)},[x(g),y(d(e.$t(`panels.left.signatures.title`)),1)],10,IJ)),l.value?b(``,!0):(S(),V(`div`,{key:5,"data-element":K(H).SEARCH_TAB,class:D([`drop-item`,{active:r.value===K(H).SEARCH_TAB}]),onClick:t[5]||=e=>u(K(H).SEARCH_TAB)},[x(_),y(d(e.$t(`panels.left.search.title`)),1)],10,LJ))],64)}}},zJ=[`title`],BJ={class:`drop-down medium left-panel-button-popover`},VJ={__name:`LeftPanelButton`,props:[`item`],setup(e){let t=ye(),n=T(()=>t.isElementOpen(e.item.element)),r=T(()=>t.getActiveElementTab(H.LEFT_PANEL)),i=T(()=>t.getPopoverChanged),a=T(()=>t.isElementDisabled(`thumbnails`)),o=T(()=>t.isElementDisabled(`outlines`)),l=T(()=>t.isElementDisabled(`annotation`)),u=T(()=>t.isElementDisabled(`layers`)),d=T(()=>t.isElementDisabled(`signature`)),f=T(()=>t.isElementDisabled(`search`)),p=T(()=>!a.value||!o.value||!l.value||!u.value||!d.value||!f.value),m=e=>{e.stopPropagation()},g=J(null),_=()=>{r.value===H.SEARCH_TAB&&U.webViewerNamedAction(`Find`),t.toggleElement(e.item.element)};return W(()=>i.value,(e,n)=>{e&&(g.value.setShow(!1),t.setPopoverChanged(!1))}),(e,t)=>{let i=gk,a=RJ,o=oH,l=XR,u=PA,d=SI,f=XB,v=RB,y=fz,b=lx;return S(),V(`div`,null,[c(`div`,{title:e.$t(`toolbar.viewControls.leftPanel`),class:D([`left-panel-button toggle-button`,{active:n.value}]),onClick:_},[x(K(Og),{ref_key:`popover`,ref:g,placement:`top-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,"z-index":5},{trigger:G(()=>[c(`div`,{class:`arrow-container`,onClick:m},[R(x(i,{class:`arrow`},null,512),[[Re,p.value]])])]),default:G(()=>[c(`div`,BJ,[x(a,{activePanelTab:r.value,popover:g.value},null,8,[`activePanelTab`,`popover`])])]),_:1},512),x(b,{isActive:n.value},{default:G(()=>[r.value===`THUMBS`?(S(),s(o,{key:0})):r.value===`OUTLINE`?(S(),s(l,{key:1})):r.value===`ANNOTATION`?(S(),s(u,{key:2})):r.value===`LAYER`?(S(),s(d,{key:3})):r.value===`SIGNATURE`?(S(),s(f,{key:4})):r.value===`SEARCH`?(S(),s(v,{key:5})):(S(),s(y,{key:6}))]),_:1},8,[`isActive`])],10,zJ)])}}},HJ={__name:`PrintButton`,props:[`item`],setup(e){let t=ye(),n=T(()=>t.getToolMode),r=T(()=>t.getCompareMode),i=async()=>{if(n.value===`compare`&&r.value===`content`){t.openElement(H.PRINT_SETTING_DIALOG);return}t.setDownloading(!0);try{let e=await U.webViewerNamedAction(`Print`);t.setDownloading(!1),e||t.setDownloadError(`Print`)}catch(e){console.log(e)}};return(t,n)=>{let r=Wz,a=lx;return S(),s(a,f({...e.item},{onClick:i,title:t.$t(`toolbar.fileOperations.print`)}),{default:G(()=>[x(r)]),_:1},16,[`title`])}}},UJ={__name:`FlattenButton`,props:[`item`],setup(e){let t=ye(),{flattenPdfDownload:n}=U,r=async()=>{t.setDownloading(!0);try{let e=await n();t.setDownloading(!1),e||t.setDownloadError(`Downloaded`)}catch(e){console.log(e)}};return(t,n)=>{let i=oP,a=lx;return S(),s(a,f({...e.item},{onClick:r}),{default:G(()=>[x(i)]),_:1},16)}}},WJ={__name:`DownloadButton`,setup(e){let t=ye(),n=T(()=>t.getToolMode),r=T(()=>t.getCompareMode),{download:i}=U,a=async()=>{if(n.value===`compare`&&r.value===`content`){t.openElement(H.DOWNLOAD_SETTING_DIALOG);return}t.setDownloading(!0);try{let e=await i();t.setDownloading(!1),e||t.setDownloadError(`Downloaded`)}catch(e){console.log(e)}};return(e,t)=>{let n=eN,r=lx;return S(),s(r,{onClick:a,title:e.$t(`toolbar.fileOperations.download`)},{default:G(()=>[x(n)]),_:1},8,[`title`])}}},GJ={__name:`OpenFileButton`,props:[`item`],setup(e){return(t,n)=>{let r=KR,i=lx;return S(),s(i,f({...e.item},{title:t.$t(`common.actions.upload`)}),{default:G(()=>[x(r)]),_:1},16,[`title`])}}},KJ={class:`drop-down`},qJ=[`data-element`],JJ=[`data-element`],YJ=[`data-element`],XJ=[`data-element`],ZJ=[`data-element`],QJ=[`data-element`],$J=[`data-element`],eY=[`data-element`],tY=[`data-element`],nY=B({__name:`Dropdown`,setup(e){let t=ye(),n=J(null),{download:r,webViewerNamedAction:i,flattenPdfDownload:a}=U,o=T(()=>t.getPopoverChanged),s=T(()=>n.value&&n.value.getMergedShow()),l=T(()=>t.getUpload),u=T(()=>t.getTheme),f=T(()=>t.getActiveRightHeaderItems),p=T(()=>f.value.filter(e=>!t.isElementDisabled(e.dataElement))),m=T(()=>{let e=[`downloadButton`,`flattenButton`,`printButton`,`settingButton`];return P&&e.push(`theme`,`pageModeButton`),p.value.filter(t=>e.includes(t.type)||[`actionButton`,`statefulButton`,`toggleElementButton`,`toolButton`].includes(t.type)).every(e=>e.hidden)});W(()=>o.value,(e,r)=>{e&&(n.value.setShow(!1),t.setPopoverChanged(!1))});let g=()=>{window.instance.changeFile(),n.value.setShow(!1)},_=async()=>{if(!U.getPermission(`allowsCopying`)){t.openElement(H.PERMISSION_PASSWORD_DIALOG);return}n.value.setShow(!1),t.setDownloading(!0);try{let e=await r();t.setDownloading(!1),e||t.setDownloadError(`Downloaded`)}catch(e){console.log(e)}},v=async()=>{n.value.setShow(!1),t.setDownloading(!0);try{let e=await a();t.setDownloading(!1),e||t.setDownloadError(`Downloaded`)}catch(e){console.log(e)}},C=async()=>{let e=U.getPermission(`allowsPrinting`),{promise:r,resolve:a}=Promise.withResolvers();e?a():t.openElement(H.PERMISSION_PASSWORD_DIALOG,a),r.then(async()=>{n.value.setShow(!1),t.setDownloading(!0);try{let e=await i(`Print`);t.setDownloading(!1),e||t.setDownloadError(`Print`)}catch(e){console.log(e)}})},w=()=>{n.value.setShow(!1),t.setPopoverChanged(!1),t.openElement(H.SETTINGS_DIALOG)},E=e=>{n.value.setShow(!1),e!==u.value&&t.setTheme(e)};W(()=>u.value,e=>{jx.mode=e,e===`light`?document.documentElement.classList.remove(`dark`):document.documentElement.classList.add(`dark`)});let O=()=>{n.value.setShow(!1),t.isElementOpen(H.PAGE_MODE_PANEL)?t.closeElement(H.PAGE_MODE_PANEL):(t.openElement(H.PAGE_MODE_PANEL),t.closeElement(H.CONTENT_EDITOR_PANEL))};return(e,t)=>{let r=vR,i=gk,a=lx,o=GJ,u=WJ,f=UJ,T=HJ,k=OF,A=AM,j=iz,M=KB,N=$H;return S(),V(`div`,null,[x(K(Og),{ref_key:`popover`,ref:n,placement:`top-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,"z-index":6},{trigger:G(()=>[R(x(a,{class:D([`more`,{active:s.value,disabled:!l.value}])},{default:G(()=>[x(r),x(i)]),_:1},8,[`class`]),[[Re,!m.value]])]),default:G(()=>[c(`div`,KJ,[(S(!0),V(q,null,z(p.value,(n,r)=>(S(),V(q,{key:`${n.type}-${n.dataElement||r}`},[n.type===`openFileButton`&&!n.hidden?(S(),V(`div`,{key:0,"data-element":n.dataElement,class:`drop-item`,onClick:g},[x(o),y(d(e.$t(`toolbar.fileOperations.openFile`)),1)],8,qJ)):b(``,!0),n.type===`downloadButton`&&!n.hidden?(S(),V(`div`,{key:1,"data-element":n.dataElement,class:`drop-item`,onClick:_},[x(u),y(d(e.$t(`toolbar.fileOperations.download`)),1)],8,JJ)):b(``,!0),n.type===`flattenButton`&&!n.hidden?(S(),V(`div`,{key:2,"data-element":n.dataElement,class:`drop-item`,onClick:v},[x(f),y(d(e.$t(`toolbar.fileOperations.flatten`)),1)],8,YJ)):b(``,!0),n.type===`printButton`&&!n.hidden?(S(),V(`div`,{key:3,"data-element":n.dataElement,class:`drop-item`,onClick:C},[x(T),y(d(e.$t(`toolbar.fileOperations.print`)),1)],8,XJ)):b(``,!0),n.type===`theme`&&!n.hidden?(S(),V(`div`,{key:4,"data-element":n.dataElement,class:`drop-item`,onClick:t[0]||=e=>E(`light`)},[x(a,null,{default:G(()=>[x(k)]),_:1}),y(d(e.$t(`toolbar.themeSwitcher.lightMode`)),1)],8,ZJ)):b(``,!0),n.type===`theme`&&!n.hidden?(S(),V(`div`,{key:5,"data-element":n.dataElement,class:`drop-item`,onClick:t[1]||=e=>E(`dark`)},[x(a,null,{default:G(()=>[x(A)]),_:1}),y(d(e.$t(`toolbar.themeSwitcher.darkMode`)),1)],8,QJ)):b(``,!0)],64))),128)),(S(!0),V(q,null,z(p.value,(t,n)=>(S(),V(q,{key:`${t.type}-${t.dataElement||n}`},[t.type===`pageModeButton`&&!t.hidden?(S(),V(`div`,{key:0,"data-element":t.dataElement,class:`drop-item`,onClick:O},[x(a,null,{default:G(()=>[x(j)]),_:1}),y(d(e.$t(`toolbar.viewControls.viewSetting`)),1)],8,$J)):b(``,!0)],64))),128)),(S(!0),V(q,null,z(p.value,(t,n)=>(S(),V(q,{key:`${t.type}-${t.dataElement||n}`},[t.type===`settingButton`&&!t.hidden?(S(),V(`div`,{key:0,"data-element":t.dataElement,class:`drop-item`,onClick:w},[x(a,null,{default:G(()=>[x(M)]),_:1}),y(d(e.$t(`toolbar.settings.title`)),1)],8,eY)):b(``,!0),[`actionButton`,`statefulButton`,`toggleElementButton`,`toolButton`].includes(t.type)&&!t.hidden?(S(),V(`div`,{key:1,"data-element":t.dataElement,class:`drop-item`},[x(N,{item:t},null,8,[`item`])],8,tY)):b(``,!0)],64))),128))])]),_:1},512)])}}},[[`__scopeId`,`data-v-b7efa6c8`]]),rY=`data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.5%2022C18.0229%2022%2022.5%2017.5229%2022.5%2012C22.5%206.47715%2018.0229%202%2012.5%202C6.97715%202%202.5%206.47715%202.5%2012C2.5%2017.5229%206.97715%2022%2012.5%2022Z'%20fill='%23FFC061'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.5%207.5C13.5%206.94772%2013.0523%206.5%2012.5%206.5C11.9477%206.5%2011.5%206.94772%2011.5%207.5V13.5C11.5%2014.0523%2011.9477%2014.5%2012.5%2014.5C13.0523%2014.5%2013.5%2014.0523%2013.5%2013.5L13.5%207.5ZM12.6%2017.6C13.1523%2017.6%2013.6%2017.1523%2013.6%2016.6C13.6%2016.0477%2013.1523%2015.6%2012.6%2015.6C12.0477%2015.6%2011.6%2016.0477%2011.6%2016.6C11.6%2017.1523%2012.0477%2017.6%2012.6%2017.6Z'%20fill='white'/%3e%3c/svg%3e`,iY={key:0,class:`signature-tool`},aY={__name:`SignatureToolBar`,setup(e){let{t}=It(),{switchTool:n,switchAnnotationEditorMode:r,verifySignature:i}=U,a=pw(),o=ye(),l=T(()=>a.getActiveTool),u=T(()=>a.getSignatures),f=T(()=>a.getDisableDigitalSignature),p=T(()=>a.getDisableElectronicSignature),m=T(()=>o.getDisableSignatureTool),g=T(()=>a.getCanUndo(`annotation`)),_=T(()=>a.getCanRedo(`annotation`));W(()=>l.value,e=>{(e===L.ADD_DIGITAL_SIGN||e===L.ADD_ELECTRONIC_SIGN)&&window.$message.warning(t(`signatures.danger`),{duration:3e3,icon:()=>Y(`img`,{src:rY}),max:1,class:`sign-danger`,style:{backgroundColor:`#FFF4E5`}})});let v=()=>U.getAnnotationHistoryManager()?.undo(),y=()=>U.getAnnotationHistoryManager()?.redo(),C=e=>{if(!U.getPermission(`allowsDocumentChanges`)){o.openElement(H.PERMISSION_PASSWORD_DIALOG);return}a.setToolState(e),o.toggleActiveHand(!1),n(0),r(0)},w=async()=>{C(``),await i();let e=u.value;if(e.length!==0){if(e.length===1){let t=e[0].signature,n=t.signerList[0].isSignVerified,r=t.signerList[0].isCertTrusted;n&&r?o.setSignatureVerify(1):n?n&&!r&&o.setSignatureVerify(3):o.setSignatureVerify(2);return}else for(let t=0;t<e.length;t++){let n=e[t].signature,r=n.signerList[0].isSignVerified,i=n.signerList[0].isCertTrusted;if(!(r&&i)&&(!r||!i)){o.setSignatureVerify(2);return}}o.setSignatureVerify(1)}};return(e,t)=>{let n=mM,r=lx,i=vA,a=SA,o=PH,T=iN,E=cN;return m.value?b(``,!0):(S(),V(`div`,iY,[x(r,{id:`createSignFieldButton`,class:D([`with-text`,{active:l.value===K(L).SIGNATURE_FIELDS}]),onClick:t[0]||=e=>C(K(L).SIGNATURE_FIELDS),title:e.$t(`toolbar.signatureTools.createSignField`)},{default:G(()=>[x(n),c(`span`,null,d(e.$t(`toolbar.signatureTools.createSignField`)),1)]),_:1},8,[`class`,`title`]),f.value?b(``,!0):(S(),s(r,{key:0,class:D([`with-text`,{active:l.value===K(L).ADD_DIGITAL_SIGN}]),onClick:t[1]||=e=>C(K(L).ADD_DIGITAL_SIGN),title:e.$t(`toolbar.signatureTools.addDigitalSign`)},{default:G(()=>[x(i),c(`span`,null,d(e.$t(`toolbar.signatureTools.addDigitalSign`)),1)]),_:1},8,[`class`,`title`])),p.value?b(``,!0):(S(),s(r,{key:1,class:D([`with-text`,{active:l.value===K(L).ADD_ELECTRONIC_SIGN}]),onClick:t[2]||=e=>C(K(L).ADD_ELECTRONIC_SIGN),title:e.$t(`toolbar.signatureTools.addElectronicSign`)},{default:G(()=>[x(a),c(`span`,null,d(e.$t(`toolbar.signatureTools.addElectronicSign`)),1)]),_:1},8,[`class`,`title`])),f.value?b(``,!0):(S(),s(r,{key:2,class:`with-text`,onClick:w,title:e.$t(`toolbar.signatureTools.verifyDigitalSign`),disabled:!u.value.length},{default:G(()=>[x(o),c(`span`,null,d(e.$t(`toolbar.signatureTools.verifyDigitalSign`)),1)]),_:1},8,[`title`,`disabled`])),t[3]||=c(`div`,{class:`divider`},null,-1),x(r,{onClick:v,title:e.$t(`toolbar.editorTools.undo`),disabled:!g.value},{default:G(()=>[x(T)]),_:1},8,[`title`,`disabled`]),x(r,{onClick:y,title:e.$t(`toolbar.editorTools.redo`),disabled:!_.value},{default:G(()=>[x(E)]),_:1},8,[`title`,`disabled`])]))}}},oY={class:`security-toolbar`},sY={__name:`SecurityToolbar`,props:[`items`],setup(e){let{t}=It(),n=J(!1),r=pw(),i=ye(),a=T(()=>r.getFilehasPwd),o=T(()=>i.getWebviewerMode),l=T(()=>i.isElementOpen(H.SET_PASSWORD_MODAL)),u=T(()=>i.getToolItems),f=()=>{if(!U.getPermission(`allowsDocumentChanges`)){i.openElement(H.PERMISSION_PASSWORD_DIALOG);return}i.openElement(H.SET_PASSWORD_MODAL)},p=async()=>{if(!U.getPermission(`allowsDocumentChanges`)){i.openElement(H.PERMISSION_PASSWORD_DIALOG);return}!a.value&&o.value!==`Standalone`||(n.value||=(n.value=!0,await U.removePassword()?window.$message.success(t(`passwordDialog.removeSuccess`),{duration:3e3,icon:()=>Y(`img`,{src:kq})}):window.$message.error(t(`passwordDialog.removeFailure`),{duration:3e3,icon:()=>Y(`img`,{src:mw})}),!1))};return(e,t)=>{let n=bN,r=lx,i=RM,m=$H;return S(),V(`div`,oY,[(S(!0),V(q,null,z(u.value.security,(t,u)=>(S(),V(q,{key:u},[t.type===`encryption`?(S(),s(r,{key:0,"data-element":t.dataElement,class:D([`with-text`,{active:l.value}]),onClick:f,title:e.$t(t.title)},{default:G(()=>[x(n),c(`span`,null,d(e.$t(t.title)),1)]),_:2},1032,[`data-element`,`class`,`title`])):t.type===`decryption`?(S(),s(r,{key:1,"data-element":t.dataElement,class:D([`with-text`,{disabled:!a.value&&o.value!==`Standalone`}]),onClick:p,title:e.$t(t.title)},{default:G(()=>[x(i),c(`span`,null,d(e.$t(t.title)),1)]),_:2},1032,[`data-element`,`class`,`title`])):[`actionButton`,`statefulButton`,`toggleElementButton`,`toolButton`].includes(t.type)&&!t.hidden?(S(),s(m,{key:2,item:t},null,8,[`item`])):b(``,!0)],64))),128))])}}},cY={class:`redaction-toolbar`},lY={__name:`RedactionToolbar`,props:[`items`],setup(e){let t=pw(),n=ye(),r=T(()=>t.getActiveTool),i=T(()=>t.getRedactionPrompted),a=T(()=>n.getToolItems),o=T(()=>t.getSelectedAnnotation),l=T(()=>o.value?o.value.type===`redaction`&&o.value.annotation?.erasure:r.value===L.REMOVE);W(l,e=>{e&&n.isElementOpen(H.REDACTION_PANEL)&&n.closeElement(H.REDACTION_PANEL)});let u=e=>{if(!U.getPermission(`allowsDocumentChanges`)){n.openElement(`permissionPasswordDialog`);return}i.value?r.value!==e&&(t.setToolState(e),n.resetPanels()):(t.setFirstEnterRedactionTool(e),n.openElement(`redactionTipDialog`))};return(e,t)=>{let n=JN,i=lx,o=nP,f=$H;return S(),V(`div`,cY,[(S(!0),V(q,null,z(a.value.redaction,(a,p)=>(S(),V(q,{key:p},[a.type===`fillBlack`?(S(),s(i,{key:0,"data-element":a.dataElement,class:D([`with-text`,{active:r.value===K(L).REDACTION}]),onClick:t[0]||=e=>u(K(L).REDACTION),title:e.$t(a.title)},{default:G(()=>[x(n),c(`span`,null,d(e.$t(a.title)),1)]),_:2},1032,[`data-element`,`class`,`title`])):a.type===`fillWhite`?(S(),s(i,{key:1,"data-element":a.dataElement,class:D([`with-text`,{active:r.value===K(L).REMOVE}]),onClick:t[1]||=e=>u(K(L).REMOVE),title:e.$t(a.title)},{default:G(()=>[x(o),c(`span`,null,d(e.$t(a.title)),1)]),_:2},1032,[`data-element`,`class`,`title`])):[`actionButton`,`statefulButton`,`toggleElementButton`,`toolButton`].includes(a.type)&&!a.hidden&&!l.value?(S(),s(f,{key:2,item:a},null,8,[`item`])):a.type===`spacer`||a.type===`divider`?(S(),V(`div`,{key:3,class:D(a.type)},null,2)):b(``,!0)],64))),128))])}}},uY={class:`compared-toolbar`},dY={class:`file-color`},fY={__name:`ComparedToolbar`,setup(e){let t=ye(),n=pw(),r=T(()=>n.getCompareSetting(`oldFileColor`)),i=T(()=>n.getCompareSetting(`newFileColor`)),a=T(()=>t.getCompareStatus),o=T(()=>t.getToolbarGroupItems(`toolbarGroup-Compare`).find(e=>e.render===`ComparedToolbar`));W(a,e=>{let t=e!==`finished`;o.value?.hidden!==t&&(o.value.hidden=t)});let s=()=>{t.setCompareStatus(`end`),n.initCompareFiles()};return(e,t)=>{let n=bk,a=Le;return S(),V(`div`,uY,[x(n),c(`div`,dY,[c(`div`,null,[c(`div`,{class:`color`,style:A({"background-color":r.value})},null,4),c(`span`,null,d(e.$t(`compare.oldFile`)),1)]),c(`div`,null,[c(`div`,{class:`color`,style:A({"background-color":i.value})},null,4),c(`span`,null,d(e.$t(`compare.newFile`)),1)])]),x(a,{class:`close`,onClick:s})])}}},pY={__name:`FillForm`,setup(e){let t=T(()=>n.getEnableFillForm),n=ye(),r=pw(),i=T(()=>r.getActiveTool);W(()=>i.value,e=>{e&&t.value&&(n.setEnableFillForm(!1),U.getAnnotationManager().endFormFieldFillMode())});let a=()=>{let e=U.getAnnotationManager();e.isInFormFieldFillMode()?(e.endFormFieldFillMode(),n.setEnableFillForm(!1)):(e.startFormFieldFillMode(),n.setEnableFillForm(!0),r.setToolState(``),n.toggleActiveHand(!1))};return U.addEvent(`formFieldFillModeStarted`,()=>{n.setEnableFillForm(!0)}),U.addEvent(`formFieldFillModeEnded`,()=>{n.setEnableFillForm(!1)}),M(()=>{U.getAnnotationManager().isInFormFieldFillMode()&&n.setEnableFillForm(!0)}),(e,n)=>{let r=QN,i=lx;return S(),s(i,{class:D([`with-text`,{active:t.value}]),title:e.$t(`toolbar.formTools.FillSign`),onClick:a},{default:G(()=>[x(r),c(`span`,null,d(e.$t(`toolbar.formTools.FillSign`)),1)]),_:1},8,[`title`,`class`])}}},mY={__name:`CropPageButton`,props:[`item`,`popoverTool`],setup(e){let{switchTool:t,switchAnnotationEditorMode:n}=U,r=ye(),i=pw(),a=T(()=>i.getActiveTool),o=()=>{e.popoverTool&&e.popoverTool.setShow(!1),i.setToolState(a.value===L.CROP_PAGE?``:L.CROP_PAGE),a.value===L.CROP_PAGE&&(r.resetPanels(),r.setActiveToolMode(`view`),r.setToolbarGroup(`toolbarGroup-View`)),t(0),n(0),r.closeActiveStickNote(),r.setSearchStatus(!1),r.toggleActiveHand(!1)};return(t,n)=>{let r=SM,i=lx;return S(),s(i,f({isActive:a.value===K(L).CROP_PAGE&&!K(P)},{...e.item},{onClick:o,title:t.$t(`toolbar.viewControls.cropPage`)}),{default:G(()=>[x(r)]),_:1},16,[`isActive`,`title`])}}},hY={__name:`HandButton`,props:[`item`,`popoverTool`],setup(e){let{switchTool:t,switchAnnotationEditorMode:n}=U,r=ye(),i=pw(),a=T(()=>r.getActiveHand),o=()=>{e.popoverTool&&e.popoverTool.setShow(!1),window.getSelection().empty(),r.toggleActiveHand(!a.value),t(+!!a.value),n(0),r.closeActiveStickNote(),U.webViewerNamedAction(`Find`,4),i.setToolState(``),r.setSearchStatus(!1)};return(t,n)=>{let r=gz,i=lx;return S(),s(i,f({isActive:a.value&&!K(P),img:`icon-hand-tool`},{...e.item},{onClick:o,title:t.$t(`toolbar.viewControls.pan`)}),{default:G(()=>[x(r)]),_:1},16,[`isActive`,`title`])}}},gY={class:`hand-tools`},_Y={class:`drop-down narrower hand-tools`},vY=B({__name:`SelectToolsButton`,setup(e){let t=ye(),n=pw(),r=T(()=>t.getUpload&&t.getVerified&&!t.getUploadLoading),i=T(()=>n.getActiveTool),a=T(()=>t.getActiveHeaderItems),o=J(null),l=()=>{o.value.setShow(!1),n.setToolState(L.SELECT_TEXT),U.switchTool(0),U.switchAnnotationEditorMode(0),t.closeActiveStickNote(),t.setSearchStatus(!1),t.toggleActiveHand(!1)};return(e,t)=>{let n=SM,u=HB,d=gz,f=gk,p=lx,m=hY,g=mY;return S(),V(`div`,gY,[x(K(Og),{ref_key:`popoverTools`,ref:o,placement:`bottom`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0},{trigger:G(()=>[x(p,{class:D([`drop-menu`,{disabled:!r.value}])},{default:G(()=>[i.value===K(L).CROP_PAGE?(S(),s(n,{key:0})):[K(L).SELECT_TEXT,K(L).HIGHLIGHT,K(L).UNDERLINE,K(L).SQUIGGLY,K(L).STRIKEOUT].includes(i.value)?(S(),s(u,{key:1})):(S(),s(d,{key:2})),x(f)]),_:1},8,[`class`])]),default:G(()=>[c(`div`,_Y,[(S(!0),V(q,null,z(a.value,(e,t)=>(S(),V(q,{key:`${e.toolName}-${e.dataElement||t}`},[e.toolName===K(L).PAN&&!e.hidden?(S(),s(m,{key:0,item:e,"data-element":e.dataElement,popoverTool:o.value},null,8,[`item`,`data-element`,`popoverTool`])):e.toolName===K(L).SELECT_TEXT?(S(),s(g,{key:1,item:e,"data-element":e.dataElement,popoverTool:o.value},null,8,[`item`,`data-element`,`popoverTool`])):e.toolName===K(L).CROP_PAGE&&!e.hidden?(S(),s(p,{key:2,"data-element":e.dataElement,onClick:l},{default:G(()=>[x(u)]),_:1},8,[`data-element`])):b(``,!0)],64))),128))])]),_:1},512)])}}},[[`__scopeId`,`data-v-9e2b7f13`]]);function yY(e,t){let n=e(),r=t(),i=[L.TEXT,L.FREEHAND,L.INK,L.HIGHLIGHT,L.UNDERLINE,L.SQUIGGLY,L.STRIKEOUT,L.SQUARE,L.CIRCLE,L.ARROW,L.LINE,L.ARC,L.POLYGON,L.CLOUDY,L.POLYLINE,L.FREETEXT,L.CALLOUT,L.STAMP,L.IMAGE,L.ERASER],a=[L.TEXTFIELD,L.CHECKBOX,L.RADIOBUTTON,L.LISTBOX,L.COMBOBOX,L.PUSHBUTTON,L.SIGNATURE_FIELDS],o=[L.LINE,L.POLYLINE,`curve`,L.ARC,L.CIRCLE,`rectangle`,L.POLYGON,L.INK],s=[L.HIGHLIGHT,L.UNDERLINE,L.SQUIGGLY,L.STRIKEOUT],c=J(null),l=J(!0),u=J(!0),d=J(!0),f=J(!0),p=T(()=>n.getReadOnly),m=T(()=>n.getUserAdmin),g=T(()=>r.getAnnotator),_=T(()=>r.getActiveTool),v=T(()=>n.getEnableFillForm),y=()=>document.getElementsByClassName(`outline-container`).length>0,b=()=>document.getElementsByClassName(`text-editor`).length>0,x=T(()=>m.value?!1:!!(p.value||c.value&&g.value!==c.value.author)),S=()=>{if(x.value){n.disableElements([`annotationPropertyPanelButton`,`formPropertyPanelButton`,`measurePropertyPanelButton`,`editorPropertyPanelButton`],`style`);return}C(`annotationPropertyPanelButton`,l.value),C(`formPropertyPanelButton`,u.value||v.value),C(`measurePropertyPanelButton`,d.value),C(`editorPropertyPanelButton`,f.value)},C=(e,t)=>{t?n.disableElements([e],`style`):n.enableElements([e],`style`)};W(_,()=>{l.value=!i.includes(_.value);let e=_.value.replace(`Measurement`,``);d.value=!o.includes(e)}),W(c,()=>{if(!c.value){l.value=!i.includes(_.value);let e=_.value.replace(`Measurement`,``);d.value=!o.includes(e)}}),W([x,l,u,d,f,v],S);let w=async e=>{e.length===1?c.value=e[0]:c.value=new Set(e.map(e=>s.includes(e.annotation.type)?`markup`:e.annotation.type)).size===1?e[0]:null,await E();let t=y(),n=b();l.value=!((t||n)&&i.includes(c.value?.type)&&!c.value.measure),d.value=!(t&&o.includes(c.value?.type)&&c.value.measure),u.value=!(t&&a.includes(c.value?.type))},D=e=>{e.length===1&&e[0].name!==c.value?.name||(c.value=null)},O=async e=>{f.value=e,await E();let t=y();u.value=!(t&&a.includes(c.value?.type)),c.value&&!c.value.measure&&(l.value=!t&&e)},k=({state:e})=>{e===1?n.setFullScreen(!1):e===3&&n.setFullScreen(!0)};return U.addEvent(`annotationSelected`,w),U.addEvent(`annotationDeselected`,D),U.addEvent(`changeRightPanelBtnDisabled`,O),U.addEvent(`presentationmodechanged`,k),()=>{U.removeEvent(`annotationSelected`,w),U.removeEvent(`annotationDeselected`,D),U.removeEvent(`changeRightPanelBtnDisabled`,O),U.removeEvent(`presentationmodechanged`,k)}}function bY(e,t){e();let n=t(),r=e=>{n.setCanUndo(!!e.undoListLength,`content`),n.setCanRedo(!!e.redoListLength,`content`)},i=e=>{n.setCanUndo(e.canUndo,`annotation`),n.setCanRedo(e.canRedo,`annotation`)};return{init:()=>(U.addEvent(`contentEditHistoryChanged`,r),U.addEvent(`historyChanged`,i),()=>{U.removeEvent(`contentEditHistoryChanged`,r),U.removeEvent(`historyChanged`,i)})}}var xY={key:6},SY=B({__name:`HeaderItems`,props:{items:{type:Array,required:!0,default:()=>[]},isToolGroupReorderingEnabled:{type:Boolean,default:!1}},emits:[`scroll`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=J(null);t({root:a});let o=ye(),c=J(pe()),l=J(!1),u=null,p=bY(ye,pw),m=null,g={Ribbons:jJ,ZoomOverlay:bk,LeftPanelButton:VJ,Dropdown:nY,SignatureToolBar:aY,SecurityToolbar:sY,RedactionToolbar:lY,ComparedToolbar:fY,FillForm:pY,SelectToolsButton:vY},_=T(()=>r.items.filter(e=>{let t=c.value&&e.hiddenOnMobileDevice,n=!c.value&&e.hiddenOnPcDevice,r=o.isElementDisabled(e.dataElement);return!(t||n)&&!r})),v=e=>{let{hidden:t,hiddenOnMobileDevice:n,hiddenOnPcDevice:r,className:i}=e,a=``;return Array.isArray(t)&&t.length>0?a=t.map(e=>e===`always-hide`?e:`hide-in-${e}`).join(` `):t===!0&&(a=`always-hide`),n&&pe()&&(a+=` hide-in-mobile hide-in-small-mobile`),r&&!pe()&&(a+=` hide-in-desktop hide-in-tablet`),`${a} ${i||``}`.trim()},y=e=>(console.warn(`${e} is not a valid header item type.`),null);I(()=>{l.value=!1});let b=()=>{c.value=pe()};return M(()=>{u=yY(ye,pw),m=p.init(),window.addEventListener(`resize`,b)}),j(()=>{u&&u(),m&&m(),window.removeEventListener(`resize`,b)}),(e,t)=>{let n=UH,r=KH,o=QH,c=YH,l=hT;return S(),V(`div`,{class:`header-items`,ref_key:`root`,ref:a,onScroll:t[0]||=e=>i(`scroll`,e)},[(S(!0),V(q,null,z(_.value,(e,t)=>(S(),V(q,{key:`${e.type}-${e.dataElement||t}`},[e.type===`toolButton`?(S(),s(n,f({key:0,ref_for:!0},e,{className:v(e)}),null,16,[`className`])):e.type===`toggleElementButton`?(S(),s(r,f({key:1,ref_for:!0},e,{className:v(e)}),null,16,[`className`])):e.type===`actionButton`?(S(),s(o,f({key:2,ref_for:!0},e,{className:v(e)}),null,16,[`className`])):e.type===`statefulButton`?(S(),s(c,f({key:3,ref_for:!0},e,{className:v(e)}),null,16,[`className`])):e.type===`customElement`?(S(),V(q,{key:4},[g[e.render]?(S(),s(ve(g[e.render]),f({key:0,item:e},{ref_for:!0},e,{className:v(e)}),null,16,[`item`,`className`])):(S(),s(l,f({key:1,ref_for:!0},e,{className:v(e)}),null,16,[`className`]))],64)):e.type===`spacer`||e.type===`divider`?(S(),V(`div`,{key:5,class:D([e.type,v(e)])},null,2)):(S(),V(`div`,xY,d(y(e.type)),1))],64))),128))],544)}}},[[`__scopeId`,`data-v-1a903acb`]]),CY={class:`scroll-container left`},wY={class:`scroll-container right`},TY=B({__name:`ToolsHeader`,setup(e){let t=ye(),n=T(()=>t.getDisabledHeader),r=T(()=>t.getCompareStatus),i=T(()=>t.getCurrentToolbarGroup),a=T(()=>t.getToolbarGroupItems(i.value).filter(e=>e.hidden!==!0)),o=T(()=>i.value&&a.value?.length),s=J(null),l=J(null),u=J(!1),d=J(!1),f=J(!1),p=null,m=null;M(()=>{p=l.value.root,y()}),j(()=>{m&&m.disconnect()}),W(i,async e=>{let t=e.substring(13).toLowerCase();s.value=!([`view`,`document`,`separation`].includes(t)||t===`compare`&&r!==`finished`),u.value=!1,d.value=!1,await E(),b()}),W(r,async e=>{let t=i.value.substring(13).toLowerCase();s.value=!([`view`,`document`].includes(t)||t===`compare`&&e!==`finished`),u.value=!1,d.value=!1}),W(a,async()=>{await E(),b()});let g=()=>{p.scrollTo({left:p.scrollLeft-p.clientWidth,behavior:`smooth`})},_=()=>{p.scrollTo({left:p.scrollLeft+p.clientWidth,behavior:`smooth`})},v=e=>{C()},y=()=>{!p||!window.ResizeObserver||(m=new ResizeObserver(()=>{b()}),m.observe(p))},b=()=>{p&&(f.value=p.scrollWidth>p.clientWidth,C())},C=()=>{p&&(u.value=p.scrollLeft>0,d.value=p.scrollLeft+p.clientWidth<p.scrollWidth-1)};return U.addEvent(`toggleAnnotAttrbutePanel`,()=>t.toggleElement(H.STYLE_PANEL)),(e,t)=>{let r=KA,i=lx,s=SY,p=HA;return R((S(),V(`div`,{class:D([`tools-header`,{disabled:n.value,overflow:f.value}])},[R(c(`div`,CY,[x(i,{class:`flip-button`,onClick:g},{default:G(()=>[x(r)]),_:1})],512),[[Re,K(P)&&u.value]]),x(s,{items:a.value,class:`tools`,ref_key:`toolbarRef`,ref:l,onScroll:v},null,8,[`items`]),R(c(`div`,wY,[x(i,{class:`flip-button`,onClick:_},{default:G(()=>[x(p)]),_:1})],512),[[Re,K(P)&&d.value]])],2)),[[Re,o.value]])}}},[[`__scopeId`,`data-v-bbeb83db`]]),EY={key:1,class:`click-tip`},DY={__name:`Header`,setup(e){let t=ye(),n=pw(),{t:r}=It(),i=T(()=>t.getActiveHeaderItems),a=T(()=>t.getToolMode),o=T(()=>t.getSignatureVerify),l=T(()=>t.getDisabledHeader),u=T(()=>n.getActiveTool),f=T(()=>t.isShowCompareTip),p=T(()=>t.getCompareStatus),m=T(()=>n.getCompareFile(`oldFile`)&&n.getCompareFile(`newFile`)&&p.value!==`finished`),g=T(()=>t.getCurrentPage),_=e=>{let t=e.target.files[0];if(!t)return;if(t&&t.size>2*1024*1024){window.$message.error(r(`signatures.uploadError`),{duration:5e3,icon:()=>h(`img`,{src:mw})}),e.target.value=``;return}if(a.value===`annotation`&&U.handleCreateStatus({bool:!0,fileData:t}),u.value!==L.IMAGE)return;n.setToolState(L.IMAGE);let i=new FileReader;i.onload=function(e){let t=new Image;t.onload=function(){let n={imageBase64:e.target.result,width:t.width,height:t.height,pageNum:g.value};U.addAnnotationImage(n)},t.onerror=function(e){console.log(e)},t.src=e.target.result},i.onerror=function(e){console.log(e)},i.readAsDataURL(t)},v=e=>{let t=e.target.files[0];if(!t)return;if(t.size>2*1024*1024){window.$message.error(r(`contentEditor.imageProperties.maxSize`),{duration:3e3,icon:()=>h(`img`,{src:mw})}),e.target.value=``;return}let n=new FileReader;n.onload=function(e){let t=new Image;t.onload=function(){let n={imageBase64:e.target.result,width:t.width,height:t.height,pageNum:g.value};U.addEditorImage(n)},t.onerror=function(e){console.log(e)},t.src=e.target.result},n.onerror=function(e){console.log(e)},n.readAsDataURL(t)};return(e,t)=>{let n=SY,r=TY,p=OJ,g=vJ,y=fJ;return S(),V(q,null,[c(`div`,{class:D([`header`,{disabled:l.value||[K(L).REDACTION,K(L).REMOVE].includes(u.value)}])},[x(n,{items:i.value},null,8,[`items`])],2),x(r),x(p),o.value&&a.value===`sign`?(S(),s(g,{key:0})):b(``,!0),R(x(y,null,null,512),[[Re,[K(L).REDACTION,K(L).REMOVE].includes(u.value)]]),a.value===`compare`&&m.value&&f.value?(S(),V(`div`,EY,d(e.$t(`toolbar.compareTip`)),1)):b(``,!0),K(P)?(S(),V(q,{key:2},[c(`input`,{type:`file`,id:`annotaionImageInput`,accept:`.png, .jpg, .jpeg`,style:{display:`none`},onChange:_,name:`annotaion`},null,32),c(`input`,{type:`file`,id:`editorImageInput`,accept:`.png, .jpg, .jpeg`,style:{display:`none`},onChange:v,name:`editor`},null,32)],64)):b(``,!0)],64)}}},OY=(e,t)=>new Promise(n=>{e||n();let r=document.createElement(`script`);r.type=`text/javascript`,r.onload=function(){n()},r.onerror=function(){t&&console.warn(t),n()},r.src=e,document.querySelector(`head`).appendChild(r)}),kY=e=>new Promise(async t=>{window.parent===window?t():(window.addEventListener(`message`,async function n(r){if(r.data.type===`responseConfig`){let{value:i,options:a}=r.data;try{i&&(await OY(r.data.value,`Config script could not be loaded`),window.removeEventListener(`message`,n))}finally{await e(a),t()}}}),window.parent.postMessage({type:`requestConfig`,docId:parseInt(WD(`docId`),10)},`*`))}),AY=(e={})=>{let t=new te(e);U.setDocumentViewer(1,t)};function jY(e){return{dispatch(t){if(typeof e.dispatch==`function`)return e.dispatch(t);throw Error(`Original store does not have a dispatch method.`)},getState(t){if(typeof e.getState==`function`)return JSON.parse(JSON.stringify(e.getState(t)));throw Error(`Original store does not have a getState method.`)}}}var MY=e=>t=>{typeof t==`string`?e.dispatch(`disableElement`)(t):Array.isArray(t)?e.dispatch(`disableElements`)(t):console.error(`Wrong dataElements type.`)},NY=e=>t=>{typeof t==`string`?e.dispatch(`enableElement`)(t):Array.isArray(t)?e.dispatch(`enableElements`)(t):console.error(`Wrong dataElements type.`)},PY=e=>t=>{let n=Object.keys(e.headers),r=Object.create(FY).initialize(e,n);t(r),n.forEach(t=>{e.headers[t]=r.headers[t]})},FY={initialize(e){return this.headers={...e.headers,rightHeaders:e.rightHeaders,tools:e.tools,toolItems:e.toolItems,documentEditorHeaders:e.documentEditorHeaders},this.headerGroup=`default`,this.index=-1,this},get(e){if(this.index!==-1){let e=this.headers[this.headerGroup][this.index];Object.keys(e).forEach(e=>{delete this[e]})}if(this._setIndex(e),this.index===-1)console.warn(`${e} does not exist in ${this.headerGroup} header`);else{let e=this.headers[this.headerGroup][this.index];Object.keys(e).forEach(t=>{this[t]=e[t]})}return this},getItems(){return this.headers[this.headerGroup]},getHeader(e){let t=Object.keys(this.headers);return t.includes(e)?(this.headerGroup=e,this._resetIndex()):console.warn(`Header must be one of: ${t.join(` or `)}.`),this.headerGroup=e,this},insertBefore(e){return this.index===-1?console.warn(`Please use .get(dataElement) first before using insertBefore`):this.headers[this.headerGroup].splice(this.index,0,e),this},insertAfter(e){return this.index===-1?console.warn(`Please use .get(dataElement) first before using insertAfter`):(this.index++,this.headers[this.headerGroup].splice(this.index,0,e)),this},delete(e){let t;return typeof e==`number`?t=e:typeof e==`string`?this._getIndexOfElement(e)===-1?console.warn(`${e} does not exist in ${this.headerGroup} header`):t=this._getIndexOfElement(e):e===void 0?this.index===-1?console.warn(`Please use .get(dataElement) first before using delete()`):t=this.index:Array.isArray(e)?e.forEach(e=>{(typeof e==`number`||typeof e==`string`)&&this.delete(e)}):console.warn(`Argument must be empty, a number, a string or an array`),t!==void 0&&t!==-1&&(this.headers[this.headerGroup].splice(t,1),this._resetIndex()),this},shift(){return this.headers[this.headerGroup].shift(),this},unshift(...e){return this.headers[this.headerGroup].unshift(...e),this},push(...e){return this.headers[this.headerGroup].push(...e),this},pop(){return this.headers[this.headerGroup].pop(),this},update(e){return Array.isArray(e)?this._updateItems(e):console.warn(`Argument must be an array`),this},_updateItems(e){return this.headers[this.headerGroup].length=0,this.headers[this.headerGroup].push(...e),this},_setIndex(e){this.index=this._getIndexOfElement(e)},_getIndexOfElement(e){return this.headers[this.headerGroup].findIndex(t=>t.dataElement===e)},_resetIndex(){this.index=-1}},IY=(e,t)=>n=>{if(!n||e.isElementDisabled(n)){t.setToolState();return}let r=ne[n];if(!r){console.warn(`DataElement "${n}" has no corresponding tool.`);return}t.setToolState(r.toolName||r.tool)},LY=e=>async t=>{await Nt.changeLanguage(t),e.setLanguage(t),window.localStorage.setItem(`language`,t)},RY=e=>()=>e.dispatch(`getPassword`),zY=(e,t)=>Object.create(BY).initialize(e,t),BY={initialize(e,t){return this.store=e,this.popupDataElement=t,this},add(e,t){Array.isArray(e)||(e=[e]);let n=this._getIndexByDataElement(t);this.getItems().splice(n+1,0,...e)},update(e){e||=[],Array.isArray(e)||(e=[e]);let t=this.getItems();t.length=0,t.push(...e)},getItems(){return this.store.dispatch(`getPopupItems`)(this.popupDataElement)},_getIndexByDataElement(e){let t;return t=e===void 0?-1:this.store.dispatch(`getPopupItems`)(this.popupDataElement).findIndex(t=>t.dataElement===e),t}},VY=e=>zY(e,`textPopup`),HY=e=>t=>e.dispatch(`openElement`)(t),UY=e=>t=>e.dispatch(`closeElement`)(t),WY=e=>t=>e.dispatch(`isElementOpen`)(t),GY=e=>(t,n)=>{e.activeElementsTab.hasOwnProperty(t)?e.setActiveElementTab(t,n):console.warn(`DataElement not found.`)},KY=e=>t=>{Array.isArray(t)?e.setCustomFonts(t):console.error(`setCustomFonts: fonts must be an array`)},qY=e=>()=>e.getCustomFonts,JY=e=>t=>{e.setCurrentUser(t||`Guest`)},YY=e=>t=>{e.setCurrentUser(t||`Guest`)},XY=e=>t=>e[t].color,ZY=e=>t=>({...e[t]}),QY=e=>()=>e.getActiveTool,$Y=e=>zY(e,`cropPagePopup`),eX=e=>t=>{e.setAutoJumpNextSign(!!t)},tX=e=>t=>{e.setSignatureDialogTabs(t)},nX=e=>(t,n,r=!1)=>{e.setSignatureDialogProperties(t,n,r)},rX=e=>t=>{e.setCustomLoading(t)},iX=e=>()=>{e.setAnnotationExport(!1)},aX=e=>()=>{e.setAnnotationImport(!1)},oX=e=>()=>{e.setAnnotationExport(!0)},sX=e=>()=>{e.setAnnotationImport(!0)},cX=e=>()=>{e.setDisableSignatureTool(!1)},lX=e=>()=>{e.setDisableSignatureTool(!0)},uX=e=>{let t=document.createElement(`style`);t.innerHTML=e,document.getElementsByTagName(`head`)[0].appendChild(t)},dX=e=>t=>{e.setTheme(t)},fX=(e,t,n)=>(...r)=>(console.warn(`[ComPDF] "${e}" is deprecated and will be removed in a future version. Please use "${t}" instead.`),n(...r)),pX=e=>()=>{e.setDocumentEditorSaveStatus(!1)},mX=e=>()=>{e.setDocumentEditorSaveAsStatus(!1)},hX=e=>()=>{e.setDocumentEditorSaveStatus(!0)},gX=e=>()=>{e.setDocumentEditorSaveAsStatus(!0)},_X=(e,t,n)=>async()=>{let r=await n.saveDocumentEdit();if(!r)return;t.resetSetting(),t.setToolState(``),e.setActiveToolMode(`view`),e.setToolbarGroup(`toolbarGroup-View`),e.setActiveHeaderGroup(`default`),e.setUpload(!0),e.setUploadLoading(!0);let i=e.getScale;t.setCurrentPdfData(r);let a=n.getPagesCount();t.setTotalPages(a),t.setOutline(n.getOutlines()),e.setCurrentPage(1);let o=e.getScrollMode,s=e.getPageMode;n.switchScrollMode(o===`Vertical`?0:1),n.switchSpreadMode(s),e.setCurrentScale(i/100),n.scaleChanged(i/100),e.setUploadLoading(!1)},vX=e=>t=>{e.setAuthor(t||``)},yX=e=>t=>{e.setHighlightForm(t)},bX=e=>t=>{e.setHighlightLink(t)},xX=e=>t=>{e.setEnableSignatureTemplates(t)},SX=e=>t=>{e.addLanguage(t)},CX=e=>t=>{e.removeLanguage(t)},wX=e=>t=>{e.setLanguages(t)},TX=e=>t=>{e.setFormBoardFold(t)},EX=e=>t=>{e.setFormBoardPosition(t)},DX=e=>()=>e.getState(`genericPanels`).map(t=>new OX(e,t)),OX=class{_dataElement;_render;_location;getGenericPanels;setGenericPanels;constructor(e,t){this._dataElement=t.dataElement,this._render=t.render,this._location=t.location,this.getGenericPanels=()=>e.getState(`genericPanels`),this.setGenericPanels=t=>{e.dispatch(`resetPanels`)(),e.dispatch(`setGenericPanels`)(t)}}setLocation(e){this.location=[`left`,`right`].includes(e)?e:`right`;let t=this.getGenericPanels(),n=t.find(e=>e.dataElement===this._dataElement);if(!n){console.warn(`Cannot set location for panel ${this._dataElement}. It may have been deleted.`);return}n.location=e,this.setGenericPanels(t)}delete(){let e=this.getGenericPanels(),t=e.findIndex(e=>e.dataElement===this._dataElement);t!==-1&&(e.splice(t,1),this.setGenericPanels(e))}updatePanelInStore(e=void 0){let t=this.getGenericPanels(),n=t.findIndex(t=>t.dataElement===(e||this._dataElement));if(n===-1)return;let[r]=t.splice(n,1);t.push({...r,...this.toObject()}),this.setGenericPanels(t)}toObject(){return{dataElement:this._dataElement,location:this._location,render:this._render}}get dataElement(){return this._dataElement}set dataElement(e){let t=this._dataElement;this._dataElement=e+``,this.updatePanelInStore(t)}get render(){return this._render}set render(e){this._render=e,this.updatePanelInStore()}get location(){return this._location}set location(e){this._location=[`left`,`right`].includes(e)?e:`right`,this.updatePanelInStore()}},kX=e=>t=>{t instanceof OX&&(t=t.toObject());let n=e.getState(`genericPanels`);e.setGenericPanels([...n,t])},AX=e=>t=>{t=t.map(e=>(e instanceof OX&&(e=e.toObject()),e)),e.setGenericPanels(t)},jX=e=>t=>{e.addCustomModal(t)},MX=e=>zY(e,`contentEditorPopup`),NX=e=>zY(e,`annotationPopup`),PX={"toolbarGroup-Compare":`compare`,"toolbarGroup-Document":`document`},FX=e=>t=>{if(t&&t.startsWith(`toolMenu-`)){let e=t.replace(`toolMenu-`,`toolbarGroup-`);console.warn(`[ComPDF] "toolMenu-*" data-element is deprecated. Please use "${e}" instead.`),t=e}e.setToolbarGroup(t),e.setActiveHeaderGroup(PX[t]||`default`);let n=t.substring(13).toLowerCase();e.setActiveToolMode(n)},IX=e=>t=>e.dispatch(`openElements`)(t),LX=e=>t=>e.dispatch(`closeElements`)(t),RX=e=>t=>{e.setStampPanelTabs(t)},zX=e=>t=>{e.setImportStamps(t)},BX=e=>t=>{e.addCustomStamps(t)},VX=e=>t=>{e.setCustomStamps(t)},HX=e=>()=>e.getCustomStamps,UX=e=>()=>e.getFontSizes,WX=e=>t=>{Array.isArray(t)?e.setFontSizes(t):console.error(`setFontSizes: fontSizes must be an array`)},GX=()=>(e,t={})=>(me(e),U.registerTool(e,t)),KX=()=>{let e=ye(),t=pw(),n=jY(e),r=jY(t);e.setLanguage(Nt.language);let i=dX(e),a=FX(e),o={...U},s={disableElements:MY(e),enableElements:NY(e),setHeaderItems:PY(e),setActiveTool:IY(e,t),setLanguage:LY(e),getPassword:RY(r),textPopup:VY(n),openElement:HY(e),closeElement:UY(e),isElementOpen:WY(e),setActiveElementTab:GY(e),setCustomFonts:KY(e),getCustomFonts:qY(e),setAnnotator:JY(t),setCurrentUser:YY(t),getActiveTool:QY(t),getToolColor:XY(t),getTool:ZY(t),cropPagePopup:$Y(n),setAutoJumpNextSign:eX(t),setSignatureDialogTabs:tX(e),setSignatureDialogProperties:nX(e),setCustomLoading:rX(e),disableAnnotationExport:iX(e),disableAnnotationImport:aX(e),enableAnnotationExport:oX(e),enableAnnotationImport:sX(e),enableSignatureTool:cX(e),disableSignatureTool:lX(e),setCustomStyle:uX,setTheme:i,setThemeMode:fX(`setThemeMode`,`setTheme`,i),disableDocumentEditorSave:pX(e),disableDocumentEditorSaveAs:mX(e),enableDocumentEditorSave:hX(e),enableDocumentEditorSaveAs:gX(e),saveDocumentEditor:_X(e,t,U),setAuthor:vX(t),setHighlightForm:yX(t),setHighlightLink:bX(t),setEnableSignatureTemplates:xX(e),addLanguage:SX(e),getCustomStamps:HX(e),removeLanguage:CX(e),setLanguages:wX(e),setFormBoardFold:TX(e),setFormBoardPosition:EX(e),addPanel:kX(e),getPanels:DX(e),setPanels:AX(e),addCustomModal:jX(e),contentEditorPopup:MX(n),annotationPopup:NX(n),setToolbarGroup:a,setActiveToolMode:fX(`setActiveToolMode`,`setToolbarGroup`,a),setActiceToolMode:fX(`setActiceToolMode`,`setToolbarGroup`,a),openElements:IX(e),closeElements:LX(e),setStampPanelTabs:RX(e),setImportStamps:zX(e),addCustomStamps:BX(e),setCustomStamps:VX(e),setFontSizes:WX(e),getFontSizes:UX(e),registerTool:GX()};window.instance={docViewer:U.getDocumentViewer(),Core:o,UI:s}};function qX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qX(Object(n),!0).forEach(function(t){XX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YX(e){"@babel/helpers - typeof";return YX=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},YX(e)}function XX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZX(){return ZX=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZX.apply(this,arguments)}function QX(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function $X(e,t){if(e==null)return{};var n=QX(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eZ(e){return tZ(e)||nZ(e)||rZ(e)||aZ()}function tZ(e){if(Array.isArray(e))return iZ(e)}function nZ(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function rZ(e,t){if(e){if(typeof e==`string`)return iZ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iZ(e,t)}}function iZ(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function aZ(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2507
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var oZ=`1.15.2`;function sZ(e){if(typeof window<`u`&&window.navigator)return!!navigator.userAgent.match(e)}var cZ=sZ(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),lZ=sZ(/Edge/i),uZ=sZ(/firefox/i),dZ=sZ(/safari/i)&&!sZ(/chrome/i)&&!sZ(/android/i),fZ=sZ(/iP(ad|od|hone)/i),pZ=sZ(/chrome/i)&&sZ(/android/i),mZ={capture:!1,passive:!1};function hZ(e,t,n){e.addEventListener(t,n,!cZ&&mZ)}function gZ(e,t,n){e.removeEventListener(t,n,!cZ&&mZ)}function _Z(e,t){if(t){if(t[0]===`>`&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function vZ(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function yZ(e,t,n,r){if(e){n||=document;do{if(t!=null&&(t[0]===`>`?e.parentNode===n&&_Z(e,t):_Z(e,t))||r&&e===n)return e;if(e===n)break}while(e=vZ(e))}return null}var bZ=/\s+/g;function xZ(e,t,n){e&&t&&(e.classList?e.classList[n?`add`:`remove`](t):e.className=((` `+e.className+` `).replace(bZ,` `).replace(` `+t+` `,` `)+(n?` `+t:``)).replace(bZ,` `))}function SZ(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,``):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf(`webkit`)===-1&&(t=`-webkit-`+t),r[t]=n+(typeof n==`string`?``:`px`)}}function CZ(e,t){var n=``;if(typeof e==`string`)n=e;else do{var r=SZ(e,`transform`);r&&r!==`none`&&(n=r+` `+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function wZ(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i<a;i++)n(r[i],i);return r}return[]}function TZ(){return document.scrollingElement||document.documentElement}function EZ(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,o,s,c,l,u,d;if(e!==window&&e.parentNode&&e!==TZ()?(a=e.getBoundingClientRect(),o=a.top,s=a.left,c=a.bottom,l=a.right,u=a.height,d=a.width):(o=0,s=0,c=window.innerHeight,l=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i||=e.parentNode,!cZ))do if(i&&i.getBoundingClientRect&&(SZ(i,`transform`)!==`none`||n&&SZ(i,`position`)!==`static`)){var f=i.getBoundingClientRect();o-=f.top+parseInt(SZ(i,`border-top-width`)),s-=f.left+parseInt(SZ(i,`border-left-width`)),c=o+a.height,l=s+a.width;break}while(i=i.parentNode);if(r&&e!==window){var p=CZ(i||e),m=p&&p.a,g=p&&p.d;p&&(o/=g,s/=m,d/=m,u/=g,c=o+u,l=s+d)}return{top:o,left:s,bottom:c,right:l,width:d,height:u}}}function DZ(e,t,n){for(var r=NZ(e,!0),i=EZ(e)[t];r;){var a=EZ(r)[n],o=void 0;if(o=n===`top`||n===`left`?i>=a:i<=a,!o)return r;if(r===TZ())break;r=NZ(r,!1)}return!1}function OZ(e,t,n,r){for(var i=0,a=0,o=e.children;a<o.length;){if(o[a].style.display!==`none`&&o[a]!==qQ.ghost&&(r||o[a]!==qQ.dragged)&&yZ(o[a],n.draggable,e,!1)){if(i===t)return o[a];i++}a++}return null}function kZ(e,t){for(var n=e.lastElementChild;n&&(n===qQ.ghost||SZ(n,`display`)===`none`||t&&!_Z(n,t));)n=n.previousElementSibling;return n||null}function AZ(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!==`TEMPLATE`&&e!==qQ.clone&&(!t||_Z(e,t))&&n++;return n}function jZ(e){var t=0,n=0,r=TZ();if(e)do{var i=CZ(e),a=i.a,o=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*o}while(e!==r&&(e=e.parentNode));return[t,n]}function MZ(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function NZ(e,t){if(!e||!e.getBoundingClientRect)return TZ();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=SZ(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX==`auto`||i.overflowX==`scroll`)||n.clientHeight<n.scrollHeight&&(i.overflowY==`auto`||i.overflowY==`scroll`)){if(!n.getBoundingClientRect||n===document.body)return TZ();if(r||t)return n;r=!0}}while(n=n.parentNode);return TZ()}function PZ(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function FZ(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var IZ;function LZ(e,t){return function(){if(!IZ){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),IZ=setTimeout(function(){IZ=void 0},t)}}}function RZ(){clearTimeout(IZ),IZ=void 0}function zZ(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function BZ(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function VZ(e,t){SZ(e,`position`,`absolute`),SZ(e,`top`,t.top),SZ(e,`left`,t.left),SZ(e,`width`,t.width),SZ(e,`height`,t.height)}function HZ(e){SZ(e,`position`,``),SZ(e,`top`,``),SZ(e,`left`,``),SZ(e,`width`,``),SZ(e,`height`,``)}function UZ(e,t,n){var r={};return Array.from(e.children).forEach(function(i){if(!(!yZ(i,t.draggable,e,!1)||i.animated||i===n)){var a=EZ(i);r.left=Math.min(r.left??1/0,a.left),r.top=Math.min(r.top??1/0,a.top),r.right=Math.max(r.right??-1/0,a.right),r.bottom=Math.max(r.bottom??-1/0,a.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var WZ=`Sortable`+new Date().getTime();function GZ(){var e=[],t;return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){if(!(SZ(t,`display`)===`none`||t===qQ.ghost)){e.push({target:t,rect:EZ(t)});var n=JX({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=CZ(t,!0);r&&(n.top-=r.f,n.left-=r.e)}t.fromRect=n}})},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(MZ(e,{target:t}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(t),typeof n==`function`&&n();return}var i=!1,a=0;e.forEach(function(e){var t=0,n=e.target,o=n.fromRect,s=EZ(n),c=n.prevFromRect,l=n.prevToRect,u=e.rect,d=CZ(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&FZ(c,s)&&!FZ(o,s)&&(u.top-s.top)/(u.left-s.left)===(o.top-s.top)/(o.left-s.left)&&(t=qZ(u,c,l,r.options)),FZ(s,o)||(n.prevFromRect=o,n.prevToRect=s,t||=r.options.animation,r.animate(n,u,s,t)),t&&(i=!0,a=Math.max(a,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},t),n.thisAnimationDuration=t)}),clearTimeout(t),i?t=setTimeout(function(){typeof n==`function`&&n()},a):typeof n==`function`&&n(),e=[]},animate:function(e,t,n,r){if(r){SZ(e,`transition`,``),SZ(e,`transform`,``);var i=CZ(this.el),a=i&&i.a,o=i&&i.d,s=(t.left-n.left)/(a||1),c=(t.top-n.top)/(o||1);e.animatingX=!!s,e.animatingY=!!c,SZ(e,`transform`,`translate3d(`+s+`px,`+c+`px,0)`),this.forRepaintDummy=KZ(e),SZ(e,`transition`,`transform `+r+`ms`+(this.options.easing?` `+this.options.easing:``)),SZ(e,`transform`,`translate3d(0,0,0)`),typeof e.animated==`number`&&clearTimeout(e.animated),e.animated=setTimeout(function(){SZ(e,`transition`,``),SZ(e,`transform`,``),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}}function KZ(e){return e.offsetWidth}function qZ(e,t,n,r){return Math.sqrt((t.top-e.top)**2+(t.left-e.left)**2)/Math.sqrt((t.top-n.top)**2+(t.left-n.left)**2)*r.animation}var JZ=[],YZ={initializeByDefault:!0},XZ={mount:function(e){for(var t in YZ)YZ.hasOwnProperty(t)&&!(t in e)&&(e[t]=YZ[t]);JZ.forEach(function(t){if(t.pluginName===e.pluginName)throw`Sortable: Cannot mount plugin ${e.pluginName} more than once`}),JZ.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+`Global`;JZ.forEach(function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](JX({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](JX({sortable:t},n)))})},initializePlugins:function(e,t,n,r){for(var i in JZ.forEach(function(r){var i=r.pluginName;if(!(!e.options[i]&&!r.initializeByDefault)){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,ZX(n,a.defaults)}}),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);a!==void 0&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return JZ.forEach(function(r){typeof r.eventProperties==`function`&&ZX(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return JZ.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[t]==`function`&&(r=i.optionListeners[t].call(e[i.pluginName],n))}),r}};function ZZ(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,a=e.cloneEl,o=e.toEl,s=e.fromEl,c=e.oldIndex,l=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,m=e.extraEventProperties;if(t||=n&&n[WZ],t){var g,_=t.options,v=`on`+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!cZ&&!lZ?g=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(g=document.createEvent(`Event`),g.initEvent(r,!0,!0)),g.to=o||n,g.from=s||n,g.item=i||n,g.clone=a,g.oldIndex=c,g.newIndex=l,g.oldDraggableIndex=u,g.newDraggableIndex=d,g.originalEvent=f,g.pullMode=p?p.lastPutMode:void 0;var y=JX(JX({},m),XZ.getEventProperties(r,t));for(var b in y)g[b]=y[b];n&&n.dispatchEvent(g),_[v]&&_[v].call(t,g)}}var QZ=[`evt`],$Z=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=$X(n,QZ);XZ.pluginEvent.bind(qQ)(e,t,JX({dragEl:tQ,parentEl:nQ,ghostEl:rQ,rootEl:iQ,nextEl:aQ,lastDownEl:oQ,cloneEl:sQ,cloneHidden:cQ,dragStarted:wQ,putSortable:mQ,activeSortable:qQ.active,originalEvent:r,oldIndex:lQ,oldDraggableIndex:dQ,newIndex:uQ,newDraggableIndex:fQ,hideGhostForTarget:UQ,unhideGhostForTarget:WQ,cloneNowHidden:function(){cQ=!0},cloneNowShown:function(){cQ=!1},dispatchSortableEvent:function(e){eQ({sortable:t,name:e,originalEvent:r})}},i))};function eQ(e){ZZ(JX({putSortable:mQ,cloneEl:sQ,targetEl:tQ,rootEl:iQ,oldIndex:lQ,oldDraggableIndex:dQ,newIndex:uQ,newDraggableIndex:fQ},e))}var tQ,nQ,rQ,iQ,aQ,oQ,sQ,cQ,lQ,uQ,dQ,fQ,pQ,mQ,hQ=!1,gQ=!1,_Q=[],vQ,yQ,bQ,xQ,SQ,CQ,wQ,TQ,EQ,DQ=!1,OQ=!1,kQ,AQ,jQ=[],MQ=!1,NQ=[],PQ=typeof document<`u`,FQ=fZ,IQ=lZ||cZ?`cssFloat`:`float`,LQ=PQ&&!pZ&&!fZ&&`draggable`in document.createElement(`div`),RQ=function(){if(PQ){if(cZ)return!1;var e=document.createElement(`x`);return e.style.cssText=`pointer-events:auto`,e.style.pointerEvents===`auto`}}(),zQ=function(e,t){var n=SZ(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=OZ(e,0,t),a=OZ(e,1,t),o=i&&SZ(i),s=a&&SZ(a),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+EZ(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+EZ(a).width;if(n.display===`flex`)return n.flexDirection===`column`||n.flexDirection===`column-reverse`?`vertical`:`horizontal`;if(n.display===`grid`)return n.gridTemplateColumns.split(` `).length<=1?`vertical`:`horizontal`;if(i&&o.float&&o.float!==`none`){var u=o.float===`left`?`left`:`right`;return a&&(s.clear===`both`||s.clear===u)?`vertical`:`horizontal`}return i&&(o.display===`block`||o.display===`flex`||o.display===`table`||o.display===`grid`||c>=r&&n[IQ]===`none`||a&&n[IQ]===`none`&&c+l>r)?`vertical`:`horizontal`},BQ=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,a=n?e.width:e.height,o=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return r===o||i===s||r+a/2===o+c/2},VQ=function(e,t){var n;return _Q.some(function(r){var i=r[WZ].options.emptyInsertThreshold;if(!(!i||kZ(r))){var a=EZ(r),o=e>=a.left-i&&e<=a.right+i,s=t>=a.top-i&&t<=a.bottom+i;if(o&&s)return n=r}}),n},HQ=function(e){function t(e,n){return function(r,i,a,o){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(e==null&&(n||s))return!0;if(e==null||e===!1)return!1;if(n&&e===`clone`)return e;if(typeof e==`function`)return t(e(r,i,a,o),n)(r,i,a,o);var c=(n?r:i).options.group.name;return e===!0||typeof e==`string`&&e===c||e.join&&e.indexOf(c)>-1}}var n={},r=e.group;(!r||YX(r)!=`object`)&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},UQ=function(){!RQ&&rQ&&SZ(rQ,`display`,`none`)},WQ=function(){!RQ&&rQ&&SZ(rQ,`display`,``)};PQ&&!pZ&&document.addEventListener(`click`,function(e){if(gQ)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),gQ=!1,!1},!0);var GQ=function(e){if(tQ){e=e.touches?e.touches[0]:e;var t=VQ(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[WZ]._onDragOver(n)}}},KQ=function(e){tQ&&tQ.parentNode[WZ]._isOutsideThisEl(e.target)};function qQ(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw`Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;this.el=e,this.options=t=ZX({},t),e[WZ]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?`>li`:`>*`,swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return zQ(e,this.options)},ghostClass:`sortable-ghost`,chosenClass:`sortable-chosen`,dragClass:`sortable-drag`,ignore:`a, img`,filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData(`Text`,t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:`data-id`,delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:`sortable-fallback`,fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:qQ.supportPointer!==!1&&`PointerEvent`in window&&!dZ,emptyInsertThreshold:5};for(var r in XZ.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in HQ(t),this)i.charAt(0)===`_`&&typeof this[i]==`function`&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:LQ,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?hZ(e,`pointerdown`,this._onTapStart):(hZ(e,`mousedown`,this._onTapStart),hZ(e,`touchstart`,this._onTapStart)),this.nativeDraggable&&(hZ(e,`dragover`,this),hZ(e,`dragenter`,this)),_Q.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),ZX(this,GZ())}qQ.prototype={constructor:qQ,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(TQ=null)},_getDirection:function(e,t){return typeof this.options.direction==`function`?this.options.direction.call(this,e,t,tQ):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&e.pointerType===`touch`&&e,s=(o||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(r$(n),!tQ&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&dZ&&s&&s.tagName.toUpperCase()===`SELECT`)&&(s=yZ(s,r.draggable,n,!1),!(s&&s.animated)&&oQ!==s)){if(lQ=AZ(s),dQ=AZ(s,r.draggable),typeof l==`function`){if(l.call(this,e,s,this)){eQ({sortable:t,rootEl:c,name:`filter`,targetEl:s,toEl:n,fromEl:n}),$Z(`filter`,t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(l&&(l=l.split(`,`).some(function(r){if(r=yZ(c,r.trim(),n,!1),r)return eQ({sortable:t,rootEl:r,name:`filter`,targetEl:s,fromEl:n,toEl:n}),$Z(`filter`,t,{evt:e}),!0}),l)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!yZ(c,r.handle,n,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,n){var r=this,i=r.el,a=r.options,o=i.ownerDocument,s;if(n&&!tQ&&n.parentNode===i){var c=EZ(n);if(iQ=i,tQ=n,nQ=tQ.parentNode,aQ=tQ.nextSibling,oQ=n,pQ=a.group,qQ.dragged=tQ,vQ={target:tQ,clientX:(t||e).clientX,clientY:(t||e).clientY},SQ=vQ.clientX-c.left,CQ=vQ.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,tQ.style[`will-change`]=`all`,s=function(){if($Z(`delayEnded`,r,{evt:e}),qQ.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!uZ&&r.nativeDraggable&&(tQ.draggable=!0),r._triggerDragStart(e,t),eQ({sortable:r,name:`choose`,originalEvent:e}),xZ(tQ,a.chosenClass,!0)},a.ignore.split(`,`).forEach(function(e){wZ(tQ,e.trim(),XQ)}),hZ(o,`dragover`,GQ),hZ(o,`mousemove`,GQ),hZ(o,`touchmove`,GQ),hZ(o,`mouseup`,r._onDrop),hZ(o,`touchend`,r._onDrop),hZ(o,`touchcancel`,r._onDrop),uZ&&this.nativeDraggable&&(this.options.touchStartThreshold=4,tQ.draggable=!0),$Z(`delayStart`,this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(lZ||cZ))){if(qQ.eventCanceled){this._onDrop();return}hZ(o,`mouseup`,r._disableDelayedDrag),hZ(o,`touchend`,r._disableDelayedDrag),hZ(o,`touchcancel`,r._disableDelayedDrag),hZ(o,`mousemove`,r._delayedDragTouchMoveHandler),hZ(o,`touchmove`,r._delayedDragTouchMoveHandler),a.supportPointer&&hZ(o,`pointermove`,r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){tQ&&XQ(tQ),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;gZ(e,`mouseup`,this._disableDelayedDrag),gZ(e,`touchend`,this._disableDelayedDrag),gZ(e,`touchcancel`,this._disableDelayedDrag),gZ(e,`mousemove`,this._delayedDragTouchMoveHandler),gZ(e,`touchmove`,this._delayedDragTouchMoveHandler),gZ(e,`pointermove`,this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t||=e.pointerType==`touch`&&e,!this.nativeDraggable||t?this.options.supportPointer?hZ(document,`pointermove`,this._onTouchMove):t?hZ(document,`touchmove`,this._onTouchMove):hZ(document,`mousemove`,this._onTouchMove):(hZ(tQ,`dragend`,this),hZ(iQ,`dragstart`,this._onDragStart));try{document.selection?i$(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(hQ=!1,iQ&&tQ){$Z(`dragStarted`,this,{evt:t}),this.nativeDraggable&&hZ(document,`dragover`,KQ);var n=this.options;!e&&xZ(tQ,n.dragClass,!1),xZ(tQ,n.ghostClass,!0),qQ.active=this,e&&this._appendGhost(),eQ({sortable:this,name:`start`,originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(yQ){this._lastX=yQ.clientX,this._lastY=yQ.clientY,UQ();for(var e=document.elementFromPoint(yQ.clientX,yQ.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(yQ.clientX,yQ.clientY),e!==t);)t=e;if(tQ.parentNode[WZ]._isOutsideThisEl(e),t)do{if(t[WZ]){var n=void 0;if(n=t[WZ]._onDragOver({clientX:yQ.clientX,clientY:yQ.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);WQ()}},_onTouchMove:function(e){if(vQ){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=rQ&&CZ(rQ,!0),o=rQ&&a&&a.a,s=rQ&&a&&a.d,c=FQ&&AQ&&jZ(AQ),l=(i.clientX-vQ.clientX+r.x)/(o||1)+(c?c[0]-jQ[0]:0)/(o||1),u=(i.clientY-vQ.clientY+r.y)/(s||1)+(c?c[1]-jQ[1]:0)/(s||1);if(!qQ.active&&!hQ){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(rQ){a?(a.e+=l-(bQ||0),a.f+=u-(xQ||0)):a={a:1,b:0,c:0,d:1,e:l,f:u};var d=`matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;SZ(rQ,`webkitTransform`,d),SZ(rQ,`mozTransform`,d),SZ(rQ,`msTransform`,d),SZ(rQ,`transform`,d),bQ=l,xQ=u,yQ=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!rQ){var e=this.options.fallbackOnBody?document.body:iQ,t=EZ(tQ,!0,FQ,!0,e),n=this.options;if(FQ){for(AQ=e;SZ(AQ,`position`)===`static`&&SZ(AQ,`transform`)===`none`&&AQ!==document;)AQ=AQ.parentNode;AQ!==document.body&&AQ!==document.documentElement?(AQ===document&&(AQ=TZ()),t.top+=AQ.scrollTop,t.left+=AQ.scrollLeft):AQ=TZ(),jQ=jZ(AQ)}rQ=tQ.cloneNode(!0),xZ(rQ,n.ghostClass,!1),xZ(rQ,n.fallbackClass,!0),xZ(rQ,n.dragClass,!0),SZ(rQ,`transition`,``),SZ(rQ,`transform`,``),SZ(rQ,`box-sizing`,`border-box`),SZ(rQ,`margin`,0),SZ(rQ,`top`,t.top),SZ(rQ,`left`,t.left),SZ(rQ,`width`,t.width),SZ(rQ,`height`,t.height),SZ(rQ,`opacity`,`0.8`),SZ(rQ,`position`,FQ?`absolute`:`fixed`),SZ(rQ,`zIndex`,`100000`),SZ(rQ,`pointerEvents`,`none`),qQ.ghost=rQ,e.appendChild(rQ),SZ(rQ,`transform-origin`,SQ/parseInt(rQ.style.width)*100+`% `+CQ/parseInt(rQ.style.height)*100+`%`)}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;if($Z(`dragStart`,this,{evt:e}),qQ.eventCanceled){this._onDrop();return}$Z(`setupClone`,this),qQ.eventCanceled||(sQ=BZ(tQ),sQ.removeAttribute(`id`),sQ.draggable=!1,sQ.style[`will-change`]=``,this._hideClone(),xZ(sQ,this.options.chosenClass,!1),qQ.clone=sQ),n.cloneId=i$(function(){$Z(`clone`,n),!qQ.eventCanceled&&(n.options.removeCloneOnHide||iQ.insertBefore(sQ,tQ),n._hideClone(),eQ({sortable:n,name:`clone`}))}),!t&&xZ(tQ,i.dragClass,!0),t?(gQ=!0,n._loopId=setInterval(n._emulateDragOver,50)):(gZ(document,`mouseup`,n._onDrop),gZ(document,`touchend`,n._onDrop),gZ(document,`touchcancel`,n._onDrop),r&&(r.effectAllowed=`move`,i.setData&&i.setData.call(n,r,tQ)),hZ(document,`drop`,n),SZ(tQ,`transform`,`translateZ(0)`)),hQ=!0,n._dragStartId=i$(n._dragStarted.bind(n,t,e)),hZ(document,`selectstart`,n),wQ=!0,dZ&&SZ(document.body,`user-select`,`none`)},_onDragOver:function(e){var t=this.el,n=e.target,r,i,a,o=this.options,s=o.group,c=qQ.active,l=pQ===s,u=o.sort,d=mQ||c,f,p=this,m=!1;if(MQ)return;function g(o,s){$Z(o,p,JX({evt:e,isOwner:l,axis:f?`vertical`:`horizontal`,revert:a,dragRect:r,targetRect:i,canSort:u,fromSortable:d,target:n,completed:v,onMove:function(n,i){return YQ(iQ,t,tQ,r,n,EZ(n),e,i)},changed:y},s))}function _(){g(`dragOverAnimationCapture`),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function v(r){return g(`dragOverCompleted`,{insertion:r}),r&&(l?c._hideClone():c._showClone(p),p!==d&&(xZ(tQ,mQ?mQ.options.ghostClass:c.options.ghostClass,!1),xZ(tQ,o.ghostClass,!0)),mQ!==p&&p!==qQ.active?mQ=p:p===qQ.active&&mQ&&(mQ=null),d===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){g(`dragOverAnimationComplete`),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(n===tQ&&!tQ.animated||n===t&&!n.animated)&&(TQ=null),!o.dragoverBubble&&!e.rootEl&&n!==document&&(tQ.parentNode[WZ]._isOutsideThisEl(e.target),!r&&GQ(e)),!o.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function y(){uQ=AZ(tQ),fQ=AZ(tQ,o.draggable),eQ({sortable:p,name:`change`,toEl:t,newIndex:uQ,newDraggableIndex:fQ,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=yZ(n,o.draggable,t,!0),g(`dragOver`),qQ.eventCanceled)return m;if(tQ.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return v(!1);if(gQ=!1,c&&!o.disabled&&(l?u||(a=nQ!==iQ):mQ===this||(this.lastPutMode=pQ.checkPull(this,c,tQ,e))&&s.checkPut(this,c,tQ,e))){if(f=this._getDirection(e,n)===`vertical`,r=EZ(tQ),g(`dragOverValid`),qQ.eventCanceled)return m;if(a)return nQ=iQ,_(),this._hideClone(),g(`revert`),qQ.eventCanceled||(aQ?iQ.insertBefore(tQ,aQ):iQ.appendChild(tQ)),v(!0);var b=kZ(t,o.draggable);if(!b||$Q(e,f,this)&&!b.animated){if(b===tQ)return v(!1);if(b&&t===e.target&&(n=b),n&&(i=EZ(n)),YQ(iQ,t,tQ,r,n,i,e,!!n)!==!1)return _(),b&&b.nextSibling?t.insertBefore(tQ,b.nextSibling):t.appendChild(tQ),nQ=t,y(),v(!0)}else if(b&&QQ(e,f,this)){var x=OZ(t,0,o,!0);if(x===tQ)return v(!1);if(n=x,i=EZ(n),YQ(iQ,t,tQ,r,n,i,e,!1)!==!1)return _(),t.insertBefore(tQ,x),nQ=t,y(),v(!0)}else if(n.parentNode===t){i=EZ(n);var S=0,C,w=tQ.parentNode!==t,T=!BQ(tQ.animated&&tQ.toRect||r,n.animated&&n.toRect||i,f),E=f?`top`:`left`,D=DZ(n,`top`,`top`)||DZ(tQ,`top`,`top`),O=D?D.scrollTop:void 0;TQ!==n&&(C=i[E],DQ=!1,OQ=!T&&o.invertSwap||w),S=e$(e,n,i,f,T?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,OQ,TQ===n);var k;if(S!==0){var A=AZ(tQ);do A-=S,k=nQ.children[A];while(k&&(SZ(k,`display`)===`none`||k===rQ))}if(S===0||k===n)return v(!1);TQ=n,EQ=S;var j=n.nextElementSibling,M=!1;M=S===1;var N=YQ(iQ,t,tQ,r,n,i,e,M);if(N!==!1)return(N===1||N===-1)&&(M=N===1),MQ=!0,setTimeout(ZQ,30),_(),M&&!j?t.appendChild(tQ):n.parentNode.insertBefore(tQ,M?j:n),D&&zZ(D,0,O-D.scrollTop),nQ=tQ.parentNode,C!==void 0&&!OQ&&(kQ=Math.abs(C-EZ(n)[E])),y(),v(!0)}if(t.contains(tQ))return v(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){gZ(document,`mousemove`,this._onTouchMove),gZ(document,`touchmove`,this._onTouchMove),gZ(document,`pointermove`,this._onTouchMove),gZ(document,`dragover`,GQ),gZ(document,`mousemove`,GQ),gZ(document,`touchmove`,GQ)},_offUpEvents:function(){var e=this.el.ownerDocument;gZ(e,`mouseup`,this._onDrop),gZ(e,`touchend`,this._onDrop),gZ(e,`pointerup`,this._onDrop),gZ(e,`touchcancel`,this._onDrop),gZ(document,`selectstart`,this)},_onDrop:function(e){var t=this.el,n=this.options;if(uQ=AZ(tQ),fQ=AZ(tQ,n.draggable),$Z(`drop`,this,{evt:e}),nQ=tQ&&tQ.parentNode,uQ=AZ(tQ),fQ=AZ(tQ,n.draggable),qQ.eventCanceled){this._nulling();return}hQ=!1,OQ=!1,DQ=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),a$(this.cloneId),a$(this._dragStartId),this.nativeDraggable&&(gZ(document,`drop`,this),gZ(t,`dragstart`,this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),dZ&&SZ(document.body,`user-select`,``),SZ(tQ,`transform`,``),e&&(wQ&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),rQ&&rQ.parentNode&&rQ.parentNode.removeChild(rQ),(iQ===nQ||mQ&&mQ.lastPutMode!==`clone`)&&sQ&&sQ.parentNode&&sQ.parentNode.removeChild(sQ),tQ&&(this.nativeDraggable&&gZ(tQ,`dragend`,this),XQ(tQ),tQ.style[`will-change`]=``,wQ&&!hQ&&xZ(tQ,mQ?mQ.options.ghostClass:this.options.ghostClass,!1),xZ(tQ,this.options.chosenClass,!1),eQ({sortable:this,name:`unchoose`,toEl:nQ,newIndex:null,newDraggableIndex:null,originalEvent:e}),iQ===nQ?uQ!==lQ&&uQ>=0&&(eQ({sortable:this,name:`update`,toEl:nQ,originalEvent:e}),eQ({sortable:this,name:`sort`,toEl:nQ,originalEvent:e})):(uQ>=0&&(eQ({rootEl:nQ,name:`add`,toEl:nQ,fromEl:iQ,originalEvent:e}),eQ({sortable:this,name:`remove`,toEl:nQ,originalEvent:e}),eQ({rootEl:nQ,name:`sort`,toEl:nQ,fromEl:iQ,originalEvent:e}),eQ({sortable:this,name:`sort`,toEl:nQ,originalEvent:e})),mQ&&mQ.save()),qQ.active&&((uQ==null||uQ===-1)&&(uQ=lQ,fQ=dQ),eQ({sortable:this,name:`end`,toEl:nQ,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){$Z(`nulling`,this),iQ=tQ=nQ=rQ=aQ=sQ=oQ=cQ=vQ=yQ=wQ=uQ=fQ=lQ=dQ=TQ=EQ=mQ=pQ=qQ.dragged=qQ.ghost=qQ.clone=qQ.active=null,NQ.forEach(function(e){e.checked=!0}),NQ.length=bQ=xQ=0},handleEvent:function(e){switch(e.type){case`drop`:case`dragend`:this._onDrop(e);break;case`dragenter`:case`dragover`:tQ&&(this._onDragOver(e),JQ(e));break;case`selectstart`:e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,i=n.length,a=this.options;r<i;r++)t=n[r],yZ(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||n$(t));return e},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(e,t){var i=r.children[t];yZ(i,this.options.draggable,r,!1)&&(n[e]=i)},this),t&&this.captureAnimationState(),e.forEach(function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return yZ(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var r=XZ.modifyOption(this,e,t);r===void 0?n[e]=t:n[e]=r,e===`group`&&HQ(n)},destroy:function(){$Z(`destroy`,this);var e=this.el;e[WZ]=null,gZ(e,`mousedown`,this._onTapStart),gZ(e,`touchstart`,this._onTapStart),gZ(e,`pointerdown`,this._onTapStart),this.nativeDraggable&&(gZ(e,`dragover`,this),gZ(e,`dragenter`,this)),Array.prototype.forEach.call(e.querySelectorAll(`[draggable]`),function(e){e.removeAttribute(`draggable`)}),this._onDrop(),this._disableDelayedDragEvents(),_Q.splice(_Q.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!cQ){if($Z(`hideClone`,this),qQ.eventCanceled)return;SZ(sQ,`display`,`none`),this.options.removeCloneOnHide&&sQ.parentNode&&sQ.parentNode.removeChild(sQ),cQ=!0}},_showClone:function(e){if(e.lastPutMode!==`clone`){this._hideClone();return}if(cQ){if($Z(`showClone`,this),qQ.eventCanceled)return;tQ.parentNode==iQ&&!this.options.group.revertClone?iQ.insertBefore(sQ,tQ):aQ?iQ.insertBefore(sQ,aQ):iQ.appendChild(sQ),this.options.group.revertClone&&this.animate(tQ,sQ),SZ(sQ,`display`,``),cQ=!1}}};function JQ(e){e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),e.cancelable&&e.preventDefault()}function YQ(e,t,n,r,i,a,o,s){var c,l=e[WZ],u=l.options.onMove,d;return window.CustomEvent&&!cZ&&!lZ?c=new CustomEvent(`move`,{bubbles:!0,cancelable:!0}):(c=document.createEvent(`Event`),c.initEvent(`move`,!0,!0)),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=i||t,c.relatedRect=a||EZ(t),c.willInsertAfter=s,c.originalEvent=o,e.dispatchEvent(c),u&&(d=u.call(l,c,o)),d}function XQ(e){e.draggable=!1}function ZQ(){MQ=!1}function QQ(e,t,n){var r=EZ(OZ(n.el,0,n.options,!0)),i=UZ(n.el,n.options,rQ),a=10;return t?e.clientX<i.left-a||e.clientY<r.top&&e.clientX<r.right:e.clientY<i.top-a||e.clientY<r.bottom&&e.clientX<r.left}function $Q(e,t,n){var r=EZ(kZ(n.el,n.options.draggable)),i=UZ(n.el,n.options,rQ),a=10;return t?e.clientX>i.right+a||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+a||e.clientX>r.right&&e.clientY>r.top}function e$(e,t,n,r,i,a,o,s){var c=r?e.clientY:e.clientX,l=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!o){if(s&&kQ<l*i){if(!DQ&&(EQ===1?c>u+l*a/2:c<d-l*a/2)&&(DQ=!0),DQ)f=!0;else if(EQ===1?c<u+kQ:c>d-kQ)return-EQ}else if(c>u+l*(1-i)/2&&c<d-l*(1-i)/2)return t$(t)}return f||=o,f&&(c<u+l*a/2||c>d-l*a/2)?c>u+l/2?1:-1:0}function t$(e){return AZ(tQ)<AZ(e)?1:-1}function n$(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function r$(e){NQ.length=0;for(var t=e.getElementsByTagName(`input`),n=t.length;n--;){var r=t[n];r.checked&&NQ.push(r)}}function i$(e){return setTimeout(e,0)}function a$(e){return clearTimeout(e)}PQ&&hZ(document,`touchmove`,function(e){(qQ.active||hQ)&&e.cancelable&&e.preventDefault()}),qQ.utils={on:hZ,off:gZ,css:SZ,find:wZ,is:function(e,t){return!!yZ(e,t,e,!1)},extend:PZ,throttle:LZ,closest:yZ,toggleClass:xZ,clone:BZ,index:AZ,nextTick:i$,cancelNextTick:a$,detectDirection:zQ,getChild:OZ},qQ.get=function(e){return e[WZ]},qQ.mount=function(){var e=[...arguments];e[0].constructor===Array&&(e=e[0]),e.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw`Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;e.utils&&(qQ.utils=JX(JX({},qQ.utils),e.utils)),XZ.mount(e)})},qQ.create=function(e,t){return new qQ(e,t)},qQ.version=oZ;var o$=[],s$,c$,l$=!1,u$,d$,f$,p$;function m$(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)e.charAt(0)===`_`&&typeof this[e]==`function`&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?hZ(document,`dragover`,this._handleAutoScroll):this.options.supportPointer?hZ(document,`pointermove`,this._handleFallbackAutoScroll):t.touches?hZ(document,`touchmove`,this._handleFallbackAutoScroll):hZ(document,`mousemove`,this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?gZ(document,`dragover`,this._handleAutoScroll):(gZ(document,`pointermove`,this._handleFallbackAutoScroll),gZ(document,`touchmove`,this._handleFallbackAutoScroll),gZ(document,`mousemove`,this._handleFallbackAutoScroll)),g$(),h$(),RZ()},nulling:function(){f$=c$=s$=l$=p$=u$=d$=null,o$.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,i);if(f$=e,t||this.options.forceAutoScrollFallback||lZ||cZ||dZ){_$(e,this.options,a,t);var o=NZ(a,!0);l$&&(!p$||r!==u$||i!==d$)&&(p$&&g$(),p$=setInterval(function(){var a=NZ(document.elementFromPoint(r,i),!0);a!==o&&(o=a,h$()),_$(e,n.options,a,t)},10),u$=r,d$=i)}else{if(!this.options.bubbleScroll||NZ(a,!0)===TZ()){h$();return}_$(e,this.options,NZ(a,!1),!1)}}},ZX(e,{pluginName:`scroll`,initializeByDefault:!0})}function h$(){o$.forEach(function(e){clearInterval(e.pid)}),o$=[]}function g$(){clearInterval(p$)}var _$=LZ(function(e,t,n,r){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,o=t.scrollSensitivity,s=t.scrollSpeed,c=TZ(),l=!1,u;c$!==n&&(c$=n,h$(),s$=t.scroll,u=t.scrollFn,s$===!0&&(s$=NZ(n,!0)));var d=0,f=s$;do{var p=f,m=EZ(p),g=m.top,_=m.bottom,v=m.left,y=m.right,b=m.width,x=m.height,S=void 0,C=void 0,w=p.scrollWidth,T=p.scrollHeight,E=SZ(p),D=p.scrollLeft,O=p.scrollTop;p===c?(S=b<w&&(E.overflowX===`auto`||E.overflowX===`scroll`||E.overflowX===`visible`),C=x<T&&(E.overflowY===`auto`||E.overflowY===`scroll`||E.overflowY===`visible`)):(S=b<w&&(E.overflowX===`auto`||E.overflowX===`scroll`),C=x<T&&(E.overflowY===`auto`||E.overflowY===`scroll`));var k=S&&(Math.abs(y-i)<=o&&D+b<w)-(Math.abs(v-i)<=o&&!!D),A=C&&(Math.abs(_-a)<=o&&O+x<T)-(Math.abs(g-a)<=o&&!!O);if(!o$[d])for(var j=0;j<=d;j++)o$[j]||(o$[j]={});(o$[d].vx!=k||o$[d].vy!=A||o$[d].el!==p)&&(o$[d].el=p,o$[d].vx=k,o$[d].vy=A,clearInterval(o$[d].pid),(k!=0||A!=0)&&(l=!0,o$[d].pid=setInterval(function(){r&&this.layer===0&&qQ.active._onTouchMove(f$);var t=o$[this.layer].vy?o$[this.layer].vy*s:0,n=o$[this.layer].vx?o$[this.layer].vx*s:0;typeof u==`function`&&u.call(qQ.dragged.parentNode[WZ],n,t,e,f$,o$[this.layer].el)!==`continue`||zZ(o$[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=NZ(f,!1)));l$=l}},30),v$=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var c=n||i;o();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(l.clientX,l.clientY);s(),c&&!c.el.contains(u)&&(a(`spill`),this.onSpill({dragEl:r,putSortable:n}))}};function y$(){}y$.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=OZ(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:v$},ZX(y$,{pluginName:`revertOnSpill`});function b$(){}b$.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:v$},ZX(b$,{pluginName:`removeOnSpill`});var x$=[],S$=[],C$,w$,T$=!1,E$=!1,D$=!1,O$,k$,A$;function j$(){function e(e){for(var t in this)t.charAt(0)===`_`&&typeof this[t]==`function`&&(this[t]=this[t].bind(this));e.options.avoidImplicitDeselect||(e.options.supportPointer?hZ(document,`pointerup`,this._deselectMultiDrag):(hZ(document,`mouseup`,this._deselectMultiDrag),hZ(document,`touchend`,this._deselectMultiDrag))),hZ(document,`keydown`,this._checkKeyDown),hZ(document,`keyup`,this._checkKeyUp),this.defaults={selectedClass:`sortable-selected`,multiDragKey:null,avoidImplicitDeselect:!1,setData:function(t,n){var r=``;x$.length&&w$===e?x$.forEach(function(e,t){r+=(t?`, `:``)+e.textContent}):r=n.textContent,t.setData(`Text`,r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){O$=e.dragEl},delayEnded:function(){this.isMultiDrag=~x$.indexOf(O$)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<x$.length;r++)S$.push(BZ(x$[r])),S$[r].sortableIndex=x$[r].sortableIndex,S$[r].draggable=!1,S$[r].style[`will-change`]=``,xZ(S$[r],this.options.selectedClass,!1),x$[r]===O$&&xZ(S$[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,i=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||x$.length&&w$===t&&(N$(!0,n),r(`clone`),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(N$(!1,n),S$.forEach(function(e){SZ(e,`display`,``)}),t(),A$=!1,r())},hideClone:function(e){var t=this;e.sortable;var n=e.cloneNowHidden,r=e.cancel;this.isMultiDrag&&(S$.forEach(function(e){SZ(e,`display`,`none`),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)}),n(),A$=!0,r())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&w$&&w$.multiDrag._deselectMultiDrag(),x$.forEach(function(e){e.sortableIndex=AZ(e)}),x$=x$.sort(function(e,t){return e.sortableIndex-t.sortableIndex}),D$=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){x$.forEach(function(e){e!==O$&&SZ(e,`position`,`absolute`)});var r=EZ(O$,!1,!0,!0);x$.forEach(function(e){e!==O$&&VZ(e,r)}),E$=!0,T$=!0}n.animateAll(function(){E$=!1,T$=!1,t.options.animation&&x$.forEach(function(e){HZ(e)}),t.options.sort&&P$()})}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;E$&&~x$.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;x$.length>1&&(x$.forEach(function(e){r.addAnimationState({target:e,rect:E$?EZ(e):i}),HZ(e),e.fromRect=i,t.removeAnimationState(e)}),E$=!1,M$(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,i=e.activeSortable,a=e.parentEl,o=e.putSortable,s=this.options;if(r){if(n&&i._hideClone(),T$=!1,s.animation&&x$.length>1&&(E$||!n&&!i.options.sort&&!o)){var c=EZ(O$,!1,!0,!0);x$.forEach(function(e){e!==O$&&(VZ(e,c),a.appendChild(e))}),E$=!0}if(!n)if(E$||P$(),x$.length>1){var l=A$;i._showClone(t),i.options.animation&&!A$&&l&&S$.forEach(function(e){i.addAnimationState({target:e,rect:k$}),e.fromRect=k$,e.thisAnimationDuration=null})}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(x$.forEach(function(e){e.thisAnimationDuration=null}),r.options.animation&&!n&&r.multiDrag.isMultiDrag){k$=ZX({},t);var i=CZ(O$,!0);k$.top-=i.f,k$.left-=i.e}},dragOverAnimationComplete:function(){E$&&(E$=!1,P$())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,i=e.sortable,a=e.dispatchSortableEvent,o=e.oldIndex,s=e.putSortable,c=s||this.sortable;if(t){var l=this.options,u=r.children;if(!D$)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),xZ(O$,l.selectedClass,!~x$.indexOf(O$)),~x$.indexOf(O$))x$.splice(x$.indexOf(O$),1),C$=null,ZZ({sortable:i,rootEl:n,name:`deselect`,targetEl:O$,originalEvent:t});else{if(x$.push(O$),ZZ({sortable:i,rootEl:n,name:`select`,targetEl:O$,originalEvent:t}),t.shiftKey&&C$&&i.el.contains(C$)){var d=AZ(C$),f=AZ(O$);if(~d&&~f&&d!==f){var p,m;for(f>d?(m=d,p=f):(m=f,p=d+1);m<p;m++)~x$.indexOf(u[m])||(xZ(u[m],l.selectedClass,!0),x$.push(u[m]),ZZ({sortable:i,rootEl:n,name:`select`,targetEl:u[m],originalEvent:t}))}}else C$=O$;w$=c}if(D$&&this.isMultiDrag){if(E$=!1,(r[WZ].options.sort||r!==n)&&x$.length>1){var g=EZ(O$),_=AZ(O$,`:not(.`+this.options.selectedClass+`)`);if(!T$&&l.animation&&(O$.thisAnimationDuration=null),c.captureAnimationState(),!T$&&(l.animation&&(O$.fromRect=g,x$.forEach(function(e){if(e.thisAnimationDuration=null,e!==O$){var t=E$?EZ(e):g;e.fromRect=t,c.addAnimationState({target:e,rect:t})}})),P$(),x$.forEach(function(e){u[_]?r.insertBefore(e,u[_]):r.appendChild(e),_++}),o===AZ(O$))){var v=!1;x$.forEach(function(e){if(e.sortableIndex!==AZ(e)){v=!0;return}}),v&&(a(`update`),a(`sort`))}x$.forEach(function(e){HZ(e)}),c.animateAll()}w$=c}(n===r||s&&s.lastPutMode!==`clone`)&&S$.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)})}},nullingGlobal:function(){this.isMultiDrag=D$=!1,S$.length=0},destroyGlobal:function(){this._deselectMultiDrag(),gZ(document,`pointerup`,this._deselectMultiDrag),gZ(document,`mouseup`,this._deselectMultiDrag),gZ(document,`touchend`,this._deselectMultiDrag),gZ(document,`keydown`,this._checkKeyDown),gZ(document,`keyup`,this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(D$!==void 0&&D$)&&w$===this.sortable&&!(e&&yZ(e.target,this.options.draggable,this.sortable.el,!1))&&!(e&&e.button!==0))for(;x$.length;){var t=x$[0];xZ(t,this.options.selectedClass,!1),x$.shift(),ZZ({sortable:this.sortable,rootEl:this.sortable.el,name:`deselect`,targetEl:t,originalEvent:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},ZX(e,{pluginName:`multiDrag`,utils:{select:function(e){var t=e.parentNode[WZ];!t||!t.options.multiDrag||~x$.indexOf(e)||(w$&&w$!==t&&(w$.multiDrag._deselectMultiDrag(),w$=t),xZ(e,t.options.selectedClass,!0),x$.push(e))},deselect:function(e){var t=e.parentNode[WZ],n=x$.indexOf(e);!t||!t.options.multiDrag||!~n||(xZ(e,t.options.selectedClass,!1),x$.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return x$.forEach(function(r){t.push({multiDragElement:r,index:r.sortableIndex});var i=E$&&r!==O$?-1:E$?AZ(r,`:not(.`+e.options.selectedClass+`)`):AZ(r);n.push({multiDragElement:r,index:i})}),{items:eZ(x$),clones:[].concat(S$),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),e===`ctrl`?e=`Control`:e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function M$(e,t){x$.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function N$(e,t){S$.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function P$(){x$.forEach(function(e){e!==O$&&e.parentNode&&e.parentNode.removeChild(e)})}qQ.mount(new m$),qQ.mount(b$,y$);var F$={pageModePanel:`PageModePanel`,stampPanel:`StampPanel`},I$={stylePanel:`StylePanel`,leftPanel:`LeftPanel`,rightPanel:`RightPanel`,linkPanel:`LinkPanel`,colorSeparationPanel:`ColorSeparationPanel`,contentEditorPanel:`ContentEditorPanel`,redactionPanel:`RedactionPanel`},L$={class:`colors-container`},R$={key:0,class:`cell-container`},z$=[`onClick`],B$={class:`color-picker`},V$=B({__name:`ColorContainer`,props:{propertyColor:{type:String},colors:{type:Array,default:()=>[`rgb(100, 188, 56)`,`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`]},noColor:{type:Boolean,default:!1},to:{type:String,default:`.style-panel`}},emits:[`setActiveColor`],setup(e,{emit:t}){let n=e,r=t,i=J(`rgb(0, 0, 0)`),a=e=>{vw(e,n.propertyColor)||r(`setActiveColor`,e)},o=e=>{vw(e,n.propertyColor)||a(e)},s=e=>{i.value=e};return(t,n)=>{let r=vx;return S(),V(`div`,L$,[e.noColor?(S(),V(`span`,R$,[c(`span`,{class:D([`cell-outer`,{active:!e.propertyColor}]),onClick:n[0]||=e=>a(``)},[x(r)],2)])):b(``,!0),(S(!0),V(q,null,z(e.colors,(t,n)=>(S(),V(`span`,{class:`cell-container`,key:n},[c(`span`,{class:D([`cell-outer`,{active:K(vw)(e.propertyColor,t)}]),onClick:e=>a(t)},[c(`span`,{class:`cell`,style:A({backgroundColor:t})},null,4)],10,z$)]))),128)),c(`div`,B$,[c(`div`,{class:D([`preview-container`,{active:e.propertyColor===i.value}])},[c(`div`,{class:`preview`,onClick:n[1]||=e=>a(i.value),style:A({backgroundColor:i.value})},null,4)],2),x(K(gv),{to:e.to,onComplete:o,"onUpdate:value":s,value:i.value,"show-alpha":!1},{label:G(()=>[...n[2]||=[c(`img`,{src:``+new URL(`colorful-DLWKobGf.svg`,import.meta.url).href,alt:`colorPicker`},null,-1)]]),_:1},8,[`to`,`value`])])])}}},[[`__scopeId`,`data-v-b6d61687`]]),H$={class:`style-panel property-panel annotation-panel`},U$={class:`sidebar-title`},W$={class:`edit-container`},G$={key:0,class:`color`},K$={class:`color-title subtitle`},q$={key:1,class:`opacity`},J$={class:`subtitle`},Y$={class:`tool`},X$={key:2,class:`color`},Z$={class:`color-title subtitle`},Q$={key:3,class:`line-style`},$$={class:`line-style-title subtitle`},e1={key:4,class:`border-width`},t1={class:`subtitle`},n1={class:`tool slider`},r1={key:5,class:`border-text-opacity`},i1={class:`subtitle`},a1={class:`tool slider`},o1={key:6,class:`line-style`},s1={class:`line-style-title subtitle`},c1={class:`block`},l1={class:`line-select`},u1={class:`solid`},d1={class:`line-select`},f1={class:`solid`},p1={key:7,class:`arrow-style`},m1={class:`subtitle`},h1={class:`content-block`},g1={key:8,class:`color`},_1={class:`color-title subtitle`},v1={key:9,class:`text font-style`},y1={class:`text-title subtitle`},b1={class:`content-block`},x1={key:10,class:`text-align`},S1={class:`border`},C1={class:`border`},w1={key:11,class:`note`},T1={class:`subtitle`},E1={key:12},D1={class:`subtitle`},O1={class:`tool slider`},k1={class:`subtitle`},A1={__name:`StylePanel`,setup(e){let t=ye(),n=pw(),r=T(()=>t.isElementOpen(H.STYLE_PANEL)),i=T(()=>t.getCustomFonts),a=T(()=>n.getActiveTool),{t:o}=It(),l={fontName:`Helvetica`,fontStyle:`normal`,fontSize:14,textAlignment:`left`,color:`rgb(0, 0, 0)`,borderWidth:0,borderColor:`rgb(0, 0, 0)`,opacity:1,fillColor:``,borderStyle:`solid`,dashes:2,head:`openarrow`,tail:`openarrow`,contents:``,size:12},u=J({...l}),f={fontName:``,fontStyle:``,fontSize:``,textAlignment:``,color:``,borderWidth:``,borderColor:``,opacity:``,fillColor:``,fillTransparency:``,borderStyle:``,dashes:0,head:``,tail:``,size:``},p=(e,t)=>e===null?typeof f[t]==`number`?0:typeof f[t]==`string`?`-`:e:e===void 0?f[t]:e,m=(e,t=0)=>e===`-`?t:e,g=J(``),_=J(``),v=T(()=>[L.FREETEXT,`text`].includes(g.value)?[`rgb(0, 0, 0)`,`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`]:[`rgb(100, 188, 56)`,`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`]),y=T(()=>[L.FREETEXT,L.CALLOUT].includes(g.value)?[`rgb(0, 0, 0)`,`rgb(255, 0, 0)`,`rgb(255, 236, 102)`]:[`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`]),C=T(()=>[L.FREETEXT,L.CALLOUT].includes(g.value)?[`rgb(0, 0, 0)`,`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`]:[`rgb(100, 188, 56)`,`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`]),w=[2,4,6,8,10].map(e=>({label:`${e} pt`,value:e})),E=e=>e===`-`?{label:`-`,value:e}:{label:e+` pt`,value:e};U.addEvent(`LoadFont`,e=>{let n=e.fontFamily;t.setCustomFonts(n)}),W(()=>i.value,e=>{ee.value=O(e)},{deep:!0});let O=e=>{if(e.length)return e.map(e=>({label:e.fontFamily,value:e.fontName}))},k=[{label:fL,value:`solid`},{label:XI,value:`dashed-4-4`},{label:cL,value:`dashed-6-6`},{label:HI,value:`dashed-10-10`},{label:eL,value:`dashed-6-2-1-2`},{label:iL,value:`dashed-6-2-2-2`},{label:KI,value:`dashed-2-2-10-2`}],A=[{label:fL,value:`solid`},{label:XI,value:`dashed-4-4`},{label:cL,value:`dashed-6-6`},{label:HI,value:`dashed-10-10`},{label:eL,value:`dashed-6-2-1-2`},{label:iL,value:`dashed-6-2-2-2`},{label:KI,value:`dashed-2-2-10-2`},{label:PI,value:`cloudy-1`},{label:RI,value:`cloudy-2`}],j=[{label:XP,value:`none`},{label:AP,value:`openarrow`},{label:HP,value:`closedarrow`},{label:fF,value:`square`},{label:RP,value:`circle`},{label:KP,value:`diamond`},{label:PP,value:`butt`},{label:iF,value:`ropenarrow`},{label:eF,value:`rclosedarrow`},{label:cF,value:`slash`}],M=e=>typeof e.label==`string`?e.label:[Y(e.label,{style:{verticalAlign:`middle`}})],N=e=>typeof e.label==`string`?e.label:[Y(e.label,{style:{verticalAlign:`-0.15em`}})],P=e=>typeof e.label==`string`?e.label:[Y(e.label,{style:{verticalAlign:`-0.15em`,transform:`scaleX(-1)`}})],ee=J([]);ee.value=O(i.value);let F=T(()=>[{label:o(`common.fontStyles.regular`),value:`normal`},{label:o(`common.fontStyles.bold`),value:`bold`},{label:o(`common.fontStyles.boldOblique`),value:`boldOblique`},{label:o(`common.fontStyles.oblique`),value:`oblique`}]),te=[{label:`25%`,value:.25},{label:`50%`,value:.5},{label:`75%`,value:.75},{label:`100%`,value:1}],I=e=>e===`-`?{label:`-`,value:e}:{label:Math.round(e*100)+`%`,value:e},z=e=>e===`-`?{label:`-`,value:e}:{label:Math.round(e*100)+`%`,value:e},ne=[6,8,10,12,14,16,20,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72].map(e=>({label:`${e} pt`,value:e})),re=e=>e===`-`?{label:`-`,value:e}:{label:e+` pt`,value:e},ie=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18].map(e=>({label:`${e} pt`,value:e})),B=e=>e===`-`?{label:`-`,value:e}:{label:e+` pt`,value:e},ae=J(`partial`),oe=T(()=>[{label:o(`panels.eraser.partialErase`),value:`partial`},{label:o(`panels.eraser.eraseAll`),value:`whole`}]),se=e=>e===`-`?{label:`-`,value:e}:{label:e,value:e},ce=()=>{u.value.borderWidth!==`-`&&Pe({borderWidth:u.value.borderWidth})},le=()=>{u.value.opacity!==`-`&&Pe({opacity:u.value.opacity})},ue=()=>{u.value.fillTransparency!==`-`&&Pe({fillTransparency:u.value.fillTransparency})},de=e=>{e!==null&&(u.value.dashes=Math.round(e),Pe({dashes:`${u.value.dashes},${u.value.dashes}`}))},fe=e=>e===``?2:Number.parseInt(e),pe=e=>e===null||e===0?`-`:e+` pt`,me=()=>{u.value.size!==`-`&&Pe({size:u.value.size})},he=()=>{U.setEraseMode(ae.value)};W(()=>r.value,e=>{if(e&&!ke.length){t.closeElement(H.PAGE_MODE_PANEL),we();let e=U.getEraseMode();e&&(ae.value=e)}}),W(()=>u.value.fontName,e=>{!e||e===`-`||Pe({fontName:e})}),W(()=>u.value.fontStyle,e=>{if(!e||e===`-`)return;let t=/bold/i.test(e)?`bold`:`normal`;Pe({fontStyle:/(oblique|italic)/i.test(e)?`oblique`:`normal`,fontWeight:t})}),W(()=>u.value.fontSize,e=>{e!==void 0&&typeof e==`number`&&Pe({fontSize:u.value.fontSize})}),W(()=>u.value.head,e=>{!e||e===`-`||![L.LINE,`arrow`,`lineMeasurement`].includes(g.value)||Pe({head:e})}),W(()=>u.value.tail,e=>{!e||e===`-`||![L.LINE,`arrow`,`lineMeasurement`].includes(g.value)||Pe({tail:e})}),W(()=>u.value.borderStyle,e=>{!e||e===`-`||![L.FREETEXT,L.CALLOUT].includes(g.value)&&be(e)});let ge=(e,t)=>{u.value[e]=t,Pe({[e]:t})},_e=e=>{u.value.textAlignment=e,Pe({textAlignment:u.value.textAlignment})},ve=e=>{u.value.borderStyle=e,u.value.borderStyle===`dashed`?Pe({borderStyle:e,dashes:`${u.value.dashes},${u.value.dashes}`}):Pe({borderStyle:e})},be=e=>{let t=e.split(`-`),n=t.shift();ke.length&&![L.FREETEXT,L.CALLOUT].includes(ke[0].type)||a.value!==L.FREETEXT&&a.value!==L.CALLOUT?Pe(n===`dashed`?{borderStyle:n,dashes:t.join(`,`)}:n===`cloudy`?{borderStyle:n,intensity:t.join(`,`)}:{borderStyle:e}):Pe({borderStyle:n})},xe=()=>{let e=U.getDocumentViewer().annotationHistoryManager,t=ke.length>1&&e&&!e.isInProgress();t&&e.beginBatchOperation(),ke.forEach(e=>U.getAnnotationManager()?.setNoteContents(e,u.value.contents)),t&&e.endBatchOperation()},Se=null,Ce=()=>{clearTimeout(Se),Se=setTimeout(()=>{xe()},500)},we=(e,t)=>{let n=t||e||a.value;if(!n){Fe();return}let r=U.getToolStyles(n);if(Te(void 0,n),De(),r){let e=`solid`,t=`2,2`;if(r.borderStyle===`dashed`?e=`dashed-${r.dashes.split(`,`).join(`-`)}`:r.borderStyle===`cloudy`&&(e=`cloudy-${r.intensity}`),[L.FREETEXT,L.CALLOUT].includes(n)&&(e=r.borderStyle,t=(r.dashes||`2,2`).split(`,`)[0]),u.value={...r,borderStyle:e,dashes:t},r.dashes){let e=Number(r.dashes.split(`,`)[0].trim());u.value.dashes=e}}else Fe()};U.addEvent(`toolChanged`,we);let Te=(e,t)=>{g.value=(e?.measure?e.type+`Measurement`:e?.type||``)||t||a.value},Ee=e=>{if(!e||e.type!==L.LINE)return!1;let t=e.getStartStyle?.()||e.head,n=e.getEndStyle?.()||e.tail;return!!(t&&t!==`none`||n&&n!==`none`)},q=e=>g.value===`text`?`note`:Ee(e)?`arrow`:e.borderStyle===`cloudy`?`cloudy`:g.value===`stamp`&&(e.stampType===`image`||e.annotation?.stampType===`image`)?`image`:g.value,De=e=>{g.value?g.value.includes(`Measurement`)?_.value=o(`panels.measurement.appearance`):e?_.value=o(`toolbar.annotationTools.${q(e)}`):_.value=o(`toolbar.annotationTools.${g.value}`):_.value=``},Oe=e=>{if(Te(e),De(e),u.value={fontName:p(e.fontName===void 0?l.fontName:e.fontName,`fontName`),textAlignment:p(e.textAlignment===void 0?l.textAlignment:e.textAlignment,`textAlignment`),color:p(e.color===void 0?l.color:e.color,`color`),borderStyle:p(e.borderStyle===void 0?l.borderStyle:e.borderStyle,`borderStyle`),borderWidth:p(e.borderWidth===void 0?l.borderWidth:e.borderWidth,`borderWidth`),borderColor:p(e.borderColor===void 0?l.borderColor:e.borderColor,`borderColor`),opacity:p(e.opacity===void 0?l.opacity:e.opacity,`opacity`),fillColor:p(e.fillColor===void 0?l.fillColor:e.fillColor,`fillColor`),fillTransparency:p(e.fillTransparency===void 0?l.fillTransparency:e.fillTransparency,`fillTransparency`),dashes:p(e.dashes===void 0?l.dashes:e.dashes,`dashes`),contents:p(e.contents===void 0?l.contents:e.contents,`contents`),fontSize:p(e.fontSize===void 0?l.fontSize:e.fontSize,`fontSize`)},e.borderStyle&&![L.FREETEXT,L.CALLOUT].includes(e.type)&&(e.borderStyle===`solid`?u.value.borderStyle=`solid`:e.borderStyle===`dashed`?u.value.borderStyle=`dashed-`+(e.dashes||`4,4`).split(`,`).join(`-`):u.value.borderStyle=e.borderStyle+`-`+e.intensity),[L.FREETEXT,L.CALLOUT].includes(e.type)&&(e.borderStyle===`dashed`?u.value.borderStyle=`dashed`:u.value.borderStyle=`solid`,e.dashes&&(u.value.dashes=Number(e.dashes.split(`,`)[0].trim()))),e.type===L.LINE){let t=e.getStartStyle?.()||e.head,n=e.getEndStyle?.()||e.tail;u.value.head=p(t===void 0?l.head:t,`head`),u.value.tail=p(n===void 0?l.tail:n,`tail`)}[`highlight`,`underline`,`squiggly`,`strikeout`,`markup`].includes(e.type)&&e.color&&(u.value.borderColor=e.color);let t=e.fontWeight,n=e.fontStyle;t===null||n===null?u.value.fontStyle=`-`:(t||`normal`)===`bold`&&(n||`normal`)===`oblique`?u.value.fontStyle=`boldOblique`:(t||`normal`)===`bold`?u.value.fontStyle=`bold`:(n||`normal`)===`oblique`?u.value.fontStyle=`oblique`:u.value.fontStyle=`normal`},ke=[],Ae=[`highlight`,`underline`,`squiggly`,`strikeout`];U.addEvent(`annotationSelected`,e=>{if(ke=e,e.length===1){Oe(e[0]);return}new Set(e.map(e=>Ae.includes(e.annotation.type)?`markup`:e.annotation.type)).size===1&&Oe(Ie(e))});let je=e=>{ke=U.getDocumentViewer().getAnnotationManager().getSelectedAnnotations(),!(e.length===1&&ke[0]&&e[0].name!==ke[0].name)&&(we(),Fe())},Ne=null;U.addEvent(`annotationDeselected`,je),U.addEvent(`annotationChanged`,(e,t)=>{e=Array.isArray(e)?e[0]:e,t===`modify`&&ke.some(t=>t===e)&&(Ne&&cancelAnimationFrame(Ne),Ne=requestAnimationFrame(()=>{Ne=null,ke.length===1?Oe(ke[0]):ke.length>1&&Oe(Ie(ke))}))});let Pe=e=>{if(e)if(ke.length){let t=ke.length===1?ke[0]:Ie(ke),n={};Object.keys(e).forEach(r=>{e[r]!==t[r]&&t[r]!==void 0&&(n[r]=e[r])});let r=t=>{if(e.head||e.tail){let n=t.getStartStyle?.(),r=t.getEndStyle?.();e.head&&e.head!==n&&t.setStartStyle?.(e.head),e.tail&&e.tail!==r&&t.setEndStyle?.(e.tail)}Object.keys(n).length>0&&U.setAnnotationStyles(t,n)},i=U.getDocumentViewer().annotationHistoryManager,a=ke.length>1&&i&&!i.isInProgress();a&&i.beginBatchOperation(),ke.forEach(r),a&&i.endBatchOperation()}else a.value&&U.setToolStyles(a.value,e)},Fe=()=>{t.closeElement(H.STYLE_PANEL)},Ie=e=>{if(e.length===0)return{};let t=e.map(e=>e.annotation),n=t[0],r={};for(let e in n){let i=n[e];e===`type`&&Ae.includes(i)&&(i=`markup`),r[e]=t.every(t=>{let n=t[e];return e===`type`&&Ae.includes(n)&&(n=`markup`),n===i})?i:null}return r};return(e,t)=>{let n=V$,r=rw,i=$b,a=Yb,o=Gb,l=Vb;return S(),V(`div`,H$,[c(`div`,U$,d(_.value),1),c(`div`,W$,[K(u)?.fillColor!==void 0&&[K(L).FREETEXT,K(L).CALLOUT,`circle`,`polygon`,`cloudy`,K(L).RECTANGLE,`square`,`circleMeasurement`,`polygonMeasurement`,`rectangleMeasurement`].includes(g.value)?(S(),V(`div`,G$,[c(`div`,K$,d(e.$t(`panels.freeText.fillColor`)),1),x(n,{colors:y.value,propertyColor:K(u).fillColor,noColor:!0,onSetActiveColor:t[0]||=e=>ge(`fillColor`,e)},null,8,[`colors`,`propertyColor`])])):b(``,!0),K(u)?.fillTransparency!==void 0&&[`circle`,`polygon`,`cloudy`,K(L).RECTANGLE,`square`,`circleMeasurement`,`polygonMeasurement`,`rectangleMeasurement`].includes(g.value)?(S(),V(`div`,q$,[c(`div`,J$,d(e.$t(`panels.measurement.fillOpacity`)),1),c(`div`,Y$,[x(K(xb),{value:m(K(u).fillTransparency),tooltip:!1,step:.1,max:1,min:0,class:`width-slider`,"on-dragend":ue,"onUpdate:value":t[1]||=e=>K(u).fillTransparency=e},{thumb:G(()=>[x(r)]),_:1},8,[`value`]),x(K(kv),{value:K(u).fillTransparency,"onUpdate:value":[t[2]||=e=>K(u).fillTransparency=e,ue],"fallback-option":z,options:te,to:`.style-panel`},{arrow:G(()=>[x(i)]),_:1},8,[`value`])])])):b(``,!0),K(u)?.borderColor!==void 0&&![`text`,`stamp`,`image`,`highlight`,`underline`,`squiggly`,`strikeout`,`markup`].includes(g.value)?(S(),V(`div`,X$,[c(`div`,Z$,d([K(L).FREETEXT,K(L).CALLOUT].includes(g.value)?e.$t(`panels.freeText.borderColor`):e.$t(`panels.measurement.lineColor`)),1),x(n,{colors:C.value,propertyColor:K(u).borderColor,onSetActiveColor:t[3]||=e=>ge(`borderColor`,e)},null,8,[`colors`,`propertyColor`])])):b(``,!0),K(u)?.borderStyle!==void 0&&[K(L).LINE,`arrow`,`circle`,`polyline`,`square`,`polygon`,`cloudy`,`lineMeasurement`,`polylineMeasurement`,`circleMeasurement`,`polygonMeasurement`,`rectangleMeasurement`].includes(g.value)?(S(),V(`div`,Q$,[c(`div`,$$,d(e.$t(`panels.measurement.lineStyle`)),1),c(`div`,null,[[K(L).LINE,`arrow`,`circle`,`polyline`,`lineMeasurement`,`polylineMeasurement`,`circleMeasurement`,`polygonMeasurement`,`rectangleMeasurement`].includes(g.value)?(S(),s(K(kv),{key:0,value:K(u).borderStyle,"onUpdate:value":t[4]||=e=>K(u).borderStyle=e,options:k,to:`.style-panel`,class:`line-style`,"render-label":M,"fallback-option":se},{arrow:G(()=>[x(i)]),_:1},8,[`value`])):(S(),s(K(kv),{key:1,value:K(u).borderStyle,"onUpdate:value":t[5]||=e=>K(u).borderStyle=e,options:A,to:`.style-panel`,class:`line-style`,"render-label":M,"fallback-option":se},{arrow:G(()=>[x(i)]),_:1},8,[`value`]))])])):b(``,!0),K(u)?.borderWidth!==void 0&&![`highlight`,`underline`,`squiggly`,`strikeout`,`markup`,`text`,`stamp`,`image`].includes(g.value)?(S(),V(`div`,e1,[c(`div`,t1,d(g.value.includes(`Measurement`)?e.$t(`panels.measurement.lineWidth`):e.$t(`panels.freeText.borderWidth`)),1),c(`div`,n1,[x(K(xb),{keyboard:!1,value:m(K(u).borderWidth),tooltip:!1,step:1,max:10,min:+![K(L).FREETEXT,K(L).CALLOUT].includes(g.value),class:`width-slider`,"on-dragend":ce,"onUpdate:value":t[6]||=e=>K(u).borderWidth=e},{thumb:G(()=>[x(r)]),_:1},8,[`value`,`min`]),x(K(kv),{value:K(u).borderWidth,"onUpdate:value":[t[7]||=e=>K(u).borderWidth=e,ce],"fallback-option":E,options:K(w),to:`.style-panel`},{arrow:G(()=>[x(i)]),_:1},8,[`value`,`options`])])])):b(``,!0),K(u)?.opacity!==void 0&&![`stamp`,`eraser`].includes(g.value)?(S(),V(`div`,r1,[c(`div`,i1,d([`text`,K(L).FREETEXT,`highlight`,`underline`,`squiggly`,`strikeout`,`markup`].includes(g.value)?e.$t(`common.uiElements.opacity`):g.value.includes(`Measurement`)?e.$t(`panels.measurement.lineTextOpacity`):e.$t(`panels.measurement.lineOpacity`)),1),c(`div`,a1,[x(K(xb),{value:m(K(u).opacity),tooltip:!1,step:.01,max:1,min:0,class:`width-slider`,"on-dragend":le,"onUpdate:value":t[8]||=e=>K(u).opacity=e},{thumb:G(()=>[x(r)]),_:1},8,[`value`]),x(K(kv),{value:K(u).opacity,"onUpdate:value":[t[9]||=e=>K(u).opacity=e,le],"fallback-option":I,options:te,to:`.style-panel`},{arrow:G(()=>[x(i)]),_:1},8,[`value`])])])):b(``,!0),K(u)?.borderStyle!==void 0&&[K(L).FREETEXT,K(L).CALLOUT].includes(g.value)?(S(),V(`div`,o1,[c(`div`,s1,d(e.$t(`panels.measurement.lineStyle`)),1),c(`div`,c1,[c(`div`,l1,[c(`div`,{class:D([`checkbox`,{active:K(u).borderStyle===`solid`}]),onClick:t[10]||=e=>ve(`solid`)},[R(c(`div`,u1,null,512),[[Re,K(u).borderStyle===`solid`]])],2),t[26]||=c(`div`,{class:`solid-line`},null,-1)]),t[28]||=c(`div`,null,null,-1),c(`div`,d1,[c(`div`,{class:D([`checkbox`,{active:K(u).borderStyle===`dashed`}]),onClick:t[11]||=e=>ve(`dashed`)},[R(c(`div`,f1,null,512),[[Re,K(u).borderStyle===`dashed`]])],2),t[27]||=c(`div`,{class:`dashed-line`},null,-1)]),x(K(gb),{value:K(u).dashes,"onUpdate:value":[t[12]||=e=>K(u).dashes=e,de],placeholder:`2 pt`,min:`1`,max:`10`,step:1,parse:fe,format:pe,"update-value-on-input":!1,disabled:K(u).borderStyle!==`dashed`},{"minus-icon":G(()=>[c(`div`,{class:D([`arrow down`,{disabled:K(u).borderStyle!==`dashed`}])},null,2)]),"add-icon":G(()=>[c(`div`,{class:D([`arrow up`,{disabled:K(u).borderStyle!==`dashed`}])},null,2)]),_:1},8,[`value`,`disabled`])])])):b(``,!0),[`lineMeasurement`,K(L).LINE].includes(g.value)?(S(),V(`div`,p1,[c(`div`,m1,d(e.$t(`panels.measurement.lineStart`))+` & `+d(e.$t(`panels.measurement.lineEnd`)),1),c(`div`,h1,[x(K(kv),{value:K(u).head,"onUpdate:value":t[13]||=e=>K(u).head=e,"fallback-option":se,options:j,to:`.style-panel`,class:`font-style-select`,"render-label":N},{arrow:G(()=>[x(i)]),_:1},8,[`value`]),x(K(kv),{value:K(u).tail,"onUpdate:value":t[14]||=e=>K(u).tail=e,"fallback-option":se,options:j,to:`.style-panel`,class:`font-size-select`,"render-label":P},{arrow:G(()=>[x(i)]),_:1},8,[`value`])])])):b(``,!0),K(u)?.color!==void 0&&([K(L).FREETEXT,`text`,`highlight`,`underline`,`squiggly`,`strikeout`,`markup`].includes(g.value)||g.value.includes(`Measurement`))?(S(),V(`div`,g1,[c(`div`,_1,d(e.$t(`panels.freeText.fontColor`)),1),x(n,{colors:v.value,propertyColor:K(u).color,onSetActiveColor:t[15]||=e=>ge(`color`,e)},null,8,[`colors`,`propertyColor`])])):b(``,!0),K(u)?.fontName!==void 0&&K(u)?.fontStyle!==void 0&&K(u)?.fontSize!==void 0&&(g.value===K(L).FREETEXT||g.value.includes(`Measurement`))?(S(),V(`div`,v1,[c(`div`,y1,d(e.$t(`panels.freeText.fontStyle`)),1),x(K(kv),{value:K(u).fontName,"onUpdate:value":t[16]||=e=>K(u).fontName=e,"fallback-option":se,options:ee.value,to:`.style-panel`,class:`text-family`},{arrow:G(()=>[x(i)]),_:1},8,[`value`,`options`]),c(`div`,b1,[x(K(kv),{value:K(u).fontStyle,"onUpdate:value":t[17]||=e=>K(u).fontStyle=e,"fallback-option":se,options:F.value,to:`.style-panel`,class:`font-style-select`},{arrow:G(()=>[x(i)]),_:1},8,[`value`,`options`]),x(K(kv),{value:K(u).fontSize,"onUpdate:value":t[18]||=e=>K(u).fontSize=e,"fallback-option":re,options:K(ne),to:`.style-panel`,class:`font-size-select`},{arrow:G(()=>[x(i)]),_:1},8,[`value`,`options`])])])):b(``,!0),K(u)?.textAlignment!==void 0&&g.value===K(L).FREETEXT?(S(),V(`div`,x1,[c(`div`,{class:D({active:K(u).textAlignment===`left`}),onClick:t[19]||=e=>_e(`left`)},[c(`span`,S1,[x(a)])],2),c(`div`,{class:D({active:K(u).textAlignment===`center`}),onClick:t[20]||=e=>_e(`center`)},[c(`span`,C1,[x(o)])],2),c(`div`,{class:D({active:K(u).textAlignment===`right`}),onClick:t[21]||=e=>_e(`right`)},[c(`span`,null,[x(l)])],2)])):b(``,!0),K(u)?.contents!==void 0&&K(ke).length?(S(),V(`div`,w1,[c(`div`,T1,d(e.$t(`panels.measurement.note`)),1),R(c(`textarea`,{name:`note`,rows:`4`,"onUpdate:modelValue":t[22]||=e=>K(u).contents=e,onBlur:xe,onInput:Ce},null,544),[[Me,K(u).contents]])])):b(``,!0),K(u)?.size!==void 0&&g.value===`eraser`?(S(),V(`div`,E1,[c(`div`,D1,d(e.$t(`common.uiElements.size`)),1),c(`div`,O1,[x(K(xb),{keyboard:!1,value:m(K(u).size),tooltip:!1,step:1,max:18,min:1,class:`width-slider`,"on-dragend":me,"onUpdate:value":t[23]||=e=>K(u).size=e},{thumb:G(()=>[x(r)]),_:1},8,[`value`]),x(K(kv),{value:K(u).size,"onUpdate:value":[t[24]||=e=>K(u).size=e,me],"fallback-option":B,options:K(ie),to:`.style-panel`},{arrow:G(()=>[x(i)]),_:1},8,[`value`,`options`])]),c(`div`,k1,d(e.$t(`panels.eraser.eraseMode`)),1),x(K(kv),{value:ae.value,"onUpdate:value":[t[25]||=e=>ae.value=e,he],options:oe.value,to:`.style-panel`},{arrow:G(()=>[x(i)]),_:1},8,[`value`,`options`])])):b(``,!0)])])}}},j1={key:0,class:`page-title`},M1=[`innerHTML`],N1={__name:`SearchItem`,props:[`searchResults`,`result`,`currentIndex`],setup(e){let t=e.currentIndex===0?e.currentIndex:e.currentIndex-1,n=e.searchResults[e.currentIndex],r=e.searchResults[t],i=r===n,a=r.pageNum!==n.pageNum,o=new RegExp(e.result.searchValue,`gi`),s=e.result.content.replace(o,function(e,t){return`<span class="highlight">${e}</span>`}),l=pw(),u=t=>{U.setActiveSearchResult(w(e.searchResults[t]),t),l.setActiveSearchResult({index:t,searchResult:e.searchResults[t]})};return(t,n)=>(S(),V(q,null,[i||a?(S(),V(`div`,j1,d(e.result.pageNum),1)):b(``,!0),c(`div`,{class:`item-content`,innerHTML:K(s),onClick:n[0]||=t=>u(e.currentIndex)},null,8,M1)],64))}},P1={class:`search-number`},F1={class:`search-container`},I1={key:1,class:`no-annotations`},L1={__name:`SearchContent`,setup(e){let t=pw(),n=T(()=>t.getSearchResults);return(e,t)=>{let r=N1;return S(),V(q,null,[R(c(`div`,P1,[t[0]||=c(`div`,{id:`findResultsCount`,class:`toolbarLabel`},null,-1),c(`div`,null,d(e.$t(`panels.left.search.page`)),1)],512),[[Re,n.value.length]]),c(`div`,F1,[n.value.length?(S(!0),V(q,{key:0},z(n.value,(e,t)=>(S(),s(r,{key:e,searchResults:n.value,result:e,currentIndex:t},null,8,[`searchResults`,`result`,`currentIndex`]))),128)):(S(),V(`div`,I1,d(e.$t(`panels.left.search.noResults`)),1))])],64)}}},R1=e(r(((e,t)=>{var n=`Expected a function`,r=NaN,i=`[object Symbol]`,a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u=typeof global==`object`&&global&&global.Object===Object&&global,d=typeof self==`object`&&self&&self.Object===Object&&self,f=u||d||Function(`return this`)(),p=Object.prototype.toString,m=Math.max,g=Math.min,_=function(){return f.Date.now()};function v(e,t,r){var i,a,o,s,c,l,u=0,d=!1,f=!1,p=!0;if(typeof e!=`function`)throw TypeError(n);t=S(t)||0,y(r)&&(d=!!r.leading,f=`maxWait`in r,o=f?m(S(r.maxWait)||0,t):o,p=`trailing`in r?!!r.trailing:p);function v(t){var n=i,r=a;return i=a=void 0,u=t,s=e.apply(r,n),s}function b(e){return u=e,c=setTimeout(w,t),d?v(e):s}function x(e){var n=e-l,r=e-u,i=t-n;return f?g(i,o-r):i}function C(e){var n=e-l,r=e-u;return l===void 0||n>=t||n<0||f&&r>=o}function w(){var e=_();if(C(e))return T(e);c=setTimeout(w,x(e))}function T(e){return c=void 0,p&&i?v(e):(i=a=void 0,s)}function E(){c!==void 0&&clearTimeout(c),u=0,i=l=a=c=void 0}function D(){return c===void 0?s:T(_())}function O(){var e=_(),n=C(e);if(i=arguments,a=this,l=e,n){if(c===void 0)return b(l);if(f)return c=setTimeout(w,t),v(l)}return c===void 0&&(c=setTimeout(w,t)),s}return O.cancel=E,O.flush=D,O}function y(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function b(e){return!!e&&typeof e==`object`}function x(e){return typeof e==`symbol`||b(e)&&p.call(e)==i}function S(e){if(typeof e==`number`)return e;if(x(e))return r;if(y(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=y(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(a,``);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?r:+e}t.exports=v}))()),z1={id:`findbarInputContainer`,class:`findbar-input-container`},B1={class:`input-container`},V1=[`placeholder`],H1={class:`button-container`},U1=200,W1={__name:`SearchHeader`,setup(e){let t=J(!1),n=J(``),r=pw(),i=ye(),a=J([]),o=T(()=>r.getActiveSearchResult?r.getActiveSearchResult.index:0),s=()=>{let e=a.value,t=o.value;if(e.length>0){let n=t<=0?e.length-1:t-1;U.setActiveSearchResult(w(e[n]),n),r.setActiveSearchResult({index:n,searchResult:e[n]})}},l=()=>{let e=a.value,t=o.value;if(e.length>0){let n=t===e.length-1?0:t+1;U.setActiveSearchResult(w(e[n]),n),r.setActiveSearchResult({index:n,searchResult:e[n]})}},u=()=>{t.value=!1,n.value=``,r.setSearchResults([]),U.clearSearchResults(),a.value=[],r.setActiveSearchResult(null)},d=(0,R1.default)(async e=>{if(e&&e.length>0){t.value=!0;let n=await U.search(e);r.setSearchResults(n),a.value=n,r.setActiveSearchResult({index:0,searchResult:n[0]})}else u()},U1),f=e=>{d(e)};W(n,()=>{f(n.value)});let p=T(()=>i.getActiveElementTab(H.LEFT_PANEL)),m=T(()=>i.isElementOpen(H.LEFT_PANEL));return W([p,m],()=>{(p.value!==H.SEARCH_TAB||!m.value)&&(U.clearSearchResults(),n.value=``,r.setActiveSearchResult(null))}),(e,t)=>{let r=gN,i=KA,o=lx,d=HA;return S(),V(`div`,{id:`findbar`,class:D([`findbar`,{mobile:K(P)}])},[c(`div`,z1,[c(`div`,B1,[R(c(`input`,{type:`text`,autocomplete:`off`,placeholder:e.$t(`panels.left.search.placeholder`),"onUpdate:modelValue":t[0]||=e=>n.value=e,name:`search`},null,8,V1),[[Me,n.value]]),x(r,{id:`emptyInput`,class:D([`empty-input`,!n.value&&`hidden`]),onClick:u},null,8,[`class`])]),c(`div`,H1,[x(o,{img:`icon-previous-left`,id:`findPrevious`,class:D([`toolbarButton`,!a.value.length&&`disabled`]),title:e.$t(`panels.left.search.previous`),onClick:s},{default:G(()=>[x(i)]),_:1},8,[`class`,`title`]),x(o,{img:`icon-next-right`,id:`findNext`,class:D([`toolbarButton`,!a.value.length&&`disabled`]),title:e.$t(`panels.left.search.next`),onClick:l},{default:G(()=>[x(d)]),_:1},8,[`class`,`title`])])])],2)}}},G1={};function K1(e,t){let n=W1,r=L1;return S(),V(q,null,[x(n),x(r)],64)}var q1=B(G1,[[`render`,K1]]),J1={class:`container`},Y1={class:`signature-title`},X1={key:0,class:`signatures`},Z1=[`onClick`],Q1=[`title`],$1={class:`drop-down medium`},e0={key:1,class:`no-signatures`},t0={__name:`SignatureContainer`,setup(e){let t=ye(),n=pw(),r=T(()=>n.getSignatures),i=T(()=>n.getSelectedSignature),a=J(!1),o=e=>{e<0||U.pageNumberChanged({value:(e*1+1).toString()})},l=()=>{a.value=!1,n.setSelectedSignature(null)},u=e=>{a.value=!1,t.openElement(e)},f=(e,t)=>{a.value=!0;let r=e.signature;r.index=t,n.setSelectedSignature(r)};return(e,t)=>{let n=cV,p=eV,m=iV,g=ER,_=lx;return S(),V(`div`,J1,[c(`div`,Y1,d(e.$t(`panels.left.signatures.list`)),1),r.value.length?(S(),V(`div`,X1,[(S(!0),V(q,null,z(r.value,(r,v)=>(S(),V(`div`,{key:v,class:D([`signature`,{focus:i.value&&i.value.index===r.index}]),onClick:e=>o(r.pageIndex)},[(S(!0),V(q,null,z(r.signature.signerList,o=>(S(),V(q,null,[o.isCertTrusted&&o.isSignVerified?(S(),s(n,{key:0})):o.isCertTrusted||o.isSignVerified?(S(),s(p,{key:1})):(S(),s(m,{key:2})),c(`span`,{title:r.name},d((o.certificateList[0].subject.CN?o.certificateList[0].subject.CN:``)+`'s signature`),9,Q1),x(K(Og),{placement:`bottom-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,show:i.value?.index===v&&a.value,onClickoutside:l},{trigger:G(()=>[x(_,{class:`more`,onClick:Ae(e=>f(r,v),[`stop`])},{default:G(()=>[x(g)]),_:1},8,[`onClick`])]),default:G(()=>[c(`div`,$1,[c(`div`,{class:`drop-item`,onClick:t[0]||=e=>u(`signatureDetailsDialog`)},d(e.$t(`panels.left.signatures.details`)),1),c(`div`,{class:`drop-item`,onClick:t[1]||=e=>u(`certificateViewerDialog`)},d(e.$t(`panels.left.signatures.certification`)),1),c(`div`,{class:`drop-item`,onClick:t[2]||=e=>u(`deleteConfirmDialog`)},d(e.$t(`common.actions.delete`)),1)])]),_:2},1032,[`show`])],64))),256))],10,Z1))),128))])):(S(),V(`div`,e0,d(e.$t(`panels.left.signatures.empty`)),1))])}}},n0={key:0,class:`layer-property-popup`},r0={class:`title`},i0={class:`container`},a0=[`placeholder`],o0={class:`text-start`},s0={class:`select-container`},c0={value:1},l0={value:0},u0={class:`select-container`},d0={value:0},f0={value:1},p0={value:2},m0={class:`select-container`},h0={value:0},g0={value:1},_0={value:2},v0=`layerPropertyDialog`,y0={__name:`LayerPropertyDialog`,setup(e){let t=ye(),n=pw(),r=T(()=>t.isElementOpen(v0)),i=T(()=>n.getSelectedLayer),a=J(``),o=J(0),s=J(0),l=J(3),u=J(3),f=J(!1);W(r,(e,t)=>{e&&(a.value=i.value.name,o.value=i.value.defaultVisible,s.value=i.value.isLocked,l.value=i.value.printState,u.value=i.value.exportState),f.value=!1}),W([a,o,s,l,u],(e,t)=>{i.value&&(f.value=!((i.value.name===e[0]||e[0].trim()===``)&&i.value.defaultVisible===e[1]&&i.value.isLocked===e[2]&&i.value.printState===e[3]&&i.value.exportState===e[4]))});let p=()=>{t.closeElement(v0),n.setSelectedLayer(null)},m=async()=>{let e={node:i.value.node};a.value!==``&&a.value!==i.value.name&&(e.name=i.value.name=a.value),o.value!==i.value.defaultVisible&&(e.defaultVisible=i.value.defaultVisible=o.value),s.value!==i.value.isLocked&&(e.isLocked=i.value.isLocked=s.value),l.value!==i.value.printState&&(e.printState=i.value.printState=l.value),u.value!==i.value.exportState&&(e.exportState=i.value.exportState=u.value),o.value!==i.value.visible&&(e.visible=i.value.visible=o.value,e.ocg=i.value.ocg),U.setLayers(e),p()};return(e,t)=>{let n=YT,i=$C,g=GC;return r.value?(S(),V(`div`,n0,[x(g,{show:r.value,dialogName:v0,close:p},{header:G(()=>[c(`p`,r0,d(e.$t(`layer.properties.layerProperty`)),1)]),footer:G(()=>[c(`div`,{class:D([`rect-button blue`,{disabled:!f.value}]),onClick:m},d(e.$t(`common.actions.ok`)),3)]),default:G(()=>[c(`div`,i0,[c(`span`,null,d(e.$t(`layer.properties.name`)),1),R(c(`input`,{type:`text`,placeholder:e.$t(`layer.properties.namePlaceholder`),name:`layerName`,"onUpdate:modelValue":t[0]||=e=>a.value=e,maxlength:`50`},null,8,a0),[[Me,a.value]]),c(`span`,o0,d(e.$t(`layer.properties.defaultSettings`)),1),c(`div`,null,[c(`div`,s0,[R(c(`select`,{name:`defaultSetting`,"onUpdate:modelValue":t[1]||=e=>o.value=e},[c(`option`,c0,d(e.$t(`layer.properties.defaultShow`)),1),c(`option`,l0,d(e.$t(`layer.properties.defaultHide`)),1)],512),[[Oe,o.value]]),x(n)]),c(`div`,{class:`check-box`,onClick:t[2]||=e=>s.value=(s.value+1)%2},[c(`div`,{class:D([`check`,{active:s.value}])},[R(x(i,null,null,512),[[Re,s.value]])],2),c(`span`,null,d(e.$t(`layer.properties.lockLayer`)),1)])]),c(`span`,null,d(e.$t(`layer.properties.printProperty`)),1),c(`div`,u0,[R(c(`select`,{name:`printProperty`,"onUpdate:modelValue":t[3]||=e=>l.value=e},[c(`option`,d0,d(e.$t(`layer.properties.always`)),1),c(`option`,f0,d(e.$t(`layer.properties.never`)),1),c(`option`,p0,d(e.$t(`layer.properties.printVisible`)),1)],512),[[Oe,l.value]]),x(n)]),c(`span`,null,d(e.$t(`layer.properties.exportProperty`)),1),c(`div`,m0,[R(c(`select`,{name:`exportProperty`,"onUpdate:modelValue":t[4]||=e=>u.value=e},[c(`option`,h0,d(e.$t(`layer.properties.always`)),1),c(`option`,g0,d(e.$t(`layer.properties.never`)),1),c(`option`,_0,d(e.$t(`layer.properties.exportVisible`)),1)],512),[[Oe,u.value]]),x(n)])])]),_:1},8,[`show`])])):b(``,!0)}}},b0={class:`layer`},x0=[`title`],S0={class:`drop-down medium`},C0={__name:`Layer`,props:[`layer`,`level`],setup(e,{emit:t}){let n=t,r=pw(),i=ye(),a=T(()=>r.getSelectedLayer),o=J(!1),l=J(!1),u=J(!1),f=J(``),p=J(null),m=e=>{e.stopPropagation(),o.value=!o.value},_=()=>{l.value=!1,r.setSelectedLayer(null)},v=e=>{l.value=!1,i.openElement(e)},y=e=>{l.value=!0,r.setSelectedLayer(e)},C=e=>{if(e.isLocked){w(e);return}e.visible=(e.visible+1)%2,U.setLayers({node:e.node,visible:e.visible,ocg:e.ocg})},w=e=>{r.setSelectedLayer(e),n(`showTipDialog`,e)},O=async e=>{l.value=!1,i.setCommonLoading(!0);let t=(e=>{for(;e;){if(e.ocg)return e.ocg;e=e.children[0]}})(e);if(!t){console.error(`Unable to export.`),r.setSelectedLayer(null),i.setCommonLoading(!1);return}await U.exportLayers(t,!0),r.setSelectedLayer(null),i.setCommonLoading(!1)},k=e=>{f.value=e,u.value=!0,E(()=>{p.value.focus(),p.value.select()})},j=e=>{if(!f.value.trim()){u.value=!1;return}e.name=f.value,U.setLayers({node:e.node,name:f.value}),u.value=!1},N=e=>{u.value&&p.value&&!p.value.contains(e.target)&&(u.value=!1)};return M(()=>{window.addEventListener(`click`,N)}),g(()=>{window.removeEventListener(`click`,N)}),(t,n)=>{let r=mH,i=vI,g=mI,T=OL,E=ER,M=lx,P=fe(`Layer`,!0);return S(),V(`div`,b0,[c(`div`,{class:D([`layer-item`,{focus:a.value&&a.value.node===e.layer.node}])},[c(`div`,{class:D([`layer-item-toggle`,o.value&&`active`]),style:A({marginLeft:12*e.level+`px`})},[e.layer.children.length?(S(),s(r,{key:0,onClick:m})):b(``,!0)],6),e.layer.visible?(S(),s(i,{key:0,onClick:n[0]||=t=>C(e.layer)})):(S(),s(g,{key:1,onClick:n[1]||=t=>C(e.layer)})),c(`div`,{class:`layer-item-name`,onClick:N},[u.value?R((S(),V(`input`,{key:1,type:`text`,"onUpdate:modelValue":n[3]||=e=>f.value=e,onBlur:n[4]||=e=>u.value=!1,onKeyup:n[5]||=ke(t=>j(e.layer),[`enter`]),ref_key:`nameInputRef`,ref:p,maxlength:`50`},null,544)),[[Me,f.value]]):(S(),V(`span`,{key:0,onDblclick:n[2]||=t=>k(e.layer.name),title:e.layer.name},d(e.layer.name),41,x0))]),e.layer.isLocked?(S(),s(T,{key:2,onClick:n[6]||=t=>w(e.layer)})):b(``,!0),x(K(Og),{placement:`bottom-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,show:a.value?.name===e.layer.name&&l.value,onClickoutside:_,class:`no-margin-top`},{trigger:G(()=>[x(M,{class:`more`,onClick:n[7]||=Ae(t=>y(e.layer),[`stop`]),title:t.$t(`panels.left.layers.menu`)},{default:G(()=>[x(E)]),_:1},8,[`title`])]),default:G(()=>[c(`div`,S0,[c(`div`,{class:`drop-item`,onClick:n[8]||=e=>v(`layerPropertyDialog`)},d(t.$t(`panels.left.layers.layerProperty`)),1),c(`div`,{class:`drop-item`,onClick:n[9]||=t=>O(e.layer)},d(t.$t(`panels.left.layers.exportLayer`)),1)])]),_:1},8,[`show`])],2),o.value?(S(!0),V(q,{key:0},z(e.layer.children,t=>(S(),s(P,{layer:t,level:e.level+1,onShowTipDialog:w},null,8,[`layer`,`level`]))),256)):b(``,!0)])}}},w0={class:`container`},T0={class:`layer-title`},E0={class:`drop-down medium`},D0={key:1,class:`no-layers`},O0={key:0,class:`layer-locked-tip-popup`},k0={__name:`LayerContainer`,setup(e){let t=ye(),n=pw(),r=T(()=>n.getLayers),i=T(()=>{let e=t=>t.some(t=>{if(t.exportState===0||t.exportState!==1&&t.visible)return!0;if(Array.isArray(t.children)&&t.children.length)return e(t.children)});return e(r.value)}),a=T(()=>v(!1)),o=T(()=>v(!0)),l=T(()=>{let e=t=>t.some(t=>t.visible===t.defaultVisible?Array.isArray(t.children)&&t.children.length&&e(t.children):!0);return e(r.value)}),u=J(!1),f=J(),p=J(!1);U.addEvent(`getLayers`,e=>{n.setLayers(e),p.value=!e.some(e=>e.children.length)});let m=e=>{u.value=!1,e?t.openElement(H.LAYER_PROPERTY_DIALOG):n.setSelectedLayer(null)},g=()=>{u.value=!0},_=async e=>{if(f.value.setShow(!1),e===`show`||e===`hide`){let t=[],n=(e,r)=>{e.forEach(e=>{e.isLocked||(e.visible=r,t.push({node:e.node,visible:r,ocg:e.ocg})),Array.isArray(e.children)&&e.children.length&&n(e.children,r)})};n(r.value,+(e===`show`)),t.length&&U.setLayers(t)}if(e===`restore`){let e=[],t=n=>{n.forEach(n=>{n.visible!==n.defaultVisible&&(n.visible=n.defaultVisible,e.push({node:n.node,visible:n.defaultVisible,ocg:n.ocg})),Array.isArray(n.children)&&n.children.length&&t(n.children)})};t(r.value),e.length&&U.setLayers(e)}e===`export`&&(t.setCommonLoading(!0),await U.exportLayers(null,!0),t.setCommonLoading(!1))},v=e=>r.value.some(t=>(e?t.visible:!t.visible)?!0:Array.isArray(t.children)&&t.children.length?v(t.children,e):!1);return(e,t)=>{let n=AR,v=C0,C=YC,w=GC,T=y0;return S(),V(q,null,[c(`div`,w0,[c(`div`,T0,[y(d(e.$t(`panels.left.layers.title`))+` `,1),r.value.length?(S(),s(K(Og),{key:0,placement:`bottom-start`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,class:`no-margin-top layer-title-popover`,ref_key:`layersMenuPopover`,ref:f},{trigger:G(()=>[x(n)]),default:G(()=>[c(`div`,E0,[c(`div`,{class:D([`drop-item`,{disabled:!a.value}]),onClick:t[0]||=e=>_(`show`)},d(e.$t(`panels.left.layers.showAll`)),3),c(`div`,{class:D([`drop-item`,{disabled:!o.value}]),onClick:t[1]||=e=>_(`hide`)},d(e.$t(`panels.left.layers.hideAll`)),3),c(`div`,{class:D([`drop-item`,{disabled:!l.value}]),onClick:t[2]||=e=>_(`restore`)},d(e.$t(`panels.left.layers.restoreSettings`)),3),c(`div`,{class:D([`drop-item`,{disabled:!i.value}]),onClick:t[3]||=e=>_(`export`)},d(e.$t(`panels.left.layers.exportLayers`)),3)])]),_:1},512)):b(``,!0)]),r.value.length?(S(),V(`div`,{key:0,class:D([`layers`,{single:p.value}])},[(S(!0),V(q,null,z(r.value,e=>(S(),s(v,{layer:e,level:0,onShowTipDialog:g},null,8,[`layer`]))),256))],2)):(S(),V(`div`,D0,d(e.$t(`panels.left.layers.empty`)),1))]),u.value?(S(),V(`div`,O0,[x(w,{show:u.value,close:!1},{footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:t[4]||=e=>m()},d(e.$t(`common.actions.ok`)),1),c(`div`,{class:`rect-button blue`,onClick:t[5]||=e=>m(!0)},d(e.$t(`layer.properties.title`)),1)]),default:G(()=>[x(C),c(`p`,null,d(e.$t(`layer.lockedWarning`)),1)]),_:1},8,[`show`])])):b(``,!0),x(T)],64)}}},A0={class:`outlines`},j0={class:`outline-item-title`},M0=`-`,N0={__name:`Outlines`,props:{outline:{type:Object,required:!0}},setup(e,{emit:t}){let n=pw(),r=ye(),i=e=>{let t=e.title;return`${a(e)}${M0}${t}`},a=e=>o(e).reverse().join(M0),o=e=>{let t=[],n=e;for(;n;)t.push(n.index),n=n.parent;return t},l=T(()=>i(e.outline)),u=J(!1),f=T(()=>n.getActiveOutlineId===l.value),p=()=>{n.setActiveOutlineId(l.value),U.pageNumberChanged({value:e.outline.pageNumber}),oe&&r.closeElement(H.LEFT_PANEL)},m=e=>{e.stopPropagation(),u.value=!u.value};return(t,n)=>{let r=mH,i=fe(`Outlines`,!0);return S(),V(`div`,A0,[c(`div`,{class:D([`outline-item`,f.value&&`selected`]),onClick:p},[c(`div`,{class:D([`outline-item-toggle`,u.value&&`active`]),style:A({marginLeft:12*e.outline.level+`px`})},[e.outline.children.length?(S(),s(r,{key:0,onClick:m})):b(``,!0)],6),c(`div`,j0,d(e.outline.title),1)],2),u.value?(S(!0),V(q,{key:0},z(e.outline.children,e=>(S(),s(i,{outline:e},null,8,[`outline`]))),256)):b(``,!0)])}}},P0={class:`outline`},F0={class:`outline-title`},I0={key:0,class:`outlines-container`},L0={key:1,class:`no-outlines`},R0={__name:`OutlinesPanel`,setup(e){let t=pw(),n=T(()=>t.getOutlines);return(e,t)=>{let r=N0;return S(),V(`div`,P0,[c(`div`,F0,d(e.$t(`panels.left.outlines.title`)),1),n.value.length?(S(),V(`div`,I0,[(S(!0),V(q,null,z(n.value,e=>(S(),s(r,{outline:e},null,8,[`outline`]))),256))])):(S(),V(`div`,L0,d(e.$t(`panels.left.outlines.empty`)),1))])}}},z0={class:`page-title`},B0=[`id`,`onClick`],V0={class:`item-header`},H0={class:`info`},U0={class:`name`},W0={class:`date`},G0={key:0,class:`content`},K0=[`onClick`],q0={key:0,class:`item-reply`},J0={key:0},Y0=[`placeholder`],X0={class:`buttons`},Z0=[`onClick`],Q0={class:`replies`},$0={key:0,class:`info`},e2={class:`info-header`},t2={class:`name`},n2={class:`date`},r2={key:0,class:`content`},i2={class:`buttons`},a2=[`onClick`],o2={key:1,class:`content`},s2={class:`drop-down`},c2={key:1,class:`item-footer`},l2={class:`drop-down`},u2=[`onClick`],d2=[`onClick`],f2=[`onClick`],p2=[`onClick`],m2=[`onClick`],h2={class:`re`},g2={key:0},_2={key:1,class:`no-annotations`},v2={__name:`AnnotationContent`,setup(e){let t=pw(),n=ye(),r=T(()=>t.getAllAnnotations),i=T(()=>n.getActiveElementTab(H.LEFT_PANEL)),a=T(()=>n.isElementOpen(H.LEFT_PANEL)),o=T(()=>t.getAnnotator),l=T(()=>n.getToolMode),u=T(()=>t.getSelectedAnnotation),f=T(()=>n.isElementOpen(H.REPLY)),p=T(()=>n.isElementDisabled(H.REPLY_BUTTON)),m=J(null),g=J(null),_=J(!1),v=J(``),C=J(!1),O=J(``),k=T(()=>n.getUserAdmin),A=T(()=>n.getReadOnly),j=J(``),N=J(!1),P=J(0),ee=J(0),F=J(!1),te=e=>e?.author||``,I=e=>o.value===te(e),L=e=>e?.getStatus?.()||``,ne=e=>e?.getMarked?.()||``,re=(e,t)=>L(e)===t,ie=e=>ne(e)===`MARKED`,B=e=>e?.replies?.filter(e=>e.contents).length||0,ae=()=>!p.value,se=e=>!e||!ae()?!1:k.value?!0:!A.value&&I(e),ce=e=>!e||!ae()?!1:k.value?!0:!A.value,le=(e,t)=>[...e?.getReplies?.()||[]].filter(e=>e.isReply&&e.stateModel===t).sort((e,t)=>t.dateCreated-e.dateCreated)[0],ue=(e,t)=>t===`Marked`?!!ne(e):!!L(e),de=(e,t)=>{if(!e||!ae())return!1;if(k.value)return!0;if(A.value)return!1;let n=le(e,t);return n?I(n):!0};W([i,a],e=>{e[0]===`ANNOTATION`&&e[1]&&pe()});let fe=e=>{U.jumpToAnnotation(e);let t=U.getPermission(`allowsDocumentChanges`),r=U.getPermission(`allowsCommenting`);!t||!r||(m.value?.name!==e.name&&(m.value?.handleOutside(),l.value!==`editor`&&setTimeout(()=>e.selectAnnotation(),100),v.value=``,m.value=e,_.value=!1),oe&&n.closeElement(H.LEFT_PANEL))},pe=()=>{_.value=!1,v.value=``},me=async(e,t)=>{if(e=w(e),!de(e,`Review`))return;let n=le(e,`Review`);n?n.setState(t):await U.getAnnotationManager().createAnnotationReply(e,{state:t}),j.value=``},he=e=>{de(e,`Review`)&&(j.value?j.value=``:j.value=e.name)},ge=(e,t)=>{if(!se(t))return;if(N.value){Ce();return}let n=e.target;for(;n.parentElement&&!n.classList.contains(`more`);)n=n.parentElement;if(n.classList.contains(`more`)){let e=n.getBoundingClientRect();P.value=e.left,ee.value=e.bottom,N.value=!0,g.value=t}},_e=async e=>{if(e=w(e),!de(e,`Marked`))return;let t=e.getMarked(),n=le(e,`Marked`);if(n){let e=t===`MARKED`?`UNMARKED`:`MARKED`;n.setState(e)}else await U.getAnnotationManager().createAnnotationReply(e,{state:`MARKED`});F.value=!F.value},ve=async e=>{v.value!==``&&(e=w(e),ce(e)&&(await U.getAnnotationManager().createAnnotationReply(e,{author:o.value,title:o.value,contents:v.value,date:new Date}),v.value=``))},be=e=>{se(e)&&(g.value=e,_.value=!1,N.value=!1,C.value&&O.value!==e.contents?(e.setContents(O.value),C.value=!1):(C.value=!0,O.value=e.contents,E(()=>{let e=document.querySelector(`.replyEditInput`);e.focus(),e.setSelectionRange(e.value.length,e.value.length)})))},xe=e=>{se(e)&&(U.getAnnotationManager().deleteAnnotation(e),Ce())},Se=e=>{document.querySelector(`.button.more.active`)?.contains(e.target)||Ce()},Ce=()=>{N.value=!1,C.value||(g.value=null)},we=()=>{C.value=!1,O.value=``,g.value=null},Te=e=>{document.querySelector(`.button.state.active`)?.contains(e.target)||(j.value=``)},Ee=(e,t)=>{ce(e)&&(_.value=!0,m.value?.name!==e.name&&(m.value=e,v.value=``),!t&&E(()=>{document.querySelector(`.annotReplyInput`)?.focus()}))};return W(()=>f.value,e=>{e&&(m.value=u.value,_.value=!0)}),W(()=>u.value,e=>{(!e||m.value&&u.value.name!==m.value.name)&&(n.closeElement(H.REPLY),Ce(),m.value=null,_.value=!1),m.value=u.value,_.value=!1}),M(()=>{u.value&&f.value&&(m.value=u.value,_.value=!0)}),(e,t)=>{let n=bF,i=gV,a=OV,f=vH,p=nR,w=BL,T=JL,E=RA,k=QF,A=QL,M=Nb,te=XA,I=Lb,L=WL,ne=fN,ae=BV,oe=bj,le=HR,H=wV,U=Qj,W=oR,ye=uR,Ce=Mz,J=Iz,Y=SR,De=lx,Oe=mA,ke=nB,je=wj,Ne=uM,Pe=RR,Fe=uB,Ie=mB;return S(),V(`div`,{class:D([`annotation-view`,{pb:![`view`,`sign`,`document`].includes(l.value)}])},[K(r).annotationsCount>0?(S(!0),V(q,{key:0},z(K(r).annotations,(r,l)=>(S(),V(`div`,null,[r.pageAnnotationsCount>0?(S(),V(q,{key:0},[c(`div`,z0,[c(`span`,null,d(e.$t(`panels.left.search.pageIndicator`,{page:l*1+1})),1),c(`span`,null,d(r.pageAnnotationsCount),1)]),(S(!0),V(q,null,z(r.annotations,(r,l)=>(S(),V(q,null,[![`link`,`reply`].includes(r.type)&&!r.isDelete&&!r.isHidden?(S(),V(`div`,{class:D([`annotation-item`,{selected:m.value&&m.value.name===r.name,"selected-annotation":u.value&&u.value.name===r.name}]),id:r.name?`annotationList-${r.name}`:null,onClick:e=>fe(r),key:l,onMousedown:t[8]||=Ae(()=>{},[`stop`]),onTouchstart:t[9]||=Ae(()=>{},[`stop`])},[c(`div`,V0,[r.type===`highlight`?(S(),s(n,{key:0})):r.type===`squiggly`?(S(),s(i,{key:1})):r.type===`strikeout`?(S(),s(a,{key:2})):r.type===`underline`?(S(),s(f,{key:3})):r.type===`polyline`&&r.measure?(S(),s(p,{key:4})):r.type===`ink`&&r.measure&&r.arcPoints?(S(),s(w,{key:5})):r.type===`ink`&&r.measure?(S(),s(T,{key:6})):r.type===`arc`?(S(),s(E,{key:7})):r.type===`ink`?(S(),s(k,{key:8})):r.type===`line`&&r.measure?(S(),s(A,{key:9})):r.type===`line`&&((r.tail===`none`||r.tail===`unknown`)&&(r.head===`none`||r.head===`unknown`)||!r.tail&&!r.head)?(S(),s(M,{key:10})):r.type===`line`&&(r.tail===`openarrow`||r.head===`openarrow`||r.arrow)?(S(),s(te,{key:11})):r.type===`square`||r.type===`rectangle`&&!r.measure?(S(),s(I,{key:12})):r.type===`circle`&&r.measure?(S(),s(L,{key:13})):r.type===`circle`?(S(),s(ne,{key:14})):r.type===`freetext`&&r.annotation.intent===`FreeText`?(S(),s(ae,{key:15})):r.type===`freetext`&&r.annotation.intent===`FreeTextCallout`?(S(),s(oe,{key:16})):r.type===`text`?(S(),s(le,{key:17})):r.type===`image`||r.type===`stamp`?(S(),s(H,{key:18})):r.type===`polygon`&&r.borderStyle===`cloudy`?(S(),s(U,{key:19})):r.type===`polygon`&&r.measure?(S(),s(W,{key:20})):r.type===`rectangle`&&r.measure?(S(),s(ye,{key:21})):r.type===`polygon`?(S(),s(Ce,{key:22})):r.type===`polyline`?(S(),s(J,{key:23})):b(``,!0),c(`div`,H0,[c(`p`,U0,d(r.author||r.title||`Guest`),1),c(`p`,W0,d(K(Sx.default)(r.dateCreated).format(`DD/MM/YYYY HH:mm:ss`)),1),r.contents?(S(),V(`div`,G0,d(r.contents),1)):b(``,!0)]),de(r,`Marked`)?(S(),s(K(Og),{key:24,trigger:`hover`,placement:`bottom`,to:`#outerContainer`,class:`mark-popover`},{trigger:G(()=>[(S(),V(`div`,{class:D([`mark-box`,{marked:ie(r)}]),onClick:Ae(e=>_e(r),[`stop`]),key:F.value},null,10,K0))]),default:G(()=>[c(`span`,null,d(ie(r)?e.$t(`panels.left.reply.marked`):e.$t(`panels.left.reply.unmarked`)),1)]),_:2},1024)):ue(r,`Marked`)?(S(),V(`div`,{class:D([`mark-box`,{marked:ie(r)}]),key:F.value},null,2)):b(``,!0)]),m.value&&m.value.name===r.name&&(_.value&&ce(r)||r.replies?.length)?(S(),V(`div`,q0,[_.value&&ce(r)?(S(),V(`div`,J0,[R(c(`textarea`,{onClick:t[0]||=Ae(()=>{},[`stop`]),onMousedown:t[1]||=Ae(()=>{},[`stop`]),placeholder:e.$t(`panels.left.reply.replyPlaceholder`),"onUpdate:modelValue":t[2]||=e=>v.value=e,class:`annotReplyInput`},null,40,Y0),[[Me,v.value]]),c(`div`,X0,[c(`span`,{onClick:Ae(pe,[`stop`])},d(e.$t(`common.actions.cancel`)),1),c(`button`,{class:D({active:v.value,disabled:!v.value}),onClick:Ae(e=>ve(r),[`stop`])},d(e.$t(`common.actions.reply`)),11,Z0)])])):b(``,!0),c(`div`,Q0,[(S(!0),V(q,null,z(r.replies,(n,r)=>(S(),V(q,{key:r},[n.contents?(S(),V(`div`,$0,[c(`div`,e2,[c(`div`,null,[c(`p`,t2,d(n.author||n.title||o.value),1),c(`p`,n2,d(K(Sx.default)(n.dateCreated).format(`DD/MM/YYYY HH:mm:ss`)),1)]),se(n)?(S(),s(De,{key:0,class:D([`more`,{active:N.value&&n.name===g.value?.name}]),onClick:Ae(e=>ge(e,n),[`stop`])},{default:G(()=>[x(Y)]),_:1},8,[`class`,`onClick`])):b(``,!0)]),C.value&&n.name===g.value?.name&&se(n)?(S(),V(`div`,r2,[R(c(`textarea`,{"onUpdate:modelValue":t[3]||=e=>O.value=e,class:`replyEditInput`},null,512),[[Me,O.value]]),c(`div`,i2,[c(`span`,{onClick:Ae(we,[`stop`])},d(e.$t(`common.actions.cancel`)),1),c(`button`,{class:D([O.value&&O.value!==n.contents?`active`:`disabled`]),onClick:Ae(e=>be(n),[`stop`])},d(e.$t(`common.actions.confirm`)),11,a2)])])):(S(),V(`div`,o2,d(n.contents),1))])):b(``,!0)],64))),128))]),x(K(Og),{placement:`bottom-start`,trigger:`manual`,"show-arrow":!1,to:`#outerContainer`,raw:!0,"z-index":96,class:`reply-popover`,show:N.value&&se(g.value),x:P.value,y:ee.value,onClickoutside:Se},{default:G(()=>[c(`div`,s2,[c(`div`,{class:`drop-item`,onMousedown:t[4]||=Ae(()=>{},[`stop`]),onClick:t[5]||=Ae(e=>be(g.value),[`stop`])},d(e.$t(`common.actions.edit`)),33),c(`div`,{class:`drop-item`,onMousedown:t[6]||=Ae(()=>{},[`stop`]),onClick:t[7]||=Ae(e=>xe(g.value),[`stop`])},d(e.$t(`common.actions.delete`)),33)])]),_:1},8,[`show`,`x`,`y`])])):b(``,!0),ue(r,`Review`)||de(r,`Review`)||ce(r)?(S(),V(`div`,c2,[de(r,`Review`)?(S(),s(K(Og),{key:0,placement:`bottom`,trigger:`click`,"show-arrow":!1,to:`#outerContainer`,raw:!0,"z-index":96,class:`state-popover`,show:j.value===r.name,onClickoutside:Te},{trigger:G(()=>[x(De,{class:D({active:j.value===r.name}),onClick:Ae(e=>he(r),[`stop`])},{default:G(()=>[re(r,`ACCEPTED`)?(S(),s(Oe,{key:0})):re(r,`REJECTED`)?(S(),s(ke,{key:1})):re(r,`CANCELLED`)?(S(),s(je,{key:2})):re(r,`COMPLETED`)?(S(),s(Ne,{key:3})):(S(),s(Pe,{key:4}))]),_:2},1032,[`class`,`onClick`])]),default:G(()=>[c(`div`,l2,[c(`div`,{class:`drop-item`,onClick:Ae(e=>me(r,`ACCEPTED`),[`stop`])},[x(Oe),y(d(e.$t(`panels.left.reply.accepted`)),1)],8,u2),c(`div`,{class:`drop-item`,onClick:Ae(e=>me(r,`REJECTED`),[`stop`])},[x(ke),y(d(e.$t(`panels.left.reply.rejected`)),1)],8,d2),c(`div`,{class:`drop-item`,onClick:Ae(e=>me(r,`CANCELLED`),[`stop`])},[x(je),y(d(e.$t(`panels.left.reply.cancelled`)),1)],8,f2),c(`div`,{class:`drop-item`,onClick:Ae(e=>me(r,`COMPLETED`),[`stop`])},[x(Ne),y(d(e.$t(`panels.left.reply.completed`)),1)],8,p2),c(`div`,{class:`drop-item`,onClick:Ae(e=>me(r,`NONE`),[`stop`])},[x(Pe),y(d(e.$t(`panels.left.reply.none`)),1)],8,m2)])]),_:2},1032,[`show`])):ue(r,`Review`)?(S(),s(De,{key:1},{default:G(()=>[re(r,`ACCEPTED`)?(S(),s(Oe,{key:0})):re(r,`REJECTED`)?(S(),s(ke,{key:1})):re(r,`CANCELLED`)?(S(),s(je,{key:2})):re(r,`COMPLETED`)?(S(),s(Ne,{key:3})):(S(),s(Pe,{key:4}))]),_:2},1024)):b(``,!0),c(`div`,h2,[x(Fe),B(r)?(S(),V(`span`,g2,d(B(r)),1)):b(``,!0),ce(r)?(S(),s(Ie,{key:1,class:`return`,onClick:Ae(e=>Ee(r),[`stop`])},null,8,[`onClick`])):b(``,!0)])])):b(``,!0)],42,B0)):b(``,!0)],64))),256))],64)):b(``,!0)]))),256)):(S(),V(`div`,_2,d(e.$t(`panels.left.annotations.empty`)),1))],2)}}},y2={class:`annotation-header`},b2={class:`annotation-title`},x2={class:`annotation-header-buttons`},S2={__name:`AnnotationHeader`,setup(e){let t=pw(),n=ye(),r=T(()=>n.isAnnotationExport),i=T(()=>n.isAnnotationImport),{removeAllAnnotations:a,importAnnotations:o,exportXfdf:l}=U,u=()=>{hw(_e?``:`.xfdf`).then(async e=>{if(e.name.split(`.`).pop().toLowerCase()!==`xfdf`)return;await o(e);let n=U.getAnnotationsList();t.initAnnotations(n)})},f=T(()=>t.getTotalPages),p=T(()=>t.getAllAnnotations);T(()=>t.getOptionUrl);let m=T(()=>t.info);m.value&&m.value.token&&atob(m.value.token).replace(`.pdf`,`.xfdf`);let g=async()=>{try{n.setDownloading(!0);let e=await l(!0);n.setDownloading(!1),e||n.setDownloadError(`Downloaded`)}catch(e){console.log(e),n.setDownloading(!1),n.setDownloadError(`Downloaded`)}};return(e,t)=>{let n=WF,a=lx,o=ON;return S(),V(`div`,y2,[c(`h2`,b2,d(e.$t(`panels.left.annotations.title`)),1),c(`div`,x2,[r.value?(S(),s(a,{key:0,className:`button-icon`,img:`icon-import`,onClick:g,title:e.$t(`panels.left.annotations.export`),disabled:!p.value||p.value.annotationsCount===0},{default:G(()=>[x(n)]),_:1},8,[`title`,`disabled`])):b(``,!0),i.value?(S(),s(a,{key:1,className:`button-icon`,img:`icon-export`,onClick:u,title:e.$t(`panels.left.annotations.import`),disabled:f.value<=0},{default:G(()=>[x(o)]),_:1},8,[`title`,`disabled`])):b(``,!0)])])}}},C2={class:`left-panel`,id:`leftPanel`},w2={class:`sidebar-content`},T2={__name:`LeftPanel`,setup(e){let t=ye(),n=pw(),r=T(()=>t.getActiveElementTab(H.LEFT_PANEL)),i=T(()=>t.isElementOpen(H.LEFT_PANEL)),a=T(()=>n.getActiveTool);return W(i,e=>{e&&a.value===L.CROP_PAGE&&n.setToolState(``)}),(e,t)=>{let n=S2,i=v2,a=R0,o=k0,s=t0,l=q1;return S(),V(`div`,C2,[c(`div`,w2,[c(`div`,{class:D([`thumbnail-container`,{hidden:r.value!==K(H).THUMBS}])},[c(`h2`,null,d(e.$t(`panels.left.thumbnails`)),1),t[0]||=c(`div`,{class:`thumbnail-view`},null,-1)],2),r.value===K(H).ANNOTATION_TAB?(S(),V(`div`,{key:0,class:D([`annotation-container`,{hidden:r.value!==K(H).ANNOTATION_TAB}])},[x(n),x(i)],2)):b(``,!0),R(x(a,null,null,512),[[Re,r.value===K(H).OUTLINE]]),c(`div`,{class:D([`layer-container`,{hidden:r.value!==K(H).LAYER}])},[x(o)],2),c(`div`,{class:D([`signature-container`,{hidden:r.value!==K(H).SIGNATURE_TAB}])},[x(s)],2),c(`div`,{class:D([`findbar-container`,{hidden:r.value!==K(H).SEARCH_TAB}])},[x(l)],2)])])}}},E2={__name:`RightPanelTabs`,props:[`activePanelTab`,`selectedElement`],setup(e){let t=ye(),n=(e,n)=>{t.setActiveElementTab(H.RIGHT_PANEL,e)};return(t,r)=>{let i=lx;return S(),V(q,null,[x(i,{className:e.activePanelTab===K(H).GENERAL?`active`:``,"data-element":K(H).GENERAL,isActive:e.activePanelTab===K(H).GENERAL,onClick:r[0]||=e=>n(K(H).GENERAL,`general`)},{default:G(()=>[c(`span`,null,d(t.$t(`panels.right.general.title`)),1)]),_:1},8,[`className`,`data-element`,`isActive`]),r[4]||=c(`div`,{class:`divider`},null,-1),e.selectedElement===K(L).SIGNATURE_FIELDS?b(``,!0):(S(),s(i,{key:0,className:e.activePanelTab===K(H).APPEARANCE?`active`:``,"data-element":K(H).APPEARANCE,isActive:e.activePanelTab===K(H).APPEARANCE,onClick:r[1]||=e=>n(K(H).APPEARANCE,`appearance`)},{default:G(()=>[c(`span`,null,d(t.$t(`panels.right.appearance.title`)),1)]),_:1},8,[`className`,`data-element`,`isActive`])),e.selectedElement===K(L).SIGNATURE_FIELDS?b(``,!0):(S(),V(q,{key:1},[r[3]||=c(`div`,{class:`divider`},null,-1),x(i,{className:e.activePanelTab===K(H).PREFERENCE?`active`:``,"data-element":K(H).PREFERENCE,isActive:e.activePanelTab===K(H).PREFERENCE,onClick:r[2]||=e=>n(K(H).PREFERENCE,`preferences`)},{default:G(()=>[c(`span`,null,d(t.$t(`panels.right.preferences.title`)),1)]),_:1},8,[`className`,`data-element`,`isActive`])],64))],64)}}},D2={class:`sidebar-title`},O2={class:`sidebar-tabs-header`},k2={class:`sidebar-content`},A2={class:`content-block`},j2={key:0,class:`error-text`},M2={key:0,class:`content-block`},N2={class:`content-block`},P2={value:`0`},F2={value:`1`},I2={class:`content-block`},L2={class:`indicator-content`},R2={class:`content-block`},z2={class:`wider`},B2={class:`content-block`},V2={class:`wider`},H2={class:`content-block form-family`},U2={class:`content-block`},W2={class:`text-style`},G2={value:`normal`},K2={value:`bold`},q2={value:`oblique`},J2={value:`boldOblique`},Y2={class:`content-block`},X2={value:`left`},Z2={value:`center`},Q2={value:`right`},$2={class:`content-block`},e4={class:`content-block`},t4={class:`content-block`},n4={value:`0`},r4={value:`1`},i4={value:`2`},a4={value:`3`},o4={value:`4`},s4={value:`5`},c4={class:`content-block`},l4={class:`content-block`},u4={value:`1`},d4={value:`6`},f4={class:`content-block`},p4=[`placeholder`],m4={class:`content-block`},h4={class:`content-block`},g4={class:`button-content`},_4={class:`content-block`},v4={class:`button-content item-list`},y4=[`onClick`],b4={class:`buttons`},x4={__name:`RightPanel`,setup(e){let{t}=It(),n=ye(),r=pw(),i=[`rgb(251, 189, 191)`,`rgb(255, 255, 255)`,`rgb(253, 244, 178)`,`rgb(221, 233, 255)`],a=[`rgb(255, 0, 0)`,`rgb(0, 0, 0)`,`rgb(45, 119, 250)`],o={fieldName:``,title:``,isHidden:0,fillColor:``,color:``,fontName:`Helvetica`,fontStyle:`normal`,fontSize:`12`,textAlignment:`left`,isMultiLine:!1,contents:``,checkStyle:`0`,isChecked:!1,required:0,indicator:!1,indicatorText:``,actionType:0,destPage:``,url:``,projectList:[],items:[]},s=T(()=>n.getCustomFonts);W(()=>s.value,(e,t)=>{u.value=l(e)},{deep:!0});let l=e=>{if(e.length)return e.map(e=>({label:e.fontFamily,value:e.fontName}))},u=J([]);u.value=l(s.value);let f=J({...o}),p=``,m=``,g=!1,_=T(()=>{if(E.value===`form`){if(k.value===L.TEXTFIELD)return t(`toolbar.formTools.textField`);if(k.value===L.CHECKBOX)return t(`toolbar.formTools.checkbox`);if(k.value===L.RADIOBUTTON)return t(`toolbar.formTools.radioButton`);if(k.value===L.PUSHBUTTON)return t(`toolbar.formTools.button`);if(k.value===L.LISTBOX)return t(`toolbar.formTools.listBox`);if(k.value===L.COMBOBOX)return t(`toolbar.formTools.comboButton`)}else if(E.value===`sign`&&k.value===L.SIGNATURE_FIELDS)return t(`toolbar.formTools.signataireField`)}),y=T(()=>n.getActiveElementTab(H.RIGHT_PANEL)),C=T(()=>n.isElementOpen(H.RIGHT_PANEL)),w=T(()=>r.getTotalPages),E=T(()=>n.getToolMode),O=J(!1),k=J(null),A=J(null),j=J(null),M=J([]),N=J(!0),ee=J(null);r.setProperty(`indicatorText`,t(`panels.right.general.fill`));let F=e=>{e&&r.setPropertyPanel(e)},te=e=>{if(e===`fieldName`&&F({fieldName:f.value.fieldName}),e===`title`&&F({title:f.value.title}),e===`destPage`){let e=f.value.destPage;e!==``&&e!=p&&(F({actionType:1,destPage:e.toString()}),p=e)}else if(e===`url`){let e=f.value.url;e===``?f.value.url=m:(!e.startsWith(`http://`)&&!e.startsWith(`https://`)&&(e=`https://`+e),F({url:e,actionType:6}),m=e)}};W(()=>C.value,e=>{e&&(n.closeElement(H.PAGE_MODE_PANEL),f.value.indicatorText&&(ee.value.focus(),ee.value.blur()))}),W(()=>f.value.fontName,e=>{e&&ce()}),W(()=>f.value.destPage,(e,t)=>{e!==``&&(e>w.value||e<=0||!/^\d+$/.test(e))&&(f.value.destPage=t)});let I=e=>{if(g=!0,A.value=``,j.value=null,f.value.required=0,f.value.indicator=!1,f.value.indicatorText=``,e)k.value=e.type.replace(`-`,``),(k.value===L.LISTBOX||k.value===L.COMBOBOX||k.value===L.PUSHBUTTON)&&n.setActiveElementTab(H.RIGHT_PANEL,H.PREFERENCE),k.value!==L.CHECKBOX&&(N.value=!0);else{k.value=null,Se(),g=!1;return}for(let t in e)if(t in o){if(t===`fontStyle`||t===`fontWeight`){let t=e.fontWeight||`normal`,n=e.fontStyle||`normal`;t===`bold`&&n===`oblique`?f.value.fontStyle=`boldOblique`:t===`bold`?f.value.fontStyle=`bold`:n===`oblique`?f.value.fontStyle=`oblique`:f.value.fontStyle=`normal`;continue}t===`items`?M.value=Array.from(e[t]):f.value[t]=e[t]}g=!1},ne=e=>{e===`editor`?n.toggleElement(H.CONTENT_EDITOR_PANEL):n.toggleElement(H.RIGHT_PANEL)},re=(e,t)=>{f.value[e]=t,F({[e]:t})},ie=()=>{f.value.isChecked=!f.value.isChecked,F({isChecked:+f.value.isChecked})},B=()=>{f.value.required=!f.value.required,F({required:+f.value.required})},ae=()=>{if(f.value.indicator=!f.value.indicator,F({indicator:f.value.indicator}),f.value.indicator&&!f.value.indicatorText){let e=k.value===L.SIGNATURE_FIELDS?t(`panels.right.general.signHere`):t(`panels.right.general.fill`);f.value.indicatorText=e,F({indicatorText:e})}},oe=()=>{F({contents:f.value.contents===``?` `:f.value.contents})},se=()=>{g||(F({isHidden:f.value.isHidden}),f.value.indicator&&(f.value.indicator=!1,F({indicator:!1})))},ce=()=>{g||F({fontName:f.value.fontName})},le=()=>{g||F({fontWeight:/bold/i.test(f.value.fontStyle)?`bold`:`normal`,fontStyle:/(oblique|italic)/i.test(f.value.fontStyle)?`oblique`:`normal`})},ue=()=>{g||F({fontSize:f.value.fontSize})},de=()=>{g||F({textAlignment:f.value.textAlignment})},fe=()=>{f.value.isMultiLine=!f.value.isMultiLine,F({isMultiLine:f.value.isMultiLine})},pe=()=>{g||F({checkStyle:parseInt(f.value.checkStyle)})},me=()=>{if(g)return;let e=f.value.actionType;(e===`1`&&f.value.destPage!==``||e===`6`&&f.value.url!==``)&&F({actionType:e})},he=()=>{g||F({indicatorText:f.value.indicatorText})};U.addEvent(`judgeRadioBtnIsOne`,e=>{O.value=e}),U.addEvent(`judgeCheckboxIsOne`,e=>{N.value=e});let ge=(e,t)=>{j.value=e,A.value=t},_e=()=>{for(var e=0;e<M.value.length;e++)if(M.value[e]===A.value)return;if(A.value)M.value.push({Value:A.value,String:A.value});else return;j.value=null,F({item:A.value}),A.value=``},ve=()=>{for(var e=0;e<M.value.length;e++)M.value[e]===M.value[j.value]&&(M.value.splice(e,1),F({deleteItemIndex:e,selected:0}),A.value=``,j.value=null)},be=()=>{if(j.value){for(var e=0;e<M.value.length;e++)if(M.value[e]===M.value[j.value]){M.value.splice(e-1,2,M.value[e],M.value[e-1]),F({moveOption:{fromIndex:e,toIndex:e-1}}),--j.value;break}}},xe=()=>{if(j.value!==M.value.length-1){for(var e=0;e<M.value.length;e++)if(M.value[e]===M.value[j.value]&&e<M.value.length-1){M.value.splice(e,2,M.value[e+1],M.value[e]),F({moveOption:{fromIndex:e,toIndex:e+1}}),j.value+=1;break}}},Se=()=>{n.closeElement(H.RIGHT_PANEL)};return U.addEvent(`propertyChange`,I),U.addEvent(`toggleAttrbutePanel`,ne),U.addEvent(`annotationDeselected`,()=>{Se()}),(e,t)=>{let n=E2,r=$C,o=$b,s=Oz,l=mR,p=AH,m=XM;return S(),V(`div`,{class:D([`right-panel`,{mobile:K(P)}])},[c(`div`,D2,d(_.value),1),c(`div`,O2,[x(n,{activePanelTab:y.value,selectedElement:k.value},null,8,[`activePanelTab`,`selectedElement`])]),c(`div`,k2,[R(c(`div`,{class:`radio-top-tip`},d(e.$t(`panels.right.preferences.radioTips`)[0]),513),[[Re,O.value&&k.value===K(L).RADIOBUTTON]]),c(`div`,{class:D([`general-container`,{hidden:y.value!==`GENERAL`}])},[c(`div`,A2,[c(`h2`,null,d(e.$t(`panels.right.general.name`)),1),R(c(`input`,{type:`text`,"onUpdate:modelValue":t[0]||=e=>f.value.fieldName=e,onBlur:t[1]||=e=>te(`fieldName`),name:`form`},null,544),[[Me,f.value.fieldName]]),N.value?b(``,!0):(S(),V(`p`,j2,d(e.$t(`panels.right.general.nameConflict`)),1))]),k.value===K(L).PUSHBUTTON&&E.value===`form`?(S(),V(`div`,M2,[c(`h2`,null,d(e.$t(`panels.right.general.buttonText`)),1),R(c(`input`,{type:`text`,"onUpdate:modelValue":t[2]||=e=>f.value.title=e,onBlur:t[3]||=e=>te(`title`),name:`form`},null,544),[[Me,f.value.title]])])):b(``,!0),c(`div`,N2,[c(`h2`,null,d(e.$t(`panels.right.general.formField`)),1),R(c(`select`,{name:`field`,id:`field`,"onUpdate:modelValue":t[4]||=e=>f.value.isHidden=e,onChange:se},[c(`option`,P2,d(e.$t(`panels.right.general.visibility.visible`)),1),c(`option`,F2,d(e.$t(`panels.right.general.visibility.hidden`)),1)],544),[[Oe,f.value.isHidden,void 0,{number:!0}]])]),c(`div`,I2,[c(`h2`,null,d(e.$t(`panels.right.general.properties`)),1),c(`div`,{class:`check-box`,onClick:B},[c(`div`,{class:D([`check`,{active:f.value.required}])},[R(x(r,null,null,512),[[Re,f.value.required]])],2),c(`span`,null,d(e.$t(`panels.right.general.required`)),1)]),k.value===K(L).PUSHBUTTON?b(``,!0):(S(),V(`div`,{key:0,class:D([`indicator-box`,f.value.isHidden===`1`&&`disabled`])},[c(`div`,{class:D([`check`,{active:f.value.indicator}]),onClick:ae},[R(x(r,null,null,512),[[Re,f.value.indicator]])],2),c(`div`,L2,[c(`div`,{class:`label`,onClick:ae},d(e.$t(`panels.right.general.indicator`)),1),R(c(`div`,null,[R(c(`input`,{ref_key:`inputRef`,ref:ee,type:`text`,"onUpdate:modelValue":t[5]||=e=>f.value.indicatorText=e,onBlur:he},null,544),[[Me,f.value.indicatorText]])],512),[[Re,f.value.indicator]])])],2))])],2),c(`div`,{class:D([`appearance-container`,{hidden:y.value!==`APPEARANCE`}])},[c(`div`,R2,[c(`h2`,z2,d(e.$t(`panels.right.appearance.backgroundColor`)),1),x(V$,{colors:i,propertyColor:f.value.fillColor,to:`.right-panel`,onSetActiveColor:t[6]||=e=>re(`fillColor`,e)},null,8,[`propertyColor`])]),(k.value===K(L).TEXTFIELD||k.value===K(L).PUSHBUTTON||k.value===K(L).COMBOBOX||k.value===K(L).LISTBOX)&&E.value===`form`?(S(),V(q,{key:0},[c(`div`,B2,[c(`h2`,V2,d(e.$t(`common.uiElements.font`)),1),x(V$,{colors:a,propertyColor:f.value.color,to:`.right-panel`,onSetActiveColor:t[7]||=e=>re(`color`,e)},null,8,[`propertyColor`])]),c(`div`,H2,[x(K(kv),{"consistent-menu-width":!1,value:f.value.fontName,"onUpdate:value":t[8]||=e=>f.value.fontName=e,options:u.value,to:`.form-family`,class:`text-family`},{arrow:G(()=>[x(o)]),_:1},8,[`value`,`options`])]),c(`div`,U2,[c(`div`,W2,[R(c(`select`,{"onUpdate:modelValue":t[9]||=e=>f.value.fontStyle=e,class:`font-family-select`,onChange:le},[c(`option`,G2,d(e.$t(`common.fontStyles.regular`)),1),c(`option`,K2,d(e.$t(`common.fontStyles.bold`)),1),c(`option`,q2,d(e.$t(`common.fontStyles.oblique`)),1),c(`option`,J2,d(e.$t(`common.fontStyles.boldOblique`)),1)],544),[[Oe,f.value.fontStyle]]),R(c(`select`,{"onUpdate:modelValue":t[10]||=e=>f.value.fontSize=e,class:`font-size-select`,onChange:ue},[...t[20]||=[v(`<option value="12">12</option><option value="14">14</option><option value="16">16</option><option value="20">20</option><option value="24">24</option><option value="28">28</option>`,6)]],544),[[Oe,f.value.fontSize]])])])],64)):b(``,!0)],2),c(`div`,{class:D([`preferences-container`,{hidden:y.value!==`PREFERENCE`}])},[k.value===K(L).TEXTFIELD&&E.value===`form`?(S(),V(q,{key:0},[c(`div`,Y2,[c(`h2`,null,d(e.$t(`panels.right.preferences.alignment.title`)),1),R(c(`select`,{name:`alignment`,id:`alignment`,"onUpdate:modelValue":t[11]||=e=>f.value.textAlignment=e,onChange:de},[c(`option`,X2,d(e.$t(`panels.right.preferences.alignment.left`)),1),c(`option`,Z2,d(e.$t(`panels.right.preferences.alignment.center`)),1),c(`option`,Q2,d(e.$t(`panels.right.preferences.alignment.right`)),1)],544),[[Oe,f.value.textAlignment]])]),c(`div`,$2,[c(`h2`,null,d(e.$t(`panels.right.preferences.defaultValue`)),1),R(c(`textarea`,{name:`default-value`,id:`default-value`,rows:`3`,"onUpdate:modelValue":t[12]||=e=>f.value.contents=e,onChange:oe},null,544),[[Me,f.value.contents]])]),c(`div`,e4,[c(`div`,{class:`check-box`,onClick:fe},[c(`div`,{class:D([`check`,{active:f.value.isMultiLine}])},[R(x(r,null,null,512),[[Re,f.value.isMultiLine]])],2),c(`span`,null,d(e.$t(`panels.right.preferences.multiLine`)),1)])])],64)):b(``,!0),(k.value===K(L).CHECKBOX||k.value===K(L).RADIOBUTTON)&&E.value===`form`?(S(),V(q,{key:1},[c(`div`,t4,[c(`h2`,null,d(e.$t(`panels.right.preferences.buttonStyle`)),1),R(c(`select`,{"onUpdate:modelValue":t[13]||=e=>f.value.checkStyle=e,onChange:pe},[c(`option`,n4,d(e.$t(`panels.right.preferences.styles.check`)),1),c(`option`,r4,d(e.$t(`panels.right.preferences.styles.circle`)),1),c(`option`,i4,d(e.$t(`panels.right.preferences.styles.cross`)),1),c(`option`,a4,d(e.$t(`panels.right.preferences.styles.diamond`)),1),c(`option`,o4,d(e.$t(`panels.right.preferences.styles.square`)),1),c(`option`,s4,d(e.$t(`panels.right.preferences.styles.star`)),1)],544),[[Oe,f.value.checkStyle]])]),c(`div`,c4,[c(`div`,{class:`check-box`,onClick:ie},[c(`div`,{class:D([`check`,{active:f.value.isChecked}])},[R(x(r,null,null,512),[[Re,f.value.isChecked]])],2),c(`span`,null,d(e.$t(`panels.right.preferences.defaultChecked`)),1)])])],64)):b(``,!0),k.value===K(L).PUSHBUTTON&&E.value===`form`?(S(),V(q,{key:2},[c(`div`,l4,[c(`h2`,null,d(e.$t(`panels.right.preferences.selectAction.title`)),1),R(c(`select`,{"onUpdate:modelValue":t[14]||=e=>f.value.actionType=e,onChange:me},[R(c(`option`,{value:`0`},d(e.$t(`panels.right.preferences.selectAction.none`)),513),[[Re,f.value.actionType==0]]),c(`option`,u4,d(e.$t(`panels.right.preferences.selectAction.goPage`)),1),c(`option`,d4,d(e.$t(`panels.right.preferences.selectAction.openLink`)),1)],544),[[Oe,f.value.actionType]])]),R(c(`div`,f4,[c(`h2`,null,d(e.$t(`panels.right.preferences.selectAction.goPage`)),1),R(c(`input`,{type:`text`,pattern:`\\d*`,placeholder:e.$t(`panels.right.preferences.addResource.page`),"onUpdate:modelValue":t[15]||=e=>f.value.destPage=e,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,onBlur:t[16]||=e=>te(`destPage`),name:`form`},null,40,p4),[[Me,f.value.destPage]])],512),[[Re,f.value.actionType==1]]),R(c(`div`,m4,[c(`h2`,null,d(e.$t(`panels.right.preferences.selectAction.openLink`)),1),R(c(`input`,{type:`text`,placeholder:`https://`,"onUpdate:modelValue":t[17]||=e=>f.value.url=e,onBlur:t[18]||=e=>te(`url`),name:`form`},null,544),[[Me,f.value.url]])],512),[[Re,f.value.actionType==6]])],64)):b(``,!0),(k.value===K(L).COMBOBOX||k.value===K(L).LISTBOX)&&E.value===`form`?(S(),V(q,{key:3},[c(`div`,h4,[c(`h2`,null,d(e.$t(`panels.right.preferences.item`)),1),c(`div`,g4,[R(c(`input`,{type:`text`,class:`item`,"onUpdate:modelValue":t[19]||=e=>A.value=e,name:`form`},null,512),[[Me,A.value,void 0,{trim:!0}]]),c(`div`,{class:D([`operate-button`,{disabled:!A.value}]),onClick:_e},[x(s)],2)])]),c(`div`,_4,[c(`h2`,null,d(e.$t(`panels.right.preferences.itemList`)),1),c(`div`,v4,[c(`ul`,null,[(S(!0),V(q,null,z(M.value,(e,t)=>(S(),V(`li`,{key:t,class:D({active:t===j.value}),onClick:n=>ge(t,e.Value)},d(e.Value),11,y4))),128))]),c(`div`,b4,[c(`div`,{class:D([`operate-button`,{disabled:!j.value&&j.value!==0}]),onClick:ve},[x(l)],2),c(`div`,{class:D([`operate-button`,{disabled:j.value===0||!j.value}]),onClick:be},[x(p)],2),c(`div`,{class:D([`operate-button`,{disabled:j.value===M.value.length-1||!j.value&&j.value!==0}]),onClick:xe},[x(m)],2)])])])],64)):b(``,!0)],2),R(c(`div`,{class:`radio-bottom-tip`},d(e.$t(`panels.right.preferences.radioTips`)[1]),513),[[Re,k.value===K(L).RADIOBUTTON]]),R(c(`div`,{class:`radio-bottom-tip`},d(e.$t(`panels.right.preferences.listBoxTip`)),513),[[Re,k.value===K(L).COMBOBOX]])])],2)}}},S4={class:`sidebar-title`},C4={class:`sidebar-tabs-header`},w4={class:`sidebar-content`},T4={class:`input-container`},E4={class:`input-container`},D4=[`placeholder`],O4={class:`input-container`},k4={__name:`LinkPanel`,setup(e){let t=ye(),n=pw(),r=J(H.URL),i=T(()=>t.isElementOpen(H.LINK_PANEL)),a=T(()=>n.getActiveTool),o=T(()=>n.getTotalPages),s=J(``),l=J(``),u=J(``);W(()=>a.value,(e,n)=>{e!==L.LINK&&t.closeElement(H.LINK_PANEL)}),W(()=>i.value,(e,n)=>{e&&(t.closeElement(H.PAGE_MODE_PANEL),r.value=s.value?H.URL:l.value?H.PAGE:u.value?H.EMAIL:H.URL)}),W(()=>l.value,(e,t)=>{e!==``&&(e>o.value||e<=0||!/^\d+$/.test(e))&&(l.value=t)});let f=e=>{r.value=e},p=()=>r.value===H.URL&&g(s.value)||r.value===H.PAGE&&l.value||r.value===H.EMAIL&&m(u.value),m=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),g=e=>/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/i.test(e),_=()=>{if(r.value===H.URL)n.setPropertyPanel({destPage:``,url:s.value});else if(r.value===H.PAGE)n.setPropertyPanel({url:``,destPage:l.value});else if(r.value===H.EMAIL){let e=u.value.startsWith(`mailto:`);n.setPropertyPanel({destPage:``,url:e?u.value:`mailto:`+u.value})}t.closeElement(H.LINK_PANEL)};U.addEvent(`linkPanelChange`,e=>{e?(e.url&&e.url.startsWith(`mailto:`)?(u.value=e.url.replace(`mailto:`,``),s.value=``,l.value=``,r.value=H.EMAIL):e.url?(s.value=e.url,u.value=``,l.value=``,r.value=H.URL):e.destPage?(l.value=e.destPage,s.value=``,u.value=``,r.value=H.PAGE):(l.value=``,s.value=``,u.value=``,r.value=H.URL),t.openElement(H.LINK_PANEL)):t.closeElement(H.LINK_PANEL)});let v=()=>{r.value===H.URL?s.value=``:r.value===H.PAGE?l.value=``:r.value===H.EMAIL&&(u.value=``)};return(e,t)=>{let n=lx,i=gN;return S(),V(`div`,{class:D([`link-panel`,{mobile:K(P)}]),id:`linkPanel`},[c(`div`,S4,d(e.$t(`panels.link.title`)),1),c(`div`,C4,[x(n,{className:r.value===K(H).URL?`active`:``,isActive:r.value===K(H).URL,"data-element":K(H).URL,onClick:t[0]||=e=>f(K(H).URL)},{default:G(()=>[c(`span`,null,d(e.$t(`panels.link.types.url`)),1)]),_:1},8,[`className`,`isActive`,`data-element`]),x(n,{className:r.value===K(H).PAGE?`active`:``,isActive:r.value===K(H).PAGE,"data-element":K(H).PAGE,onClick:t[1]||=e=>f(K(H).PAGE)},{default:G(()=>[c(`span`,null,d(e.$t(`panels.link.types.pages`)),1)]),_:1},8,[`className`,`isActive`,`data-element`]),x(n,{className:r.value===K(H).EMAIL?`active`:``,isActive:r.value===K(H).EMAIL,"data-element":K(H).EMAIL,onClick:t[2]||=e=>f(K(H).EMAIL)},{default:G(()=>[c(`span`,null,d(e.$t(`panels.link.types.email`)),1)]),_:1},8,[`className`,`isActive`,`data-element`])]),c(`div`,w4,[R(c(`div`,T4,[R(c(`input`,{type:`text`,placeholder:`https://www.example.com`,"onUpdate:modelValue":t[3]||=e=>ue(s)?s.value=e:s=e,name:`link`},null,512),[[Me,K(s)]]),R(x(i,{onClick:v},null,512),[[Re,K(s)]])],512),[[Re,r.value===K(H).URL]]),R(c(`div`,E4,[R(c(`input`,{type:`text`,pattern:`\\d*`,placeholder:`1~${o.value}`,"onUpdate:modelValue":t[4]||=e=>ue(l)?l.value=e:l=e,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,name:`link`},null,8,D4),[[Me,K(l)]]),R(x(i,{onClick:v},null,512),[[Re,K(l)]])],512),[[Re,r.value===K(H).PAGE]]),R(c(`div`,O4,[R(c(`input`,{type:`text`,placeholder:`support@compdf.com`,"onUpdate:modelValue":t[5]||=e=>ue(u)?u.value=e:u=e,name:`link`},null,512),[[Me,K(u)]]),R(x(i,{onClick:v},null,512),[[Re,K(u)]])],512),[[Re,r.value===K(H).EMAIL]]),c(`div`,{class:D([`save rect-button blue`,{disabled:!p()}]),onClick:_},d(e.$t(`panels.link.action`)),3)])],2)}}},A4=e(r(((e,t)=>{(function(n){typeof e==`object`&&t!==void 0?t.exports=n():typeof define==`function`&&define.amd?define([],n):(typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this).JSZip=n()})(function(){return function e(t,r,i){function a(s,c){if(!r[s]){if(!t[s]){var l=typeof n==`function`&&n;if(!c&&l)return l(s,!0);if(o)return o(s,!0);var u=Error(`Cannot find module '`+s+`'`);throw u.code=`MODULE_NOT_FOUND`,u}var d=r[s]={exports:{}};t[s][0].call(d.exports,function(e){var n=t[s][1][e];return a(n||e)},d,d.exports,e,t,r,i)}return r[s].exports}for(var o=typeof n==`function`&&n,s=0;s<i.length;s++)a(i[s]);return a}({1:[function(e,t,n){var r=e(`./utils`),i=e(`./support`),a=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`;n.encode=function(e){for(var t,n,i,o,s,c,l,u=[],d=0,f=e.length,p=f,m=r.getTypeOf(e)!==`string`;d<e.length;)p=f-d,i=m?(t=e[d++],n=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),n=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),o=t>>2,s=(3&t)<<4|n>>4,c=1<p?(15&n)<<2|i>>6:64,l=2<p?63&i:64,u.push(a.charAt(o)+a.charAt(s)+a.charAt(c)+a.charAt(l));return u.join(``)},n.decode=function(e){var t,n,r,o,s,c,l=0,u=0,d=`data:`;if(e.substr(0,d.length)===d)throw Error(`Invalid base64 input, it looks like a data url.`);var f,p=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,``)).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&p--,e.charAt(e.length-2)===a.charAt(64)&&p--,p%1!=0)throw Error(`Invalid base64 input, bad content length.`);for(f=i.uint8array?new Uint8Array(0|p):Array(0|p);l<e.length;)t=a.indexOf(e.charAt(l++))<<2|(o=a.indexOf(e.charAt(l++)))>>4,n=(15&o)<<4|(s=a.indexOf(e.charAt(l++)))>>2,r=(3&s)<<6|(c=a.indexOf(e.charAt(l++))),f[u++]=t,s!==64&&(f[u++]=n),c!==64&&(f[u++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){var r=e(`./external`),i=e(`./stream/DataWorker`),a=e(`./stream/Crc32Probe`),o=e(`./stream/DataLengthProbe`);function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o(`data_length`)),t=this;return e.on(`end`,function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw Error(`Bug : uncompressed data size mismatch`)}),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo(`compressedSize`,this.compressedSize).withStreamInfo(`uncompressedSize`,this.uncompressedSize).withStreamInfo(`crc32`,this.crc32).withStreamInfo(`compression`,this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o(`uncompressedSize`)).pipe(t.compressWorker(n)).pipe(new o(`compressedSize`)).withStreamInfo(`compression`,t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){var r=e(`./stream/GenericWorker`);n.STORE={magic:`\0\0`,compressWorker:function(){return new r(`STORE compression`)},uncompressWorker:function(){return new r(`STORE decompression`)}},n.DEFLATE=e(`./flate`)},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){var r=e(`./utils`),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return e!==void 0&&e.length?r.getTypeOf(e)===`string`?function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){var r=null;r=typeof Promise<`u`?Promise:e(`lie`),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){var r=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Uint32Array<`u`,i=e(`pako`),a=e(`./utils`),o=e(`./stream/GenericWorker`),s=r?`uint8array`:`array`;function c(e,t){o.call(this,`FlateWorker/`+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic=`\b\0`,a.inherits(c,o),c.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},c.prototype.flush=function(){o.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new c(`Deflate`,e)},n.uncompressWorker=function(){return new c(`Inflate`,{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){function r(e,t){var n,r=``;for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,o,u){var d,f,p=e.file,m=e.compression,g=u!==s.utf8encode,_=a.transformTo(`string`,u(p.name)),v=a.transformTo(`string`,s.utf8encode(p.name)),y=p.comment,b=a.transformTo(`string`,u(y)),x=a.transformTo(`string`,s.utf8encode(y)),S=v.length!==p.name.length,C=x.length!==y.length,w=``,T=``,E=``,D=p.dir,O=p.date,k={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(k.crc32=e.crc32,k.compressedSize=e.compressedSize,k.uncompressedSize=e.uncompressedSize);var A=0;t&&(A|=8),g||!S&&!C||(A|=2048);var j=0,M=0;D&&(j|=16),o===`UNIX`?(M=798,j|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(p.unixPermissions,D)):(M=20,j|=function(e){return 63&(e||0)}(p.dosPermissions)),d=O.getUTCHours(),d<<=6,d|=O.getUTCMinutes(),d<<=5,d|=O.getUTCSeconds()/2,f=O.getUTCFullYear()-1980,f<<=4,f|=O.getUTCMonth()+1,f<<=5,f|=O.getUTCDate(),S&&(T=r(1,1)+r(c(_),4)+v,w+=`up`+r(T.length,2)+T),C&&(E=r(1,1)+r(c(b),4)+x,w+=`uc`+r(E.length,2)+E);var N=``;return N+=`
2508
+ \0`,N+=r(A,2),N+=m.magic,N+=r(d,2),N+=r(f,2),N+=r(k.crc32,4),N+=r(k.compressedSize,4),N+=r(k.uncompressedSize,4),N+=r(_.length,2),N+=r(w.length,2),{fileRecord:l.LOCAL_FILE_HEADER+N+_+w,dirRecord:l.CENTRAL_FILE_HEADER+r(M,2)+N+r(b.length,2)+`\0\0\0\0`+r(j,4)+r(i,4)+_+w+b}}var a=e(`../utils`),o=e(`../stream/GenericWorker`),s=e(`../utf8`),c=e(`../crc32`),l=e(`../signature`);function u(e,t,n,r){o.call(this,`ZipFileWorker`),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,o),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return l.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,i=function(e,t,n,i,o){var s=a.transformTo(`string`,o(i));return l.CENTRAL_DIRECTORY_END+`\0\0\0\0`+r(e,2)+r(e,2)+r(t,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on(`data`,function(e){t.processChunk(e)}),e.on(`end`,function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on(`error`,function(e){t.error(e)}),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch{}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){var r=e(`../compressions`),i=e(`./ZipFileWorker`);n.generateWorker=function(e,t,n){var a=new i(t.streamFiles,n,t.platform,t.encodeFileName),o=0;try{e.forEach(function(e,n){o++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw Error(n+` is not a valid compression method !`);return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,l=n.date;n._compressWorker(i,s).withStreamInfo(`file`,{name:e,dir:c,date:l,comment:n.comment||``,unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)}),a.entriesCount=o}catch(e){a.error(e)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw Error(`The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.`);this.files=Object.create(null),this.comment=null,this.root=``,this.clone=function(){var e=new r;for(var t in this)typeof this[t]!=`function`&&(e[t]=this[t]);return e}}(r.prototype=e(`./object`)).loadAsync=e(`./load`),r.support=e(`./support`),r.defaults=e(`./defaults`),r.version=`3.10.1`,r.loadAsync=function(e,t){return new r().loadAsync(e,t)},r.external=e(`./external`),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){var r=e(`./utils`),i=e(`./external`),a=e(`./utf8`),o=e(`./zipEntries`),s=e(`./stream/Crc32Probe`),c=e(`./nodejsUtils`);function l(e){return new i.Promise(function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on(`error`,function(e){n(e)}).on(`end`,function(){r.streamInfo.crc32===e.decompressed.crc32?t():n(Error(`Corrupted zip : CRC32 mismatch`))}).resume()})}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(Error(`JSZip can't accept a stream when loading a zip file.`)):r.prepareContent(`the loaded zip file`,e,!0,t.optimizedBinaryString,t.base64).then(function(e){var n=new o(t);return n.load(e),n}).then(function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var a=0;a<r.length;a++)n.push(l(r[a]));return i.Promise.all(n)}).then(function(e){for(var i=e.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],c=s.fileNameStr,l=r.resolve(s.fileNameStr);n.file(l,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(l).unsafeOriginalName=c)}return i.zipComment.length&&(n.comment=i.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){var r=e(`../utils`),i=e(`../stream/GenericWorker`);function a(e,t){i.call(this,`Nodejs stream input adapter for `+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on(`data`,function(e){t.push({data:e,meta:{percent:0}})}).on(`error`,function(e){t.isPaused?this.generatedError=e:t.error(e)}).on(`end`,function(){t.isPaused?t._upstreamEnded=!0:t.end()})},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){var r=e(`readable-stream`).Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on(`data`,function(e,t){i.push(e)||i._helper.pause(),n&&n(t)}).on(`error`,function(e){i.emit(`error`,e)}).on(`end`,function(){i.push(null)})}e(`../utils`).inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){t.exports={isNode:typeof Buffer<`u`,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e==`number`)throw Error(`The "data" argument must not be a number`);return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on==`function`&&typeof e.pause==`function`&&typeof e.resume==`function`}}},{}],15:[function(e,t,n){function r(e,t,n){var r,i=a.getTypeOf(t),s=a.extend(n||{},c);s.date=s.date||new Date,s.compression!==null&&(s.compression=s.compression.toUpperCase()),typeof s.unixPermissions==`string`&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=g(e)),s.createFolders&&(r=m(e))&&_.call(this,r,!0);var d=i===`string`&&!1===s.binary&&!1===s.base64;n&&n.binary!==void 0||(s.binary=!d),(t instanceof l&&t.uncompressedSize===0||s.dir||!t||t.length===0)&&(s.base64=!1,s.binary=!0,t=``,s.compression=`STORE`,i=`string`);var v=null;v=t instanceof l||t instanceof o?t:f.isNode&&f.isStream(t)?new p(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var y=new u(e,v,s);this.files[e]=y}var i=e(`./utf8`),a=e(`./utils`),o=e(`./stream/GenericWorker`),s=e(`./stream/StreamHelper`),c=e(`./defaults`),l=e(`./compressedObject`),u=e(`./zipObject`),d=e(`./generate`),f=e(`./nodejsUtils`),p=e(`./nodejs/NodejsStreamInputAdapter`),m=function(e){e.slice(-1)===`/`&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf(`/`);return 0<t?e.substring(0,t):``},g=function(e){return e.slice(-1)!==`/`&&(e+=`/`),e},_=function(e,t){return t=t===void 0?c.createFolders:t,e=g(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return Object.prototype.toString.call(e)===`[object RegExp]`}t.exports={load:function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach(function(n,r){e(n,r)&&t.push(r)}),t},file:function(e,t,n){if(arguments.length!==1)return e=this.root+e,r.call(this,e,t,n),this;if(v(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(v(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=_.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||=(e.slice(-1)!==`/`&&(e+=`/`),this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},generateInternalStream:function(e){var t,n={};try{if((n=a.extend(e||{},{streamFiles:!1,compression:`STORE`,compressionOptions:null,type:``,platform:`DOS`,comment:null,mimeType:`application/zip`,encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),n.type===`binarystring`&&(n.type=`string`),!n.type)throw Error(`No output type specified.`);a.checkSupport(n.type),n.platform!==`darwin`&&n.platform!==`freebsd`&&n.platform!==`linux`&&n.platform!==`sunos`||(n.platform=`UNIX`),n.platform===`win32`&&(n.platform=`DOS`);var r=n.comment||this.comment||``;t=d.generateWorker(this,n,r)}catch(e){(t=new o(`error`)).error(e)}return new s(t,n.type||`string`,n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e||={}).type||(e.type=`nodebuffer`),this.generateInternalStream(e).toNodejsStream(t)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){t.exports=e(`stream`)},{stream:void 0}],17:[function(e,t,n){var r=e(`./DataReader`);function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e(`../utils`).inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&n===a[1]&&r===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){var r=e(`../utils`);function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw Error(`End of data reached (data length = `+this.length+`, asked index = `+e+`). Corrupted zip ?`)},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo(`string`,this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){var r=e(`./Uint8ArrayReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){var r=e(`./DataReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){var r=e(`./ArrayReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array;var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){var r=e(`../utils`),i=e(`../support`),a=e(`./ArrayReader`),o=e(`./StringReader`),s=e(`./NodeBufferReader`),c=e(`./Uint8ArrayReader`);t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),t!==`string`||i.uint8array?t===`nodebuffer`?new s(e):i.uint8array?new c(r.transformTo(`uint8array`,e)):new a(r.transformTo(`array`,e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){n.LOCAL_FILE_HEADER=`PK`,n.CENTRAL_FILE_HEADER=`PK`,n.CENTRAL_DIRECTORY_END=`PK`,n.ZIP64_CENTRAL_DIRECTORY_LOCATOR=`PK\x07`,n.ZIP64_CENTRAL_DIRECTORY_END=`PK`,n.DATA_DESCRIPTOR=`PK\x07\b`},{}],24:[function(e,t,n){var r=e(`./GenericWorker`),i=e(`../utils`);function a(e){r.call(this,`ConvertWorker to `+e),this.destType=e}i.inherits(a,r),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){var r=e(`./GenericWorker`),i=e(`../crc32`);function a(){r.call(this,`Crc32Probe`),this.withStreamInfo(`crc32`,0)}e(`../utils`).inherits(a,r),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){var r=e(`../utils`),i=e(`./GenericWorker`);function a(e){i.call(this,`DataLengthProbe for `+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){var r=e(`../utils`),i=e(`./GenericWorker`);function a(e){i.call(this,`DataWorker`);var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=``,this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case`string`:e=this.data.substring(this.index,t);break;case`uint8array`:e=this.data.subarray(this.index,t);break;case`array`:case`nodebuffer`:e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){function r(e){this.name=e||`default`,this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit(`data`,e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(`end`),this.cleanUp(),this.isFinished=!0}catch(e){this.emit(`error`,e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit(`error`,e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw Error(`The stream '`+this+`' has already been used.`);this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on(`data`,function(e){t.processChunk(e)}),e.on(`end`,function(){t.end()}),e.on(`error`,function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw Error(`The stream '`+this+`' has already been used.`);this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e=`Worker `+this.name;return this.previous?this.previous+` -> `+e:e}},t.exports=r},{}],29:[function(e,t,n){var r=e(`../utils`),i=e(`./ConvertWorker`),a=e(`./GenericWorker`),o=e(`../base64`),s=e(`../support`),c=e(`../external`),l=null;if(s.nodestream)try{l=e(`../nodejs/NodejsStreamOutputAdapter`)}catch{}function u(e,t){return new c.Promise(function(n,i){var a=[],s=e._internalType,c=e._outputType,l=e._mimeType;e.on(`data`,function(e,n){a.push(e),t&&t(n)}).on(`error`,function(e){a=[],i(e)}).on(`end`,function(){try{n(function(e,t,n){switch(e){case`blob`:return r.newBlob(r.transformTo(`arraybuffer`,t),n);case`base64`:return o.encode(t);default:return r.transformTo(e,t)}}(c,function(e,t){var n,r=0,i=null,a=0;for(n=0;n<t.length;n++)a+=t[n].length;switch(e){case`string`:return t.join(``);case`array`:return Array.prototype.concat.apply([],t);case`uint8array`:for(i=new Uint8Array(a),n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case`nodebuffer`:return Buffer.concat(t);default:throw Error(`concat : unsupported type '`+e+`'`)}}(s,a),l))}catch(e){i(e)}a=[]}).resume()})}function d(e,t,n){var o=t;switch(t){case`blob`:case`arraybuffer`:o=`uint8array`;break;case`base64`:o=`string`}try{this._internalType=o,this._outputType=t,this._mimeType=n,r.checkSupport(o),this._worker=e.pipe(new i(o)),e.lock()}catch(e){this._worker=new a(`error`),this._worker.error(e)}}d.prototype={accumulate:function(e){return u(this,e)},on:function(e,t){var n=this;return e===`data`?this._worker.on(e,function(e){t.call(n,e.data,e.meta)}):this._worker.on(e,function(){r.delay(t,arguments,n)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport(`nodestream`),this._outputType!==`nodebuffer`)throw Error(this._outputType+` is not supported by this method`);return new l(this,{objectMode:this._outputType!==`nodebuffer`},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer=typeof ArrayBuffer<`u`&&typeof Uint8Array<`u`,n.nodebuffer=typeof Buffer<`u`,n.uint8array=typeof Uint8Array<`u`,typeof ArrayBuffer>`u`)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=new Blob([r],{type:`application/zip`}).size===0}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=i.getBlob(`application/zip`).size===0}catch{n.blob=!1}}}try{n.nodestream=!!e(`readable-stream`).Readable}catch{n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){for(var r=e(`./utils`),i=e(`./support`),a=e(`./nodejsUtils`),o=e(`./stream/GenericWorker`),s=Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;s[254]=s[254]=1;function l(){o.call(this,`utf-8 decode`),this.leftOver=null}function u(){o.call(this,`utf-8 encode`)}n.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,`utf-8`):function(e){var t,n,r,a,o,s=e.length,c=0;for(a=0;a<s;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(r=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(c):Array(c),a=o=0;o<c;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(r=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo(`nodebuffer`,e).toString(`utf-8`):function(e){var t,n,i,a,o=e.length,c=Array(2*o);for(t=n=0;t<o;)if((i=e[t++])<128)c[n++]=i;else if(4<(a=s[i]))c[n++]=65533,t+=a-1;else{for(i&=a===2?31:a===3?15:7;1<a&&t<o;)i=i<<6|63&e[t++],a--;1<a?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(e=r.transformTo(i.uint8array?`uint8array`:`array`,e))},r.inherits(l,o),l.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?`uint8array`:`array`,e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t||=e.length)>e.length&&(t=e.length),n=t-1;0<=n&&(192&e[n])==128;)n--;return n<0||n===0?t:n+s[e[n]]>t?n:t}(t),c=t;o!==t.length&&(i.uint8array?(c=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(c=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=l,r.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){var r=e(`./support`),i=e(`./base64`),a=e(`./nodejsUtils`),o=e(`./external`);function s(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e(`setimmediate`),n.newBlob=function(e,t){n.checkSupport(`blob`);try{return new Blob([e],{type:t})}catch{try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch{throw Error(`Bug : can't construct the Blob.`)}}};var l={stringifyByChunk:function(e,t,n){var r=[],i=0,a=e.length;if(a<=n)return String.fromCharCode.apply(null,e);for(;i<a;)t===`array`||t===`nodebuffer`?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,a)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,a)))),i+=n;return r.join(``)},stringifyByChar:function(e){for(var t=``,n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}}()}};function u(e){var t=65536,r=n.getTypeOf(e),i=!0;if(r===`uint8array`?i=l.applyCanBeUsed.uint8array:r===`nodebuffer`&&(i=l.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return l.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return l.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=u;var f={};f.string={string:s,array:function(e){return c(e,Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,a.allocBuffer(e.length))}},f.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},f.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:u,array:function(e){return d(e,Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},f.nodebuffer={string:u,array:function(e){return d(e,Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){return t||=``,e?(n.checkSupport(e),f[n.getTypeOf(t)][e](t)):t},n.resolve=function(e){for(var t=e.split(`/`),n=[],r=0;r<t.length;r++){var i=t[r];i===`.`||i===``&&r!==0&&r!==t.length-1||(i===`..`?n.pop():n.push(i))}return n.join(`/`)},n.getTypeOf=function(e){return typeof e==`string`?`string`:Object.prototype.toString.call(e)===`[object Array]`?`array`:r.nodebuffer&&a.isBuffer(e)?`nodebuffer`:r.uint8array&&e instanceof Uint8Array?`uint8array`:r.arraybuffer&&e instanceof ArrayBuffer?`arraybuffer`:void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw Error(e+` is not supported by this platform`)},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r=``;for(n=0;n<(e||``).length;n++)r+=`\\x`+((t=e.charCodeAt(n))<16?`0`:``)+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){setImmediate(function(){e.apply(n||null,t||[])})},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&n[t]===void 0&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,a,s,l){return o.Promise.resolve(t).then(function(e){return r.blob&&(e instanceof Blob||[`[object File]`,`[object Blob]`].indexOf(Object.prototype.toString.call(e))!==-1)&&typeof FileReader<`u`?new o.Promise(function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)}):e}).then(function(t){var u=n.getTypeOf(t);return u?(u===`arraybuffer`?t=n.transformTo(`uint8array`,t):u===`string`&&(l?t=i.decode(t):a&&!0!==s&&(t=function(e){return c(e,r.uint8array?new Uint8Array(e.length):Array(e.length))}(t))),t):o.Promise.reject(Error(`Can't read the data of '`+e+`'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?`))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){var r=e(`./reader/readerFor`),i=e(`./utils`),a=e(`./signature`),o=e(`./zipEntry`),s=e(`./support`);function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw Error(`Corrupted zip or bug: unexpected signature (`+i.pretty(t)+`, expected `+i.pretty(e)+`)`)}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?`uint8array`:`array`,n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error(`Multi-volumes zip are not supported`)},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw Error(`Corrupted zip or bug: expected `+this.centralDirRecords+` records in central dir, got `+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?Error(`Corrupted zip: can't find end of central directory`):Error(`Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html`);this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error(`Corrupted zip: can't find the ZIP64 end of central directory locator`);if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error(`Corrupted zip: can't find the ZIP64 end of central directory`);this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw Error(`Corrupted zip: missing `+Math.abs(r)+` bytes.`)},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){var r=e(`./reader/readerFor`),i=e(`./utils`),a=e(`./compressedObject`),o=e(`./crc32`),s=e(`./utf8`),c=e(`./compressions`),l=e(`./support`);function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),this.compressedSize===-1||this.uncompressedSize===-1)throw Error(`Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)`);if((t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod))===null)throw Error(`Corrupted zip : compression `+i.pretty(this.compressionMethod)+` unknown (inner file : `+i.transformTo(`string`,this.fileName)+`)`);this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw Error(`Encrypted zip are not supported`);e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),e==0&&(this.dosPermissions=63&this.externalFileAttributes),e==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!==`/`||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||={};e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=l.uint8array?`uint8array`:`array`;if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(r!==null)this.fileCommentStr=r;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return t.readInt(1)===1&&o(this.fileName)===t.readInt(4)?s.utf8decode(t.readData(e.length-5)):null}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return t.readInt(1)===1&&o(this.fileComment)===t.readInt(4)?s.utf8decode(t.readData(e.length-5)):null}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e(`./stream/StreamHelper`),a=e(`./stream/DataWorker`),o=e(`./utf8`),s=e(`./compressedObject`),c=e(`./stream/GenericWorker`);r.prototype={internalStream:function(e){var t=null,n=`string`;try{if(!e)throw Error(`No output type specified.`);var r=(n=e.toLowerCase())===`string`||n===`text`;n!==`binarystring`&&n!==`text`||(n=`string`),t=this._decompressWorker();var a=!this._dataBinary;a&&!r&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&r&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new c(`error`)).error(e)}return new i(t,n,``)},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||`nodebuffer`).toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var l=[`asText`,`asBinary`,`asNodeBuffer`,`asUint8Array`,`asArrayBuffer`],u=function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},d=0;d<l.length;d++)r.prototype[l[d]]=u;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(u),s=e.document.createTextNode(``);o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(e.setImmediate||e.MessageChannel===void 0)n=`document`in e&&`onreadystatechange`in e.document.createElement(`script`)?function(){var t=e.document.createElement(`script`);t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;r=!0;for(var n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}r=!1}t.exports=function(e){l.push(e)!==1||r||n()}}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}],37:[function(e,t,n){var r=e(`immediate`);function i(){}var a={},o=[`REJECTED`],s=[`FULFILLED`],c=[`PENDING`];function l(e){if(typeof e!=`function`)throw TypeError(`resolver must be a function`);this.state=c,this.queue=[],this.outcome=void 0,e!==i&&p(this,e)}function u(e,t,n){this.promise=e,typeof t==`function`&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof n==`function`&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r(function(){var r;try{r=t(n)}catch(t){return a.reject(e,t)}r===e?a.reject(e,TypeError(`Cannot resolve promise with itself`)):a.resolve(e,r)})}function f(e){var t=e&&e.then;if(e&&(typeof e==`object`||typeof e==`function`)&&typeof t==`function`)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,a.reject(e,t))}function i(t){n||(n=!0,a.resolve(e,t))}var o=m(function(){t(i,r)});o.status===`error`&&r(o.value)}function m(e,t){var n={};try{n.value=e(t),n.status=`success`}catch(e){n.status=`error`,n.value=e}return n}(t.exports=l).prototype.finally=function(e){if(typeof e!=`function`)return this;var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if(typeof e!=`function`&&this.state===s||typeof t!=`function`&&this.state===o)return this;var n=new this.constructor(i);return this.state===c?this.queue.push(new u(n,e,t)):d(n,this.state===s?e:t,this.outcome),n},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=m(f,t);if(n.status===`error`)return a.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=s,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},l.reject=function(e){var t=new this(i);return a.reject(t,e)},l.all=function(e){var t=this;if(Object.prototype.toString.call(e)!==`[object Array]`)return this.reject(TypeError(`must be an array`));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=Array(n),s=0,c=-1,l=new this(i);++c<n;)u(e[c],c);return l;function u(e,i){t.resolve(e).then(function(e){o[i]=e,++s!==n||r||(r=!0,a.resolve(l,o))},function(e){r||(r=!0,a.reject(l,e))})}},l.race=function(e){var t=this;if(Object.prototype.toString.call(e)!==`[object Array]`)return this.reject(TypeError(`must be an array`));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=-1,s=new this(i);++o<n;)c=e[o],t.resolve(c).then(function(e){r||(r=!0,a.resolve(s,e))},function(e){r||(r=!0,a.reject(s,e))});var c;return s}},{immediate:36}],38:[function(e,t,n){var r={};(0,e(`./lib/utils/common`).assign)(r,e(`./lib/deflate`),e(`./lib/inflate`),e(`./lib/zlib/constants`)),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){var r=e(`./zlib/deflate`),i=e(`./utils/common`),a=e(`./utils/strings`),o=e(`./zlib/messages`),s=e(`./zlib/zstream`),c=Object.prototype.toString,l=0,u=-1,d=0,f=8;function p(e){if(!(this instanceof p))return new p(e);this.options=i.assign({level:u,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:``},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==l)throw Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var m;if(m=typeof t.dictionary==`string`?a.string2buf(t.dictionary):c.call(t.dictionary)===`[object ArrayBuffer]`?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,m))!==l)throw Error(o[n]);this._dict_set=!0}}function m(e,t){var n=new p(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}p.prototype.push=function(e,t){var n,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,typeof e==`string`?s.input=a.string2buf(e):c.call(e)===`[object ArrayBuffer]`?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(s.avail_out===0&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),(n=r.deflate(s,o))!==1&&n!==l)return this.onEnd(n),!(this.ended=!0);s.avail_out!==0&&(s.avail_in!==0||o!==4&&o!==2)||(this.options.to===`string`?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||s.avail_out===0)&&n!==1);return o===4?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l):o!==2||(this.onEnd(l),!(s.avail_out=0))},p.prototype.onData=function(e){this.chunks.push(e)},p.prototype.onEnd=function(e){e===l&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=p,n.deflate=m,n.deflateRaw=function(e,t){return(t||={}).raw=!0,m(e,t)},n.gzip=function(e,t){return(t||={}).gzip=!0,m(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){var r=e(`./zlib/inflate`),i=e(`./utils/common`),a=e(`./utils/strings`),o=e(`./zlib/constants`),s=e(`./zlib/messages`),c=e(`./zlib/zstream`),l=e(`./zlib/gzheader`),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:``},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw Error(s[n]);this.header=new l,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,c,l,d,f,p=this.strm,m=this.options.chunkSize,g=this.options.dictionary,_=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,typeof e==`string`?p.input=a.binstring2buf(e):u.call(e)===`[object ArrayBuffer]`?p.input=new Uint8Array(e):p.input=e,p.next_in=0,p.avail_in=p.input.length;do{if(p.avail_out===0&&(p.output=new i.Buf8(m),p.next_out=0,p.avail_out=m),(n=r.inflate(p,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&g&&(f=typeof g==`string`?a.string2buf(g):u.call(g)===`[object ArrayBuffer]`?new Uint8Array(g):g,n=r.inflateSetDictionary(this.strm,f)),n===o.Z_BUF_ERROR&&!0===_&&(n=o.Z_OK,_=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);p.next_out&&(p.avail_out!==0&&n!==o.Z_STREAM_END&&(p.avail_in!==0||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||(this.options.to===`string`?(c=a.utf8border(p.output,p.next_out),l=p.next_out-c,d=a.buf2string(p.output,c),p.next_out=l,p.avail_out=m-l,l&&i.arraySet(p.output,p.output,c,l,0),this.onData(d)):this.onData(i.shrinkBuf(p.output,p.next_out)))),p.avail_in===0&&p.avail_out===0&&(_=!0)}while((0<p.avail_in||p.avail_out===0)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(p.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=f,n.inflateRaw=function(e,t){return(t||={}).raw=!0,f(e,t)},n.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){var r=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Int32Array<`u`;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if(typeof n!=`object`)throw TypeError(n+`must be non-object`);for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],42:[function(e,t,n){var r=e(`./common`),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n=``,o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,n.string2buf=function(e){var t,n,i,a,o,s=e.length,c=0;for(a=0;a<s;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(i=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(i-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(c),a=o=0;o<c;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(i=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,a,s=t||e.length,l=Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)l[r++]=i;else if(4<(a=o[i]))l[r++]=65533,n+=a-1;else{for(i&=a===2?31:a===3?15:7;1<a&&n<s;)i=i<<6|63&e[n++],a--;1<a?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return c(l,r)},n.utf8border=function(e,t){var n;for((t||=e.length)>e.length&&(t=e.length),n=t-1;0<=n&&(192&e[n])==128;)n--;return n<0||n===0?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){t.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;n!==0;){for(n-=o=2e3<n?2e3:n;a=a+(i=i+t[r++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16|0}},{}],44:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){var r,i=e(`../utils/common`),a=e(`./trees`),o=e(`./adler32`),s=e(`./crc32`),c=e(`./messages`),l=0,u=4,d=0,f=-2,p=-1,m=4,g=2,_=8,v=9,y=286,b=30,x=19,S=2*y+1,C=15,w=3,T=258,E=T+w+1,D=42,O=113,k=1,A=2,j=3,M=4;function N(e,t){return e.msg=c[t],t}function P(e){return(e<<1)-(4<e?9:0)}function ee(e){for(var t=e.length;0<=--t;)e[t]=0}function F(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))}function te(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,F(e.strm)}function I(e,t){e.pending_buf[e.pending++]=t}function L(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function R(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-E?e.strstart-(e.w_size-E):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+T,p=l[a+o-1],m=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do if(l[(n=t)+o]===m&&l[n+o-1]===p&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do;while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<f);if(r=T-(f-a),a=f-T,o<r){if(e.match_start=t,s<=(o=r))break;p=l[a+o-1],m=l[a+o]}}while((t=d[t&u])>c&&--i!=0);return o<=e.lookahead?o:e.lookahead}function z(e){var t,n,r,a,c,l,u,d,f,p,m=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-E)){for(i.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=n=e.hash_size;r=e.head[--t],e.head[t]=m<=r?r-m:0,--n;);for(t=n=m;r=e.prev[--t],e.prev[t]=m<=r?r-m:0,--n;);a+=m}if(e.strm.avail_in===0)break;if(l=e.strm,u=e.window,d=e.strstart+e.lookahead,f=a,p=void 0,p=l.avail_in,f<p&&(p=f),n=p===0?0:(l.avail_in-=p,i.arraySet(u,l.input,l.next_in,p,d),l.state.wrap===1?l.adler=o(l.adler,u,p,d):l.state.wrap===2&&(l.adler=s(l.adler,u,p,d)),l.next_in+=p,l.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=w)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+w-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<w)););}while(e.lookahead<E&&e.strm.avail_in!==0)}function ne(e,t){for(var n,r;;){if(e.lookahead<E){if(z(e),e.lookahead<E&&t===l)return k;if(e.lookahead===0)break}if(n=0,e.lookahead>=w&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-E&&(e.match_length=R(e,n)),e.match_length>=w)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-w),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=w){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,--e.match_length!=0;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(te(e,!1),e.strm.avail_out===0))return k}return e.insert=e.strstart<w-1?e.strstart:w-1,t===u?(te(e,!0),e.strm.avail_out===0?j:M):e.last_lit&&(te(e,!1),e.strm.avail_out===0)?k:A}function re(e,t){for(var n,r,i;;){if(e.lookahead<E){if(z(e),e.lookahead<E&&t===l)return k;if(e.lookahead===0)break}if(n=0,e.lookahead>=w&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=w-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-E&&(e.match_length=R(e,n),e.match_length<=5&&(e.strategy===1||e.match_length===w&&4096<e.strstart-e.match_start)&&(e.match_length=w-1)),e.prev_length>=w&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-w,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-w),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),--e.prev_length!=0;);if(e.match_available=0,e.match_length=w-1,e.strstart++,r&&(te(e,!1),e.strm.avail_out===0))return k}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&te(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return k}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(r=a._tr_tally(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<w-1?e.strstart:w-1,t===u?(te(e,!0),e.strm.avail_out===0?j:M):e.last_lit&&(te(e,!1),e.strm.avail_out===0)?k:A}function ie(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function B(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=_,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*S),this.dyn_dtree=new i.Buf16(2*(2*b+1)),this.bl_tree=new i.Buf16(2*(2*x+1)),ee(this.dyn_ltree),ee(this.dyn_dtree),ee(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(C+1),this.heap=new i.Buf16(2*y+1),ee(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*y+1),ee(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ae(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=g,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?D:O,e.adler=t.wrap===2?0:1,t.last_flush=l,a._tr_init(t),d):N(e,f)}function oe(e){var t=ae(e);return t===d&&function(e){e.window_size=2*e.w_size,ee(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=w-1,e.match_available=0,e.ins_h=0}(e.state),t}function se(e,t,n,r,a,o){if(!e)return f;var s=1;if(t===p&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),a<1||v<a||n!==_||r<8||15<r||t<0||9<t||o<0||m<o)return N(e,f);r===8&&(r=9);var c=new B;return(e.state=c).strm=e,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+w-1)/w),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=o,c.method=n,oe(e)}r=[new ie(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(z(e),e.lookahead===0&&t===l)return k;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,te(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-E&&(te(e,!1),e.strm.avail_out===0))return k}return e.insert=0,t===u?(te(e,!0),e.strm.avail_out===0?j:M):(e.strstart>e.block_start&&(te(e,!1),e.strm.avail_out),k)}),new ie(4,4,8,4,ne),new ie(4,5,16,8,ne),new ie(4,6,32,32,ne),new ie(4,4,16,16,re),new ie(8,16,32,32,re),new ie(8,16,128,128,re),new ie(8,32,128,256,re),new ie(32,128,258,1024,re),new ie(32,258,258,4096,re)],n.deflateInit=function(e,t){return se(e,t,_,15,8,0)},n.deflateInit2=se,n.deflateReset=oe,n.deflateResetKeep=ae,n.deflateSetHeader=function(e,t){return e&&e.state&&e.state.wrap===2?(e.state.gzhead=t,d):f},n.deflate=function(e,t){var n,i,o,c;if(!e||!e.state||5<t||t<0)return e?N(e,f):f;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===666&&t!==u)return N(e,e.avail_out===0?-5:f);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===D)if(i.wrap===2)e.adler=0,I(i,31),I(i,139),I(i,8),i.gzhead?(I(i,+!!i.gzhead.text+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),I(i,255&i.gzhead.time),I(i,i.gzhead.time>>8&255),I(i,i.gzhead.time>>16&255),I(i,i.gzhead.time>>24&255),I(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),I(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(I(i,255&i.gzhead.extra.length),I(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(I(i,0),I(i,0),I(i,0),I(i,0),I(i,0),I(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),I(i,3),i.status=O);else{var p=_+(i.w_bits-8<<4)<<8;p|=(2<=i.strategy||i.level<2?0:i.level<6?1:i.level===6?2:3)<<6,i.strstart!==0&&(p|=32),p+=31-p%31,i.status=O,L(i,p),i.strstart!==0&&(L(i,e.adler>>>16),L(i,65535&e.adler)),e.adler=1}if(i.status===69)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),F(e),o=i.pending,i.pending!==i.pending_buf_size));)I(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(i.status===73)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),F(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,I(i,c)}while(c!==0);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),c===0&&(i.gzindex=0,i.status=91)}else i.status=91;if(i.status===91)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),F(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,I(i,c)}while(c!==0);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),c===0&&(i.status=103)}else i.status=103;if(i.status===103&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&F(e),i.pending+2<=i.pending_buf_size&&(I(i,255&e.adler),I(i,e.adler>>8&255),e.adler=0,i.status=O)):i.status=O),i.pending!==0){if(F(e),e.avail_out===0)return i.last_flush=-1,d}else if(e.avail_in===0&&P(t)<=P(n)&&t!==u)return N(e,-5);if(i.status===666&&e.avail_in!==0)return N(e,-5);if(e.avail_in!==0||i.lookahead!==0||t!==l&&i.status!==666){var m=i.strategy===2?function(e,t){for(var n;;){if(e.lookahead===0&&(z(e),e.lookahead===0)){if(t===l)return k;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(te(e,!1),e.strm.avail_out===0))return k}return e.insert=0,t===u?(te(e,!0),e.strm.avail_out===0?j:M):e.last_lit&&(te(e,!1),e.strm.avail_out===0)?k:A}(i,t):i.strategy===3?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=T){if(z(e),e.lookahead<=T&&t===l)return k;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=w&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+T;do;while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=T-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=w?(n=a._tr_tally(e,1,e.match_length-w),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(te(e,!1),e.strm.avail_out===0))return k}return e.insert=0,t===u?(te(e,!0),e.strm.avail_out===0?j:M):e.last_lit&&(te(e,!1),e.strm.avail_out===0)?k:A}(i,t):r[i.level].func(i,t);if(m!==j&&m!==M||(i.status=666),m===k||m===j)return e.avail_out===0&&(i.last_flush=-1),d;if(m===A&&(t===1?a._tr_align(i):t!==5&&(a._tr_stored_block(i,0,0,!1),t===3&&(ee(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),F(e),e.avail_out===0))return i.last_flush=-1,d}return t===u?i.wrap<=0?1:(i.wrap===2?(I(i,255&e.adler),I(i,e.adler>>8&255),I(i,e.adler>>16&255),I(i,e.adler>>24&255),I(i,255&e.total_in),I(i,e.total_in>>8&255),I(i,e.total_in>>16&255),I(i,e.total_in>>24&255)):(L(i,e.adler>>>16),L(i,65535&e.adler)),F(e),0<i.wrap&&(i.wrap=-i.wrap),i.pending===0?1:d):d},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==D&&t!==69&&t!==73&&t!==91&&t!==103&&t!==O&&t!==666?N(e,f):(e.state=null,t===O?N(e,-3):d):f},n.deflateSetDictionary=function(e,t){var n,r,a,s,c,l,u,p,m=t.length;if(!e||!e.state||(s=(n=e.state).wrap)===2||s===1&&n.status!==D||n.lookahead)return f;for(s===1&&(e.adler=o(e.adler,t,m,0)),n.wrap=0,m>=n.w_size&&(s===0&&(ee(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new i.Buf8(n.w_size),i.arraySet(p,t,m-n.w_size,n.w_size,0),t=p,m=n.w_size),c=e.avail_in,l=e.next_in,u=e.input,e.avail_in=m,e.next_in=0,e.input=t,z(n);n.lookahead>=w;){for(r=n.strstart,a=n.lookahead-(w-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+w-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--a;);n.strstart=r,n.lookahead=w-1,z(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=w-1,n.match_available=0,e.next_in=l,e.input=u,e.avail_in=c,n.wrap=s,d},n.deflateInfo=`pako deflate (from Nodeca project)`},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=``,this.comment=``,this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){t.exports=function(e,t){var n=e.state,r=e.next_in,i,a,o,s,c,l,u,d,f,p,m,g,_,v,y,b,x,S,C,w,T,E=e.input,D;i=r+(e.avail_in-5),a=e.next_out,D=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,d=n.wnext,f=n.window,p=n.hold,m=n.bits,g=n.lencode,_=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{m<15&&(p+=E[r++]<<m,m+=8,p+=E[r++]<<m,m+=8),b=g[p&v];t:for(;;){if(p>>>=x=b>>>24,m-=x,(x=b>>>16&255)==0)D[a++]=65535&b;else{if(!(16&x)){if(!(64&x)){b=g[(65535&b)+(p&(1<<x)-1)];continue t}if(32&x){n.mode=12;break e}e.msg=`invalid literal/length code`,n.mode=30;break e}S=65535&b,(x&=15)&&(m<x&&(p+=E[r++]<<m,m+=8),S+=p&(1<<x)-1,p>>>=x,m-=x),m<15&&(p+=E[r++]<<m,m+=8,p+=E[r++]<<m,m+=8),b=_[p&y];r:for(;;){if(p>>>=x=b>>>24,m-=x,!(16&(x=b>>>16&255))){if(!(64&x)){b=_[(65535&b)+(p&(1<<x)-1)];continue r}e.msg=`invalid distance code`,n.mode=30;break e}if(C=65535&b,m<(x&=15)&&(p+=E[r++]<<m,(m+=8)<x&&(p+=E[r++]<<m,m+=8)),c<(C+=p&(1<<x)-1)){e.msg=`invalid distance too far back`,n.mode=30;break e}if(p>>>=x,m-=x,(x=a-o)<C){if(u<(x=C-x)&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break e}if(T=f,(w=0)===d){if(w+=l-x,x<S){for(S-=x;D[a++]=f[w++],--x;);w=a-C,T=D}}else if(d<x){if(w+=l+d-x,(x-=d)<S){for(S-=x;D[a++]=f[w++],--x;);if(w=0,d<S){for(S-=x=d;D[a++]=f[w++],--x;);w=a-C,T=D}}}else if(w+=d-x,x<S){for(S-=x;D[a++]=f[w++],--x;);w=a-C,T=D}for(;2<S;)D[a++]=T[w++],D[a++]=T[w++],D[a++]=T[w++],S-=3;S&&(D[a++]=T[w++],1<S&&(D[a++]=T[w++]))}else{for(w=a-C;D[a++]=D[w++],D[a++]=D[w++],D[a++]=D[w++],2<(S-=3););S&&(D[a++]=D[w++],1<S&&(D[a++]=D[w++]))}break}}break}}while(r<i&&a<s);r-=S=m>>3,p&=(1<<(m-=S<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=p,n.bits=m}},{}],49:[function(e,t,n){var r=e(`../utils/common`),i=e(`./adler32`),a=e(`./crc32`),o=e(`./inffast`),s=e(`./inftrees`),c=1,l=2,u=0,d=-2,f=1,p=852,m=592;function g(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function _(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg=``,t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(p),t.distcode=t.distdyn=new r.Buf32(m),t.sane=1,t.back=-1,u):d}function y(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,v(e)):d}function b(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,y(e))):d}function x(e,t){var n,r;return e?(r=new _,(e.state=r).window=null,(n=b(e,t))!==u&&(e.state=null),n):d}var S,C,w=!0;function T(e){if(w){var t;for(S=new r.Buf32(512),C=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,S,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(l,e.lens,0,32,C,0,e.work,{bits:5}),w=!1}e.lencode=S,e.lenbits=9,e.distcode=C,e.distbits=5}function E(e,t,n,i){var a,o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=y,n.inflateReset2=b,n.inflateResetKeep=v,n.inflateInit=function(e){return x(e,15)},n.inflateInit2=x,n.inflate=function(e,t){var n,p,m,_,v,y,b,x,S,C,w,D,O,k,A,j,M,N,P,ee,F,te,I,L,R=0,z=new r.Buf8(4),ne=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return d;(n=e.state).mode===12&&(n.mode=13),v=e.next_out,m=e.output,b=e.avail_out,_=e.next_in,p=e.input,y=e.avail_in,x=n.hold,S=n.bits,C=y,w=b,te=u;e:for(;;)switch(n.mode){case f:if(n.wrap===0){n.mode=13;break}for(;S<16;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if(2&n.wrap&&x===35615){z[n.check=0]=255&x,z[1]=x>>>8&255,n.check=a(n.check,z,2,0),S=x=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&x)<<8)+(x>>8))%31){e.msg=`incorrect header check`,n.mode=30;break}if((15&x)!=8){e.msg=`unknown compression method`,n.mode=30;break}if(S-=4,F=8+(15&(x>>>=4)),n.wbits===0)n.wbits=F;else if(F>n.wbits){e.msg=`invalid window size`,n.mode=30;break}n.dmax=1<<F,e.adler=n.check=1,n.mode=512&x?10:12,S=x=0;break;case 2:for(;S<16;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if(n.flags=x,(255&n.flags)!=8){e.msg=`unknown compression method`,n.mode=30;break}if(57344&n.flags){e.msg=`unknown header flags set`,n.mode=30;break}n.head&&(n.head.text=x>>8&1),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=a(n.check,z,2,0)),S=x=0,n.mode=3;case 3:for(;S<32;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}n.head&&(n.head.time=x),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,z[2]=x>>>16&255,z[3]=x>>>24&255,n.check=a(n.check,z,4,0)),S=x=0,n.mode=4;case 4:for(;S<16;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}n.head&&(n.head.xflags=255&x,n.head.os=x>>8),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=a(n.check,z,2,0)),S=x=0,n.mode=5;case 5:if(1024&n.flags){for(;S<16;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}n.length=x,n.head&&(n.head.extra_len=x),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=a(n.check,z,2,0)),S=x=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(y<(D=n.length)&&(D=y),D&&(n.head&&(F=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),r.arraySet(n.head.extra,p,_,D,F)),512&n.flags&&(n.check=a(n.check,p,D,_)),y-=D,_+=D,n.length-=D),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(y===0)break e;for(D=0;F=p[_+ D++],n.head&&F&&n.length<65536&&(n.head.name+=String.fromCharCode(F)),F&&D<y;);if(512&n.flags&&(n.check=a(n.check,p,D,_)),y-=D,_+=D,F)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(y===0)break e;for(D=0;F=p[_+ D++],n.head&&F&&n.length<65536&&(n.head.comment+=String.fromCharCode(F)),F&&D<y;);if(512&n.flags&&(n.check=a(n.check,p,D,_)),y-=D,_+=D,F)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;S<16;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if(x!==(65535&n.check)){e.msg=`header crc mismatch`,n.mode=30;break}S=x=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;S<32;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}e.adler=n.check=g(x),S=x=0,n.mode=11;case 11:if(n.havedict===0)return e.next_out=v,e.avail_out=b,e.next_in=_,e.avail_in=y,n.hold=x,n.bits=S,2;e.adler=n.check=1,n.mode=12;case 12:if(t===5||t===6)break e;case 13:if(n.last){x>>>=7&S,S-=7&S,n.mode=27;break}for(;S<3;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}switch(n.last=1&x,--S,3&(x>>>=1)){case 0:n.mode=14;break;case 1:if(T(n),n.mode=20,t!==6)break;x>>>=2,S-=2;break e;case 2:n.mode=17;break;case 3:e.msg=`invalid block type`,n.mode=30}x>>>=2,S-=2;break;case 14:for(x>>>=7&S,S-=7&S;S<32;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if((65535&x)!=(x>>>16^65535)){e.msg=`invalid stored block lengths`,n.mode=30;break}if(n.length=65535&x,S=x=0,n.mode=15,t===6)break e;case 15:n.mode=16;case 16:if(D=n.length){if(y<D&&(D=y),b<D&&(D=b),D===0)break e;r.arraySet(m,p,_,D,v),y-=D,_+=D,b-=D,v+=D,n.length-=D;break}n.mode=12;break;case 17:for(;S<14;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if(n.nlen=257+(31&x),x>>>=5,S-=5,n.ndist=1+(31&x),x>>>=5,S-=5,n.ncode=4+(15&x),x>>>=4,S-=4,286<n.nlen||30<n.ndist){e.msg=`too many length or distance symbols`,n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;S<3;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}n.lens[ne[n.have++]]=7&x,x>>>=3,S-=3}for(;n.have<19;)n.lens[ne[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,I={bits:n.lenbits},te=s(0,n.lens,0,19,n.lencode,0,n.work,I),n.lenbits=I.bits,te){e.msg=`invalid code lengths set`,n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;j=(R=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,M=65535&R,!((A=R>>>24)<=S);){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if(M<16)x>>>=A,S-=A,n.lens[n.have++]=M;else{if(M===16){for(L=A+2;S<L;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if(x>>>=A,S-=A,n.have===0){e.msg=`invalid bit length repeat`,n.mode=30;break}F=n.lens[n.have-1],D=3+(3&x),x>>>=2,S-=2}else if(M===17){for(L=A+3;S<L;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}S-=A,F=0,D=3+(7&(x>>>=A)),x>>>=3,S-=3}else{for(L=A+7;S<L;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}S-=A,F=0,D=11+(127&(x>>>=A)),x>>>=7,S-=7}if(n.have+D>n.nlen+n.ndist){e.msg=`invalid bit length repeat`,n.mode=30;break}for(;D--;)n.lens[n.have++]=F}}if(n.mode===30)break;if(n.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,n.mode=30;break}if(n.lenbits=9,I={bits:n.lenbits},te=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,I),n.lenbits=I.bits,te){e.msg=`invalid literal/lengths set`,n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,I={bits:n.distbits},te=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,I),n.distbits=I.bits,te){e.msg=`invalid distances set`,n.mode=30;break}if(n.mode=20,t===6)break e;case 20:n.mode=21;case 21:if(6<=y&&258<=b){e.next_out=v,e.avail_out=b,e.next_in=_,e.avail_in=y,n.hold=x,n.bits=S,o(e,w),v=e.next_out,m=e.output,b=e.avail_out,_=e.next_in,p=e.input,y=e.avail_in,x=n.hold,S=n.bits,n.mode===12&&(n.back=-1);break}for(n.back=0;j=(R=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,M=65535&R,!((A=R>>>24)<=S);){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if(j&&!(240&j)){for(N=A,P=j,ee=M;j=(R=n.lencode[ee+((x&(1<<N+P)-1)>>N)])>>>16&255,M=65535&R,!(N+(A=R>>>24)<=S);){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}x>>>=N,S-=N,n.back+=N}if(x>>>=A,S-=A,n.back+=A,n.length=M,j===0){n.mode=26;break}if(32&j){n.back=-1,n.mode=12;break}if(64&j){e.msg=`invalid literal/length code`,n.mode=30;break}n.extra=15&j,n.mode=22;case 22:if(n.extra){for(L=n.extra;S<L;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}n.length+=x&(1<<n.extra)-1,x>>>=n.extra,S-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;j=(R=n.distcode[x&(1<<n.distbits)-1])>>>16&255,M=65535&R,!((A=R>>>24)<=S);){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if(!(240&j)){for(N=A,P=j,ee=M;j=(R=n.distcode[ee+((x&(1<<N+P)-1)>>N)])>>>16&255,M=65535&R,!(N+(A=R>>>24)<=S);){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}x>>>=N,S-=N,n.back+=N}if(x>>>=A,S-=A,n.back+=A,64&j){e.msg=`invalid distance code`,n.mode=30;break}n.offset=M,n.extra=15&j,n.mode=24;case 24:if(n.extra){for(L=n.extra;S<L;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}n.offset+=x&(1<<n.extra)-1,x>>>=n.extra,S-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg=`invalid distance too far back`,n.mode=30;break}n.mode=25;case 25:if(b===0)break e;if(D=w-b,n.offset>D){if((D=n.offset-D)>n.whave&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break}O=D>n.wnext?(D-=n.wnext,n.wsize-D):n.wnext-D,D>n.length&&(D=n.length),k=n.window}else k=m,O=v-n.offset,D=n.length;for(b<D&&(D=b),b-=D,n.length-=D;m[v++]=k[O++],--D;);n.length===0&&(n.mode=21);break;case 26:if(b===0)break e;m[v++]=n.length,b--,n.mode=21;break;case 27:if(n.wrap){for(;S<32;){if(y===0)break e;y--,x|=p[_++]<<S,S+=8}if(w-=b,e.total_out+=w,n.total+=w,w&&(e.adler=n.check=n.flags?a(n.check,m,w,v-w):i(n.check,m,w,v-w)),w=b,(n.flags?x:g(x))!==n.check){e.msg=`incorrect data check`,n.mode=30;break}S=x=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;S<32;){if(y===0)break e;y--,x+=p[_++]<<S,S+=8}if(x!==(4294967295&n.total)){e.msg=`incorrect length check`,n.mode=30;break}S=x=0}n.mode=29;case 29:te=1;break e;case 30:te=-3;break e;case 31:return-4;case 32:default:return d}return e.next_out=v,e.avail_out=b,e.next_in=_,e.avail_in=y,n.hold=x,n.bits=S,(n.wsize||w!==e.avail_out&&n.mode<30&&(n.mode<27||t!==4))&&E(e,e.output,e.next_out,w-e.avail_out)?(n.mode=31,-4):(C-=e.avail_in,w-=e.avail_out,e.total_in+=C,e.total_out+=w,n.total+=w,n.wrap&&w&&(e.adler=n.check=n.flags?a(n.check,m,w,e.next_out-w):i(n.check,m,w,e.next_out-w)),e.data_type=n.bits+(n.last?64:0)+(n.mode===12?128:0)+(n.mode===20||n.mode===15?256:0),(C==0&&w===0||t===4)&&te===u&&(te=-5),te)},n.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&=null,e.state=null,u},n.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?((n.head=t).done=!1,u):d},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?(n=e.state).wrap!==0&&n.mode!==11?d:n.mode===11&&i(1,t,r,0)!==n.check?-3:E(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,u):d},n.inflateInfo=`pako inflate (from Nodeca project)`},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){var r=e(`../utils/common`),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,c,l,u,d,f){var p,m,g,_,v,y,b,x,S,C=f.bits,w=0,T=0,E=0,D=0,O=0,k=0,A=0,j=0,M=0,N=0,P=null,ee=0,F=new r.Buf16(16),te=new r.Buf16(16),I=null,L=0;for(w=0;w<=15;w++)F[w]=0;for(T=0;T<c;T++)F[t[n+T]]++;for(O=C,D=15;1<=D&&F[D]===0;D--);if(D<O&&(O=D),D===0)return l[u++]=20971520,l[u++]=20971520,f.bits=1,0;for(E=1;E<D&&F[E]===0;E++);for(O<E&&(O=E),w=j=1;w<=15;w++)if(j<<=1,(j-=F[w])<0)return-1;if(0<j&&(e===0||D!==1))return-1;for(te[1]=0,w=1;w<15;w++)te[w+1]=te[w]+F[w];for(T=0;T<c;T++)t[n+T]!==0&&(d[te[t[n+T]]++]=T);if(y=e===0?(P=I=d,19):e===1?(P=i,ee-=257,I=a,L-=257,256):(P=o,I=s,-1),w=E,v=u,A=T=N=0,g=-1,_=(M=1<<(k=O))-1,e===1&&852<M||e===2&&592<M)return 1;for(;;){for(b=w-A,S=d[T]<y?(x=0,d[T]):d[T]>y?(x=I[L+d[T]],P[ee+d[T]]):(x=96,0),p=1<<w-A,E=m=1<<k;l[v+(N>>A)+(m-=p)]=b<<24|x<<16|S|0,m!==0;);for(p=1<<w-1;N&p;)p>>=1;if(p===0?N=0:(N&=p-1,N+=p),T++,--F[w]==0){if(w===D)break;w=t[n+d[T]]}if(O<w&&(N&_)!==g){for(A===0&&(A=O),v+=E,j=1<<(k=w-A);k+A<D&&!((j-=F[k+A])<=0);)k++,j<<=1;if(M+=1<<k,e===1&&852<M||e===2&&592<M)return 1;l[g=N&_]=O<<24|k<<16|v-u|0}}return N!==0&&(l[v+N]=w-A<<24|4194304),f.bits=O,0}},{"../utils/common":41}],51:[function(e,t,n){t.exports={2:`need dictionary`,1:`stream end`,0:``,"-1":`file error`,"-2":`stream error`,"-3":`data error`,"-4":`insufficient memory`,"-5":`buffer error`,"-6":`incompatible version`}},{}],52:[function(e,t,n){var r=e(`../utils/common`),i=0,a=1;function o(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,c=29,l=256,u=l+1+c,d=30,f=19,p=2*u+1,m=15,g=16,_=7,v=256,y=16,b=17,x=18,S=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],E=Array(2*(u+2));o(E);var D=Array(2*d);o(D);var O=Array(512);o(O);var k=Array(256);o(k);var A=Array(c);o(A);var j,M,N,P=Array(d);function ee(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function F(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function te(e){return e<256?O[e]:O[256+(e>>>7)]}function I(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function L(e,t,n){e.bi_valid>g-n?(e.bi_buf|=t<<e.bi_valid&65535,I(e,e.bi_buf),e.bi_buf=t>>g-e.bi_valid,e.bi_valid+=n-g):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function R(e,t,n){L(e,n[2*t],n[2*t+1])}function z(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function ne(e,t,n){var r,i,a=Array(m+1),o=0;for(r=1;r<=m;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];s!==0&&(e[2*i]=z(a[s]++,s))}}function re(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<f;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*v]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function ie(e){8<e.bi_valid?I(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function B(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function ae(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&B(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!B(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function oe(e,t,n){var r,i,a,o,s=0;if(e.last_lit!==0)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,r===0?R(e,i,t):(R(e,(a=k[i])+l+1,t),(o=S[a])!==0&&L(e,i-=A[a],o),R(e,a=te(--r),n),(o=C[a])!==0&&L(e,r-=P[a],o)),s<e.last_lit;);R(e,v,t)}function se(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=p,n=0;n<c;n++)a[2*n]===0?a[2*n+1]=0:(e.heap[++e.heap_len]=l=n,e.depth[n]=0);for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;1<=n;n--)ae(e,a,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],ae(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,ae(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,c=t.dyn_tree,l=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,g=t.stat_desc.extra_base,_=t.stat_desc.max_length,v=0;for(a=0;a<=m;a++)e.bl_count[a]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<p;n++)_<(a=c[2*c[2*(r=e.heap[n])+1]+1]+1)&&(a=_,v++),c[2*r+1]=a,l<r||(e.bl_count[a]++,o=0,g<=r&&(o=f[r-g]),s=c[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(u[2*r+1]+o)));if(v!==0){do{for(a=_-1;e.bl_count[a]===0;)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[_]--,v-=2}while(0<v);for(a=_;a!==0;a--)for(r=e.bl_count[a];r!==0;)l<(i=e.heap[--n])||(c[2*i+1]!==a&&(e.opt_len+=(a-c[2*i+1])*c[2*i],c[2*i+1]=a),r--)}}(e,t),ne(a,l,e.bl_count)}function V(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<c&&i===o||(s<l?e.bl_tree[2*i]+=s:i===0?s<=10?e.bl_tree[2*b]++:e.bl_tree[2*x]++:(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*y]++),a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4))}function ce(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<c&&i===o)){if(s<l)for(;R(e,i,e.bl_tree),--s!=0;);else i===0?s<=10?(R(e,b,e.bl_tree),L(e,s-3,3)):(R(e,x,e.bl_tree),L(e,s-11,7)):(i!==a&&(R(e,i,e.bl_tree),s--),R(e,y,e.bl_tree),L(e,s-3,2));a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4)}}o(P);var le=!1;function H(e,t,n,i){L(e,(s<<1)+ +!!i,3),function(e,t,n,i){ie(e),i&&(I(e,n),I(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){le||=(function(){var e,t,n,r,i,a=Array(m+1);for(r=n=0;r<c-1;r++)for(A[r]=n,e=0;e<1<<S[r];e++)k[n++]=r;for(k[n-1]=r,r=i=0;r<16;r++)for(P[r]=i,e=0;e<1<<C[r];e++)O[i++]=r;for(i>>=7;r<d;r++)for(P[r]=i<<7,e=0;e<1<<C[r]-7;e++)O[256+ i++]=r;for(t=0;t<=m;t++)a[t]=0;for(e=0;e<=143;)E[2*e+1]=8,e++,a[8]++;for(;e<=255;)E[2*e+1]=9,e++,a[9]++;for(;e<=279;)E[2*e+1]=7,e++,a[7]++;for(;e<=287;)E[2*e+1]=8,e++,a[8]++;for(ne(E,u+1,a),e=0;e<d;e++)D[2*e+1]=5,D[2*e]=z(e,5);j=new ee(E,S,l+1,u,m),M=new ee(D,C,0,d,m),N=new ee([],w,0,f,_)}(),!0),e.l_desc=new F(e.dyn_ltree,j),e.d_desc=new F(e.dyn_dtree,M),e.bl_desc=new F(e.bl_tree,N),e.bi_buf=0,e.bi_valid=0,re(e)},n._tr_stored_block=H,n._tr_flush_block=function(e,t,n,r){var o,s,c=0;0<e.level?(e.strm.data_type===2&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&e.dyn_ltree[2*t]!==0)return i;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return a;for(t=32;t<l;t++)if(e.dyn_ltree[2*t]!==0)return a;return i}(e)),se(e,e.l_desc),se(e,e.d_desc),c=function(e){var t;for(V(e,e.dyn_ltree,e.l_desc.max_code),V(e,e.dyn_dtree,e.d_desc.max_code),se(e,e.bl_desc),t=f-1;3<=t&&e.bl_tree[2*T[t]+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=n+5,n+4<=o&&t!==-1?H(e,t,n,r):e.strategy===4||s===o?(L(e,2+ +!!r,3),oe(e,E,D)):(L(e,4+ +!!r,3),function(e,t,n,r){var i;for(L(e,t-257,5),L(e,n-1,5),L(e,r-4,4),i=0;i<r;i++)L(e,e.bl_tree[2*T[i]+1],3);ce(e,e.dyn_ltree,t-1),ce(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),oe(e,e.dyn_ltree,e.dyn_dtree)),re(e),r&&ie(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,t===0?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(k[n]+l+1)]++,e.dyn_dtree[2*te(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){L(e,2,3),R(e,v,E),function(e){e.bi_valid===16?(I(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=``,this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){(function(e,t){if(!e.setImmediate){var n,r,i,a,o=1,s={},c=!1,l=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,n={}.toString.call(e.process)===`[object process]`?function(e){process.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage(``,`*`),e.onmessage=n,t}}()?(a=`setImmediate$`+Math.random()+`$`,e.addEventListener?e.addEventListener(`message`,p,!1):e.attachEvent(`onmessage`,p),function(t){e.postMessage(a+t,`*`)}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){i.port2.postMessage(e)}):l&&`onreadystatechange`in l.createElement(`script`)?(r=l.documentElement,function(e){var t=l.createElement(`script`);t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(f,0,e)},u.setImmediate=function(e){typeof e!=`function`&&(e=Function(``+e));for(var t=Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];return s[o]={callback:e,args:t},n(o),o++},u.clearImmediate=d}function d(e){delete s[e]}function f(e){if(c)setTimeout(f,0,e);else{var n=s[e];if(n){c=!0;try{(function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}})(n)}finally{d(e),c=!1}}}}function p(t){t.source===e&&typeof t.data==`string`&&t.data.indexOf(a)===0&&f(+t.data.slice(a.length))}})(typeof self>`u`?e===void 0?this:e:self)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}]},{},[10])(10)})}))()),j4={class:`sidebar-title`},M4={class:`edit-container`},N4={class:`color`},P4={class:`color-title subtitle`},F4={class:`opacity`},I4={class:`opacity-title subtitle`},L4={class:`tool`},R4={class:`text`},z4={class:`text-title subtitle`},B4={class:`content-block`},V4={class:`text-align`},H4={class:`border`},U4={class:`border`},W4={class:`spacing`},G4={class:`spacing-title`},K4={class:`block`},q4={class:`layer`},J4={class:`subtitle`},Y4={class:`buttons`},X4=[`title`],Z4=[`title`],Q4=[`title`],$4=[`title`],e3={class:`edit-container`},t3={class:`overview`},n3=[`src`],r3={class:`rotate`},i3={class:`subtitle`},a3={class:`buttons`},o3=[`title`],s3=[`title`],c3={class:`flips`},l3={class:`subtitle`},u3={class:`buttons`},d3=[`title`],f3=[`title`],p3={class:`opacity`},m3={class:`opacity-title subtitle`},h3={class:`tool`},g3={class:`tools`},_3={class:`subtitle`},v3={class:`buttons`},y3=[`title`],b3=[`title`],x3=[`title`],S3={class:`layer`},C3={class:`subtitle`},w3={class:`buttons`},T3=[`title`],E3=[`title`],D3=[`title`],O3=[`title`],k3={__name:`ContentEditorPanel`,setup(e){let t=ye(),n=T(()=>t.isElementOpen(H.CONTENT_EDITOR_PANEL)),r=T(()=>t.getContentEditorType),i=T(()=>t.getCustomFonts),a=T(()=>t.getFontSizes),{t:o}=It(),s=!1,l=N({color:`rgb(0, 0, 0)`,opacity:100,fontFamily:`Helvetica`,fontStyle:0,alignType:2,fontSize:14,lineSpacing:1,paragraphSpacing:0,characterSpacing:0}),u=P?[`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`,`rgb(255, 246, 179)`,`rgb(254, 191, 191)`,`rgb(100, 188, 56)`]:[`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`],f=J(`100%`),p=[25,50,75,100].map(e=>({label:`${e}%`,value:`${e}%`,class:`edit-select`}));U.addEvent(`LoadFont`,e=>{let n=e.fontFamily;t.setCustomFonts(n)}),W(()=>i.value,e=>{g.value=m(e)},{deep:!0}),W(()=>a.value,e=>{v.value=e.map(e=>({label:`${e} pt`,value:e,class:`edit-select`}))});let m=e=>{if(e.length)return e.map(e=>({label:e.fontFamily,value:e.fontName,class:`edit-select`}))},g=J([]);g.value=m(i.value);let _=T(()=>[{label:o(`common.fontStyles.regular`),value:0,class:`edit-select`},{label:o(`common.fontStyles.bold`),value:1,class:`edit-select`},{label:o(`common.fontStyles.boldOblique`),value:3,class:`edit-select`},{label:o(`common.fontStyles.oblique`),value:2,class:`edit-select`}]),v=J([]);v.value=a.value.map(e=>({label:`${e} pt`,value:e,class:`edit-select`}));let b=J(``),C=J(!1);W(()=>n.value,e=>{e&&t.closeElement(H.PAGE_MODE_PANEL)});let w=()=>{F(`opacity`,l.opacity)};W(()=>l.fontFamily,e=>{F(`fontFamily`,e)}),W(()=>l.fontStyle,e=>{F(`fontStyle`,e)}),W(()=>l.opacity,e=>{f.value=e===null?`-`:`${e}%`}),W(()=>l.fontSize,e=>{typeof e==`number`&&F(`fontSize`,l.fontSize)});let O=e=>{l.color=e,F(`color`,e)},k=()=>{l.opacity=Number.isNaN(Number.parseInt(f.value))?100:Number.parseInt(f.value),F(`opacity`,l.opacity)},A=e=>{l.alignType=e,F(`alignType`,l.alignType)},j=e=>{e!==null&&(l.lineSpacing=Math.round(e*2)/2,F(`lineSpacing`,l.lineSpacing))},M=e=>{e!==null&&(l.paragraphSpacing=Math.round(e*2)/2,F(`paragraphSpacing`,l.paragraphSpacing))},ee=e=>{e!==null&&(l.characterSpacing=Math.round(e*2)/2,F(`characterSpacing`,l.characterSpacing))};U.addEvent(`contentPropertyChange`,async e=>{s=!0;for(let n in e){n===`type`&&t.setContentEditorType(e[n]),n===`isOpen`&&(e.isOpen?t.openElement(H.CONTENT_EDITOR_PANEL):t.closeElement(H.CONTENT_EDITOR_PANEL)),n===`imageUrl`&&(b.value=e[n]),C.value=e.isMultiple||!1;for(let t in l)n===t&&(l[t]=ie(e[n],t),n===`fontSize`&&e.fontSize&&!a.value.includes(e.fontSize)&&(l.fontSize=e.fontSize+` pt`))}await E(),s=!1});let F=async(e,t)=>{if(s)return;let n=U.getContentEditManager().getSelectedEditBoxes();n.length===1?U.setContentEditorProperty(r.value,{[e]:t}):e===`tool`&&t===`export`?await ne(n):n.length>1&&await U.getContentEditManager().setEditBoxesProperty(n,{[e]:t})},te=()=>{let e=U.getContentEditManager().getSelectedEditBoxes();e.length===1&&e[0].bringToFront()},I=()=>{let e=U.getContentEditManager().getSelectedEditBoxes();e.length===1&&e[0].bringForward()},L=()=>{let e=U.getContentEditManager().getSelectedEditBoxes();e.length===1&&e[0].bringToBack()},z=()=>{let e=U.getContentEditManager().getSelectedEditBoxes();e.length===1&&e[0].bringBackward()},ne=async e=>{let t=new A4.default,n=t.folder(`images`);await Promise.all(e.map(async e=>{let t=(await e.getImageData()).replace(/^data:image\/\w+;base64,/,``),r=`image_${e.pageNumber}_${e.editAreaIndex+1}.png`;n.file(r,t,{base64:!0})}));try{(0,RD.saveAs)(await t.generateAsync({type:`blob`}),`images.zip`)}catch(e){console.error(`Download Failed: `,e)}},re={color:``,fontFamily:``,fontStyle:``,alignType:0,fontSize:``,lineSpacing:0,paragraphSpacing:0,characterSpacing:0},ie=(e,t)=>e===null?typeof re[t]==`number`?0:typeof re[t]==`string`?`-`:e:e===void 0?re[t]:e;return(e,t)=>{let n=V$,i=rw,a=$b,o=Yb,s=Gb,m=Vb,T=AI,E=bz,N=Oj,ne=gj,re=cj,ie=fj,B=ij,ae=vB,oe=SB,se=uP,ce=mP,le=oB,H=MN,de=vM;return S(),V(`div`,{class:D([`editor-panel property-panel`,{mobile:K(P)}]),id:`editorPanel`},[c(`div`,j4,d(r.value===`text`?e.$t(`contentEditor.textProperties.title`):e.$t(`contentEditor.imageProperties.title`)),1),R(c(`div`,M4,[c(`div`,N4,[c(`div`,P4,d(e.$t(`contentEditor.textProperties.fontColor`)),1),x(n,{colors:K(u),propertyColor:K(l).color,onSetActiveColor:t[0]||=e=>O(e),to:`#editorPanel`},null,8,[`colors`,`propertyColor`])]),c(`div`,F4,[c(`div`,I4,d(e.$t(`common.uiElements.opacity`)),1),c(`div`,L4,[x(K(xb),{value:K(l).opacity,"onUpdate:value":t[1]||=e=>K(l).opacity=e,tooltip:!1,step:1,max:100,min:0,class:`width-slider`,"on-dragend":w},{thumb:G(()=>[x(i)]),_:1},8,[`value`]),x(K(kv),{value:K(f),"onUpdate:value":[t[2]||=e=>ue(f)?f.value=e:f=e,k],options:K(p),to:`#editorPanel`},{arrow:G(()=>[x(a)]),_:1},8,[`value`,`options`])])]),c(`div`,R4,[c(`div`,z4,d(e.$t(`common.uiElements.font`)),1),x(K(kv),{value:K(l).fontFamily,"onUpdate:value":t[3]||=e=>K(l).fontFamily=e,options:g.value,to:`#editorPanel`,class:`text-family`},{arrow:G(()=>[x(a)]),_:1},8,[`value`,`options`]),c(`div`,B4,[x(K(kv),{value:K(l).fontStyle,"onUpdate:value":t[4]||=e=>K(l).fontStyle=e,options:_.value,to:`#editorPanel`,class:`font-style-select`},{arrow:G(()=>[x(a)]),_:1},8,[`value`,`options`]),x(K(kv),{value:K(l).fontSize,"onUpdate:value":t[5]||=e=>K(l).fontSize=e,options:v.value,to:`#editorPanel`,class:`font-size-select`},{arrow:G(()=>[x(a)]),_:1},8,[`value`,`options`])]),c(`div`,V4,[c(`div`,{class:D({active:K(l).alignType===2}),onClick:t[6]||=e=>A(2)},[c(`span`,H4,[x(o)])],2),c(`div`,{class:D({active:K(l).alignType===5}),onClick:t[7]||=e=>A(5)},[c(`span`,U4,[x(s)])],2),c(`div`,{class:D({active:K(l).alignType===3}),onClick:t[8]||=e=>A(3)},[c(`span`,null,[x(m)])],2)])]),c(`div`,W4,[c(`div`,G4,d(e.$t(`contentEditor.textProperties.spacing`)),1),c(`div`,K4,[c(`div`,null,[x(T),x(K(gb),{value:K(l).lineSpacing,"onUpdate:value":[t[9]||=e=>K(l).lineSpacing=e,j],placeholder:e.$t(`contentEditor.textProperties.lineSpacing`),min:`1`,max:`10`,step:.5,"update-value-on-input":!1},{"minus-icon":G(()=>[...t[21]||=[c(`div`,{class:`arrow down`},null,-1)]]),"add-icon":G(()=>[...t[22]||=[c(`div`,{class:`arrow up`},null,-1)]]),_:1},8,[`value`,`placeholder`])]),c(`div`,null,[x(E),x(K(gb),{value:K(l).paragraphSpacing,"onUpdate:value":[t[10]||=e=>K(l).paragraphSpacing=e,M],placeholder:e.$t(`contentEditor.textProperties.paragraphSpacing`),min:`0`,max:`10`,step:.5,"update-value-on-input":!1},{"minus-icon":G(()=>[...t[23]||=[c(`div`,{class:`arrow down`},null,-1)]]),"add-icon":G(()=>[...t[24]||=[c(`div`,{class:`arrow up`},null,-1)]]),_:1},8,[`value`,`placeholder`])]),c(`div`,null,[x(N),x(K(gb),{value:K(l).characterSpacing,"onUpdate:value":[t[11]||=e=>K(l).characterSpacing=e,ee],placeholder:e.$t(`contentEditor.textProperties.characterSpacing`),min:`0`,max:`10`,step:.5,"update-value-on-input":!1},{"minus-icon":G(()=>[...t[25]||=[c(`div`,{class:`arrow down`},null,-1)]]),"add-icon":G(()=>[...t[26]||=[c(`div`,{class:`arrow up`},null,-1)]]),_:1},8,[`value`,`placeholder`])])])]),R(c(`div`,q4,[c(`div`,J4,d(e.$t(`contentEditor.layer.title`)),1),c(`div`,Y4,[c(`div`,{onClick:te,title:e.$t(`contentEditor.layer.bringToFront`)},[c(`span`,null,[x(ne)])],8,X4),c(`div`,{onClick:I,title:e.$t(`contentEditor.layer.bringForward`)},[c(`span`,null,[x(re)])],8,Z4),c(`div`,{onClick:L,title:e.$t(`contentEditor.layer.bringToBack`)},[c(`span`,null,[x(ie)])],8,Q4),c(`div`,{onClick:z,title:e.$t(`contentEditor.layer.bringBackward`)},[c(`span`,null,[x(B)])],8,$4)])],512),[[Re,!C.value]])],512),[[Re,r.value===`text`]]),R(c(`div`,e3,[R(c(`div`,t3,[R(c(`img`,{src:b.value},null,8,n3),[[Re,b.value]])],512),[[Re,!C.value]]),c(`div`,r3,[c(`div`,i3,d(e.$t(`contentEditor.imageProperties.rotate`)),1),c(`div`,a3,[c(`div`,{onClick:t[12]||=e=>F(`angle`,`90`),title:e.$t(`contentEditor.imageProperties.rotateLeft`)},[x(ae),y(d(e.$t(`contentEditor.imageProperties.rotateLeft`)),1)],8,o3),c(`div`,{onClick:t[13]||=e=>F(`angle`,`-90`),title:e.$t(`contentEditor.imageProperties.rotateRight`)},[x(oe),y(d(e.$t(`contentEditor.imageProperties.rotateRight`)),1)],8,s3)])]),c(`div`,c3,[c(`div`,l3,d(e.$t(`contentEditor.imageProperties.flip`)),1),c(`div`,u3,[c(`div`,{onClick:t[14]||=e=>F(`flip`,`x`),title:e.$t(`contentEditor.imageProperties.flipHorizontal`)},[c(`span`,null,[x(se)])],8,d3),c(`div`,{onClick:t[15]||=e=>F(`flip`,`y`),title:e.$t(`contentEditor.imageProperties.flipVertical`)},[c(`span`,null,[x(ce)])],8,f3)])]),c(`div`,p3,[c(`div`,m3,d(e.$t(`common.uiElements.opacity`)),1),c(`div`,h3,[x(K(xb),{value:K(l).opacity,"onUpdate:value":t[16]||=e=>K(l).opacity=e,tooltip:!1,step:1,max:100,min:0,"on-dragend":w,class:`width-slider`},{thumb:G(()=>[x(i)]),_:1},8,[`value`]),x(K(kv),{value:K(f),"onUpdate:value":[t[17]||=e=>ue(f)?f.value=e:f=e,k],options:K(p),to:`#editorPanel`},{arrow:G(()=>[x(a)]),_:1},8,[`value`,`options`])])]),c(`div`,g3,[c(`div`,_3,d(e.$t(`contentEditor.imageProperties.tools`)),1),c(`div`,v3,[R(c(`div`,{onClick:t[18]||=e=>F(`tool`,`replace`),title:e.$t(`contentEditor.imageProperties.replace`)},[c(`span`,null,[x(le)])],8,y3),[[Re,!C.value]]),c(`div`,{onClick:t[19]||=e=>F(`tool`,`export`),title:e.$t(`contentEditor.imageProperties.export`)},[c(`span`,null,[x(H)])],8,b3),R(c(`div`,{onClick:t[20]||=e=>F(`tool`,`crop`),title:e.$t(`contentEditor.imageProperties.crop`)},[c(`span`,null,[x(de)])],8,x3),[[Re,!C.value]])])]),R(c(`div`,S3,[c(`div`,C3,d(e.$t(`contentEditor.layer.title`)),1),c(`div`,w3,[c(`div`,{onClick:te,title:e.$t(`contentEditor.layer.bringToFront`)},[c(`span`,null,[x(ne)])],8,T3),c(`div`,{onClick:I,title:e.$t(`contentEditor.layer.bringForward`)},[c(`span`,null,[x(re)])],8,E3),c(`div`,{onClick:L,title:e.$t(`contentEditor.layer.bringToBack`)},[c(`span`,null,[x(ie)])],8,D3),c(`div`,{onClick:z,title:e.$t(`contentEditor.layer.bringBackward`)},[c(`span`,null,[x(B)])],8,O3)])],512),[[Re,!C.value]])],512),[[Re,r.value===`image`]])],2)}}},A3={class:`color-separation-panel`},j3={class:`sidebar-title`},M3={class:`container`},N3={class:`all`},P3={class:`color-list`},F3=[`onClick`],I3={class:`name`},L3=B({__name:`ColorSeparationPanel`,setup(e){let t=ye(),n=T(()=>t.isElementOpen(H.COLOR_SEPARATION_PANEL)),r=T(()=>t.getToolMode),i=J([]),a=J(new Set);W(r,e=>{e===`separation`?(t.openElement(H.COLOR_SEPARATION_PANEL),t.closeElement(H.PAGE_MODE_PANEL)):n.value&&(t.closeElement(H.COLOR_SEPARATION_PANEL),a.value.clear())}),U.addEvent(`colorSeparationUpdate`,e=>{i.value=e}),U.addEvent(`ignoreColorsUpdate`,e=>{a.value.clear(),e.forEach(e=>a.value.add(e))});let o=async()=>{t.setCommonLoading(!0);let e=a.value.size!==0;i.value.forEach(t=>{e?a.value.delete(t.index):a.value.add(t.index)}),await U.updateViewWithColorIndex(Array.from(a.value)),t.setCommonLoading(!1)},s=async e=>{t.setCommonLoading(!0),a.value.has(e.index)?a.value.delete(e.index):a.value.add(e.index),await U.updateViewWithColorIndex(Array.from(a.value)),t.setCommonLoading(!1)},l=(e,t=220)=>{let n=/rgb\(\s*(\d+),\s*(\d+),\s*(\d+)\s*\)/.exec(e);if(!n)return null;let r=parseInt(n[1]),i=parseInt(n[2]),a=parseInt(n[3]);return .299*r+.587*i+.114*a>t};return(e,t)=>{let n=Ij;return S(),V(`div`,A3,[c(`div`,j3,d(e.$t(`toolbar.toolbarGroup.separation`)),1),c(`div`,M3,[c(`div`,N3,[c(`div`,{class:D([`check-box`,{active:a.value.size===0}]),onClick:o},[R(x(n,null,null,512),[[Re,a.value.size===0]])],2),c(`span`,null,d(e.$t(`colorSeparation.toggleColor`)),1)]),c(`div`,P3,[(S(!0),V(q,null,z(i.value,e=>(S(),V(`div`,{class:`row`,key:e.index},[c(`div`,{class:D([`check-box`,{active:!a.value.has(e.index),darker:l(e.color)}]),onClick:t=>s(e),style:A({borderColor:e.color,color:e.color})},[R(x(n,null,null,512),[[Re,!a.value.has(e.index)]])],14,F3),c(`span`,I3,d(e.name),1),c(`span`,null,d(e.intensity||0)+`%`,1)]))),128))])])])}}},[[`__scopeId`,`data-v-69cc04dc`]]),R3={class:`redaction-panel property-panel`},z3={class:`sidebar-title`},B3={class:`edit-container`},V3={class:`color`},H3={class:`color-title subtitle`},U3={class:`color`},W3={class:`color-title subtitle`},G3={class:`note`},K3={class:`subtitle`},q3={class:`text`},J3={class:`subtitle`},Y3={class:`content-block`},X3={class:`text-align`},Z3={class:`color`},Q3={class:`color-title subtitle`},$3={__name:`RedactionPanel`,setup(e){let t=ye(),n=T(()=>t.isElementOpen(H.REDACTION_PANEL)),r=T(()=>t.getCustomFonts),i=T(()=>t.getCurrentToolbarGroup),{t:a}=It(),o=a,s=N({borderColor:`#FF0000`,fillColor:`rgb(0, 0, 0)`,color:`#FF0000`,fontName:`Helvetica`,fontStyle:`normal`,textAlignment:`left`,fontSize:14,overlayText:``}),l=P?[`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`,`rgb(255, 246, 179)`,`rgb(254, 191, 191)`,`rgb(100, 188, 56)`]:[`rgb(255, 0, 0)`,`rgb(255, 236, 102)`,`rgb(45, 119, 250)`];U.addEvent(`LoadFont`,e=>{let n=e.fontFamily;t.setCustomFonts(n)}),W(()=>r.value,e=>{f.value=u(e)},{deep:!0});let u=e=>{if(e.length)return e.map(e=>({label:e.fontFamily,value:e.fontName,class:`edit-select`}))},f=J([]);f.value=u(r.value);let p=T(()=>[{label:a(`common.fontStyles.regular`),value:`normal`},{label:a(`common.fontStyles.bold`),value:`bold`},{label:a(`common.fontStyles.boldOblique`),value:`boldOblique`},{label:a(`common.fontStyles.oblique`),value:`oblique`}]),m=[12,14,16,20,24,28].map(e=>({label:`${e} pt`,value:e,class:`edit-select`}));W(()=>n.value,e=>{e&&w(U.getToolStyles(`redact`))}),W(()=>i.value,e=>{e!==`toolbarGroup-Redaction`&&E()}),W(()=>s.fontName,e=>{C({fontName:e})}),W(()=>s.fontStyle,e=>{let t=/bold/i.test(e)?`bold`:`normal`;C({fontStyle:/(oblique|italic)/i.test(e)?`oblique`:`normal`,fontWeight:t})}),W(()=>s.fontSize,e=>{typeof e==`number`&&C({fontSize:s.fontSize})});let g=(e,t)=>{s[e]=t,C({[e]:t})},_=e=>{s.textAlignment=e,C({textAlignment:e})},v=()=>{C({overlayText:s.overlayText})},y=null,b=()=>{clearTimeout(y),y=setTimeout(()=>{v()},500)},C=e=>{let t=U.getAnnotationManager().getSelectedAnnotations();if(!t.length){U.setToolStyles(`redact`,e);return}t.forEach(t=>{t.annotation.type===`redact`&&!t.annotation.erasure&&t.setRichTextStyle(e)})},w=e=>{let t=e.fontStyle||`normal`,n=e.fontWeight||`normal`;n===`bold`&&t===`oblique`?s.fontStyle=`boldOblique`:n===`bold`?s.fontStyle=`bold`:t===`oblique`?s.fontStyle=`oblique`:s.fontStyle=`normal`;for(let t in s)Object.hasOwn(e,t)&&(s[t]=e[t])},E=()=>{t.closeElement(H.REDACTION_PANEL)};return U.addEvent(`annotationSelected`,e=>{e.length===1&&w(e[0].annotation)}),U.addEvent(`annotationDeselected`,()=>{w(U.getToolStyles(`redact`))}),(e,t)=>{let n=V$,r=$b,i=Yb,a=Gb,u=Vb;return S(),V(`div`,R3,[c(`div`,z3,d(K(o)(`common.properties`)),1),c(`div`,B3,[c(`div`,V3,[c(`div`,H3,d(K(o)(`panels.redaction.borderColor`)),1),x(n,{colors:K(l),propertyColor:s.borderColor,onSetActiveColor:t[0]||=e=>g(`borderColor`,e),to:`.redaction-panel`},null,8,[`colors`,`propertyColor`])]),c(`div`,U3,[c(`div`,W3,d(K(o)(`panels.redaction.fillColor`)),1),x(n,{colors:K(l),propertyColor:s.fillColor,onSetActiveColor:t[1]||=e=>g(`fillColor`,e),to:`.redaction-panel`},null,8,[`colors`,`propertyColor`])]),c(`div`,G3,[c(`div`,K3,d(K(o)(`panels.redaction.overlayText`)),1),R(c(`textarea`,{name:`note`,rows:`4`,"onUpdate:modelValue":t[2]||=e=>s.overlayText=e,onBlur:v,onInput:b},null,544),[[Me,s.overlayText]])]),c(`div`,q3,[c(`div`,J3,d(K(o)(`common.uiElements.font`)),1),x(K(kv),{value:s.fontName,"onUpdate:value":t[3]||=e=>s.fontName=e,options:f.value,to:`.redaction-panel`,class:`text-family`},{arrow:G(()=>[x(r)]),_:1},8,[`value`,`options`]),c(`div`,Y3,[x(K(kv),{value:s.fontStyle,"onUpdate:value":t[4]||=e=>s.fontStyle=e,options:p.value,to:`.redaction-panel`,class:`font-style-select`},{arrow:G(()=>[x(r)]),_:1},8,[`value`,`options`]),x(K(kv),{value:s.fontSize,"onUpdate:value":t[5]||=e=>s.fontSize=e,options:K(m),to:`.redaction-panel`,class:`font-size-select`},{arrow:G(()=>[x(r)]),_:1},8,[`value`,`options`])]),c(`div`,X3,[c(`div`,{class:D({active:s.textAlignment===`left`}),onClick:t[6]||=e=>_(`left`)},[c(`span`,{class:D({border:s.textAlignment===`right`})},[x(i)],2)],2),c(`div`,{class:D({active:s.textAlignment===`center`}),onClick:t[7]||=e=>_(`center`)},[c(`span`,{class:D({border:s.textAlignment===`left`})},[x(a)],2)],2),c(`div`,{class:D({active:s.textAlignment===`right`}),onClick:t[8]||=e=>_(`right`)},[c(`span`,null,[x(u)])],2)])]),c(`div`,Z3,[c(`div`,Q3,d(K(o)(`contentEditor.textProperties.fontColor`)),1),x(n,{colors:K(l),propertyColor:s.color,onSetActiveColor:t[9]||=e=>g(`color`,e),to:`.redaction-panel`},null,8,[`colors`,`propertyColor`])])])])}}},e6={AnnotationPopup:l(()=>Xt(()=>Promise.resolve().then(()=>dU),void 0,import.meta.url)),PageModePanel:l(()=>Xt(()=>import(`./RightPanelPageMode-DsbFhwvX.js`),__vite__mapDeps([2,3,1,4]),import.meta.url)),StampPanel:l(()=>Xt(()=>import(`./StampPanel-Df1tfRB9.js`),__vite__mapDeps([5,3,1,6,7]),import.meta.url)),CustomModal:l(()=>Xt(()=>import(`./CustomModal-BEMspb2m.js`),__vite__mapDeps([8,3,1,6,9]),import.meta.url))},t6={StylePanel:A1,LeftPanel:T2,RightPanel:x4,LinkPanel:k4,ColorSeparationPanel:L3,ContentEditorPanel:k3,RedactionPanel:$3},n6={class:`sign-title`},r6={class:`sign-content`},i6={key:0,class:`sign-popup-header`},a6={class:`signatures-popup-lists`},o6={key:0,class:`signatures-popup-empty`},s6={class:`no-signatures`},c6={key:1,class:`signatures-popup-list-container`},l6=[`onClick`],u6=[`src`],d6={class:`signatures-popup-create`},f6={class:`create-sign-header`},p6=[`onClick`],m6=[`width`,`height`],h6={class:`keyboard-paint`},g6={class:`keyboard-sign-field`},_6={class:`keyboard-sign-name`},v6={class:`keyboard-sign-input`},y6=[`placeholder`],b6={class:`keyboard-preview-section`},x6={class:`keyboard-preview-toolbar`},S6={class:`keyboard-preview-label`},C6={class:`color-tool keyboard-color-tool`},w6={class:`colors-container`},T6=[`onClick`],E6={key:0,class:`color-picker`},D6=[`alt`],O6=[`aria-label`],k6=[`aria-selected`,`onClick`,`onKeydown`],A6={class:`keyboard-preview-text`},j6={key:0,class:`property-container`},M6={class:`width-tool`},N6={key:0},P6={class:`font-tool sign-font-tool`},F6={key:0},I6={class:`color-tool`},L6={key:0},R6={class:`colors-container`},z6=[`onClick`],B6={key:0,class:`color-picker`},V6=[`alt`],H6={class:`footer`},U6={class:`clear-container`},W6={key:0,class:`left-btns`},G6={key:0},K6={key:1},q6={class:`buttons-container`},J6={class:`right-btns`},Y6={key:0,class:`delete-page-popup`},X6=`Signature`,Z6=B({__name:`SignCreateDialog`,setup(e){let{t}=It(),n=ye(),r=pw(),i=J(null),a=T(()=>n.isElementOpen(H.SIGNATURE_DIALOG)),o=T(()=>n.getActiveElementTab(`signPanel`)),l=T(()=>n.getToolMode),u=T(()=>n.getSignatureDialogTabs),f=T(()=>n.getSignatureDialogProperties),p=T(()=>n.getElectronicSignaturesList),m=T(()=>n.getTheme),g=T(()=>r.getActiveTool),_=T(()=>n.getEnableSignatureTemplates),v=J(!1),C=J(0),O=J(``),k=J(``),j=[{fontFamily:`Helvetica`,label:`Helvetica`,fontWeight:400},{fontFamily:`Abhaya Libre, serif`,label:`Abhaya Libre`,fontWeight:800},{fontFamily:`ADLaM Display, cursive`,label:`ADLaM Display`,fontWeight:400}],M=(e=o.value)=>f.value[e]?.colors?.[0]?.value||`#000000`,N=()=>f.value.keyboard?.fonts?.length?f.value.keyboard.fonts:j,P=()=>N().find(e=>e.fontFamily===te.value)||N()[0]||j[0],ee=J(f.value.trackpad.lineWidth||5),F=J(M()),te=J(N()[0].fontFamily||`Helvetica`),I=J(N().map(e=>({label:e.label,value:e.fontFamily,style:{fontFamily:e.fontFamily,fontWeight:e.fontWeight||400}}))),ne=T(()=>N()),re=J(),ie=J(oe?289:578),B=J(210),ae=J(F.value),se=J(`create`),ce=J(!0);p.value.length>=5&&(ce.value=!1);let le=(e,t)=>{e.stopPropagation(),v.value=!0,C.value=t},ue=()=>{n.removeElectronicSignature(C.value),v.value=!1};W(()=>f.value.keyboard.fonts,(e,t)=>{let n=e?.length?e:j;te.value=n[0].fontFamily||`Helvetica`,I.value=n.map(e=>({label:e.label,value:e.fontFamily,style:{fontFamily:e.fontFamily,fontWeight:e.fontWeight||400}}))}),W(()=>l.value,(e,t)=>{if(!(t===`sign`&&e===`view`)&&e!==t){let e=document.getElementById(`sign-image-save`);e&&e.remove()}}),W(()=>ee.value,(e,t)=>{e!==``&&(e>10||e<=0||!/^\d+$/.test(e))&&(ee.value=t),o.value===`trackpad`&&U.handleSign({flag:`update`,param:{width:ee.value,color:F.value}})}),W(()=>F.value,(e,t)=>{U.handleSign({flag:`update`,param:{width:ee.value,color:F.value}}),o.value===`keyboard`&&(ae.value=F.value)}),W(()=>a.value,(e,t)=>{e&&(oe&&E(()=>{let{clientWidth:e,clientHeight:t}=re.value;e&&ie.value!==e&&(ie.value=e),t&&B.value!==t&&(B.value=t)}),O.value=``,U.handleSign({flag:`create`,type:2}))}),W(()=>se.value,(e,t)=>{e===`create`&&oe&&E(()=>{let{clientWidth:e,clientHeight:t}=re.value;e&&ie.value!==e&&(ie.value=e),t&&B.value!==t&&(B.value=t)})}),W(()=>p.value,e=>{e&&e.length>=5?ce.value=!1:ce.value||=!0},{deep:!0}),W(()=>a.value,e=>{_.value&&(e&&p.value.length>0?se.value=`list`:e&&p.value.length===0&&(se.value=`create`))}),W(()=>o.value,(e,t)=>{t===`trackpad`&&U.handleSign({flag:`clear`}),O.value=``,k.value=``});let de=e=>{o.value!==e&&(n.setActiveSignWay(e),me(),he())},fe=e=>{n.toggleElement(`signatureDialog`),U.handleSign({flag:`reset`}),o.value!==`trackpad`&&me(),he(),document.body.style.overflow=``},pe=()=>{xe(),p.value.length<5&&ce.value&&n.addElectronicSignature(k.value)},me=()=>{if(o.value===`keyboard`&&(O.value=``),o.value===`image`){k.value=``;let e=i.value,t=e.querySelector(`input`),n=e.querySelector(`a`),r=e.querySelector(`img`);e&&(r&&(e.removeChild(r),t.value=``),n&&(n.style.display=`block`))}o.value===`trackpad`&&U.handleSign({flag:`clear`})},he=()=>{let e=f.value.trackpad.lineWidth||5,t=M(),n=N()[0].fontFamily||`Helvetica`;F.value!==t&&(F.value=t),te.value!==n&&(te.value=n),ee.value!==e&&(ee.value=e,U.handleSign({flag:`update`,param:{width:ee.value,color:F.value}}))},ge=e=>{e.preventDefault(),e.stopPropagation();let t=e.dataTransfer.files[0];ve(t)},_e=e=>{let n=e.target.files[0];if(n.size>1024*1024){window.$message.error(t(`signatures.uploadError`),{duration:5e3,icon:()=>Y(`img`,{src:mw})}),e.target.value=``;return}e.target.value=``,ve(n)},ve=e=>{e instanceof File||(e=we(e,`image`)),l.value===`annotation`&&(r.setToolState(L.IMAGE),U.handleCreateStatus({bool:!0,fileData:e}));let t=new FileReader;t.readAsDataURL(e),t.onload=function(){k.value=t.result;let e=i.value,r=e.querySelector(`a`);if(e){let t=document.createElement(`img`);t.setAttribute(`src`,k.value),t.style.maxHeight=`220px`,t.style.maxWidth=`568px`,r.style.display=`none`,e.append(t)}let a=new Image;a.onload=function(){xe(),p.value.length<5&&ce.value&&n.addElectronicSignature(k.value)},a.src=k.value}},be=e=>{l.value===`annotation`&&r.setToolState(L.IMAGE)},xe=async()=>{let e=``,t=n.getSelectedSignatureField;if((o.value===`image`&&k.value!==``||k.value!==``)&&(e=k.value),o.value===`keyboard`&&O.value!==``){let t=document.createElement(`canvas`).getContext(`2d`),n=P().fontWeight||400;t.font=`${n} 46px ${te.value}`;let r=t.measureText(O.value),i=r.width,a=r.actualBoundingBoxAscent||46*.6,o=a+(r.actualBoundingBoxDescent||46*.6),s=document.createElement(`canvas`);s.width=i+16,s.height=o+16;let c=s.getContext(`2d`);c.font=`${n} 46px ${te.value}`,c.fillStyle=F.value,c.textBaseline=`alphabetic`,c.fillText(O.value,8,8+a),e=s.toDataURL()}e&&o.value!==`trackpad`&&U.handleSign({flag:`save`,param:{imageBase64:e,annotation:w(t)}}),o.value===`trackpad`&&(e=await U.handleSign({flag:`save`,param:{width:ee.value,color:F.value,annotation:w(t)}})),k.value=e,Ce(e)},Se=e=>{let t=document.querySelector(`.content`);if(!t)return;let n=document.getElementById(`sign-image-save`);n||(n=document.createElement(`img`),n.style.position=`absolute`,n.style.zIndex=10,n.style.pointerEvents=`none`,n.style.maxHeight=`220px`,n.style.maxWidth=`568px`,n.style.border=`2px solid blue`,n.style.cursor=`crosshair`,n.id=`sign-image-save`),n.setAttribute(`src`,e),n.style.left=`50%`,n.style.top=`50%`,n.style.display=`hidden`,t.append(n);let i=0,a=0;n.offsetWidth>0&&n.offsetHeight>0&&(i=n.offsetWidth,a=n.offsetHeight);let o=Math.min(parseInt(i/2),568/2),s=Math.min(parseInt(a/2),220/2);n.style.left=`calc(50% -`+o+`)`,n.style.top=`calc(50% -`+s+`)`,n.style.display=`block`,t.onmousemove=function(e){n.style.left=e.clientX-o+`px`,n.style.top=e.clientY-s+`px`},r.setToolState(L.IMAGE)},Ce=e=>{let t=we(e,`image`);l.value===`annotation`&&(r.setToolState(L.IMAGE),U.handleCreateStatus({bool:!0,fileData:t})),g.value===L.IMAGE&&Se(e),n.toggleElement(H.SIGNATURE_DIALOG)};function we(e,t){let[n,r]=e.split(`,`),i=n.match(/:(.*?);/)?.[1]||`application/octet-stream`,a=atob(r||n),o=new Uint8Array(a.length);for(let e=0;e<a.length;e++)o[e]=a.charCodeAt(e);return new File([o],t,{type:i})}let Te=e=>{e.target.value||(ee.value=1)},Ee=e=>{F.value=e},De=e=>e.fontFamily===te.value,Oe=e=>{te.value=e.fontFamily},je=e=>O.value||e.label?.trim()||X6,Ne=e=>{vw(e,F.value)||Ee(e)},Pe=e=>{ae.value=e};U.addEvent(`signaturesImageChanged`,e=>{k.value=e.imageBase64});let Ie=({option:e})=>Y(`div`,{style:{fontFamily:e.style.fontFamily}},{default:()=>e.label});return(e,t)=>{let n=Fe,r=dw,a=lx,l=sw,g=rw,C=$b,w=$C,T=YC,E=GC;return S(),V(q,null,[c(`div`,{class:`signatures-popup-wrapper`,onMousedown:t[11]||=Ae(()=>{},[`stop`])},[c(`div`,{class:D([`signatures-popup`,{"keyboard-active":o.value===`keyboard`}])},[c(`div`,n6,d(e.$t(`signatures.electronicSignature.title`)),1),c(`div`,{onClick:t[0]||=e=>fe(`cancel`),class:`close-button`},[x(n)]),c(`div`,r6,[_.value?(S(),V(`div`,i6,[c(`div`,{onClick:t[1]||=e=>se.value=`list`,class:D({active:se.value===`list`})},d(e.$t(`signatures.electronicSignature.mySignatures`)),3),c(`div`,{onClick:t[2]||=e=>se.value=`create`,class:D({active:se.value===`create`})},d(e.$t(`signatures.electronicSignature.create`)),3)])):b(``,!0),R(c(`div`,a6,[p.value.length===0?(S(),V(`div`,o6,[c(`div`,s6,[m.value===`light`?(S(),s(Sw,{key:0})):(S(),s(r,{key:1})),c(`div`,{onClick:t[3]||=e=>se.value=`create`},d(e.$t(`signatures.electronicSignature.empty`)),1)])])):(S(),V(`div`,c6,[(S(!0),V(q,null,z(p.value,(e,t)=>(S(),V(`div`,{class:`signatures-popup-list`,onClick:t=>Ce(e),key:t},[c(`img`,{src:e},null,8,u6),x(a,{class:D([`close-button`,{show:K(oe)}]),onClick:e=>le(e,t)},{default:G(()=>[x(n)]),_:1},8,[`class`,`onClick`])],8,l6))),128))]))],512),[[Re,se.value===`list`]]),R(c(`div`,d6,[c(`div`,f6,[(S(!0),V(q,null,z(u.value,(t,n)=>(S(),V(`div`,{key:n,onClick:e=>de(t),class:D({active:o.value===t})},d(e.$t(`signatures.`+t)),11,p6))),128))]),c(`div`,{class:D([`sign-create-container`,{mobile:K(oe)}])},[c(`div`,{class:`paint-container`,ref_key:`paintContainer`,ref:re},[R(c(`canvas`,{id:`signTrackpadCanvas`,width:ie.value,height:B.value},null,8,m6),[[Re,o.value===`trackpad`]]),R(c(`div`,h6,[c(`div`,g6,[c(`div`,_6,d(e.$t(`signatures.electronicSignature.signName`)),1),c(`div`,v6,[R(c(`input`,{type:`text`,placeholder:e.$t(`signatures.signHere`),"onUpdate:modelValue":t[4]||=e=>O.value=e,name:`signature`},null,8,y6),[[Me,O.value]])])]),c(`div`,b6,[c(`div`,x6,[c(`span`,S6,d(e.$t(`signatures.electronicSignature.preview`)),1),c(`div`,C6,[c(`div`,w6,[(S(!0),V(q,null,z(f.value.keyboard.colors,(e,t)=>(S(),V(`span`,{class:D([`cell-container`,{mobile:K(oe),show:!f.value.keyboard.enableCustomColor}]),key:t},[c(`span`,{class:D([`cell-outer`,{active:K(vw)(F.value,e.value)}]),onClick:t=>Ee(e.value)},[c(`span`,{class:`cell`,style:A(`background-color: ${e.value}`)},null,4)],10,T6)],2))),128)),f.value.keyboard.enableCustomColor?(S(),V(`div`,E6,[c(`div`,{class:`preview`,style:A({backgroundColor:ae.value})},null,4),x(K(gv),{onComplete:Ne,"onUpdate:value":Pe,value:ae.value,"show-alpha":!1},{label:G(()=>[c(`img`,{src:mx,alt:e.$t(`common.uiElements.color`)},null,8,D6)]),_:1},8,[`value`])])):b(``,!0)])])]),c(`div`,{class:`keyboard-preview-grid`,role:`listbox`,"aria-label":e.$t(`signatures.electronicSignature.preview`)},[(S(!0),V(q,null,z(ne.value,(e,t)=>(S(),V(`div`,{key:`${e.fontFamily}-${t}`,class:D([`keyboard-preview-card`,{active:De(e)}]),style:A({fontFamily:e.fontFamily,fontWeight:e.fontWeight||400,color:F.value}),role:`option`,tabindex:`0`,"aria-selected":De(e),onClick:t=>Oe(e),onKeydown:[ke(Ae(t=>Oe(e),[`prevent`]),[`enter`]),ke(Ae(t=>Oe(e),[`prevent`]),[`space`])]},[c(`span`,A6,d(je(e)),1)],46,k6))),128))],8,O6)])],512),[[Re,o.value===`keyboard`]]),R(c(`div`,{ref_key:`imageRef`,ref:i,class:`image-paint`,onDrop:ge,onDragover:t[5]||=Ae(()=>{},[`prevent`])},[R(c(`div`,null,[x(l),c(`div`,null,d(e.$t(`signatures.electronicSignature.dropFile`)),1),c(`a`,null,[y(d(e.$t(`signatures.selectFile`)),1),c(`input`,{type:`file`,id:`signImageInput`,onChange:_e,accept:`.png, .jpg, .jpeg`,onClick:be,name:`signature`},null,32)])],512),[[Re,!k.value]])],544),[[Re,o.value===`image`]])],512),o.value===`trackpad`?(S(),V(`div`,j6,[R(c(`div`,M6,[K(oe)?b(``,!0):(S(),V(`span`,N6,d(e.$t(`signatures.lineWidth`)),1)),x(K(xb),{value:ee.value,"onUpdate:value":t[6]||=e=>ee.value=e,step:1,max:10,min:1,class:`width-slider`},{thumb:G(()=>[x(g)]),_:1},8,[`value`]),R(c(`input`,{"onUpdate:modelValue":t[7]||=e=>ee.value=e,type:`text`,pattern:`\\d*`,onkeypress:`return (/[\\d]/.test(String.fromCharCode(event.keyCode)))`,onBlur:Te,name:`signature`},null,544),[[Me,ee.value]])],512),[[Re,o.value===`trackpad`&&f.value.trackpad.enableLineWidth]]),R(c(`div`,P6,[K(oe)?b(``,!0):(S(),V(`span`,F6,d(e.$t(`common.uiElements.font`)),1)),x(K(kv),{value:te.value,"onUpdate:value":t[8]||=e=>te.value=e,options:I.value,"render-tag":Ie,to:`.sign-font-tool`,class:`font-family-select`},{arrow:G(()=>[x(C)]),_:1},8,[`value`,`options`])],512),[[Re,o.value===`keyboard`]]),R(c(`div`,I6,[K(oe)?b(``,!0):(S(),V(`span`,L6,d(e.$t(`common.uiElements.color`)),1)),c(`div`,R6,[(S(!0),V(q,null,z(f.value[o.value].colors,(e,t)=>(S(),V(`span`,{class:D([`cell-container`,{mobile:K(oe),show:!f.value[o.value].enableCustomColor}]),key:t},[c(`span`,{class:D([`cell-outer`,{active:K(vw)(F.value,e.value)}]),onClick:t=>Ee(e.value)},[c(`span`,{class:`cell`,style:A(`background-color: ${e.value}`)},null,4)],10,z6)],2))),128)),f.value[o.value].enableCustomColor?(S(),V(`div`,B6,[c(`div`,{class:`preview`,style:A({backgroundColor:ae.value})},null,4),x(K(gv),{onComplete:Ne,"onUpdate:value":Pe,value:ae.value,"show-alpha":!1},{label:G(()=>[c(`img`,{src:mx,alt:e.$t(`common.uiElements.color`)},null,8,V6)]),_:1},8,[`value`])])):b(``,!0)])],512),[[Re,o.value===`trackpad`||o.value===`keyboard`]])])):b(``,!0)],2),c(`div`,H6,[c(`div`,U6,[c(`span`,{class:`clear top`,onClick:me},d(e.$t(`common.actions.clear`)),1),_.value?(S(),V(`div`,W6,[c(`div`,{class:D([`check`,{active:ce.value,disabled:p.value.length>=5}]),onClick:t[9]||=e=>p.value.length<5&&(ce.value=!ce.value)},[R(x(w,null,null,512),[[Re,ce.value]])],2),p.value.length<5?(S(),V(`span`,G6,d(e.$t(`signatures.electronicSignature.saveTemplate`)),1)):(S(),V(`span`,K6,d(e.$t(`signatures.fullStorage`)),1))])):b(``,!0)]),c(`div`,q6,[c(`span`,{class:`clear bottom`,onClick:me},d(e.$t(`common.actions.clear`)),1),c(`div`,J6,[c(`div`,{class:`button`,onClick:t[10]||=e=>fe(`cancel`)},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:D([`button blue`,{disabled:!O.value&&!k.value}]),onClick:pe},d(e.$t(`common.actions.apply`)),3)])])])],512),[[Re,se.value===`create`]])])],2)],32),v.value?(S(),V(`div`,Y6,[x(E,{show:v.value,dialogName:e.dialogName},{footer:G(()=>[c(`div`,{class:`rect-button white`,onClick:t[12]||=e=>v.value=!1},d(e.$t(`common.actions.cancel`)),1),c(`div`,{class:`rect-button blue`,onClick:ue},d(e.$t(`common.actions.ok`)),1)]),default:G(()=>[x(T),c(`p`,null,d(e.$t(`signatures.deleteConfirm`)),1)]),_:1},8,[`show`,`dialogName`])])):b(``,!0)],64)}}},[[`__scopeId`,`data-v-31a8158d`]]),Q6={class:`content`},$6={class:`loading`},e8={class:`error-dialog`},t8={class:`close-btn`},n8={class:`fail-logo`},r8={class:`text`},i8={class:`mask active`},a8={class:`mask active`},o8={__name:`index`,async setup(e){let t,n;[t,n]=le(()=>En),await t,n(),qQ.mount(new j$);let{t:r}=It();AY({$t:r}),KX();let i=ye(),a=pw(),o=T(()=>i.getTheme),l=T(()=>i.getDownloading),u=T(()=>i.getDownloadError),f=T(()=>i.isElementOpen(H.SIGN_CREATE_PANEL)),p=T(()=>i.isElementOpen(H.SIGNATURE_DIALOG)),m=T(()=>i.isElementOpen(H.DIGITAL_SIGN_CREATE_PANEL)),g=T(()=>i.getPopoverChanged),_=T(()=>i.getToolMode),v=T(()=>i.isElementOpen(H.CREATE_CUSTOM_STAMP_DIALOG)),y=T(()=>i.isElementDisabled(H.HEADER)),C=T(()=>i.getGenericPanels),w=T(()=>i.getCustomModals),E={isAnnotationPopup:e=>i.toggleAnnotationPopup(e),renderLayerPermission:e=>!e&&i.disableElement(`layers`),webviewerServer:e=>i.setWebviewerMode(e),autoJumpNextSign:e=>a.setAutoJumpNextSign(e),disableDigitalSignature:e=>e&&a.setDisableDigitalSignature(e),disableElectronicSignature:e=>e&&a.setDisableElectronicSignature(e),enableReply:e=>!e&&i.disableElement(`replyButton`)},O=async e=>{e&&(i.setUpload(!0),i.setUploadLoading(!0),i.setDisableHeader(!0),await U.initConfig(e),Object.entries(e).forEach(([e,t])=>{e in E&&E[e](t)}))};[t,n]=le(()=>kY(O)),await t,n();let k=WD(`css`,null);if(k){let e=document.createElement(`link`);e.rel=`stylesheet`,e.type=`text/css`,e.href=k,document.getElementsByTagName(`head`)[0].appendChild(e)}let A=WD(`theme`,!1);A&&(A=A.toLowerCase(),(A===`dark`||A===`light`)&&(i.setTheme(A),A===`dark`&&document.documentElement.classList.toggle(`dark`))),WD(`header`,!0)||i.disableElement(H.HEADER),window.instance.changeFile=()=>{let e=document.getElementById(`fileInput`);e&&e.click(),(f.value||m.value)&&(i.closeElement(H.SIGN_CREATE_PANEL),i.closeElement(H.DIGITAL_SIGN_CREATE_PANEL)),i.setActiveToolMode(`view`),i.setToolbarGroup(`toolbarGroup-View`),i.setActiveHeaderGroup(`default`),g.value||i.setPopoverChanged(!0),_.value===`document`&&U.saveDocumentEdit(`cancel`)};let j=()=>{i.setDownloadError(``)};return i.setStampPanelTabs([{type:`tab`,dataElement:`STANDARD`},{type:`tab`,dataElement:`DYNAMIC`},{type:`tab`,dataElement:`CUSTOM`}]),M(()=>{window.parent.postMessage({type:`viewerLoaded`,docId:parseInt(WD(`docId`),10)},`*`)}),(e,t)=>{let n=DY,r=lJ,i=Gk,a=ND,m=gT,g=hT,T=pT,E=dT,O=Fe,k=lx,A=sT,M=rT,N=VC,P=kb;return S(),V(q,null,[c(`div`,{id:`outerContainer`,class:D([`app`,{dark:o.value===`dark`}])},[R(c(`div`,null,[x(n)],512),[[Re,!y.value]]),c(`div`,Q6,[x(r),x(i),_.value===`document`?(S(),s(a,{key:0,Sortable:K(qQ)},null,8,[`Sortable`])):b(``,!0),(S(!0),V(q,null,z(C.value,(e,t)=>(S(),s(T,{key:t,dataElement:e.dataElement,location:e.location,isFullHeight:e.isFullHeight,close:e.close},{default:G(()=>[Object.keys(K(I$)).includes(e.render)?(S(),s(ve(K(t6)[K(I$)[e.render]]),{key:0,dataElement:e.dataElement},null,8,[`dataElement`])):Object.keys(K(F$)).includes(e.render)?(S(),s(m,{key:1,Component:K(e6)[K(F$)[e.render]],dataElement:e.dataElement},null,8,[`Component`,`dataElement`])):(S(),s(g,{key:2,className:`Panel ${e.dataElement}`,display:e.dataElement,dataElement:e.dataElement,render:e.render},null,8,[`className`,`display`,`dataElement`,`render`]))]),_:2},1032,[`dataElement`,`location`,`isFullHeight`,`close`]))),128)),w.value.length?(S(),s(m,{key:1,Component:K(e6).CustomModal,dataElement:`customModal`},null,8,[`Component`])):b(``,!0)]),c(`div`,{class:D([`mask`,{active:l.value||u.value!==``}])},[R(c(`div`,$6,[x(E)],512),[[Re,l.value]]),R(c(`div`,e8,[c(`div`,t8,[x(k,{onClick:j},{default:G(()=>[x(O)]),_:1})]),c(`div`,n8,[x(A)]),c(`div`,r8,d(u.value)+` failed`,1),c(`div`,{class:`confirm-btn`,onClick:j},`OK`)],512),[[Re,u.value!==``]])],2),R(c(`div`,i8,[x(M)],512),[[Re,f.value]]),R(c(`div`,a8,[x(Z6)],512),[[Re,p.value]]),v.value?(S(),s(N,{key:0})):b(``,!0)],2),t[0]||=c(`div`,{id:`printContainer`},null,-1),x(P)],64)}}},s8={__name:`Suspenser`,setup(e){return(e,t)=>(S(),s(ee,null,{default:G(()=>[x(o8)]),_:1}))}},c8=ce();function l8(e){e.use(c8)}var u8=Pe(s8);l8(u8),Dn(u8),u8.mount(`#app`);export{MF as a,pw as c,lx as d,EI as i,YC as l,fV as n,KM as o,ez as r,AM as s,RH as t,GC as u};