@pdfme/ui 5.2.3 → 5.2.4-dev.1

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.
package/dist/index.umd.js CHANGED
@@ -39,7 +39,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
39
39
  *
40
40
  * @author Feross Aboukhadijeh <https://feross.org>
41
41
  * @license MIT
42
- */(function(e){const t=Yv,r=lO,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{const re=new Uint8Array(1),H={foo:function(){return 42}};return Object.setPrototypeOf(H,Uint8Array.prototype),Object.setPrototypeOf(re,H),re.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(re){if(re>i)throw new RangeError('The value "'+re+'" is invalid for option "size"');const H=new Uint8Array(re);return Object.setPrototypeOf(H,s.prototype),H}function s(re,H,G){if(typeof re=="number"){if(typeof H=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(re)}return l(re,H,G)}s.poolSize=8192;function l(re,H,G){if(typeof re=="string")return f(re,H);if(ArrayBuffer.isView(re))return A(re);if(re==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof re);if(Se(re,ArrayBuffer)||re&&Se(re.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Se(re,SharedArrayBuffer)||re&&Se(re.buffer,SharedArrayBuffer)))return v(re,H,G);if(typeof re=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const oe=re.valueOf&&re.valueOf();if(oe!=null&&oe!==re)return s.from(oe,H,G);const me=g(re);if(me)return me;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof re[Symbol.toPrimitive]=="function")return s.from(re[Symbol.toPrimitive]("string"),H,G);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof re)}s.from=function(re,H,G){return l(re,H,G)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(re){if(typeof re!="number")throw new TypeError('"size" argument must be of type number');if(re<0)throw new RangeError('The value "'+re+'" is invalid for option "size"')}function u(re,H,G){return c(re),re<=0?o(re):H!==void 0?typeof G=="string"?o(re).fill(H,G):o(re).fill(H):o(re)}s.alloc=function(re,H,G){return u(re,H,G)};function d(re){return c(re),o(re<0?0:m(re)|0)}s.allocUnsafe=function(re){return d(re)},s.allocUnsafeSlow=function(re){return d(re)};function f(re,H){if((typeof H!="string"||H==="")&&(H="utf8"),!s.isEncoding(H))throw new TypeError("Unknown encoding: "+H);const G=b(re,H)|0;let oe=o(G);const me=oe.write(re,H);return me!==G&&(oe=oe.slice(0,me)),oe}function p(re){const H=re.length<0?0:m(re.length)|0,G=o(H);for(let oe=0;oe<H;oe+=1)G[oe]=re[oe]&255;return G}function A(re){if(Se(re,Uint8Array)){const H=new Uint8Array(re);return v(H.buffer,H.byteOffset,H.byteLength)}return p(re)}function v(re,H,G){if(H<0||re.byteLength<H)throw new RangeError('"offset" is outside of buffer bounds');if(re.byteLength<H+(G||0))throw new RangeError('"length" is outside of buffer bounds');let oe;return H===void 0&&G===void 0?oe=new Uint8Array(re):G===void 0?oe=new Uint8Array(re,H):oe=new Uint8Array(re,H,G),Object.setPrototypeOf(oe,s.prototype),oe}function g(re){if(s.isBuffer(re)){const H=m(re.length)|0,G=o(H);return G.length===0||re.copy(G,0,0,H),G}if(re.length!==void 0)return typeof re.length!="number"||Ie(re.length)?o(0):p(re);if(re.type==="Buffer"&&Array.isArray(re.data))return p(re.data)}function m(re){if(re>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return re|0}function y(re){return+re!=re&&(re=0),s.alloc(+re)}s.isBuffer=function(H){return H!=null&&H._isBuffer===!0&&H!==s.prototype},s.compare=function(H,G){if(Se(H,Uint8Array)&&(H=s.from(H,H.offset,H.byteLength)),Se(G,Uint8Array)&&(G=s.from(G,G.offset,G.byteLength)),!s.isBuffer(H)||!s.isBuffer(G))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(H===G)return 0;let oe=H.length,me=G.length;for(let we=0,Ee=Math.min(oe,me);we<Ee;++we)if(H[we]!==G[we]){oe=H[we],me=G[we];break}return oe<me?-1:me<oe?1:0},s.isEncoding=function(H){switch(String(H).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(H,G){if(!Array.isArray(H))throw new TypeError('"list" argument must be an Array of Buffers');if(H.length===0)return s.alloc(0);let oe;if(G===void 0)for(G=0,oe=0;oe<H.length;++oe)G+=H[oe].length;const me=s.allocUnsafe(G);let we=0;for(oe=0;oe<H.length;++oe){let Ee=H[oe];if(Se(Ee,Uint8Array))we+Ee.length>me.length?(s.isBuffer(Ee)||(Ee=s.from(Ee)),Ee.copy(me,we)):Uint8Array.prototype.set.call(me,Ee,we);else if(s.isBuffer(Ee))Ee.copy(me,we);else throw new TypeError('"list" argument must be an Array of Buffers');we+=Ee.length}return me};function b(re,H){if(s.isBuffer(re))return re.length;if(ArrayBuffer.isView(re)||Se(re,ArrayBuffer))return re.byteLength;if(typeof re!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof re);const G=re.length,oe=arguments.length>2&&arguments[2]===!0;if(!oe&&G===0)return 0;let me=!1;for(;;)switch(H){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return de(re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return ye(re).length;default:if(me)return oe?-1:de(re).length;H=(""+H).toLowerCase(),me=!0}}s.byteLength=b;function C(re,H,G){let oe=!1;if((H===void 0||H<0)&&(H=0),H>this.length||((G===void 0||G>this.length)&&(G=this.length),G<=0)||(G>>>=0,H>>>=0,G<=H))return"";for(re||(re="utf8");;)switch(re){case"hex":return L(this,H,G);case"utf8":case"utf-8":return F(this,H,G);case"ascii":return M(this,H,G);case"latin1":case"binary":return T(this,H,G);case"base64":return O(this,H,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,H,G);default:if(oe)throw new TypeError("Unknown encoding: "+re);re=(re+"").toLowerCase(),oe=!0}}s.prototype._isBuffer=!0;function w(re,H,G){const oe=re[H];re[H]=re[G],re[G]=oe}s.prototype.swap16=function(){const H=this.length;if(H%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let G=0;G<H;G+=2)w(this,G,G+1);return this},s.prototype.swap32=function(){const H=this.length;if(H%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let G=0;G<H;G+=4)w(this,G,G+3),w(this,G+1,G+2);return this},s.prototype.swap64=function(){const H=this.length;if(H%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let G=0;G<H;G+=8)w(this,G,G+7),w(this,G+1,G+6),w(this,G+2,G+5),w(this,G+3,G+4);return this},s.prototype.toString=function(){const H=this.length;return H===0?"":arguments.length===0?F(this,0,H):C.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(H){if(!s.isBuffer(H))throw new TypeError("Argument must be a Buffer");return this===H?!0:s.compare(this,H)===0},s.prototype.inspect=function(){let H="";const G=e.INSPECT_MAX_BYTES;return H=this.toString("hex",0,G).replace(/(.{2})/g,"$1 ").trim(),this.length>G&&(H+=" ... "),"<Buffer "+H+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(H,G,oe,me,we){if(Se(H,Uint8Array)&&(H=s.from(H,H.offset,H.byteLength)),!s.isBuffer(H))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof H);if(G===void 0&&(G=0),oe===void 0&&(oe=H?H.length:0),me===void 0&&(me=0),we===void 0&&(we=this.length),G<0||oe>H.length||me<0||we>this.length)throw new RangeError("out of range index");if(me>=we&&G>=oe)return 0;if(me>=we)return-1;if(G>=oe)return 1;if(G>>>=0,oe>>>=0,me>>>=0,we>>>=0,this===H)return 0;let Ee=we-me,xe=oe-G;const _e=Math.min(Ee,xe),Pe=this.slice(me,we),Be=H.slice(G,oe);for(let Oe=0;Oe<_e;++Oe)if(Pe[Oe]!==Be[Oe]){Ee=Pe[Oe],xe=Be[Oe];break}return Ee<xe?-1:xe<Ee?1:0};function x(re,H,G,oe,me){if(re.length===0)return-1;if(typeof G=="string"?(oe=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,Ie(G)&&(G=me?0:re.length-1),G<0&&(G=re.length+G),G>=re.length){if(me)return-1;G=re.length-1}else if(G<0)if(me)G=0;else return-1;if(typeof H=="string"&&(H=s.from(H,oe)),s.isBuffer(H))return H.length===0?-1:E(re,H,G,oe,me);if(typeof H=="number")return H=H&255,typeof Uint8Array.prototype.indexOf=="function"?me?Uint8Array.prototype.indexOf.call(re,H,G):Uint8Array.prototype.lastIndexOf.call(re,H,G):E(re,[H],G,oe,me);throw new TypeError("val must be string, number or Buffer")}function E(re,H,G,oe,me){let we=1,Ee=re.length,xe=H.length;if(oe!==void 0&&(oe=String(oe).toLowerCase(),oe==="ucs2"||oe==="ucs-2"||oe==="utf16le"||oe==="utf-16le")){if(re.length<2||H.length<2)return-1;we=2,Ee/=2,xe/=2,G/=2}function _e(Be,Oe){return we===1?Be[Oe]:Be.readUInt16BE(Oe*we)}let Pe;if(me){let Be=-1;for(Pe=G;Pe<Ee;Pe++)if(_e(re,Pe)===_e(H,Be===-1?0:Pe-Be)){if(Be===-1&&(Be=Pe),Pe-Be+1===xe)return Be*we}else Be!==-1&&(Pe-=Pe-Be),Be=-1}else for(G+xe>Ee&&(G=Ee-xe),Pe=G;Pe>=0;Pe--){let Be=!0;for(let Oe=0;Oe<xe;Oe++)if(_e(re,Pe+Oe)!==_e(H,Oe)){Be=!1;break}if(Be)return Pe}return-1}s.prototype.includes=function(H,G,oe){return this.indexOf(H,G,oe)!==-1},s.prototype.indexOf=function(H,G,oe){return x(this,H,G,oe,!0)},s.prototype.lastIndexOf=function(H,G,oe){return x(this,H,G,oe,!1)};function S(re,H,G,oe){G=Number(G)||0;const me=re.length-G;oe?(oe=Number(oe),oe>me&&(oe=me)):oe=me;const we=H.length;oe>we/2&&(oe=we/2);let Ee;for(Ee=0;Ee<oe;++Ee){const xe=parseInt(H.substr(Ee*2,2),16);if(Ie(xe))return Ee;re[G+Ee]=xe}return Ee}function I(re,H,G,oe){return Ce(de(H,re.length-G),re,G,oe)}function B(re,H,G,oe){return Ce(se(H),re,G,oe)}function R(re,H,G,oe){return Ce(ye(H),re,G,oe)}function _(re,H,G,oe){return Ce(pe(H,re.length-G),re,G,oe)}s.prototype.write=function(H,G,oe,me){if(G===void 0)me="utf8",oe=this.length,G=0;else if(oe===void 0&&typeof G=="string")me=G,oe=this.length,G=0;else if(isFinite(G))G=G>>>0,isFinite(oe)?(oe=oe>>>0,me===void 0&&(me="utf8")):(me=oe,oe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const we=this.length-G;if((oe===void 0||oe>we)&&(oe=we),H.length>0&&(oe<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");me||(me="utf8");let Ee=!1;for(;;)switch(me){case"hex":return S(this,H,G,oe);case"utf8":case"utf-8":return I(this,H,G,oe);case"ascii":case"latin1":case"binary":return B(this,H,G,oe);case"base64":return R(this,H,G,oe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,H,G,oe);default:if(Ee)throw new TypeError("Unknown encoding: "+me);me=(""+me).toLowerCase(),Ee=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(re,H,G){return H===0&&G===re.length?t.fromByteArray(re):t.fromByteArray(re.slice(H,G))}function F(re,H,G){G=Math.min(re.length,G);const oe=[];let me=H;for(;me<G;){const we=re[me];let Ee=null,xe=we>239?4:we>223?3:we>191?2:1;if(me+xe<=G){let _e,Pe,Be,Oe;switch(xe){case 1:we<128&&(Ee=we);break;case 2:_e=re[me+1],(_e&192)===128&&(Oe=(we&31)<<6|_e&63,Oe>127&&(Ee=Oe));break;case 3:_e=re[me+1],Pe=re[me+2],(_e&192)===128&&(Pe&192)===128&&(Oe=(we&15)<<12|(_e&63)<<6|Pe&63,Oe>2047&&(Oe<55296||Oe>57343)&&(Ee=Oe));break;case 4:_e=re[me+1],Pe=re[me+2],Be=re[me+3],(_e&192)===128&&(Pe&192)===128&&(Be&192)===128&&(Oe=(we&15)<<18|(_e&63)<<12|(Pe&63)<<6|Be&63,Oe>65535&&Oe<1114112&&(Ee=Oe))}}Ee===null?(Ee=65533,xe=1):Ee>65535&&(Ee-=65536,oe.push(Ee>>>10&1023|55296),Ee=56320|Ee&1023),oe.push(Ee),me+=xe}return D(oe)}const k=4096;function D(re){const H=re.length;if(H<=k)return String.fromCharCode.apply(String,re);let G="",oe=0;for(;oe<H;)G+=String.fromCharCode.apply(String,re.slice(oe,oe+=k));return G}function M(re,H,G){let oe="";G=Math.min(re.length,G);for(let me=H;me<G;++me)oe+=String.fromCharCode(re[me]&127);return oe}function T(re,H,G){let oe="";G=Math.min(re.length,G);for(let me=H;me<G;++me)oe+=String.fromCharCode(re[me]);return oe}function L(re,H,G){const oe=re.length;(!H||H<0)&&(H=0),(!G||G<0||G>oe)&&(G=oe);let me="";for(let we=H;we<G;++we)me+=Re[re[we]];return me}function N(re,H,G){const oe=re.slice(H,G);let me="";for(let we=0;we<oe.length-1;we+=2)me+=String.fromCharCode(oe[we]+oe[we+1]*256);return me}s.prototype.slice=function(H,G){const oe=this.length;H=~~H,G=G===void 0?oe:~~G,H<0?(H+=oe,H<0&&(H=0)):H>oe&&(H=oe),G<0?(G+=oe,G<0&&(G=0)):G>oe&&(G=oe),G<H&&(G=H);const me=this.subarray(H,G);return Object.setPrototypeOf(me,s.prototype),me};function $(re,H,G){if(re%1!==0||re<0)throw new RangeError("offset is not uint");if(re+H>G)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(H,G,oe){H=H>>>0,G=G>>>0,oe||$(H,G,this.length);let me=this[H],we=1,Ee=0;for(;++Ee<G&&(we*=256);)me+=this[H+Ee]*we;return me},s.prototype.readUintBE=s.prototype.readUIntBE=function(H,G,oe){H=H>>>0,G=G>>>0,oe||$(H,G,this.length);let me=this[H+--G],we=1;for(;G>0&&(we*=256);)me+=this[H+--G]*we;return me},s.prototype.readUint8=s.prototype.readUInt8=function(H,G){return H=H>>>0,G||$(H,1,this.length),this[H]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(H,G){return H=H>>>0,G||$(H,2,this.length),this[H]|this[H+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(H,G){return H=H>>>0,G||$(H,2,this.length),this[H]<<8|this[H+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(H,G){return H=H>>>0,G||$(H,4,this.length),(this[H]|this[H+1]<<8|this[H+2]<<16)+this[H+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(H,G){return H=H>>>0,G||$(H,4,this.length),this[H]*16777216+(this[H+1]<<16|this[H+2]<<8|this[H+3])},s.prototype.readBigUInt64LE=De(function(H){H=H>>>0,q(H,"offset");const G=this[H],oe=this[H+7];(G===void 0||oe===void 0)&&te(H,this.length-8);const me=G+this[++H]*2**8+this[++H]*2**16+this[++H]*2**24,we=this[++H]+this[++H]*2**8+this[++H]*2**16+oe*2**24;return BigInt(me)+(BigInt(we)<<BigInt(32))}),s.prototype.readBigUInt64BE=De(function(H){H=H>>>0,q(H,"offset");const G=this[H],oe=this[H+7];(G===void 0||oe===void 0)&&te(H,this.length-8);const me=G*2**24+this[++H]*2**16+this[++H]*2**8+this[++H],we=this[++H]*2**24+this[++H]*2**16+this[++H]*2**8+oe;return(BigInt(me)<<BigInt(32))+BigInt(we)}),s.prototype.readIntLE=function(H,G,oe){H=H>>>0,G=G>>>0,oe||$(H,G,this.length);let me=this[H],we=1,Ee=0;for(;++Ee<G&&(we*=256);)me+=this[H+Ee]*we;return we*=128,me>=we&&(me-=Math.pow(2,8*G)),me},s.prototype.readIntBE=function(H,G,oe){H=H>>>0,G=G>>>0,oe||$(H,G,this.length);let me=G,we=1,Ee=this[H+--me];for(;me>0&&(we*=256);)Ee+=this[H+--me]*we;return we*=128,Ee>=we&&(Ee-=Math.pow(2,8*G)),Ee},s.prototype.readInt8=function(H,G){return H=H>>>0,G||$(H,1,this.length),this[H]&128?(255-this[H]+1)*-1:this[H]},s.prototype.readInt16LE=function(H,G){H=H>>>0,G||$(H,2,this.length);const oe=this[H]|this[H+1]<<8;return oe&32768?oe|4294901760:oe},s.prototype.readInt16BE=function(H,G){H=H>>>0,G||$(H,2,this.length);const oe=this[H+1]|this[H]<<8;return oe&32768?oe|4294901760:oe},s.prototype.readInt32LE=function(H,G){return H=H>>>0,G||$(H,4,this.length),this[H]|this[H+1]<<8|this[H+2]<<16|this[H+3]<<24},s.prototype.readInt32BE=function(H,G){return H=H>>>0,G||$(H,4,this.length),this[H]<<24|this[H+1]<<16|this[H+2]<<8|this[H+3]},s.prototype.readBigInt64LE=De(function(H){H=H>>>0,q(H,"offset");const G=this[H],oe=this[H+7];(G===void 0||oe===void 0)&&te(H,this.length-8);const me=this[H+4]+this[H+5]*2**8+this[H+6]*2**16+(oe<<24);return(BigInt(me)<<BigInt(32))+BigInt(G+this[++H]*2**8+this[++H]*2**16+this[++H]*2**24)}),s.prototype.readBigInt64BE=De(function(H){H=H>>>0,q(H,"offset");const G=this[H],oe=this[H+7];(G===void 0||oe===void 0)&&te(H,this.length-8);const me=(G<<24)+this[++H]*2**16+this[++H]*2**8+this[++H];return(BigInt(me)<<BigInt(32))+BigInt(this[++H]*2**24+this[++H]*2**16+this[++H]*2**8+oe)}),s.prototype.readFloatLE=function(H,G){return H=H>>>0,G||$(H,4,this.length),r.read(this,H,!0,23,4)},s.prototype.readFloatBE=function(H,G){return H=H>>>0,G||$(H,4,this.length),r.read(this,H,!1,23,4)},s.prototype.readDoubleLE=function(H,G){return H=H>>>0,G||$(H,8,this.length),r.read(this,H,!0,52,8)},s.prototype.readDoubleBE=function(H,G){return H=H>>>0,G||$(H,8,this.length),r.read(this,H,!1,52,8)};function U(re,H,G,oe,me,we){if(!s.isBuffer(re))throw new TypeError('"buffer" argument must be a Buffer instance');if(H>me||H<we)throw new RangeError('"value" argument is out of bounds');if(G+oe>re.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(H,G,oe,me){if(H=+H,G=G>>>0,oe=oe>>>0,!me){const xe=Math.pow(2,8*oe)-1;U(this,H,G,oe,xe,0)}let we=1,Ee=0;for(this[G]=H&255;++Ee<oe&&(we*=256);)this[G+Ee]=H/we&255;return G+oe},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(H,G,oe,me){if(H=+H,G=G>>>0,oe=oe>>>0,!me){const xe=Math.pow(2,8*oe)-1;U(this,H,G,oe,xe,0)}let we=oe-1,Ee=1;for(this[G+we]=H&255;--we>=0&&(Ee*=256);)this[G+we]=H/Ee&255;return G+oe},s.prototype.writeUint8=s.prototype.writeUInt8=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,1,255,0),this[G]=H&255,G+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,2,65535,0),this[G]=H&255,this[G+1]=H>>>8,G+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,2,65535,0),this[G]=H>>>8,this[G+1]=H&255,G+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,4,4294967295,0),this[G+3]=H>>>24,this[G+2]=H>>>16,this[G+1]=H>>>8,this[G]=H&255,G+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,4,4294967295,0),this[G]=H>>>24,this[G+1]=H>>>16,this[G+2]=H>>>8,this[G+3]=H&255,G+4};function Y(re,H,G,oe,me){ee(H,oe,me,re,G,7);let we=Number(H&BigInt(4294967295));re[G++]=we,we=we>>8,re[G++]=we,we=we>>8,re[G++]=we,we=we>>8,re[G++]=we;let Ee=Number(H>>BigInt(32)&BigInt(4294967295));return re[G++]=Ee,Ee=Ee>>8,re[G++]=Ee,Ee=Ee>>8,re[G++]=Ee,Ee=Ee>>8,re[G++]=Ee,G}function V(re,H,G,oe,me){ee(H,oe,me,re,G,7);let we=Number(H&BigInt(4294967295));re[G+7]=we,we=we>>8,re[G+6]=we,we=we>>8,re[G+5]=we,we=we>>8,re[G+4]=we;let Ee=Number(H>>BigInt(32)&BigInt(4294967295));return re[G+3]=Ee,Ee=Ee>>8,re[G+2]=Ee,Ee=Ee>>8,re[G+1]=Ee,Ee=Ee>>8,re[G]=Ee,G+8}s.prototype.writeBigUInt64LE=De(function(H,G=0){return Y(this,H,G,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=De(function(H,G=0){return V(this,H,G,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(H,G,oe,me){if(H=+H,G=G>>>0,!me){const _e=Math.pow(2,8*oe-1);U(this,H,G,oe,_e-1,-_e)}let we=0,Ee=1,xe=0;for(this[G]=H&255;++we<oe&&(Ee*=256);)H<0&&xe===0&&this[G+we-1]!==0&&(xe=1),this[G+we]=(H/Ee>>0)-xe&255;return G+oe},s.prototype.writeIntBE=function(H,G,oe,me){if(H=+H,G=G>>>0,!me){const _e=Math.pow(2,8*oe-1);U(this,H,G,oe,_e-1,-_e)}let we=oe-1,Ee=1,xe=0;for(this[G+we]=H&255;--we>=0&&(Ee*=256);)H<0&&xe===0&&this[G+we+1]!==0&&(xe=1),this[G+we]=(H/Ee>>0)-xe&255;return G+oe},s.prototype.writeInt8=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,1,127,-128),H<0&&(H=255+H+1),this[G]=H&255,G+1},s.prototype.writeInt16LE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,2,32767,-32768),this[G]=H&255,this[G+1]=H>>>8,G+2},s.prototype.writeInt16BE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,2,32767,-32768),this[G]=H>>>8,this[G+1]=H&255,G+2},s.prototype.writeInt32LE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,4,2147483647,-2147483648),this[G]=H&255,this[G+1]=H>>>8,this[G+2]=H>>>16,this[G+3]=H>>>24,G+4},s.prototype.writeInt32BE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,4,2147483647,-2147483648),H<0&&(H=4294967295+H+1),this[G]=H>>>24,this[G+1]=H>>>16,this[G+2]=H>>>8,this[G+3]=H&255,G+4},s.prototype.writeBigInt64LE=De(function(H,G=0){return Y(this,H,G,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=De(function(H,G=0){return V(this,H,G,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function K(re,H,G,oe,me,we){if(G+oe>re.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function ne(re,H,G,oe,me){return H=+H,G=G>>>0,me||K(re,H,G,4),r.write(re,H,G,oe,23,4),G+4}s.prototype.writeFloatLE=function(H,G,oe){return ne(this,H,G,!0,oe)},s.prototype.writeFloatBE=function(H,G,oe){return ne(this,H,G,!1,oe)};function X(re,H,G,oe,me){return H=+H,G=G>>>0,me||K(re,H,G,8),r.write(re,H,G,oe,52,8),G+8}s.prototype.writeDoubleLE=function(H,G,oe){return X(this,H,G,!0,oe)},s.prototype.writeDoubleBE=function(H,G,oe){return X(this,H,G,!1,oe)},s.prototype.copy=function(H,G,oe,me){if(!s.isBuffer(H))throw new TypeError("argument should be a Buffer");if(oe||(oe=0),!me&&me!==0&&(me=this.length),G>=H.length&&(G=H.length),G||(G=0),me>0&&me<oe&&(me=oe),me===oe||H.length===0||this.length===0)return 0;if(G<0)throw new RangeError("targetStart out of bounds");if(oe<0||oe>=this.length)throw new RangeError("Index out of range");if(me<0)throw new RangeError("sourceEnd out of bounds");me>this.length&&(me=this.length),H.length-G<me-oe&&(me=H.length-G+oe);const we=me-oe;return this===H&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(G,oe,me):Uint8Array.prototype.set.call(H,this.subarray(oe,me),G),we},s.prototype.fill=function(H,G,oe,me){if(typeof H=="string"){if(typeof G=="string"?(me=G,G=0,oe=this.length):typeof oe=="string"&&(me=oe,oe=this.length),me!==void 0&&typeof me!="string")throw new TypeError("encoding must be a string");if(typeof me=="string"&&!s.isEncoding(me))throw new TypeError("Unknown encoding: "+me);if(H.length===1){const Ee=H.charCodeAt(0);(me==="utf8"&&Ee<128||me==="latin1")&&(H=Ee)}}else typeof H=="number"?H=H&255:typeof H=="boolean"&&(H=Number(H));if(G<0||this.length<G||this.length<oe)throw new RangeError("Out of range index");if(oe<=G)return this;G=G>>>0,oe=oe===void 0?this.length:oe>>>0,H||(H=0);let we;if(typeof H=="number")for(we=G;we<oe;++we)this[we]=H;else{const Ee=s.isBuffer(H)?H:s.from(H,me),xe=Ee.length;if(xe===0)throw new TypeError('The value "'+H+'" is invalid for argument "value"');for(we=0;we<oe-G;++we)this[we+G]=Ee[we%xe]}return this};const Q={};function z(re,H,G){Q[re]=class extends G{constructor(){super(),Object.defineProperty(this,"message",{value:H.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${re}]`,this.stack,delete this.name}get code(){return re}set code(me){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:me,writable:!0})}toString(){return`${this.name} [${re}]: ${this.message}`}}}z("ERR_BUFFER_OUT_OF_BOUNDS",function(re){return re?`${re} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),z("ERR_INVALID_ARG_TYPE",function(re,H){return`The "${re}" argument must be of type number. Received type ${typeof H}`},TypeError),z("ERR_OUT_OF_RANGE",function(re,H,G){let oe=`The value of "${re}" is out of range.`,me=G;return Number.isInteger(G)&&Math.abs(G)>2**32?me=j(String(G)):typeof G=="bigint"&&(me=String(G),(G>BigInt(2)**BigInt(32)||G<-(BigInt(2)**BigInt(32)))&&(me=j(me)),me+="n"),oe+=` It must be ${H}. Received ${me}`,oe},RangeError);function j(re){let H="",G=re.length;const oe=re[0]==="-"?1:0;for(;G>=oe+4;G-=3)H=`_${re.slice(G-3,G)}${H}`;return`${re.slice(0,G)}${H}`}function W(re,H,G){q(H,"offset"),(re[H]===void 0||re[H+G]===void 0)&&te(H,re.length-(G+1))}function ee(re,H,G,oe,me,we){if(re>G||re<H){const Ee=typeof H=="bigint"?"n":"";let xe;throw H===0||H===BigInt(0)?xe=`>= 0${Ee} and < 2${Ee} ** ${(we+1)*8}${Ee}`:xe=`>= -(2${Ee} ** ${(we+1)*8-1}${Ee}) and < 2 ** ${(we+1)*8-1}${Ee}`,new Q.ERR_OUT_OF_RANGE("value",xe,re)}W(oe,me,we)}function q(re,H){if(typeof re!="number")throw new Q.ERR_INVALID_ARG_TYPE(H,"number",re)}function te(re,H,G){throw Math.floor(re)!==re?(q(re,G),new Q.ERR_OUT_OF_RANGE("offset","an integer",re)):H<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${H}`,re)}const ae=/[^+/0-9A-Za-z-_]/g;function ce(re){if(re=re.split("=")[0],re=re.trim().replace(ae,""),re.length<2)return"";for(;re.length%4!==0;)re=re+"=";return re}function de(re,H){H=H||1/0;let G;const oe=re.length;let me=null;const we=[];for(let Ee=0;Ee<oe;++Ee){if(G=re.charCodeAt(Ee),G>55295&&G<57344){if(!me){if(G>56319){(H-=3)>-1&&we.push(239,191,189);continue}else if(Ee+1===oe){(H-=3)>-1&&we.push(239,191,189);continue}me=G;continue}if(G<56320){(H-=3)>-1&&we.push(239,191,189),me=G;continue}G=(me-55296<<10|G-56320)+65536}else me&&(H-=3)>-1&&we.push(239,191,189);if(me=null,G<128){if((H-=1)<0)break;we.push(G)}else if(G<2048){if((H-=2)<0)break;we.push(G>>6|192,G&63|128)}else if(G<65536){if((H-=3)<0)break;we.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((H-=4)<0)break;we.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return we}function se(re){const H=[];for(let G=0;G<re.length;++G)H.push(re.charCodeAt(G)&255);return H}function pe(re,H){let G,oe,me;const we=[];for(let Ee=0;Ee<re.length&&!((H-=2)<0);++Ee)G=re.charCodeAt(Ee),oe=G>>8,me=G%256,we.push(me),we.push(oe);return we}function ye(re){return t.toByteArray(ce(re))}function Ce(re,H,G,oe){let me;for(me=0;me<oe&&!(me+G>=H.length||me>=re.length);++me)H[me+G]=re[me];return me}function Se(re,H){return re instanceof H||re!=null&&re.constructor!=null&&re.constructor.name!=null&&re.constructor.name===H.name}function Ie(re){return re!==re}const Re=function(){const re="0123456789abcdef",H=new Array(256);for(let G=0;G<16;++G){const oe=G*16;for(let me=0;me<16;++me)H[oe+me]=re[G]+re[me]}return H}();function De(re){return typeof BigInt>"u"?Fe:re}function Fe(){throw new Error("BigInt not supported")}})(JB);const K2e=["en","zh","ja","ko","ar","th","pl","it","de","es","fr"],CK=We.enum(K2e);We.object({cancel:We.string(),close:We.string(),field:We.string(),fieldName:We.string(),align:We.string(),width:We.string(),opacity:We.string(),height:We.string(),rotate:We.string(),edit:We.string(),required:We.string(),editable:We.string(),plsInputName:We.string(),fieldMustUniq:We.string(),notUniq:We.string(),noKeyName:We.string(),fieldsList:We.string(),editField:We.string(),type:We.string(),errorOccurred:We.string(),errorBulkUpdateFieldName:We.string(),commitBulkUpdateFieldName:We.string(),bulkUpdateFieldName:We.string(),addPageAfter:We.string(),removePage:We.string(),removePageConfirm:We.string(),"validation.uniqueName":We.string(),"validation.hexColor":We.string(),"schemas.color":We.string(),"schemas.borderWidth":We.string(),"schemas.borderColor":We.string(),"schemas.backgroundColor":We.string(),"schemas.textColor":We.string(),"schemas.bgColor":We.string(),"schemas.horizontal":We.string(),"schemas.vertical":We.string(),"schemas.left":We.string(),"schemas.center":We.string(),"schemas.right":We.string(),"schemas.top":We.string(),"schemas.middle":We.string(),"schemas.bottom":We.string(),"schemas.padding":We.string(),"schemas.text.fontName":We.string(),"schemas.text.size":We.string(),"schemas.text.spacing":We.string(),"schemas.text.textAlign":We.string(),"schemas.text.verticalAlign":We.string(),"schemas.text.lineHeight":We.string(),"schemas.text.min":We.string(),"schemas.text.max":We.string(),"schemas.text.fit":We.string(),"schemas.text.dynamicFontSize":We.string(),"schemas.text.format":We.string(),"schemas.mvt.typingInstructions":We.string(),"schemas.mvt.sampleField":We.string(),"schemas.mvt.variablesSampleData":We.string(),"schemas.barcodes.barColor":We.string(),"schemas.barcodes.includetext":We.string(),"schemas.table.alternateBackgroundColor":We.string(),"schemas.table.tableStyle":We.string(),"schemas.table.headStyle":We.string(),"schemas.table.bodyStyle":We.string(),"schemas.table.columnStyle":We.string(),"schemas.date.format":We.string(),"schemas.select.options":We.string(),"schemas.select.optionPlaceholder":We.string(),"schemas.radioGroup.groupName":We.string()}),We.enum(["viewer","form","designer"]);const q2e=We.enum(["rgb","cmyk"]).optional();We.object({height:We.number(),width:We.number()});const e3=We.object({name:We.string(),type:We.string(),content:We.string().optional(),position:We.object({x:We.number(),y:We.number()}),width:We.number(),height:We.number(),rotate:We.number().optional(),opacity:We.number().optional(),readOnly:We.boolean().optional(),required:We.boolean().optional(),__bodyRange:We.object({start:We.number(),end:We.number().optional()}).optional(),__isSplit:We.boolean().optional()}).passthrough(),X2e=We.object({id:We.string()});e3.merge(X2e);const xK=We.any().refine(e=>e instanceof ArrayBuffer),EK=We.any().refine(e=>e instanceof Uint8Array),SK=We.object({width:We.number(),height:We.number(),padding:We.tuple([We.number(),We.number(),We.number(),We.number()]),staticSchema:We.array(e3).optional()}),Z2e=We.union([We.string(),xK,EK]),J2e=We.union([Z2e,SK]);We.array(We.record(e3));const eSe=We.array(We.array(e3)),IK=We.object({schemas:eSe,basePdf:J2e,pdfmeVersion:We.string().optional()}).passthrough(),cO=We.array(We.record(We.any())).min(1),tSe=We.record(We.object({data:We.union([We.string(),xK,EK]),fallback:We.boolean().optional(),subset:We.boolean().optional()})),uO=We.object({font:tSe.optional()}).passthrough(),BK=We.object({template:IK,options:uO.optional(),plugins:We.record(We.object({ui:We.any(),pdf:We.any(),propPanel:We.any()})).optional()}),rSe=uO.extend({colorType:q2e,author:We.string().optional(),creationDate:We.date().optional(),creator:We.string().optional(),keywords:We.array(We.string()).optional(),lang:CK.optional(),modificationDate:We.date().optional(),producer:We.string().optional(),subject:We.string().optional(),title:We.string().optional()});BK.extend({inputs:cO,options:rSe.optional()}).strict();const MK=uO.extend({lang:CK.optional(),labels:We.record(We.string(),We.string()).optional(),theme:We.record(We.string(),We.unknown()).optional(),icons:We.record(We.string(),We.string()).optional(),requiredByDefault:We.boolean().optional()}),nSe=We.any().refine(e=>e instanceof HTMLElement),dO=BK.extend({domContainer:nSe,options:MK.optional()}),iSe=dO.extend({inputs:cO}).strict(),aSe=dO.extend({}).strict(),Ma=e=>JSON.parse(JSON.stringify(e)),RK=e=>Array.from(new Set(e)),Kv=e=>{const t="",r=Object.entries(e).reduce((n,i)=>{const[a,o]=i;return!n&&o.fallback?a:n},t);if(r===t)throw Error("[@pdfme/common] fallback flag is not found in font. true fallback flag must be only one.");return r},wh=()=>({[eO]:{data:fO(zEe),fallback:!0}}),kd=e=>parseFloat(String(e))*HEe,$p=e=>e*QEe,PK=e=>e*jEe,DK=e=>parseFloat(String(e))*.26458333333333,oSe=e=>new Promise((t,r)=>{const n=new FileReader;n.onloadend=()=>{n.result.startsWith("data:application/pdf;")?t(n.result):r(Error("[@pdfme/common] template.basePdf must be pdf data."))},n.readAsDataURL(e)}),TK=e=>/^#(?:[A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/i.test(e),_K=e=>{e.schemas&&Array.isArray(e.schemas)&&e.schemas.length>0&&!Array.isArray(e.schemas[0])&&(e.schemas=e.schemas.map(t=>Object.entries(t).map(([r,n])=>({...n,name:r}))))},OK=e=>typeof e=="string"&&!e.startsWith("data:application/pdf;")&&typeof window<"u"?fetch(e).then(r=>r.blob()).then(oSe).catch(r=>{throw r}):e,uc=e=>SK.safeParse(e).success,sSe=e=>JB.Buffer.from(e,"base64").toString("binary"),fO=e=>{const t=e.split(";base64,")[1]?e.split(";base64,")[1]:e,r=sSe(t),n=new Uint8Array(r.length);for(let i=0;i<r.length;i+=1)n[i]=r.charCodeAt(i);return n},lSe=e=>RK(e.map(t=>t.map(r=>r.fontName??"")).reduce((t,r)=>t.concat(r),[]).filter(Boolean)),cSe=e=>{const{font:t,template:{schemas:r}}=e,i=Object.values(t).reduce((s,l)=>l.fallback?s+1:s,0);if(i===0)throw Error(`[@pdfme/common] fallback flag is not found in font. true fallback flag must be only one.
42
+ */(function(e){const t=Yv,r=lO,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{const re=new Uint8Array(1),H={foo:function(){return 42}};return Object.setPrototypeOf(H,Uint8Array.prototype),Object.setPrototypeOf(re,H),re.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(re){if(re>i)throw new RangeError('The value "'+re+'" is invalid for option "size"');const H=new Uint8Array(re);return Object.setPrototypeOf(H,s.prototype),H}function s(re,H,G){if(typeof re=="number"){if(typeof H=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(re)}return l(re,H,G)}s.poolSize=8192;function l(re,H,G){if(typeof re=="string")return f(re,H);if(ArrayBuffer.isView(re))return A(re);if(re==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof re);if(Se(re,ArrayBuffer)||re&&Se(re.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Se(re,SharedArrayBuffer)||re&&Se(re.buffer,SharedArrayBuffer)))return v(re,H,G);if(typeof re=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const oe=re.valueOf&&re.valueOf();if(oe!=null&&oe!==re)return s.from(oe,H,G);const me=g(re);if(me)return me;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof re[Symbol.toPrimitive]=="function")return s.from(re[Symbol.toPrimitive]("string"),H,G);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof re)}s.from=function(re,H,G){return l(re,H,G)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(re){if(typeof re!="number")throw new TypeError('"size" argument must be of type number');if(re<0)throw new RangeError('The value "'+re+'" is invalid for option "size"')}function u(re,H,G){return c(re),re<=0?o(re):H!==void 0?typeof G=="string"?o(re).fill(H,G):o(re).fill(H):o(re)}s.alloc=function(re,H,G){return u(re,H,G)};function d(re){return c(re),o(re<0?0:m(re)|0)}s.allocUnsafe=function(re){return d(re)},s.allocUnsafeSlow=function(re){return d(re)};function f(re,H){if((typeof H!="string"||H==="")&&(H="utf8"),!s.isEncoding(H))throw new TypeError("Unknown encoding: "+H);const G=b(re,H)|0;let oe=o(G);const me=oe.write(re,H);return me!==G&&(oe=oe.slice(0,me)),oe}function p(re){const H=re.length<0?0:m(re.length)|0,G=o(H);for(let oe=0;oe<H;oe+=1)G[oe]=re[oe]&255;return G}function A(re){if(Se(re,Uint8Array)){const H=new Uint8Array(re);return v(H.buffer,H.byteOffset,H.byteLength)}return p(re)}function v(re,H,G){if(H<0||re.byteLength<H)throw new RangeError('"offset" is outside of buffer bounds');if(re.byteLength<H+(G||0))throw new RangeError('"length" is outside of buffer bounds');let oe;return H===void 0&&G===void 0?oe=new Uint8Array(re):G===void 0?oe=new Uint8Array(re,H):oe=new Uint8Array(re,H,G),Object.setPrototypeOf(oe,s.prototype),oe}function g(re){if(s.isBuffer(re)){const H=m(re.length)|0,G=o(H);return G.length===0||re.copy(G,0,0,H),G}if(re.length!==void 0)return typeof re.length!="number"||Ie(re.length)?o(0):p(re);if(re.type==="Buffer"&&Array.isArray(re.data))return p(re.data)}function m(re){if(re>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return re|0}function y(re){return+re!=re&&(re=0),s.alloc(+re)}s.isBuffer=function(H){return H!=null&&H._isBuffer===!0&&H!==s.prototype},s.compare=function(H,G){if(Se(H,Uint8Array)&&(H=s.from(H,H.offset,H.byteLength)),Se(G,Uint8Array)&&(G=s.from(G,G.offset,G.byteLength)),!s.isBuffer(H)||!s.isBuffer(G))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(H===G)return 0;let oe=H.length,me=G.length;for(let we=0,Ee=Math.min(oe,me);we<Ee;++we)if(H[we]!==G[we]){oe=H[we],me=G[we];break}return oe<me?-1:me<oe?1:0},s.isEncoding=function(H){switch(String(H).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(H,G){if(!Array.isArray(H))throw new TypeError('"list" argument must be an Array of Buffers');if(H.length===0)return s.alloc(0);let oe;if(G===void 0)for(G=0,oe=0;oe<H.length;++oe)G+=H[oe].length;const me=s.allocUnsafe(G);let we=0;for(oe=0;oe<H.length;++oe){let Ee=H[oe];if(Se(Ee,Uint8Array))we+Ee.length>me.length?(s.isBuffer(Ee)||(Ee=s.from(Ee)),Ee.copy(me,we)):Uint8Array.prototype.set.call(me,Ee,we);else if(s.isBuffer(Ee))Ee.copy(me,we);else throw new TypeError('"list" argument must be an Array of Buffers');we+=Ee.length}return me};function b(re,H){if(s.isBuffer(re))return re.length;if(ArrayBuffer.isView(re)||Se(re,ArrayBuffer))return re.byteLength;if(typeof re!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof re);const G=re.length,oe=arguments.length>2&&arguments[2]===!0;if(!oe&&G===0)return 0;let me=!1;for(;;)switch(H){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return de(re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return ye(re).length;default:if(me)return oe?-1:de(re).length;H=(""+H).toLowerCase(),me=!0}}s.byteLength=b;function C(re,H,G){let oe=!1;if((H===void 0||H<0)&&(H=0),H>this.length||((G===void 0||G>this.length)&&(G=this.length),G<=0)||(G>>>=0,H>>>=0,G<=H))return"";for(re||(re="utf8");;)switch(re){case"hex":return L(this,H,G);case"utf8":case"utf-8":return F(this,H,G);case"ascii":return M(this,H,G);case"latin1":case"binary":return T(this,H,G);case"base64":return O(this,H,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,H,G);default:if(oe)throw new TypeError("Unknown encoding: "+re);re=(re+"").toLowerCase(),oe=!0}}s.prototype._isBuffer=!0;function w(re,H,G){const oe=re[H];re[H]=re[G],re[G]=oe}s.prototype.swap16=function(){const H=this.length;if(H%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let G=0;G<H;G+=2)w(this,G,G+1);return this},s.prototype.swap32=function(){const H=this.length;if(H%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let G=0;G<H;G+=4)w(this,G,G+3),w(this,G+1,G+2);return this},s.prototype.swap64=function(){const H=this.length;if(H%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let G=0;G<H;G+=8)w(this,G,G+7),w(this,G+1,G+6),w(this,G+2,G+5),w(this,G+3,G+4);return this},s.prototype.toString=function(){const H=this.length;return H===0?"":arguments.length===0?F(this,0,H):C.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(H){if(!s.isBuffer(H))throw new TypeError("Argument must be a Buffer");return this===H?!0:s.compare(this,H)===0},s.prototype.inspect=function(){let H="";const G=e.INSPECT_MAX_BYTES;return H=this.toString("hex",0,G).replace(/(.{2})/g,"$1 ").trim(),this.length>G&&(H+=" ... "),"<Buffer "+H+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(H,G,oe,me,we){if(Se(H,Uint8Array)&&(H=s.from(H,H.offset,H.byteLength)),!s.isBuffer(H))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof H);if(G===void 0&&(G=0),oe===void 0&&(oe=H?H.length:0),me===void 0&&(me=0),we===void 0&&(we=this.length),G<0||oe>H.length||me<0||we>this.length)throw new RangeError("out of range index");if(me>=we&&G>=oe)return 0;if(me>=we)return-1;if(G>=oe)return 1;if(G>>>=0,oe>>>=0,me>>>=0,we>>>=0,this===H)return 0;let Ee=we-me,xe=oe-G;const _e=Math.min(Ee,xe),Pe=this.slice(me,we),Be=H.slice(G,oe);for(let Oe=0;Oe<_e;++Oe)if(Pe[Oe]!==Be[Oe]){Ee=Pe[Oe],xe=Be[Oe];break}return Ee<xe?-1:xe<Ee?1:0};function x(re,H,G,oe,me){if(re.length===0)return-1;if(typeof G=="string"?(oe=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,Ie(G)&&(G=me?0:re.length-1),G<0&&(G=re.length+G),G>=re.length){if(me)return-1;G=re.length-1}else if(G<0)if(me)G=0;else return-1;if(typeof H=="string"&&(H=s.from(H,oe)),s.isBuffer(H))return H.length===0?-1:E(re,H,G,oe,me);if(typeof H=="number")return H=H&255,typeof Uint8Array.prototype.indexOf=="function"?me?Uint8Array.prototype.indexOf.call(re,H,G):Uint8Array.prototype.lastIndexOf.call(re,H,G):E(re,[H],G,oe,me);throw new TypeError("val must be string, number or Buffer")}function E(re,H,G,oe,me){let we=1,Ee=re.length,xe=H.length;if(oe!==void 0&&(oe=String(oe).toLowerCase(),oe==="ucs2"||oe==="ucs-2"||oe==="utf16le"||oe==="utf-16le")){if(re.length<2||H.length<2)return-1;we=2,Ee/=2,xe/=2,G/=2}function _e(Be,Oe){return we===1?Be[Oe]:Be.readUInt16BE(Oe*we)}let Pe;if(me){let Be=-1;for(Pe=G;Pe<Ee;Pe++)if(_e(re,Pe)===_e(H,Be===-1?0:Pe-Be)){if(Be===-1&&(Be=Pe),Pe-Be+1===xe)return Be*we}else Be!==-1&&(Pe-=Pe-Be),Be=-1}else for(G+xe>Ee&&(G=Ee-xe),Pe=G;Pe>=0;Pe--){let Be=!0;for(let Oe=0;Oe<xe;Oe++)if(_e(re,Pe+Oe)!==_e(H,Oe)){Be=!1;break}if(Be)return Pe}return-1}s.prototype.includes=function(H,G,oe){return this.indexOf(H,G,oe)!==-1},s.prototype.indexOf=function(H,G,oe){return x(this,H,G,oe,!0)},s.prototype.lastIndexOf=function(H,G,oe){return x(this,H,G,oe,!1)};function S(re,H,G,oe){G=Number(G)||0;const me=re.length-G;oe?(oe=Number(oe),oe>me&&(oe=me)):oe=me;const we=H.length;oe>we/2&&(oe=we/2);let Ee;for(Ee=0;Ee<oe;++Ee){const xe=parseInt(H.substr(Ee*2,2),16);if(Ie(xe))return Ee;re[G+Ee]=xe}return Ee}function I(re,H,G,oe){return Ce(de(H,re.length-G),re,G,oe)}function B(re,H,G,oe){return Ce(se(H),re,G,oe)}function R(re,H,G,oe){return Ce(ye(H),re,G,oe)}function _(re,H,G,oe){return Ce(pe(H,re.length-G),re,G,oe)}s.prototype.write=function(H,G,oe,me){if(G===void 0)me="utf8",oe=this.length,G=0;else if(oe===void 0&&typeof G=="string")me=G,oe=this.length,G=0;else if(isFinite(G))G=G>>>0,isFinite(oe)?(oe=oe>>>0,me===void 0&&(me="utf8")):(me=oe,oe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const we=this.length-G;if((oe===void 0||oe>we)&&(oe=we),H.length>0&&(oe<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");me||(me="utf8");let Ee=!1;for(;;)switch(me){case"hex":return S(this,H,G,oe);case"utf8":case"utf-8":return I(this,H,G,oe);case"ascii":case"latin1":case"binary":return B(this,H,G,oe);case"base64":return R(this,H,G,oe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,H,G,oe);default:if(Ee)throw new TypeError("Unknown encoding: "+me);me=(""+me).toLowerCase(),Ee=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(re,H,G){return H===0&&G===re.length?t.fromByteArray(re):t.fromByteArray(re.slice(H,G))}function F(re,H,G){G=Math.min(re.length,G);const oe=[];let me=H;for(;me<G;){const we=re[me];let Ee=null,xe=we>239?4:we>223?3:we>191?2:1;if(me+xe<=G){let _e,Pe,Be,Oe;switch(xe){case 1:we<128&&(Ee=we);break;case 2:_e=re[me+1],(_e&192)===128&&(Oe=(we&31)<<6|_e&63,Oe>127&&(Ee=Oe));break;case 3:_e=re[me+1],Pe=re[me+2],(_e&192)===128&&(Pe&192)===128&&(Oe=(we&15)<<12|(_e&63)<<6|Pe&63,Oe>2047&&(Oe<55296||Oe>57343)&&(Ee=Oe));break;case 4:_e=re[me+1],Pe=re[me+2],Be=re[me+3],(_e&192)===128&&(Pe&192)===128&&(Be&192)===128&&(Oe=(we&15)<<18|(_e&63)<<12|(Pe&63)<<6|Be&63,Oe>65535&&Oe<1114112&&(Ee=Oe))}}Ee===null?(Ee=65533,xe=1):Ee>65535&&(Ee-=65536,oe.push(Ee>>>10&1023|55296),Ee=56320|Ee&1023),oe.push(Ee),me+=xe}return D(oe)}const k=4096;function D(re){const H=re.length;if(H<=k)return String.fromCharCode.apply(String,re);let G="",oe=0;for(;oe<H;)G+=String.fromCharCode.apply(String,re.slice(oe,oe+=k));return G}function M(re,H,G){let oe="";G=Math.min(re.length,G);for(let me=H;me<G;++me)oe+=String.fromCharCode(re[me]&127);return oe}function T(re,H,G){let oe="";G=Math.min(re.length,G);for(let me=H;me<G;++me)oe+=String.fromCharCode(re[me]);return oe}function L(re,H,G){const oe=re.length;(!H||H<0)&&(H=0),(!G||G<0||G>oe)&&(G=oe);let me="";for(let we=H;we<G;++we)me+=Re[re[we]];return me}function N(re,H,G){const oe=re.slice(H,G);let me="";for(let we=0;we<oe.length-1;we+=2)me+=String.fromCharCode(oe[we]+oe[we+1]*256);return me}s.prototype.slice=function(H,G){const oe=this.length;H=~~H,G=G===void 0?oe:~~G,H<0?(H+=oe,H<0&&(H=0)):H>oe&&(H=oe),G<0?(G+=oe,G<0&&(G=0)):G>oe&&(G=oe),G<H&&(G=H);const me=this.subarray(H,G);return Object.setPrototypeOf(me,s.prototype),me};function $(re,H,G){if(re%1!==0||re<0)throw new RangeError("offset is not uint");if(re+H>G)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(H,G,oe){H=H>>>0,G=G>>>0,oe||$(H,G,this.length);let me=this[H],we=1,Ee=0;for(;++Ee<G&&(we*=256);)me+=this[H+Ee]*we;return me},s.prototype.readUintBE=s.prototype.readUIntBE=function(H,G,oe){H=H>>>0,G=G>>>0,oe||$(H,G,this.length);let me=this[H+--G],we=1;for(;G>0&&(we*=256);)me+=this[H+--G]*we;return me},s.prototype.readUint8=s.prototype.readUInt8=function(H,G){return H=H>>>0,G||$(H,1,this.length),this[H]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(H,G){return H=H>>>0,G||$(H,2,this.length),this[H]|this[H+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(H,G){return H=H>>>0,G||$(H,2,this.length),this[H]<<8|this[H+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(H,G){return H=H>>>0,G||$(H,4,this.length),(this[H]|this[H+1]<<8|this[H+2]<<16)+this[H+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(H,G){return H=H>>>0,G||$(H,4,this.length),this[H]*16777216+(this[H+1]<<16|this[H+2]<<8|this[H+3])},s.prototype.readBigUInt64LE=De(function(H){H=H>>>0,q(H,"offset");const G=this[H],oe=this[H+7];(G===void 0||oe===void 0)&&te(H,this.length-8);const me=G+this[++H]*2**8+this[++H]*2**16+this[++H]*2**24,we=this[++H]+this[++H]*2**8+this[++H]*2**16+oe*2**24;return BigInt(me)+(BigInt(we)<<BigInt(32))}),s.prototype.readBigUInt64BE=De(function(H){H=H>>>0,q(H,"offset");const G=this[H],oe=this[H+7];(G===void 0||oe===void 0)&&te(H,this.length-8);const me=G*2**24+this[++H]*2**16+this[++H]*2**8+this[++H],we=this[++H]*2**24+this[++H]*2**16+this[++H]*2**8+oe;return(BigInt(me)<<BigInt(32))+BigInt(we)}),s.prototype.readIntLE=function(H,G,oe){H=H>>>0,G=G>>>0,oe||$(H,G,this.length);let me=this[H],we=1,Ee=0;for(;++Ee<G&&(we*=256);)me+=this[H+Ee]*we;return we*=128,me>=we&&(me-=Math.pow(2,8*G)),me},s.prototype.readIntBE=function(H,G,oe){H=H>>>0,G=G>>>0,oe||$(H,G,this.length);let me=G,we=1,Ee=this[H+--me];for(;me>0&&(we*=256);)Ee+=this[H+--me]*we;return we*=128,Ee>=we&&(Ee-=Math.pow(2,8*G)),Ee},s.prototype.readInt8=function(H,G){return H=H>>>0,G||$(H,1,this.length),this[H]&128?(255-this[H]+1)*-1:this[H]},s.prototype.readInt16LE=function(H,G){H=H>>>0,G||$(H,2,this.length);const oe=this[H]|this[H+1]<<8;return oe&32768?oe|4294901760:oe},s.prototype.readInt16BE=function(H,G){H=H>>>0,G||$(H,2,this.length);const oe=this[H+1]|this[H]<<8;return oe&32768?oe|4294901760:oe},s.prototype.readInt32LE=function(H,G){return H=H>>>0,G||$(H,4,this.length),this[H]|this[H+1]<<8|this[H+2]<<16|this[H+3]<<24},s.prototype.readInt32BE=function(H,G){return H=H>>>0,G||$(H,4,this.length),this[H]<<24|this[H+1]<<16|this[H+2]<<8|this[H+3]},s.prototype.readBigInt64LE=De(function(H){H=H>>>0,q(H,"offset");const G=this[H],oe=this[H+7];(G===void 0||oe===void 0)&&te(H,this.length-8);const me=this[H+4]+this[H+5]*2**8+this[H+6]*2**16+(oe<<24);return(BigInt(me)<<BigInt(32))+BigInt(G+this[++H]*2**8+this[++H]*2**16+this[++H]*2**24)}),s.prototype.readBigInt64BE=De(function(H){H=H>>>0,q(H,"offset");const G=this[H],oe=this[H+7];(G===void 0||oe===void 0)&&te(H,this.length-8);const me=(G<<24)+this[++H]*2**16+this[++H]*2**8+this[++H];return(BigInt(me)<<BigInt(32))+BigInt(this[++H]*2**24+this[++H]*2**16+this[++H]*2**8+oe)}),s.prototype.readFloatLE=function(H,G){return H=H>>>0,G||$(H,4,this.length),r.read(this,H,!0,23,4)},s.prototype.readFloatBE=function(H,G){return H=H>>>0,G||$(H,4,this.length),r.read(this,H,!1,23,4)},s.prototype.readDoubleLE=function(H,G){return H=H>>>0,G||$(H,8,this.length),r.read(this,H,!0,52,8)},s.prototype.readDoubleBE=function(H,G){return H=H>>>0,G||$(H,8,this.length),r.read(this,H,!1,52,8)};function U(re,H,G,oe,me,we){if(!s.isBuffer(re))throw new TypeError('"buffer" argument must be a Buffer instance');if(H>me||H<we)throw new RangeError('"value" argument is out of bounds');if(G+oe>re.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(H,G,oe,me){if(H=+H,G=G>>>0,oe=oe>>>0,!me){const xe=Math.pow(2,8*oe)-1;U(this,H,G,oe,xe,0)}let we=1,Ee=0;for(this[G]=H&255;++Ee<oe&&(we*=256);)this[G+Ee]=H/we&255;return G+oe},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(H,G,oe,me){if(H=+H,G=G>>>0,oe=oe>>>0,!me){const xe=Math.pow(2,8*oe)-1;U(this,H,G,oe,xe,0)}let we=oe-1,Ee=1;for(this[G+we]=H&255;--we>=0&&(Ee*=256);)this[G+we]=H/Ee&255;return G+oe},s.prototype.writeUint8=s.prototype.writeUInt8=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,1,255,0),this[G]=H&255,G+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,2,65535,0),this[G]=H&255,this[G+1]=H>>>8,G+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,2,65535,0),this[G]=H>>>8,this[G+1]=H&255,G+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,4,4294967295,0),this[G+3]=H>>>24,this[G+2]=H>>>16,this[G+1]=H>>>8,this[G]=H&255,G+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,4,4294967295,0),this[G]=H>>>24,this[G+1]=H>>>16,this[G+2]=H>>>8,this[G+3]=H&255,G+4};function Y(re,H,G,oe,me){ee(H,oe,me,re,G,7);let we=Number(H&BigInt(4294967295));re[G++]=we,we=we>>8,re[G++]=we,we=we>>8,re[G++]=we,we=we>>8,re[G++]=we;let Ee=Number(H>>BigInt(32)&BigInt(4294967295));return re[G++]=Ee,Ee=Ee>>8,re[G++]=Ee,Ee=Ee>>8,re[G++]=Ee,Ee=Ee>>8,re[G++]=Ee,G}function V(re,H,G,oe,me){ee(H,oe,me,re,G,7);let we=Number(H&BigInt(4294967295));re[G+7]=we,we=we>>8,re[G+6]=we,we=we>>8,re[G+5]=we,we=we>>8,re[G+4]=we;let Ee=Number(H>>BigInt(32)&BigInt(4294967295));return re[G+3]=Ee,Ee=Ee>>8,re[G+2]=Ee,Ee=Ee>>8,re[G+1]=Ee,Ee=Ee>>8,re[G]=Ee,G+8}s.prototype.writeBigUInt64LE=De(function(H,G=0){return Y(this,H,G,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=De(function(H,G=0){return V(this,H,G,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(H,G,oe,me){if(H=+H,G=G>>>0,!me){const _e=Math.pow(2,8*oe-1);U(this,H,G,oe,_e-1,-_e)}let we=0,Ee=1,xe=0;for(this[G]=H&255;++we<oe&&(Ee*=256);)H<0&&xe===0&&this[G+we-1]!==0&&(xe=1),this[G+we]=(H/Ee>>0)-xe&255;return G+oe},s.prototype.writeIntBE=function(H,G,oe,me){if(H=+H,G=G>>>0,!me){const _e=Math.pow(2,8*oe-1);U(this,H,G,oe,_e-1,-_e)}let we=oe-1,Ee=1,xe=0;for(this[G+we]=H&255;--we>=0&&(Ee*=256);)H<0&&xe===0&&this[G+we+1]!==0&&(xe=1),this[G+we]=(H/Ee>>0)-xe&255;return G+oe},s.prototype.writeInt8=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,1,127,-128),H<0&&(H=255+H+1),this[G]=H&255,G+1},s.prototype.writeInt16LE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,2,32767,-32768),this[G]=H&255,this[G+1]=H>>>8,G+2},s.prototype.writeInt16BE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,2,32767,-32768),this[G]=H>>>8,this[G+1]=H&255,G+2},s.prototype.writeInt32LE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,4,2147483647,-2147483648),this[G]=H&255,this[G+1]=H>>>8,this[G+2]=H>>>16,this[G+3]=H>>>24,G+4},s.prototype.writeInt32BE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,4,2147483647,-2147483648),H<0&&(H=4294967295+H+1),this[G]=H>>>24,this[G+1]=H>>>16,this[G+2]=H>>>8,this[G+3]=H&255,G+4},s.prototype.writeBigInt64LE=De(function(H,G=0){return Y(this,H,G,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=De(function(H,G=0){return V(this,H,G,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function K(re,H,G,oe,me,we){if(G+oe>re.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function ne(re,H,G,oe,me){return H=+H,G=G>>>0,me||K(re,H,G,4),r.write(re,H,G,oe,23,4),G+4}s.prototype.writeFloatLE=function(H,G,oe){return ne(this,H,G,!0,oe)},s.prototype.writeFloatBE=function(H,G,oe){return ne(this,H,G,!1,oe)};function X(re,H,G,oe,me){return H=+H,G=G>>>0,me||K(re,H,G,8),r.write(re,H,G,oe,52,8),G+8}s.prototype.writeDoubleLE=function(H,G,oe){return X(this,H,G,!0,oe)},s.prototype.writeDoubleBE=function(H,G,oe){return X(this,H,G,!1,oe)},s.prototype.copy=function(H,G,oe,me){if(!s.isBuffer(H))throw new TypeError("argument should be a Buffer");if(oe||(oe=0),!me&&me!==0&&(me=this.length),G>=H.length&&(G=H.length),G||(G=0),me>0&&me<oe&&(me=oe),me===oe||H.length===0||this.length===0)return 0;if(G<0)throw new RangeError("targetStart out of bounds");if(oe<0||oe>=this.length)throw new RangeError("Index out of range");if(me<0)throw new RangeError("sourceEnd out of bounds");me>this.length&&(me=this.length),H.length-G<me-oe&&(me=H.length-G+oe);const we=me-oe;return this===H&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(G,oe,me):Uint8Array.prototype.set.call(H,this.subarray(oe,me),G),we},s.prototype.fill=function(H,G,oe,me){if(typeof H=="string"){if(typeof G=="string"?(me=G,G=0,oe=this.length):typeof oe=="string"&&(me=oe,oe=this.length),me!==void 0&&typeof me!="string")throw new TypeError("encoding must be a string");if(typeof me=="string"&&!s.isEncoding(me))throw new TypeError("Unknown encoding: "+me);if(H.length===1){const Ee=H.charCodeAt(0);(me==="utf8"&&Ee<128||me==="latin1")&&(H=Ee)}}else typeof H=="number"?H=H&255:typeof H=="boolean"&&(H=Number(H));if(G<0||this.length<G||this.length<oe)throw new RangeError("Out of range index");if(oe<=G)return this;G=G>>>0,oe=oe===void 0?this.length:oe>>>0,H||(H=0);let we;if(typeof H=="number")for(we=G;we<oe;++we)this[we]=H;else{const Ee=s.isBuffer(H)?H:s.from(H,me),xe=Ee.length;if(xe===0)throw new TypeError('The value "'+H+'" is invalid for argument "value"');for(we=0;we<oe-G;++we)this[we+G]=Ee[we%xe]}return this};const Q={};function z(re,H,G){Q[re]=class extends G{constructor(){super(),Object.defineProperty(this,"message",{value:H.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${re}]`,this.stack,delete this.name}get code(){return re}set code(me){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:me,writable:!0})}toString(){return`${this.name} [${re}]: ${this.message}`}}}z("ERR_BUFFER_OUT_OF_BOUNDS",function(re){return re?`${re} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),z("ERR_INVALID_ARG_TYPE",function(re,H){return`The "${re}" argument must be of type number. Received type ${typeof H}`},TypeError),z("ERR_OUT_OF_RANGE",function(re,H,G){let oe=`The value of "${re}" is out of range.`,me=G;return Number.isInteger(G)&&Math.abs(G)>2**32?me=j(String(G)):typeof G=="bigint"&&(me=String(G),(G>BigInt(2)**BigInt(32)||G<-(BigInt(2)**BigInt(32)))&&(me=j(me)),me+="n"),oe+=` It must be ${H}. Received ${me}`,oe},RangeError);function j(re){let H="",G=re.length;const oe=re[0]==="-"?1:0;for(;G>=oe+4;G-=3)H=`_${re.slice(G-3,G)}${H}`;return`${re.slice(0,G)}${H}`}function W(re,H,G){q(H,"offset"),(re[H]===void 0||re[H+G]===void 0)&&te(H,re.length-(G+1))}function ee(re,H,G,oe,me,we){if(re>G||re<H){const Ee=typeof H=="bigint"?"n":"";let xe;throw H===0||H===BigInt(0)?xe=`>= 0${Ee} and < 2${Ee} ** ${(we+1)*8}${Ee}`:xe=`>= -(2${Ee} ** ${(we+1)*8-1}${Ee}) and < 2 ** ${(we+1)*8-1}${Ee}`,new Q.ERR_OUT_OF_RANGE("value",xe,re)}W(oe,me,we)}function q(re,H){if(typeof re!="number")throw new Q.ERR_INVALID_ARG_TYPE(H,"number",re)}function te(re,H,G){throw Math.floor(re)!==re?(q(re,G),new Q.ERR_OUT_OF_RANGE("offset","an integer",re)):H<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${H}`,re)}const ae=/[^+/0-9A-Za-z-_]/g;function ce(re){if(re=re.split("=")[0],re=re.trim().replace(ae,""),re.length<2)return"";for(;re.length%4!==0;)re=re+"=";return re}function de(re,H){H=H||1/0;let G;const oe=re.length;let me=null;const we=[];for(let Ee=0;Ee<oe;++Ee){if(G=re.charCodeAt(Ee),G>55295&&G<57344){if(!me){if(G>56319){(H-=3)>-1&&we.push(239,191,189);continue}else if(Ee+1===oe){(H-=3)>-1&&we.push(239,191,189);continue}me=G;continue}if(G<56320){(H-=3)>-1&&we.push(239,191,189),me=G;continue}G=(me-55296<<10|G-56320)+65536}else me&&(H-=3)>-1&&we.push(239,191,189);if(me=null,G<128){if((H-=1)<0)break;we.push(G)}else if(G<2048){if((H-=2)<0)break;we.push(G>>6|192,G&63|128)}else if(G<65536){if((H-=3)<0)break;we.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((H-=4)<0)break;we.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return we}function se(re){const H=[];for(let G=0;G<re.length;++G)H.push(re.charCodeAt(G)&255);return H}function pe(re,H){let G,oe,me;const we=[];for(let Ee=0;Ee<re.length&&!((H-=2)<0);++Ee)G=re.charCodeAt(Ee),oe=G>>8,me=G%256,we.push(me),we.push(oe);return we}function ye(re){return t.toByteArray(ce(re))}function Ce(re,H,G,oe){let me;for(me=0;me<oe&&!(me+G>=H.length||me>=re.length);++me)H[me+G]=re[me];return me}function Se(re,H){return re instanceof H||re!=null&&re.constructor!=null&&re.constructor.name!=null&&re.constructor.name===H.name}function Ie(re){return re!==re}const Re=function(){const re="0123456789abcdef",H=new Array(256);for(let G=0;G<16;++G){const oe=G*16;for(let me=0;me<16;++me)H[oe+me]=re[G]+re[me]}return H}();function De(re){return typeof BigInt>"u"?Fe:re}function Fe(){throw new Error("BigInt not supported")}})(JB);const K2e=["en","zh","ja","ko","ar","th","pl","it","de","es","fr"],CK=We.enum(K2e);We.object({cancel:We.string(),close:We.string(),field:We.string(),fieldName:We.string(),align:We.string(),width:We.string(),opacity:We.string(),height:We.string(),rotate:We.string(),edit:We.string(),required:We.string(),editable:We.string(),plsInputName:We.string(),fieldMustUniq:We.string(),notUniq:We.string(),noKeyName:We.string(),fieldsList:We.string(),editField:We.string(),type:We.string(),errorOccurred:We.string(),errorBulkUpdateFieldName:We.string(),commitBulkUpdateFieldName:We.string(),bulkUpdateFieldName:We.string(),addPageAfter:We.string(),removePage:We.string(),removePageConfirm:We.string(),"validation.uniqueName":We.string(),"validation.hexColor":We.string(),"schemas.color":We.string(),"schemas.borderWidth":We.string(),"schemas.borderColor":We.string(),"schemas.backgroundColor":We.string(),"schemas.textColor":We.string(),"schemas.bgColor":We.string(),"schemas.horizontal":We.string(),"schemas.vertical":We.string(),"schemas.left":We.string(),"schemas.center":We.string(),"schemas.right":We.string(),"schemas.top":We.string(),"schemas.middle":We.string(),"schemas.bottom":We.string(),"schemas.padding":We.string(),"schemas.text.fontName":We.string(),"schemas.text.size":We.string(),"schemas.text.spacing":We.string(),"schemas.text.textAlign":We.string(),"schemas.text.verticalAlign":We.string(),"schemas.text.lineHeight":We.string(),"schemas.text.min":We.string(),"schemas.text.max":We.string(),"schemas.text.fit":We.string(),"schemas.text.dynamicFontSize":We.string(),"schemas.text.format":We.string(),"schemas.mvt.typingInstructions":We.string(),"schemas.mvt.sampleField":We.string(),"schemas.mvt.variablesSampleData":We.string(),"schemas.barcodes.barColor":We.string(),"schemas.barcodes.includetext":We.string(),"schemas.table.alternateBackgroundColor":We.string(),"schemas.table.tableStyle":We.string(),"schemas.table.showHead":We.string(),"schemas.table.headStyle":We.string(),"schemas.table.bodyStyle":We.string(),"schemas.table.columnStyle":We.string(),"schemas.date.format":We.string(),"schemas.select.options":We.string(),"schemas.select.optionPlaceholder":We.string(),"schemas.radioGroup.groupName":We.string()}),We.enum(["viewer","form","designer"]);const q2e=We.enum(["rgb","cmyk"]).optional();We.object({height:We.number(),width:We.number()});const e3=We.object({name:We.string(),type:We.string(),content:We.string().optional(),position:We.object({x:We.number(),y:We.number()}),width:We.number(),height:We.number(),rotate:We.number().optional(),opacity:We.number().optional(),readOnly:We.boolean().optional(),required:We.boolean().optional(),__bodyRange:We.object({start:We.number(),end:We.number().optional()}).optional(),__isSplit:We.boolean().optional()}).passthrough(),X2e=We.object({id:We.string()});e3.merge(X2e);const xK=We.any().refine(e=>e instanceof ArrayBuffer),EK=We.any().refine(e=>e instanceof Uint8Array),SK=We.object({width:We.number(),height:We.number(),padding:We.tuple([We.number(),We.number(),We.number(),We.number()]),staticSchema:We.array(e3).optional()}),Z2e=We.union([We.string(),xK,EK]),J2e=We.union([Z2e,SK]);We.array(We.record(e3));const eSe=We.array(We.array(e3)),IK=We.object({schemas:eSe,basePdf:J2e,pdfmeVersion:We.string().optional()}).passthrough(),cO=We.array(We.record(We.any())).min(1),tSe=We.record(We.object({data:We.union([We.string(),xK,EK]),fallback:We.boolean().optional(),subset:We.boolean().optional()})),uO=We.object({font:tSe.optional()}).passthrough(),BK=We.object({template:IK,options:uO.optional(),plugins:We.record(We.object({ui:We.any(),pdf:We.any(),propPanel:We.any()})).optional()}),rSe=uO.extend({colorType:q2e,author:We.string().optional(),creationDate:We.date().optional(),creator:We.string().optional(),keywords:We.array(We.string()).optional(),lang:CK.optional(),modificationDate:We.date().optional(),producer:We.string().optional(),subject:We.string().optional(),title:We.string().optional()});BK.extend({inputs:cO,options:rSe.optional()}).strict();const MK=uO.extend({lang:CK.optional(),labels:We.record(We.string(),We.string()).optional(),theme:We.record(We.string(),We.unknown()).optional(),icons:We.record(We.string(),We.string()).optional(),requiredByDefault:We.boolean().optional()}),nSe=We.any().refine(e=>e instanceof HTMLElement),dO=BK.extend({domContainer:nSe,options:MK.optional()}),iSe=dO.extend({inputs:cO}).strict(),aSe=dO.extend({}).strict(),Ma=e=>JSON.parse(JSON.stringify(e)),RK=e=>Array.from(new Set(e)),Kv=e=>{const t="",r=Object.entries(e).reduce((n,i)=>{const[a,o]=i;return!n&&o.fallback?a:n},t);if(r===t)throw Error("[@pdfme/common] fallback flag is not found in font. true fallback flag must be only one.");return r},wh=()=>({[eO]:{data:fO(zEe),fallback:!0}}),kd=e=>parseFloat(String(e))*HEe,$p=e=>e*QEe,PK=e=>e*jEe,DK=e=>parseFloat(String(e))*.26458333333333,oSe=e=>new Promise((t,r)=>{const n=new FileReader;n.onloadend=()=>{n.result.startsWith("data:application/pdf;")?t(n.result):r(Error("[@pdfme/common] template.basePdf must be pdf data."))},n.readAsDataURL(e)}),TK=e=>/^#(?:[A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/i.test(e),_K=e=>{e.schemas&&Array.isArray(e.schemas)&&e.schemas.length>0&&!Array.isArray(e.schemas[0])&&(e.schemas=e.schemas.map(t=>Object.entries(t).map(([r,n])=>({...n,name:r}))))},OK=e=>typeof e=="string"&&!e.startsWith("data:application/pdf;")&&typeof window<"u"?fetch(e).then(r=>r.blob()).then(oSe).catch(r=>{throw r}):e,uc=e=>SK.safeParse(e).success,sSe=e=>JB.Buffer.from(e,"base64").toString("binary"),fO=e=>{const t=e.split(";base64,")[1]?e.split(";base64,")[1]:e,r=sSe(t),n=new Uint8Array(r.length);for(let i=0;i<r.length;i+=1)n[i]=r.charCodeAt(i);return n},lSe=e=>RK(e.map(t=>t.map(r=>r.fontName??"")).reduce((t,r)=>t.concat(r),[]).filter(Boolean)),cSe=e=>{const{font:t,template:{schemas:r}}=e,i=Object.values(t).reduce((s,l)=>l.fallback?s+1:s,0);if(i===0)throw Error(`[@pdfme/common] fallback flag is not found in font. true fallback flag must be only one.
43
43
  Check this document: https://pdfme.com/docs/custom-fonts#about-font-type`);if(i>1)throw Error(`[@pdfme/common] ${i} fallback flags found in font. true fallback flag must be only one.
44
44
  Check this document: https://pdfme.com/docs/custom-fonts#about-font-type`);const a=lSe(r),o=Object.keys(t);if(a.some(s=>!o.includes(s)))throw Error(`[@pdfme/common] ${a.filter(s=>!o.includes(s)).join()} of template.schemas is not found in font.
45
45
  Check this document: https://pdfme.com/docs/custom-fonts`)},uSe=e=>{const{plugins:t,template:{schemas:r}}=e,n=RK(r.map(a=>a.map(o=>o.type)).flat()),i=Object.values(t).map(a=>a==null?void 0:a.propPanel.defaultSchema.type);if(n.some(a=>!i.includes(a)))throw Error(`[@pdfme/common] ${n.filter(a=>!i.includes(a)).join()} of template.schemas is not found in plugins.`)},qv=(e,t)=>{try{t.parse(e)}catch(r){if(r instanceof We.ZodError){const i=r.issues.map(a=>`ERROR POSITION: ${a.path.join(".")}
@@ -80,7 +80,7 @@ endstream`,t}copyBytesInto(t,r){this.updateDict();const n=r;r+=this.dict.copyByt
80
80
  `,"&Nfr;":"𝔑","&NoBreak;":"⁠","&NonBreakingSpace;":" ","&Nopf;":"ℕ","&Not;":"⫬","&NotCongruent;":"≢","&NotCupCap;":"≭","&NotDoubleVerticalBar;":"∦","&NotElement;":"∉","&NotEqual;":"≠","&NotEqualTilde;":"≂̸","&NotExists;":"∄","&NotGreater;":"≯","&NotGreaterEqual;":"≱","&NotGreaterFullEqual;":"≧̸","&NotGreaterGreater;":"≫̸","&NotGreaterLess;":"≹","&NotGreaterSlantEqual;":"⩾̸","&NotGreaterTilde;":"≵","&NotHumpDownHump;":"≎̸","&NotHumpEqual;":"≏̸","&NotLeftTriangle;":"⋪","&NotLeftTriangleBar;":"⧏̸","&NotLeftTriangleEqual;":"⋬","&NotLess;":"≮","&NotLessEqual;":"≰","&NotLessGreater;":"≸","&NotLessLess;":"≪̸","&NotLessSlantEqual;":"⩽̸","&NotLessTilde;":"≴","&NotNestedGreaterGreater;":"⪢̸","&NotNestedLessLess;":"⪡̸","&NotPrecedes;":"⊀","&NotPrecedesEqual;":"⪯̸","&NotPrecedesSlantEqual;":"⋠","&NotReverseElement;":"∌","&NotRightTriangle;":"⋫","&NotRightTriangleBar;":"⧐̸","&NotRightTriangleEqual;":"⋭","&NotSquareSubset;":"⊏̸","&NotSquareSubsetEqual;":"⋢","&NotSquareSuperset;":"⊐̸","&NotSquareSupersetEqual;":"⋣","&NotSubset;":"⊂⃒","&NotSubsetEqual;":"⊈","&NotSucceeds;":"⊁","&NotSucceedsEqual;":"⪰̸","&NotSucceedsSlantEqual;":"⋡","&NotSucceedsTilde;":"≿̸","&NotSuperset;":"⊃⃒","&NotSupersetEqual;":"⊉","&NotTilde;":"≁","&NotTildeEqual;":"≄","&NotTildeFullEqual;":"≇","&NotTildeTilde;":"≉","&NotVerticalBar;":"∤","&Nscr;":"𝒩","&Ntilde":"Ñ","&Ntilde;":"Ñ","&Nu;":"Ν","&OElig;":"Œ","&Oacute":"Ó","&Oacute;":"Ó","&Ocirc":"Ô","&Ocirc;":"Ô","&Ocy;":"О","&Odblac;":"Ő","&Ofr;":"𝔒","&Ograve":"Ò","&Ograve;":"Ò","&Omacr;":"Ō","&Omega;":"Ω","&Omicron;":"Ο","&Oopf;":"𝕆","&OpenCurlyDoubleQuote;":"“","&OpenCurlyQuote;":"‘","&Or;":"⩔","&Oscr;":"𝒪","&Oslash":"Ø","&Oslash;":"Ø","&Otilde":"Õ","&Otilde;":"Õ","&Otimes;":"⨷","&Ouml":"Ö","&Ouml;":"Ö","&OverBar;":"‾","&OverBrace;":"⏞","&OverBracket;":"⎴","&OverParenthesis;":"⏜","&PartialD;":"∂","&Pcy;":"П","&Pfr;":"𝔓","&Phi;":"Φ","&Pi;":"Π","&PlusMinus;":"±","&Poincareplane;":"ℌ","&Popf;":"ℙ","&Pr;":"⪻","&Precedes;":"≺","&PrecedesEqual;":"⪯","&PrecedesSlantEqual;":"≼","&PrecedesTilde;":"≾","&Prime;":"″","&Product;":"∏","&Proportion;":"∷","&Proportional;":"∝","&Pscr;":"𝒫","&Psi;":"Ψ","&QUOT":'"',"&QUOT;":'"',"&Qfr;":"𝔔","&Qopf;":"ℚ","&Qscr;":"𝒬","&RBarr;":"⤐","&REG":"®","&REG;":"®","&Racute;":"Ŕ","&Rang;":"⟫","&Rarr;":"↠","&Rarrtl;":"⤖","&Rcaron;":"Ř","&Rcedil;":"Ŗ","&Rcy;":"Р","&Re;":"ℜ","&ReverseElement;":"∋","&ReverseEquilibrium;":"⇋","&ReverseUpEquilibrium;":"⥯","&Rfr;":"ℜ","&Rho;":"Ρ","&RightAngleBracket;":"⟩","&RightArrow;":"→","&RightArrowBar;":"⇥","&RightArrowLeftArrow;":"⇄","&RightCeiling;":"⌉","&RightDoubleBracket;":"⟧","&RightDownTeeVector;":"⥝","&RightDownVector;":"⇂","&RightDownVectorBar;":"⥕","&RightFloor;":"⌋","&RightTee;":"⊢","&RightTeeArrow;":"↦","&RightTeeVector;":"⥛","&RightTriangle;":"⊳","&RightTriangleBar;":"⧐","&RightTriangleEqual;":"⊵","&RightUpDownVector;":"⥏","&RightUpTeeVector;":"⥜","&RightUpVector;":"↾","&RightUpVectorBar;":"⥔","&RightVector;":"⇀","&RightVectorBar;":"⥓","&Rightarrow;":"⇒","&Ropf;":"ℝ","&RoundImplies;":"⥰","&Rrightarrow;":"⇛","&Rscr;":"ℛ","&Rsh;":"↱","&RuleDelayed;":"⧴","&SHCHcy;":"Щ","&SHcy;":"Ш","&SOFTcy;":"Ь","&Sacute;":"Ś","&Sc;":"⪼","&Scaron;":"Š","&Scedil;":"Ş","&Scirc;":"Ŝ","&Scy;":"С","&Sfr;":"𝔖","&ShortDownArrow;":"↓","&ShortLeftArrow;":"←","&ShortRightArrow;":"→","&ShortUpArrow;":"↑","&Sigma;":"Σ","&SmallCircle;":"∘","&Sopf;":"𝕊","&Sqrt;":"√","&Square;":"□","&SquareIntersection;":"⊓","&SquareSubset;":"⊏","&SquareSubsetEqual;":"⊑","&SquareSuperset;":"⊐","&SquareSupersetEqual;":"⊒","&SquareUnion;":"⊔","&Sscr;":"𝒮","&Star;":"⋆","&Sub;":"⋐","&Subset;":"⋐","&SubsetEqual;":"⊆","&Succeeds;":"≻","&SucceedsEqual;":"⪰","&SucceedsSlantEqual;":"≽","&SucceedsTilde;":"≿","&SuchThat;":"∋","&Sum;":"∑","&Sup;":"⋑","&Superset;":"⊃","&SupersetEqual;":"⊇","&Supset;":"⋑","&THORN":"Þ","&THORN;":"Þ","&TRADE;":"™","&TSHcy;":"Ћ","&TScy;":"Ц","&Tab;":" ","&Tau;":"Τ","&Tcaron;":"Ť","&Tcedil;":"Ţ","&Tcy;":"Т","&Tfr;":"𝔗","&Therefore;":"∴","&Theta;":"Θ","&ThickSpace;":"  ","&ThinSpace;":" ","&Tilde;":"∼","&TildeEqual;":"≃","&TildeFullEqual;":"≅","&TildeTilde;":"≈","&Topf;":"𝕋","&TripleDot;":"⃛","&Tscr;":"𝒯","&Tstrok;":"Ŧ","&Uacute":"Ú","&Uacute;":"Ú","&Uarr;":"↟","&Uarrocir;":"⥉","&Ubrcy;":"Ў","&Ubreve;":"Ŭ","&Ucirc":"Û","&Ucirc;":"Û","&Ucy;":"У","&Udblac;":"Ű","&Ufr;":"𝔘","&Ugrave":"Ù","&Ugrave;":"Ù","&Umacr;":"Ū","&UnderBar;":"_","&UnderBrace;":"⏟","&UnderBracket;":"⎵","&UnderParenthesis;":"⏝","&Union;":"⋃","&UnionPlus;":"⊎","&Uogon;":"Ų","&Uopf;":"𝕌","&UpArrow;":"↑","&UpArrowBar;":"⤒","&UpArrowDownArrow;":"⇅","&UpDownArrow;":"↕","&UpEquilibrium;":"⥮","&UpTee;":"⊥","&UpTeeArrow;":"↥","&Uparrow;":"⇑","&Updownarrow;":"⇕","&UpperLeftArrow;":"↖","&UpperRightArrow;":"↗","&Upsi;":"ϒ","&Upsilon;":"Υ","&Uring;":"Ů","&Uscr;":"𝒰","&Utilde;":"Ũ","&Uuml":"Ü","&Uuml;":"Ü","&VDash;":"⊫","&Vbar;":"⫫","&Vcy;":"В","&Vdash;":"⊩","&Vdashl;":"⫦","&Vee;":"⋁","&Verbar;":"‖","&Vert;":"‖","&VerticalBar;":"∣","&VerticalLine;":"|","&VerticalSeparator;":"❘","&VerticalTilde;":"≀","&VeryThinSpace;":" ","&Vfr;":"𝔙","&Vopf;":"𝕍","&Vscr;":"𝒱","&Vvdash;":"⊪","&Wcirc;":"Ŵ","&Wedge;":"⋀","&Wfr;":"𝔚","&Wopf;":"𝕎","&Wscr;":"𝒲","&Xfr;":"𝔛","&Xi;":"Ξ","&Xopf;":"𝕏","&Xscr;":"𝒳","&YAcy;":"Я","&YIcy;":"Ї","&YUcy;":"Ю","&Yacute":"Ý","&Yacute;":"Ý","&Ycirc;":"Ŷ","&Ycy;":"Ы","&Yfr;":"𝔜","&Yopf;":"𝕐","&Yscr;":"𝒴","&Yuml;":"Ÿ","&ZHcy;":"Ж","&Zacute;":"Ź","&Zcaron;":"Ž","&Zcy;":"З","&Zdot;":"Ż","&ZeroWidthSpace;":"​","&Zeta;":"Ζ","&Zfr;":"ℨ","&Zopf;":"ℤ","&Zscr;":"𝒵","&aacute":"á","&aacute;":"á","&abreve;":"ă","&ac;":"∾","&acE;":"∾̳","&acd;":"∿","&acirc":"â","&acirc;":"â","&acute":"´","&acute;":"´","&acy;":"а","&aelig":"æ","&aelig;":"æ","&af;":"⁡","&afr;":"𝔞","&agrave":"à","&agrave;":"à","&alefsym;":"ℵ","&aleph;":"ℵ","&alpha;":"α","&amacr;":"ā","&amalg;":"⨿","&amp":"&","&amp;":"&","&and;":"∧","&andand;":"⩕","&andd;":"⩜","&andslope;":"⩘","&andv;":"⩚","&ang;":"∠","&ange;":"⦤","&angle;":"∠","&angmsd;":"∡","&angmsdaa;":"⦨","&angmsdab;":"⦩","&angmsdac;":"⦪","&angmsdad;":"⦫","&angmsdae;":"⦬","&angmsdaf;":"⦭","&angmsdag;":"⦮","&angmsdah;":"⦯","&angrt;":"∟","&angrtvb;":"⊾","&angrtvbd;":"⦝","&angsph;":"∢","&angst;":"Å","&angzarr;":"⍼","&aogon;":"ą","&aopf;":"𝕒","&ap;":"≈","&apE;":"⩰","&apacir;":"⩯","&ape;":"≊","&apid;":"≋","&apos;":"'","&approx;":"≈","&approxeq;":"≊","&aring":"å","&aring;":"å","&ascr;":"𝒶","&ast;":"*","&asymp;":"≈","&asympeq;":"≍","&atilde":"ã","&atilde;":"ã","&auml":"ä","&auml;":"ä","&awconint;":"∳","&awint;":"⨑","&bNot;":"⫭","&backcong;":"≌","&backepsilon;":"϶","&backprime;":"‵","&backsim;":"∽","&backsimeq;":"⋍","&barvee;":"⊽","&barwed;":"⌅","&barwedge;":"⌅","&bbrk;":"⎵","&bbrktbrk;":"⎶","&bcong;":"≌","&bcy;":"б","&bdquo;":"„","&becaus;":"∵","&because;":"∵","&bemptyv;":"⦰","&bepsi;":"϶","&bernou;":"ℬ","&beta;":"β","&beth;":"ℶ","&between;":"≬","&bfr;":"𝔟","&bigcap;":"⋂","&bigcirc;":"◯","&bigcup;":"⋃","&bigodot;":"⨀","&bigoplus;":"⨁","&bigotimes;":"⨂","&bigsqcup;":"⨆","&bigstar;":"★","&bigtriangledown;":"▽","&bigtriangleup;":"△","&biguplus;":"⨄","&bigvee;":"⋁","&bigwedge;":"⋀","&bkarow;":"⤍","&blacklozenge;":"⧫","&blacksquare;":"▪","&blacktriangle;":"▴","&blacktriangledown;":"▾","&blacktriangleleft;":"◂","&blacktriangleright;":"▸","&blank;":"␣","&blk12;":"▒","&blk14;":"░","&blk34;":"▓","&block;":"█","&bne;":"=⃥","&bnequiv;":"≡⃥","&bnot;":"⌐","&bopf;":"𝕓","&bot;":"⊥","&bottom;":"⊥","&bowtie;":"⋈","&boxDL;":"╗","&boxDR;":"╔","&boxDl;":"╖","&boxDr;":"╓","&boxH;":"═","&boxHD;":"╦","&boxHU;":"╩","&boxHd;":"╤","&boxHu;":"╧","&boxUL;":"╝","&boxUR;":"╚","&boxUl;":"╜","&boxUr;":"╙","&boxV;":"║","&boxVH;":"╬","&boxVL;":"╣","&boxVR;":"╠","&boxVh;":"╫","&boxVl;":"╢","&boxVr;":"╟","&boxbox;":"⧉","&boxdL;":"╕","&boxdR;":"╒","&boxdl;":"┐","&boxdr;":"┌","&boxh;":"─","&boxhD;":"╥","&boxhU;":"╨","&boxhd;":"┬","&boxhu;":"┴","&boxminus;":"⊟","&boxplus;":"⊞","&boxtimes;":"⊠","&boxuL;":"╛","&boxuR;":"╘","&boxul;":"┘","&boxur;":"└","&boxv;":"│","&boxvH;":"╪","&boxvL;":"╡","&boxvR;":"╞","&boxvh;":"┼","&boxvl;":"┤","&boxvr;":"├","&bprime;":"‵","&breve;":"˘","&brvbar":"¦","&brvbar;":"¦","&bscr;":"𝒷","&bsemi;":"⁏","&bsim;":"∽","&bsime;":"⋍","&bsol;":"\\","&bsolb;":"⧅","&bsolhsub;":"⟈","&bull;":"•","&bullet;":"•","&bump;":"≎","&bumpE;":"⪮","&bumpe;":"≏","&bumpeq;":"≏","&cacute;":"ć","&cap;":"∩","&capand;":"⩄","&capbrcup;":"⩉","&capcap;":"⩋","&capcup;":"⩇","&capdot;":"⩀","&caps;":"∩︀","&caret;":"⁁","&caron;":"ˇ","&ccaps;":"⩍","&ccaron;":"č","&ccedil":"ç","&ccedil;":"ç","&ccirc;":"ĉ","&ccups;":"⩌","&ccupssm;":"⩐","&cdot;":"ċ","&cedil":"¸","&cedil;":"¸","&cemptyv;":"⦲","&cent":"¢","&cent;":"¢","&centerdot;":"·","&cfr;":"𝔠","&chcy;":"ч","&check;":"✓","&checkmark;":"✓","&chi;":"χ","&cir;":"○","&cirE;":"⧃","&circ;":"ˆ","&circeq;":"≗","&circlearrowleft;":"↺","&circlearrowright;":"↻","&circledR;":"®","&circledS;":"Ⓢ","&circledast;":"⊛","&circledcirc;":"⊚","&circleddash;":"⊝","&cire;":"≗","&cirfnint;":"⨐","&cirmid;":"⫯","&cirscir;":"⧂","&clubs;":"♣","&clubsuit;":"♣","&colon;":":","&colone;":"≔","&coloneq;":"≔","&comma;":",","&commat;":"@","&comp;":"∁","&compfn;":"∘","&complement;":"∁","&complexes;":"ℂ","&cong;":"≅","&congdot;":"⩭","&conint;":"∮","&copf;":"𝕔","&coprod;":"∐","&copy":"©","&copy;":"©","&copysr;":"℗","&crarr;":"↵","&cross;":"✗","&cscr;":"𝒸","&csub;":"⫏","&csube;":"⫑","&csup;":"⫐","&csupe;":"⫒","&ctdot;":"⋯","&cudarrl;":"⤸","&cudarrr;":"⤵","&cuepr;":"⋞","&cuesc;":"⋟","&cularr;":"↶","&cularrp;":"⤽","&cup;":"∪","&cupbrcap;":"⩈","&cupcap;":"⩆","&cupcup;":"⩊","&cupdot;":"⊍","&cupor;":"⩅","&cups;":"∪︀","&curarr;":"↷","&curarrm;":"⤼","&curlyeqprec;":"⋞","&curlyeqsucc;":"⋟","&curlyvee;":"⋎","&curlywedge;":"⋏","&curren":"¤","&curren;":"¤","&curvearrowleft;":"↶","&curvearrowright;":"↷","&cuvee;":"⋎","&cuwed;":"⋏","&cwconint;":"∲","&cwint;":"∱","&cylcty;":"⌭","&dArr;":"⇓","&dHar;":"⥥","&dagger;":"†","&daleth;":"ℸ","&darr;":"↓","&dash;":"‐","&dashv;":"⊣","&dbkarow;":"⤏","&dblac;":"˝","&dcaron;":"ď","&dcy;":"д","&dd;":"ⅆ","&ddagger;":"‡","&ddarr;":"⇊","&ddotseq;":"⩷","&deg":"°","&deg;":"°","&delta;":"δ","&demptyv;":"⦱","&dfisht;":"⥿","&dfr;":"𝔡","&dharl;":"⇃","&dharr;":"⇂","&diam;":"⋄","&diamond;":"⋄","&diamondsuit;":"♦","&diams;":"♦","&die;":"¨","&digamma;":"ϝ","&disin;":"⋲","&div;":"÷","&divide":"÷","&divide;":"÷","&divideontimes;":"⋇","&divonx;":"⋇","&djcy;":"ђ","&dlcorn;":"⌞","&dlcrop;":"⌍","&dollar;":"$","&dopf;":"𝕕","&dot;":"˙","&doteq;":"≐","&doteqdot;":"≑","&dotminus;":"∸","&dotplus;":"∔","&dotsquare;":"⊡","&doublebarwedge;":"⌆","&downarrow;":"↓","&downdownarrows;":"⇊","&downharpoonleft;":"⇃","&downharpoonright;":"⇂","&drbkarow;":"⤐","&drcorn;":"⌟","&drcrop;":"⌌","&dscr;":"𝒹","&dscy;":"ѕ","&dsol;":"⧶","&dstrok;":"đ","&dtdot;":"⋱","&dtri;":"▿","&dtrif;":"▾","&duarr;":"⇵","&duhar;":"⥯","&dwangle;":"⦦","&dzcy;":"џ","&dzigrarr;":"⟿","&eDDot;":"⩷","&eDot;":"≑","&eacute":"é","&eacute;":"é","&easter;":"⩮","&ecaron;":"ě","&ecir;":"≖","&ecirc":"ê","&ecirc;":"ê","&ecolon;":"≕","&ecy;":"э","&edot;":"ė","&ee;":"ⅇ","&efDot;":"≒","&efr;":"𝔢","&eg;":"⪚","&egrave":"è","&egrave;":"è","&egs;":"⪖","&egsdot;":"⪘","&el;":"⪙","&elinters;":"⏧","&ell;":"ℓ","&els;":"⪕","&elsdot;":"⪗","&emacr;":"ē","&empty;":"∅","&emptyset;":"∅","&emptyv;":"∅","&emsp13;":" ","&emsp14;":" ","&emsp;":" ","&eng;":"ŋ","&ensp;":" ","&eogon;":"ę","&eopf;":"𝕖","&epar;":"⋕","&eparsl;":"⧣","&eplus;":"⩱","&epsi;":"ε","&epsilon;":"ε","&epsiv;":"ϵ","&eqcirc;":"≖","&eqcolon;":"≕","&eqsim;":"≂","&eqslantgtr;":"⪖","&eqslantless;":"⪕","&equals;":"=","&equest;":"≟","&equiv;":"≡","&equivDD;":"⩸","&eqvparsl;":"⧥","&erDot;":"≓","&erarr;":"⥱","&escr;":"ℯ","&esdot;":"≐","&esim;":"≂","&eta;":"η","&eth":"ð","&eth;":"ð","&euml":"ë","&euml;":"ë","&euro;":"€","&excl;":"!","&exist;":"∃","&expectation;":"ℰ","&exponentiale;":"ⅇ","&fallingdotseq;":"≒","&fcy;":"ф","&female;":"♀","&ffilig;":"ffi","&fflig;":"ff","&ffllig;":"ffl","&ffr;":"𝔣","&filig;":"fi","&fjlig;":"fj","&flat;":"♭","&fllig;":"fl","&fltns;":"▱","&fnof;":"ƒ","&fopf;":"𝕗","&forall;":"∀","&fork;":"⋔","&forkv;":"⫙","&fpartint;":"⨍","&frac12":"½","&frac12;":"½","&frac13;":"⅓","&frac14":"¼","&frac14;":"¼","&frac15;":"⅕","&frac16;":"⅙","&frac18;":"⅛","&frac23;":"⅔","&frac25;":"⅖","&frac34":"¾","&frac34;":"¾","&frac35;":"⅗","&frac38;":"⅜","&frac45;":"⅘","&frac56;":"⅚","&frac58;":"⅝","&frac78;":"⅞","&frasl;":"⁄","&frown;":"⌢","&fscr;":"𝒻","&gE;":"≧","&gEl;":"⪌","&gacute;":"ǵ","&gamma;":"γ","&gammad;":"ϝ","&gap;":"⪆","&gbreve;":"ğ","&gcirc;":"ĝ","&gcy;":"г","&gdot;":"ġ","&ge;":"≥","&gel;":"⋛","&geq;":"≥","&geqq;":"≧","&geqslant;":"⩾","&ges;":"⩾","&gescc;":"⪩","&gesdot;":"⪀","&gesdoto;":"⪂","&gesdotol;":"⪄","&gesl;":"⋛︀","&gesles;":"⪔","&gfr;":"𝔤","&gg;":"≫","&ggg;":"⋙","&gimel;":"ℷ","&gjcy;":"ѓ","&gl;":"≷","&glE;":"⪒","&gla;":"⪥","&glj;":"⪤","&gnE;":"≩","&gnap;":"⪊","&gnapprox;":"⪊","&gne;":"⪈","&gneq;":"⪈","&gneqq;":"≩","&gnsim;":"⋧","&gopf;":"𝕘","&grave;":"`","&gscr;":"ℊ","&gsim;":"≳","&gsime;":"⪎","&gsiml;":"⪐","&gt":">","&gt;":">","&gtcc;":"⪧","&gtcir;":"⩺","&gtdot;":"⋗","&gtlPar;":"⦕","&gtquest;":"⩼","&gtrapprox;":"⪆","&gtrarr;":"⥸","&gtrdot;":"⋗","&gtreqless;":"⋛","&gtreqqless;":"⪌","&gtrless;":"≷","&gtrsim;":"≳","&gvertneqq;":"≩︀","&gvnE;":"≩︀","&hArr;":"⇔","&hairsp;":" ","&half;":"½","&hamilt;":"ℋ","&hardcy;":"ъ","&harr;":"↔","&harrcir;":"⥈","&harrw;":"↭","&hbar;":"ℏ","&hcirc;":"ĥ","&hearts;":"♥","&heartsuit;":"♥","&hellip;":"…","&hercon;":"⊹","&hfr;":"𝔥","&hksearow;":"⤥","&hkswarow;":"⤦","&hoarr;":"⇿","&homtht;":"∻","&hookleftarrow;":"↩","&hookrightarrow;":"↪","&hopf;":"𝕙","&horbar;":"―","&hscr;":"𝒽","&hslash;":"ℏ","&hstrok;":"ħ","&hybull;":"⁃","&hyphen;":"‐","&iacute":"í","&iacute;":"í","&ic;":"⁣","&icirc":"î","&icirc;":"î","&icy;":"и","&iecy;":"е","&iexcl":"¡","&iexcl;":"¡","&iff;":"⇔","&ifr;":"𝔦","&igrave":"ì","&igrave;":"ì","&ii;":"ⅈ","&iiiint;":"⨌","&iiint;":"∭","&iinfin;":"⧜","&iiota;":"℩","&ijlig;":"ij","&imacr;":"ī","&image;":"ℑ","&imagline;":"ℐ","&imagpart;":"ℑ","&imath;":"ı","&imof;":"⊷","&imped;":"Ƶ","&in;":"∈","&incare;":"℅","&infin;":"∞","&infintie;":"⧝","&inodot;":"ı","&int;":"∫","&intcal;":"⊺","&integers;":"ℤ","&intercal;":"⊺","&intlarhk;":"⨗","&intprod;":"⨼","&iocy;":"ё","&iogon;":"į","&iopf;":"𝕚","&iota;":"ι","&iprod;":"⨼","&iquest":"¿","&iquest;":"¿","&iscr;":"𝒾","&isin;":"∈","&isinE;":"⋹","&isindot;":"⋵","&isins;":"⋴","&isinsv;":"⋳","&isinv;":"∈","&it;":"⁢","&itilde;":"ĩ","&iukcy;":"і","&iuml":"ï","&iuml;":"ï","&jcirc;":"ĵ","&jcy;":"й","&jfr;":"𝔧","&jmath;":"ȷ","&jopf;":"𝕛","&jscr;":"𝒿","&jsercy;":"ј","&jukcy;":"є","&kappa;":"κ","&kappav;":"ϰ","&kcedil;":"ķ","&kcy;":"к","&kfr;":"𝔨","&kgreen;":"ĸ","&khcy;":"х","&kjcy;":"ќ","&kopf;":"𝕜","&kscr;":"𝓀","&lAarr;":"⇚","&lArr;":"⇐","&lAtail;":"⤛","&lBarr;":"⤎","&lE;":"≦","&lEg;":"⪋","&lHar;":"⥢","&lacute;":"ĺ","&laemptyv;":"⦴","&lagran;":"ℒ","&lambda;":"λ","&lang;":"⟨","&langd;":"⦑","&langle;":"⟨","&lap;":"⪅","&laquo":"«","&laquo;":"«","&larr;":"←","&larrb;":"⇤","&larrbfs;":"⤟","&larrfs;":"⤝","&larrhk;":"↩","&larrlp;":"↫","&larrpl;":"⤹","&larrsim;":"⥳","&larrtl;":"↢","&lat;":"⪫","&latail;":"⤙","&late;":"⪭","&lates;":"⪭︀","&lbarr;":"⤌","&lbbrk;":"❲","&lbrace;":"{","&lbrack;":"[","&lbrke;":"⦋","&lbrksld;":"⦏","&lbrkslu;":"⦍","&lcaron;":"ľ","&lcedil;":"ļ","&lceil;":"⌈","&lcub;":"{","&lcy;":"л","&ldca;":"⤶","&ldquo;":"“","&ldquor;":"„","&ldrdhar;":"⥧","&ldrushar;":"⥋","&ldsh;":"↲","&le;":"≤","&leftarrow;":"←","&leftarrowtail;":"↢","&leftharpoondown;":"↽","&leftharpoonup;":"↼","&leftleftarrows;":"⇇","&leftrightarrow;":"↔","&leftrightarrows;":"⇆","&leftrightharpoons;":"⇋","&leftrightsquigarrow;":"↭","&leftthreetimes;":"⋋","&leg;":"⋚","&leq;":"≤","&leqq;":"≦","&leqslant;":"⩽","&les;":"⩽","&lescc;":"⪨","&lesdot;":"⩿","&lesdoto;":"⪁","&lesdotor;":"⪃","&lesg;":"⋚︀","&lesges;":"⪓","&lessapprox;":"⪅","&lessdot;":"⋖","&lesseqgtr;":"⋚","&lesseqqgtr;":"⪋","&lessgtr;":"≶","&lesssim;":"≲","&lfisht;":"⥼","&lfloor;":"⌊","&lfr;":"𝔩","&lg;":"≶","&lgE;":"⪑","&lhard;":"↽","&lharu;":"↼","&lharul;":"⥪","&lhblk;":"▄","&ljcy;":"љ","&ll;":"≪","&llarr;":"⇇","&llcorner;":"⌞","&llhard;":"⥫","&lltri;":"◺","&lmidot;":"ŀ","&lmoust;":"⎰","&lmoustache;":"⎰","&lnE;":"≨","&lnap;":"⪉","&lnapprox;":"⪉","&lne;":"⪇","&lneq;":"⪇","&lneqq;":"≨","&lnsim;":"⋦","&loang;":"⟬","&loarr;":"⇽","&lobrk;":"⟦","&longleftarrow;":"⟵","&longleftrightarrow;":"⟷","&longmapsto;":"⟼","&longrightarrow;":"⟶","&looparrowleft;":"↫","&looparrowright;":"↬","&lopar;":"⦅","&lopf;":"𝕝","&loplus;":"⨭","&lotimes;":"⨴","&lowast;":"∗","&lowbar;":"_","&loz;":"◊","&lozenge;":"◊","&lozf;":"⧫","&lpar;":"(","&lparlt;":"⦓","&lrarr;":"⇆","&lrcorner;":"⌟","&lrhar;":"⇋","&lrhard;":"⥭","&lrm;":"‎","&lrtri;":"⊿","&lsaquo;":"‹","&lscr;":"𝓁","&lsh;":"↰","&lsim;":"≲","&lsime;":"⪍","&lsimg;":"⪏","&lsqb;":"[","&lsquo;":"‘","&lsquor;":"‚","&lstrok;":"ł","&lt":"<","&lt;":"<","&ltcc;":"⪦","&ltcir;":"⩹","&ltdot;":"⋖","&lthree;":"⋋","&ltimes;":"⋉","&ltlarr;":"⥶","&ltquest;":"⩻","&ltrPar;":"⦖","&ltri;":"◃","&ltrie;":"⊴","&ltrif;":"◂","&lurdshar;":"⥊","&luruhar;":"⥦","&lvertneqq;":"≨︀","&lvnE;":"≨︀","&mDDot;":"∺","&macr":"¯","&macr;":"¯","&male;":"♂","&malt;":"✠","&maltese;":"✠","&map;":"↦","&mapsto;":"↦","&mapstodown;":"↧","&mapstoleft;":"↤","&mapstoup;":"↥","&marker;":"▮","&mcomma;":"⨩","&mcy;":"м","&mdash;":"—","&measuredangle;":"∡","&mfr;":"𝔪","&mho;":"℧","&micro":"µ","&micro;":"µ","&mid;":"∣","&midast;":"*","&midcir;":"⫰","&middot":"·","&middot;":"·","&minus;":"−","&minusb;":"⊟","&minusd;":"∸","&minusdu;":"⨪","&mlcp;":"⫛","&mldr;":"…","&mnplus;":"∓","&models;":"⊧","&mopf;":"𝕞","&mp;":"∓","&mscr;":"𝓂","&mstpos;":"∾","&mu;":"μ","&multimap;":"⊸","&mumap;":"⊸","&nGg;":"⋙̸","&nGt;":"≫⃒","&nGtv;":"≫̸","&nLeftarrow;":"⇍","&nLeftrightarrow;":"⇎","&nLl;":"⋘̸","&nLt;":"≪⃒","&nLtv;":"≪̸","&nRightarrow;":"⇏","&nVDash;":"⊯","&nVdash;":"⊮","&nabla;":"∇","&nacute;":"ń","&nang;":"∠⃒","&nap;":"≉","&napE;":"⩰̸","&napid;":"≋̸","&napos;":"ʼn","&napprox;":"≉","&natur;":"♮","&natural;":"♮","&naturals;":"ℕ","&nbsp":" ","&nbsp;":" ","&nbump;":"≎̸","&nbumpe;":"≏̸","&ncap;":"⩃","&ncaron;":"ň","&ncedil;":"ņ","&ncong;":"≇","&ncongdot;":"⩭̸","&ncup;":"⩂","&ncy;":"н","&ndash;":"–","&ne;":"≠","&neArr;":"⇗","&nearhk;":"⤤","&nearr;":"↗","&nearrow;":"↗","&nedot;":"≐̸","&nequiv;":"≢","&nesear;":"⤨","&nesim;":"≂̸","&nexist;":"∄","&nexists;":"∄","&nfr;":"𝔫","&ngE;":"≧̸","&nge;":"≱","&ngeq;":"≱","&ngeqq;":"≧̸","&ngeqslant;":"⩾̸","&nges;":"⩾̸","&ngsim;":"≵","&ngt;":"≯","&ngtr;":"≯","&nhArr;":"⇎","&nharr;":"↮","&nhpar;":"⫲","&ni;":"∋","&nis;":"⋼","&nisd;":"⋺","&niv;":"∋","&njcy;":"њ","&nlArr;":"⇍","&nlE;":"≦̸","&nlarr;":"↚","&nldr;":"‥","&nle;":"≰","&nleftarrow;":"↚","&nleftrightarrow;":"↮","&nleq;":"≰","&nleqq;":"≦̸","&nleqslant;":"⩽̸","&nles;":"⩽̸","&nless;":"≮","&nlsim;":"≴","&nlt;":"≮","&nltri;":"⋪","&nltrie;":"⋬","&nmid;":"∤","&nopf;":"𝕟","&not":"¬","&not;":"¬","&notin;":"∉","&notinE;":"⋹̸","&notindot;":"⋵̸","&notinva;":"∉","&notinvb;":"⋷","&notinvc;":"⋶","&notni;":"∌","&notniva;":"∌","&notnivb;":"⋾","&notnivc;":"⋽","&npar;":"∦","&nparallel;":"∦","&nparsl;":"⫽⃥","&npart;":"∂̸","&npolint;":"⨔","&npr;":"⊀","&nprcue;":"⋠","&npre;":"⪯̸","&nprec;":"⊀","&npreceq;":"⪯̸","&nrArr;":"⇏","&nrarr;":"↛","&nrarrc;":"⤳̸","&nrarrw;":"↝̸","&nrightarrow;":"↛","&nrtri;":"⋫","&nrtrie;":"⋭","&nsc;":"⊁","&nsccue;":"⋡","&nsce;":"⪰̸","&nscr;":"𝓃","&nshortmid;":"∤","&nshortparallel;":"∦","&nsim;":"≁","&nsime;":"≄","&nsimeq;":"≄","&nsmid;":"∤","&nspar;":"∦","&nsqsube;":"⋢","&nsqsupe;":"⋣","&nsub;":"⊄","&nsubE;":"⫅̸","&nsube;":"⊈","&nsubset;":"⊂⃒","&nsubseteq;":"⊈","&nsubseteqq;":"⫅̸","&nsucc;":"⊁","&nsucceq;":"⪰̸","&nsup;":"⊅","&nsupE;":"⫆̸","&nsupe;":"⊉","&nsupset;":"⊃⃒","&nsupseteq;":"⊉","&nsupseteqq;":"⫆̸","&ntgl;":"≹","&ntilde":"ñ","&ntilde;":"ñ","&ntlg;":"≸","&ntriangleleft;":"⋪","&ntrianglelefteq;":"⋬","&ntriangleright;":"⋫","&ntrianglerighteq;":"⋭","&nu;":"ν","&num;":"#","&numero;":"№","&numsp;":" ","&nvDash;":"⊭","&nvHarr;":"⤄","&nvap;":"≍⃒","&nvdash;":"⊬","&nvge;":"≥⃒","&nvgt;":">⃒","&nvinfin;":"⧞","&nvlArr;":"⤂","&nvle;":"≤⃒","&nvlt;":"<⃒","&nvltrie;":"⊴⃒","&nvrArr;":"⤃","&nvrtrie;":"⊵⃒","&nvsim;":"∼⃒","&nwArr;":"⇖","&nwarhk;":"⤣","&nwarr;":"↖","&nwarrow;":"↖","&nwnear;":"⤧","&oS;":"Ⓢ","&oacute":"ó","&oacute;":"ó","&oast;":"⊛","&ocir;":"⊚","&ocirc":"ô","&ocirc;":"ô","&ocy;":"о","&odash;":"⊝","&odblac;":"ő","&odiv;":"⨸","&odot;":"⊙","&odsold;":"⦼","&oelig;":"œ","&ofcir;":"⦿","&ofr;":"𝔬","&ogon;":"˛","&ograve":"ò","&ograve;":"ò","&ogt;":"⧁","&ohbar;":"⦵","&ohm;":"Ω","&oint;":"∮","&olarr;":"↺","&olcir;":"⦾","&olcross;":"⦻","&oline;":"‾","&olt;":"⧀","&omacr;":"ō","&omega;":"ω","&omicron;":"ο","&omid;":"⦶","&ominus;":"⊖","&oopf;":"𝕠","&opar;":"⦷","&operp;":"⦹","&oplus;":"⊕","&or;":"∨","&orarr;":"↻","&ord;":"⩝","&order;":"ℴ","&orderof;":"ℴ","&ordf":"ª","&ordf;":"ª","&ordm":"º","&ordm;":"º","&origof;":"⊶","&oror;":"⩖","&orslope;":"⩗","&orv;":"⩛","&oscr;":"ℴ","&oslash":"ø","&oslash;":"ø","&osol;":"⊘","&otilde":"õ","&otilde;":"õ","&otimes;":"⊗","&otimesas;":"⨶","&ouml":"ö","&ouml;":"ö","&ovbar;":"⌽","&par;":"∥","&para":"¶","&para;":"¶","&parallel;":"∥","&parsim;":"⫳","&parsl;":"⫽","&part;":"∂","&pcy;":"п","&percnt;":"%","&period;":".","&permil;":"‰","&perp;":"⊥","&pertenk;":"‱","&pfr;":"𝔭","&phi;":"φ","&phiv;":"ϕ","&phmmat;":"ℳ","&phone;":"☎","&pi;":"π","&pitchfork;":"⋔","&piv;":"ϖ","&planck;":"ℏ","&planckh;":"ℎ","&plankv;":"ℏ","&plus;":"+","&plusacir;":"⨣","&plusb;":"⊞","&pluscir;":"⨢","&plusdo;":"∔","&plusdu;":"⨥","&pluse;":"⩲","&plusmn":"±","&plusmn;":"±","&plussim;":"⨦","&plustwo;":"⨧","&pm;":"±","&pointint;":"⨕","&popf;":"𝕡","&pound":"£","&pound;":"£","&pr;":"≺","&prE;":"⪳","&prap;":"⪷","&prcue;":"≼","&pre;":"⪯","&prec;":"≺","&precapprox;":"⪷","&preccurlyeq;":"≼","&preceq;":"⪯","&precnapprox;":"⪹","&precneqq;":"⪵","&precnsim;":"⋨","&precsim;":"≾","&prime;":"′","&primes;":"ℙ","&prnE;":"⪵","&prnap;":"⪹","&prnsim;":"⋨","&prod;":"∏","&profalar;":"⌮","&profline;":"⌒","&profsurf;":"⌓","&prop;":"∝","&propto;":"∝","&prsim;":"≾","&prurel;":"⊰","&pscr;":"𝓅","&psi;":"ψ","&puncsp;":" ","&qfr;":"𝔮","&qint;":"⨌","&qopf;":"𝕢","&qprime;":"⁗","&qscr;":"𝓆","&quaternions;":"ℍ","&quatint;":"⨖","&quest;":"?","&questeq;":"≟","&quot":'"',"&quot;":'"',"&rAarr;":"⇛","&rArr;":"⇒","&rAtail;":"⤜","&rBarr;":"⤏","&rHar;":"⥤","&race;":"∽̱","&racute;":"ŕ","&radic;":"√","&raemptyv;":"⦳","&rang;":"⟩","&rangd;":"⦒","&range;":"⦥","&rangle;":"⟩","&raquo":"»","&raquo;":"»","&rarr;":"→","&rarrap;":"⥵","&rarrb;":"⇥","&rarrbfs;":"⤠","&rarrc;":"⤳","&rarrfs;":"⤞","&rarrhk;":"↪","&rarrlp;":"↬","&rarrpl;":"⥅","&rarrsim;":"⥴","&rarrtl;":"↣","&rarrw;":"↝","&ratail;":"⤚","&ratio;":"∶","&rationals;":"ℚ","&rbarr;":"⤍","&rbbrk;":"❳","&rbrace;":"}","&rbrack;":"]","&rbrke;":"⦌","&rbrksld;":"⦎","&rbrkslu;":"⦐","&rcaron;":"ř","&rcedil;":"ŗ","&rceil;":"⌉","&rcub;":"}","&rcy;":"р","&rdca;":"⤷","&rdldhar;":"⥩","&rdquo;":"”","&rdquor;":"”","&rdsh;":"↳","&real;":"ℜ","&realine;":"ℛ","&realpart;":"ℜ","&reals;":"ℝ","&rect;":"▭","&reg":"®","&reg;":"®","&rfisht;":"⥽","&rfloor;":"⌋","&rfr;":"𝔯","&rhard;":"⇁","&rharu;":"⇀","&rharul;":"⥬","&rho;":"ρ","&rhov;":"ϱ","&rightarrow;":"→","&rightarrowtail;":"↣","&rightharpoondown;":"⇁","&rightharpoonup;":"⇀","&rightleftarrows;":"⇄","&rightleftharpoons;":"⇌","&rightrightarrows;":"⇉","&rightsquigarrow;":"↝","&rightthreetimes;":"⋌","&ring;":"˚","&risingdotseq;":"≓","&rlarr;":"⇄","&rlhar;":"⇌","&rlm;":"‏","&rmoust;":"⎱","&rmoustache;":"⎱","&rnmid;":"⫮","&roang;":"⟭","&roarr;":"⇾","&robrk;":"⟧","&ropar;":"⦆","&ropf;":"𝕣","&roplus;":"⨮","&rotimes;":"⨵","&rpar;":")","&rpargt;":"⦔","&rppolint;":"⨒","&rrarr;":"⇉","&rsaquo;":"›","&rscr;":"𝓇","&rsh;":"↱","&rsqb;":"]","&rsquo;":"’","&rsquor;":"’","&rthree;":"⋌","&rtimes;":"⋊","&rtri;":"▹","&rtrie;":"⊵","&rtrif;":"▸","&rtriltri;":"⧎","&ruluhar;":"⥨","&rx;":"℞","&sacute;":"ś","&sbquo;":"‚","&sc;":"≻","&scE;":"⪴","&scap;":"⪸","&scaron;":"š","&sccue;":"≽","&sce;":"⪰","&scedil;":"ş","&scirc;":"ŝ","&scnE;":"⪶","&scnap;":"⪺","&scnsim;":"⋩","&scpolint;":"⨓","&scsim;":"≿","&scy;":"с","&sdot;":"⋅","&sdotb;":"⊡","&sdote;":"⩦","&seArr;":"⇘","&searhk;":"⤥","&searr;":"↘","&searrow;":"↘","&sect":"§","&sect;":"§","&semi;":";","&seswar;":"⤩","&setminus;":"∖","&setmn;":"∖","&sext;":"✶","&sfr;":"𝔰","&sfrown;":"⌢","&sharp;":"♯","&shchcy;":"щ","&shcy;":"ш","&shortmid;":"∣","&shortparallel;":"∥","&shy":"­","&shy;":"­","&sigma;":"σ","&sigmaf;":"ς","&sigmav;":"ς","&sim;":"∼","&simdot;":"⩪","&sime;":"≃","&simeq;":"≃","&simg;":"⪞","&simgE;":"⪠","&siml;":"⪝","&simlE;":"⪟","&simne;":"≆","&simplus;":"⨤","&simrarr;":"⥲","&slarr;":"←","&smallsetminus;":"∖","&smashp;":"⨳","&smeparsl;":"⧤","&smid;":"∣","&smile;":"⌣","&smt;":"⪪","&smte;":"⪬","&smtes;":"⪬︀","&softcy;":"ь","&sol;":"/","&solb;":"⧄","&solbar;":"⌿","&sopf;":"𝕤","&spades;":"♠","&spadesuit;":"♠","&spar;":"∥","&sqcap;":"⊓","&sqcaps;":"⊓︀","&sqcup;":"⊔","&sqcups;":"⊔︀","&sqsub;":"⊏","&sqsube;":"⊑","&sqsubset;":"⊏","&sqsubseteq;":"⊑","&sqsup;":"⊐","&sqsupe;":"⊒","&sqsupset;":"⊐","&sqsupseteq;":"⊒","&squ;":"□","&square;":"□","&squarf;":"▪","&squf;":"▪","&srarr;":"→","&sscr;":"𝓈","&ssetmn;":"∖","&ssmile;":"⌣","&sstarf;":"⋆","&star;":"☆","&starf;":"★","&straightepsilon;":"ϵ","&straightphi;":"ϕ","&strns;":"¯","&sub;":"⊂","&subE;":"⫅","&subdot;":"⪽","&sube;":"⊆","&subedot;":"⫃","&submult;":"⫁","&subnE;":"⫋","&subne;":"⊊","&subplus;":"⪿","&subrarr;":"⥹","&subset;":"⊂","&subseteq;":"⊆","&subseteqq;":"⫅","&subsetneq;":"⊊","&subsetneqq;":"⫋","&subsim;":"⫇","&subsub;":"⫕","&subsup;":"⫓","&succ;":"≻","&succapprox;":"⪸","&succcurlyeq;":"≽","&succeq;":"⪰","&succnapprox;":"⪺","&succneqq;":"⪶","&succnsim;":"⋩","&succsim;":"≿","&sum;":"∑","&sung;":"♪","&sup1":"¹","&sup1;":"¹","&sup2":"²","&sup2;":"²","&sup3":"³","&sup3;":"³","&sup;":"⊃","&supE;":"⫆","&supdot;":"⪾","&supdsub;":"⫘","&supe;":"⊇","&supedot;":"⫄","&suphsol;":"⟉","&suphsub;":"⫗","&suplarr;":"⥻","&supmult;":"⫂","&supnE;":"⫌","&supne;":"⊋","&supplus;":"⫀","&supset;":"⊃","&supseteq;":"⊇","&supseteqq;":"⫆","&supsetneq;":"⊋","&supsetneqq;":"⫌","&supsim;":"⫈","&supsub;":"⫔","&supsup;":"⫖","&swArr;":"⇙","&swarhk;":"⤦","&swarr;":"↙","&swarrow;":"↙","&swnwar;":"⤪","&szlig":"ß","&szlig;":"ß","&target;":"⌖","&tau;":"τ","&tbrk;":"⎴","&tcaron;":"ť","&tcedil;":"ţ","&tcy;":"т","&tdot;":"⃛","&telrec;":"⌕","&tfr;":"𝔱","&there4;":"∴","&therefore;":"∴","&theta;":"θ","&thetasym;":"ϑ","&thetav;":"ϑ","&thickapprox;":"≈","&thicksim;":"∼","&thinsp;":" ","&thkap;":"≈","&thksim;":"∼","&thorn":"þ","&thorn;":"þ","&tilde;":"˜","&times":"×","&times;":"×","&timesb;":"⊠","&timesbar;":"⨱","&timesd;":"⨰","&tint;":"∭","&toea;":"⤨","&top;":"⊤","&topbot;":"⌶","&topcir;":"⫱","&topf;":"𝕥","&topfork;":"⫚","&tosa;":"⤩","&tprime;":"‴","&trade;":"™","&triangle;":"▵","&triangledown;":"▿","&triangleleft;":"◃","&trianglelefteq;":"⊴","&triangleq;":"≜","&triangleright;":"▹","&trianglerighteq;":"⊵","&tridot;":"◬","&trie;":"≜","&triminus;":"⨺","&triplus;":"⨹","&trisb;":"⧍","&tritime;":"⨻","&trpezium;":"⏢","&tscr;":"𝓉","&tscy;":"ц","&tshcy;":"ћ","&tstrok;":"ŧ","&twixt;":"≬","&twoheadleftarrow;":"↞","&twoheadrightarrow;":"↠","&uArr;":"⇑","&uHar;":"⥣","&uacute":"ú","&uacute;":"ú","&uarr;":"↑","&ubrcy;":"ў","&ubreve;":"ŭ","&ucirc":"û","&ucirc;":"û","&ucy;":"у","&udarr;":"⇅","&udblac;":"ű","&udhar;":"⥮","&ufisht;":"⥾","&ufr;":"𝔲","&ugrave":"ù","&ugrave;":"ù","&uharl;":"↿","&uharr;":"↾","&uhblk;":"▀","&ulcorn;":"⌜","&ulcorner;":"⌜","&ulcrop;":"⌏","&ultri;":"◸","&umacr;":"ū","&uml":"¨","&uml;":"¨","&uogon;":"ų","&uopf;":"𝕦","&uparrow;":"↑","&updownarrow;":"↕","&upharpoonleft;":"↿","&upharpoonright;":"↾","&uplus;":"⊎","&upsi;":"υ","&upsih;":"ϒ","&upsilon;":"υ","&upuparrows;":"⇈","&urcorn;":"⌝","&urcorner;":"⌝","&urcrop;":"⌎","&uring;":"ů","&urtri;":"◹","&uscr;":"𝓊","&utdot;":"⋰","&utilde;":"ũ","&utri;":"▵","&utrif;":"▴","&uuarr;":"⇈","&uuml":"ü","&uuml;":"ü","&uwangle;":"⦧","&vArr;":"⇕","&vBar;":"⫨","&vBarv;":"⫩","&vDash;":"⊨","&vangrt;":"⦜","&varepsilon;":"ϵ","&varkappa;":"ϰ","&varnothing;":"∅","&varphi;":"ϕ","&varpi;":"ϖ","&varpropto;":"∝","&varr;":"↕","&varrho;":"ϱ","&varsigma;":"ς","&varsubsetneq;":"⊊︀","&varsubsetneqq;":"⫋︀","&varsupsetneq;":"⊋︀","&varsupsetneqq;":"⫌︀","&vartheta;":"ϑ","&vartriangleleft;":"⊲","&vartriangleright;":"⊳","&vcy;":"в","&vdash;":"⊢","&vee;":"∨","&veebar;":"⊻","&veeeq;":"≚","&vellip;":"⋮","&verbar;":"|","&vert;":"|","&vfr;":"𝔳","&vltri;":"⊲","&vnsub;":"⊂⃒","&vnsup;":"⊃⃒","&vopf;":"𝕧","&vprop;":"∝","&vrtri;":"⊳","&vscr;":"𝓋","&vsubnE;":"⫋︀","&vsubne;":"⊊︀","&vsupnE;":"⫌︀","&vsupne;":"⊋︀","&vzigzag;":"⦚","&wcirc;":"ŵ","&wedbar;":"⩟","&wedge;":"∧","&wedgeq;":"≙","&weierp;":"℘","&wfr;":"𝔴","&wopf;":"𝕨","&wp;":"℘","&wr;":"≀","&wreath;":"≀","&wscr;":"𝓌","&xcap;":"⋂","&xcirc;":"◯","&xcup;":"⋃","&xdtri;":"▽","&xfr;":"𝔵","&xhArr;":"⟺","&xharr;":"⟷","&xi;":"ξ","&xlArr;":"⟸","&xlarr;":"⟵","&xmap;":"⟼","&xnis;":"⋻","&xodot;":"⨀","&xopf;":"𝕩","&xoplus;":"⨁","&xotime;":"⨂","&xrArr;":"⟹","&xrarr;":"⟶","&xscr;":"𝓍","&xsqcup;":"⨆","&xuplus;":"⨄","&xutri;":"△","&xvee;":"⋁","&xwedge;":"⋀","&yacute":"ý","&yacute;":"ý","&yacy;":"я","&ycirc;":"ŷ","&ycy;":"ы","&yen":"¥","&yen;":"¥","&yfr;":"𝔶","&yicy;":"ї","&yopf;":"𝕪","&yscr;":"𝓎","&yucy;":"ю","&yuml":"ÿ","&yuml;":"ÿ","&zacute;":"ź","&zcaron;":"ž","&zcy;":"з","&zdot;":"ż","&zeetrf;":"ℨ","&zeta;":"ζ","&zfr;":"𝔷","&zhcy;":"ж","&zigrarr;":"⇝","&zopf;":"𝕫","&zscr;":"𝓏","&zwj;":"‍","&zwnj;":"‌"},characters:{Æ:"&AElig;","&":"&amp;",Á:"&Aacute;",Ă:"&Abreve;",Â:"&Acirc;",А:"&Acy;","𝔄":"&Afr;",À:"&Agrave;",Α:"&Alpha;",Ā:"&Amacr;","⩓":"&And;",Ą:"&Aogon;","𝔸":"&Aopf;","⁡":"&af;",Å:"&angst;","𝒜":"&Ascr;","≔":"&coloneq;",Ã:"&Atilde;",Ä:"&Auml;","∖":"&ssetmn;","⫧":"&Barv;","⌆":"&doublebarwedge;",Б:"&Bcy;","∵":"&because;",ℬ:"&bernou;",Β:"&Beta;","𝔅":"&Bfr;","𝔹":"&Bopf;","˘":"&breve;","≎":"&bump;",Ч:"&CHcy;","©":"&copy;",Ć:"&Cacute;","⋒":"&Cap;","ⅅ":"&DD;",ℭ:"&Cfr;",Č:"&Ccaron;",Ç:"&Ccedil;",Ĉ:"&Ccirc;","∰":"&Cconint;",Ċ:"&Cdot;","¸":"&cedil;","·":"&middot;",Χ:"&Chi;","⊙":"&odot;","⊖":"&ominus;","⊕":"&oplus;","⊗":"&otimes;","∲":"&cwconint;","”":"&rdquor;","’":"&rsquor;","∷":"&Proportion;","⩴":"&Colone;","≡":"&equiv;","∯":"&DoubleContourIntegral;","∮":"&oint;",ℂ:"&complexes;","∐":"&coprod;","∳":"&awconint;","⨯":"&Cross;","𝒞":"&Cscr;","⋓":"&Cup;","≍":"&asympeq;","⤑":"&DDotrahd;",Ђ:"&DJcy;",Ѕ:"&DScy;",Џ:"&DZcy;","‡":"&ddagger;","↡":"&Darr;","⫤":"&DoubleLeftTee;",Ď:"&Dcaron;",Д:"&Dcy;","∇":"&nabla;",Δ:"&Delta;","𝔇":"&Dfr;","´":"&acute;","˙":"&dot;","˝":"&dblac;","`":"&grave;","˜":"&tilde;","⋄":"&diamond;","ⅆ":"&dd;","𝔻":"&Dopf;","¨":"&uml;","⃜":"&DotDot;","≐":"&esdot;","⇓":"&dArr;","⇐":"&lArr;","⇔":"&iff;","⟸":"&xlArr;","⟺":"&xhArr;","⟹":"&xrArr;","⇒":"&rArr;","⊨":"&vDash;","⇑":"&uArr;","⇕":"&vArr;","∥":"&spar;","↓":"&downarrow;","⤓":"&DownArrowBar;","⇵":"&duarr;","̑":"&DownBreve;","⥐":"&DownLeftRightVector;","⥞":"&DownLeftTeeVector;","↽":"&lhard;","⥖":"&DownLeftVectorBar;","⥟":"&DownRightTeeVector;","⇁":"&rightharpoondown;","⥗":"&DownRightVectorBar;","⊤":"&top;","↧":"&mapstodown;","𝒟":"&Dscr;",Đ:"&Dstrok;",Ŋ:"&ENG;",Ð:"&ETH;",É:"&Eacute;",Ě:"&Ecaron;",Ê:"&Ecirc;",Э:"&Ecy;",Ė:"&Edot;","𝔈":"&Efr;",È:"&Egrave;","∈":"&isinv;",Ē:"&Emacr;","◻":"&EmptySmallSquare;","▫":"&EmptyVerySmallSquare;",Ę:"&Eogon;","𝔼":"&Eopf;",Ε:"&Epsilon;","⩵":"&Equal;","≂":"&esim;","⇌":"&rlhar;",ℰ:"&expectation;","⩳":"&Esim;",Η:"&Eta;",Ë:"&Euml;","∃":"&exist;","ⅇ":"&exponentiale;",Ф:"&Fcy;","𝔉":"&Ffr;","◼":"&FilledSmallSquare;","▪":"&squf;","𝔽":"&Fopf;","∀":"&forall;",ℱ:"&Fscr;",Ѓ:"&GJcy;",">":"&gt;",Γ:"&Gamma;",Ϝ:"&Gammad;",Ğ:"&Gbreve;",Ģ:"&Gcedil;",Ĝ:"&Gcirc;",Г:"&Gcy;",Ġ:"&Gdot;","𝔊":"&Gfr;","⋙":"&ggg;","𝔾":"&Gopf;","≥":"&geq;","⋛":"&gtreqless;","≧":"&geqq;","⪢":"&GreaterGreater;","≷":"&gtrless;","⩾":"&ges;","≳":"&gtrsim;","𝒢":"&Gscr;","≫":"&gg;",Ъ:"&HARDcy;","ˇ":"&caron;","^":"&Hat;",Ĥ:"&Hcirc;",ℌ:"&Poincareplane;",ℋ:"&hamilt;",ℍ:"&quaternions;","─":"&boxh;",Ħ:"&Hstrok;","≏":"&bumpeq;",Е:"&IEcy;",IJ:"&IJlig;",Ё:"&IOcy;",Í:"&Iacute;",Î:"&Icirc;",И:"&Icy;",İ:"&Idot;",ℑ:"&imagpart;",Ì:"&Igrave;",Ī:"&Imacr;","ⅈ":"&ii;","∬":"&Int;","∫":"&int;","⋂":"&xcap;","⁣":"&ic;","⁢":"&it;",Į:"&Iogon;","𝕀":"&Iopf;",Ι:"&Iota;",ℐ:"&imagline;",Ĩ:"&Itilde;",І:"&Iukcy;",Ï:"&Iuml;",Ĵ:"&Jcirc;",Й:"&Jcy;","𝔍":"&Jfr;","𝕁":"&Jopf;","𝒥":"&Jscr;",Ј:"&Jsercy;",Є:"&Jukcy;",Х:"&KHcy;",Ќ:"&KJcy;",Κ:"&Kappa;",Ķ:"&Kcedil;",К:"&Kcy;","𝔎":"&Kfr;","𝕂":"&Kopf;","𝒦":"&Kscr;",Љ:"&LJcy;","<":"&lt;",Ĺ:"&Lacute;",Λ:"&Lambda;","⟪":"&Lang;",ℒ:"&lagran;","↞":"&twoheadleftarrow;",Ľ:"&Lcaron;",Ļ:"&Lcedil;",Л:"&Lcy;","⟨":"&langle;","←":"&slarr;","⇤":"&larrb;","⇆":"&lrarr;","⌈":"&lceil;","⟦":"&lobrk;","⥡":"&LeftDownTeeVector;","⇃":"&downharpoonleft;","⥙":"&LeftDownVectorBar;","⌊":"&lfloor;","↔":"&leftrightarrow;","⥎":"&LeftRightVector;","⊣":"&dashv;","↤":"&mapstoleft;","⥚":"&LeftTeeVector;","⊲":"&vltri;","⧏":"&LeftTriangleBar;","⊴":"&trianglelefteq;","⥑":"&LeftUpDownVector;","⥠":"&LeftUpTeeVector;","↿":"&upharpoonleft;","⥘":"&LeftUpVectorBar;","↼":"&lharu;","⥒":"&LeftVectorBar;","⋚":"&lesseqgtr;","≦":"&leqq;","≶":"&lg;","⪡":"&LessLess;","⩽":"&les;","≲":"&lsim;","𝔏":"&Lfr;","⋘":"&Ll;","⇚":"&lAarr;",Ŀ:"&Lmidot;","⟵":"&xlarr;","⟷":"&xharr;","⟶":"&xrarr;","𝕃":"&Lopf;","↙":"&swarrow;","↘":"&searrow;","↰":"&lsh;",Ł:"&Lstrok;","≪":"&ll;","⤅":"&Map;",М:"&Mcy;"," ":"&MediumSpace;",ℳ:"&phmmat;","𝔐":"&Mfr;","∓":"&mp;","𝕄":"&Mopf;",Μ:"&Mu;",Њ:"&NJcy;",Ń:"&Nacute;",Ň:"&Ncaron;",Ņ:"&Ncedil;",Н:"&Ncy;","​":"&ZeroWidthSpace;","\n":"&NewLine;","𝔑":"&Nfr;","⁠":"&NoBreak;"," ":"&nbsp;",ℕ:"&naturals;","⫬":"&Not;","≢":"&nequiv;","≭":"&NotCupCap;","∦":"&nspar;","∉":"&notinva;","≠":"&ne;","≂̸":"&nesim;","∄":"&nexists;","≯":"&ngtr;","≱":"&ngeq;","≧̸":"&ngeqq;","≫̸":"&nGtv;","≹":"&ntgl;","⩾̸":"&nges;","≵":"&ngsim;","≎̸":"&nbump;","≏̸":"&nbumpe;","⋪":"&ntriangleleft;","⧏̸":"&NotLeftTriangleBar;","⋬":"&ntrianglelefteq;","≮":"&nlt;","≰":"&nleq;","≸":"&ntlg;","≪̸":"&nLtv;","⩽̸":"&nles;","≴":"&nlsim;","⪢̸":"&NotNestedGreaterGreater;","⪡̸":"&NotNestedLessLess;","⊀":"&nprec;","⪯̸":"&npreceq;","⋠":"&nprcue;","∌":"&notniva;","⋫":"&ntriangleright;","⧐̸":"&NotRightTriangleBar;","⋭":"&ntrianglerighteq;","⊏̸":"&NotSquareSubset;","⋢":"&nsqsube;","⊐̸":"&NotSquareSuperset;","⋣":"&nsqsupe;","⊂⃒":"&vnsub;","⊈":"&nsubseteq;","⊁":"&nsucc;","⪰̸":"&nsucceq;","⋡":"&nsccue;","≿̸":"&NotSucceedsTilde;","⊃⃒":"&vnsup;","⊉":"&nsupseteq;","≁":"&nsim;","≄":"&nsimeq;","≇":"&ncong;","≉":"&napprox;","∤":"&nsmid;","𝒩":"&Nscr;",Ñ:"&Ntilde;",Ν:"&Nu;",Œ:"&OElig;",Ó:"&Oacute;",Ô:"&Ocirc;",О:"&Ocy;",Ő:"&Odblac;","𝔒":"&Ofr;",Ò:"&Ograve;",Ō:"&Omacr;",Ω:"&ohm;",Ο:"&Omicron;","𝕆":"&Oopf;","“":"&ldquo;","‘":"&lsquo;","⩔":"&Or;","𝒪":"&Oscr;",Ø:"&Oslash;",Õ:"&Otilde;","⨷":"&Otimes;",Ö:"&Ouml;","‾":"&oline;","⏞":"&OverBrace;","⎴":"&tbrk;","⏜":"&OverParenthesis;","∂":"&part;",П:"&Pcy;","𝔓":"&Pfr;",Φ:"&Phi;",Π:"&Pi;","±":"&pm;",ℙ:"&primes;","⪻":"&Pr;","≺":"&prec;","⪯":"&preceq;","≼":"&preccurlyeq;","≾":"&prsim;","″":"&Prime;","∏":"&prod;","∝":"&vprop;","𝒫":"&Pscr;",Ψ:"&Psi;",'"':"&quot;","𝔔":"&Qfr;",ℚ:"&rationals;","𝒬":"&Qscr;","⤐":"&drbkarow;","®":"&reg;",Ŕ:"&Racute;","⟫":"&Rang;","↠":"&twoheadrightarrow;","⤖":"&Rarrtl;",Ř:"&Rcaron;",Ŗ:"&Rcedil;",Р:"&Rcy;",ℜ:"&realpart;","∋":"&niv;","⇋":"&lrhar;","⥯":"&duhar;",Ρ:"&Rho;","⟩":"&rangle;","→":"&srarr;","⇥":"&rarrb;","⇄":"&rlarr;","⌉":"&rceil;","⟧":"&robrk;","⥝":"&RightDownTeeVector;","⇂":"&downharpoonright;","⥕":"&RightDownVectorBar;","⌋":"&rfloor;","⊢":"&vdash;","↦":"&mapsto;","⥛":"&RightTeeVector;","⊳":"&vrtri;","⧐":"&RightTriangleBar;","⊵":"&trianglerighteq;","⥏":"&RightUpDownVector;","⥜":"&RightUpTeeVector;","↾":"&upharpoonright;","⥔":"&RightUpVectorBar;","⇀":"&rightharpoonup;","⥓":"&RightVectorBar;",ℝ:"&reals;","⥰":"&RoundImplies;","⇛":"&rAarr;",ℛ:"&realine;","↱":"&rsh;","⧴":"&RuleDelayed;",Щ:"&SHCHcy;",Ш:"&SHcy;",Ь:"&SOFTcy;",Ś:"&Sacute;","⪼":"&Sc;",Š:"&Scaron;",Ş:"&Scedil;",Ŝ:"&Scirc;",С:"&Scy;","𝔖":"&Sfr;","↑":"&uparrow;",Σ:"&Sigma;","∘":"&compfn;","𝕊":"&Sopf;","√":"&radic;","□":"&square;","⊓":"&sqcap;","⊏":"&sqsubset;","⊑":"&sqsubseteq;","⊐":"&sqsupset;","⊒":"&sqsupseteq;","⊔":"&sqcup;","𝒮":"&Sscr;","⋆":"&sstarf;","⋐":"&Subset;","⊆":"&subseteq;","≻":"&succ;","⪰":"&succeq;","≽":"&succcurlyeq;","≿":"&succsim;","∑":"&sum;","⋑":"&Supset;","⊃":"&supset;","⊇":"&supseteq;",Þ:"&THORN;","™":"&trade;",Ћ:"&TSHcy;",Ц:"&TScy;"," ":"&Tab;",Τ:"&Tau;",Ť:"&Tcaron;",Ţ:"&Tcedil;",Т:"&Tcy;","𝔗":"&Tfr;","∴":"&therefore;",Θ:"&Theta;","  ":"&ThickSpace;"," ":"&thinsp;","∼":"&thksim;","≃":"&simeq;","≅":"&cong;","≈":"&thkap;","𝕋":"&Topf;","⃛":"&tdot;","𝒯":"&Tscr;",Ŧ:"&Tstrok;",Ú:"&Uacute;","↟":"&Uarr;","⥉":"&Uarrocir;",Ў:"&Ubrcy;",Ŭ:"&Ubreve;",Û:"&Ucirc;",У:"&Ucy;",Ű:"&Udblac;","𝔘":"&Ufr;",Ù:"&Ugrave;",Ū:"&Umacr;",_:"&lowbar;","⏟":"&UnderBrace;","⎵":"&bbrk;","⏝":"&UnderParenthesis;","⋃":"&xcup;","⊎":"&uplus;",Ų:"&Uogon;","𝕌":"&Uopf;","⤒":"&UpArrowBar;","⇅":"&udarr;","↕":"&varr;","⥮":"&udhar;","⊥":"&perp;","↥":"&mapstoup;","↖":"&nwarrow;","↗":"&nearrow;",ϒ:"&upsih;",Υ:"&Upsilon;",Ů:"&Uring;","𝒰":"&Uscr;",Ũ:"&Utilde;",Ü:"&Uuml;","⊫":"&VDash;","⫫":"&Vbar;",В:"&Vcy;","⊩":"&Vdash;","⫦":"&Vdashl;","⋁":"&xvee;","‖":"&Vert;","∣":"&smid;","|":"&vert;","❘":"&VerticalSeparator;","≀":"&wreath;"," ":"&hairsp;","𝔙":"&Vfr;","𝕍":"&Vopf;","𝒱":"&Vscr;","⊪":"&Vvdash;",Ŵ:"&Wcirc;","⋀":"&xwedge;","𝔚":"&Wfr;","𝕎":"&Wopf;","𝒲":"&Wscr;","𝔛":"&Xfr;",Ξ:"&Xi;","𝕏":"&Xopf;","𝒳":"&Xscr;",Я:"&YAcy;",Ї:"&YIcy;",Ю:"&YUcy;",Ý:"&Yacute;",Ŷ:"&Ycirc;",Ы:"&Ycy;","𝔜":"&Yfr;","𝕐":"&Yopf;","𝒴":"&Yscr;",Ÿ:"&Yuml;",Ж:"&ZHcy;",Ź:"&Zacute;",Ž:"&Zcaron;",З:"&Zcy;",Ż:"&Zdot;",Ζ:"&Zeta;",ℨ:"&zeetrf;",ℤ:"&integers;","𝒵":"&Zscr;",á:"&aacute;",ă:"&abreve;","∾":"&mstpos;","∾̳":"&acE;","∿":"&acd;",â:"&acirc;",а:"&acy;",æ:"&aelig;","𝔞":"&afr;",à:"&agrave;",ℵ:"&aleph;",α:"&alpha;",ā:"&amacr;","⨿":"&amalg;","∧":"&wedge;","⩕":"&andand;","⩜":"&andd;","⩘":"&andslope;","⩚":"&andv;","∠":"&angle;","⦤":"&ange;","∡":"&measuredangle;","⦨":"&angmsdaa;","⦩":"&angmsdab;","⦪":"&angmsdac;","⦫":"&angmsdad;","⦬":"&angmsdae;","⦭":"&angmsdaf;","⦮":"&angmsdag;","⦯":"&angmsdah;","∟":"&angrt;","⊾":"&angrtvb;","⦝":"&angrtvbd;","∢":"&angsph;","⍼":"&angzarr;",ą:"&aogon;","𝕒":"&aopf;","⩰":"&apE;","⩯":"&apacir;","≊":"&approxeq;","≋":"&apid;","'":"&apos;",å:"&aring;","𝒶":"&ascr;","*":"&midast;",ã:"&atilde;",ä:"&auml;","⨑":"&awint;","⫭":"&bNot;","≌":"&bcong;","϶":"&bepsi;","‵":"&bprime;","∽":"&bsim;","⋍":"&bsime;","⊽":"&barvee;","⌅":"&barwedge;","⎶":"&bbrktbrk;",б:"&bcy;","„":"&ldquor;","⦰":"&bemptyv;",β:"&beta;",ℶ:"&beth;","≬":"&twixt;","𝔟":"&bfr;","◯":"&xcirc;","⨀":"&xodot;","⨁":"&xoplus;","⨂":"&xotime;","⨆":"&xsqcup;","★":"&starf;","▽":"&xdtri;","△":"&xutri;","⨄":"&xuplus;","⤍":"&rbarr;","⧫":"&lozf;","▴":"&utrif;","▾":"&dtrif;","◂":"&ltrif;","▸":"&rtrif;","␣":"&blank;","▒":"&blk12;","░":"&blk14;","▓":"&blk34;","█":"&block;","=⃥":"&bne;","≡⃥":"&bnequiv;","⌐":"&bnot;","𝕓":"&bopf;","⋈":"&bowtie;","╗":"&boxDL;","╔":"&boxDR;","╖":"&boxDl;","╓":"&boxDr;","═":"&boxH;","╦":"&boxHD;","╩":"&boxHU;","╤":"&boxHd;","╧":"&boxHu;","╝":"&boxUL;","╚":"&boxUR;","╜":"&boxUl;","╙":"&boxUr;","║":"&boxV;","╬":"&boxVH;","╣":"&boxVL;","╠":"&boxVR;","╫":"&boxVh;","╢":"&boxVl;","╟":"&boxVr;","⧉":"&boxbox;","╕":"&boxdL;","╒":"&boxdR;","┐":"&boxdl;","┌":"&boxdr;","╥":"&boxhD;","╨":"&boxhU;","┬":"&boxhd;","┴":"&boxhu;","⊟":"&minusb;","⊞":"&plusb;","⊠":"&timesb;","╛":"&boxuL;","╘":"&boxuR;","┘":"&boxul;","└":"&boxur;","│":"&boxv;","╪":"&boxvH;","╡":"&boxvL;","╞":"&boxvR;","┼":"&boxvh;","┤":"&boxvl;","├":"&boxvr;","¦":"&brvbar;","𝒷":"&bscr;","⁏":"&bsemi;","\\":"&bsol;","⧅":"&bsolb;","⟈":"&bsolhsub;","•":"&bullet;","⪮":"&bumpE;",ć:"&cacute;","∩":"&cap;","⩄":"&capand;","⩉":"&capbrcup;","⩋":"&capcap;","⩇":"&capcup;","⩀":"&capdot;","∩︀":"&caps;","⁁":"&caret;","⩍":"&ccaps;",č:"&ccaron;",ç:"&ccedil;",ĉ:"&ccirc;","⩌":"&ccups;","⩐":"&ccupssm;",ċ:"&cdot;","⦲":"&cemptyv;","¢":"&cent;","𝔠":"&cfr;",ч:"&chcy;","✓":"&checkmark;",χ:"&chi;","○":"&cir;","⧃":"&cirE;","ˆ":"&circ;","≗":"&cire;","↺":"&olarr;","↻":"&orarr;","Ⓢ":"&oS;","⊛":"&oast;","⊚":"&ocir;","⊝":"&odash;","⨐":"&cirfnint;","⫯":"&cirmid;","⧂":"&cirscir;","♣":"&clubsuit;",":":"&colon;",",":"&comma;","@":"&commat;","∁":"&complement;","⩭":"&congdot;","𝕔":"&copf;","℗":"&copysr;","↵":"&crarr;","✗":"&cross;","𝒸":"&cscr;","⫏":"&csub;","⫑":"&csube;","⫐":"&csup;","⫒":"&csupe;","⋯":"&ctdot;","⤸":"&cudarrl;","⤵":"&cudarrr;","⋞":"&curlyeqprec;","⋟":"&curlyeqsucc;","↶":"&curvearrowleft;","⤽":"&cularrp;","∪":"&cup;","⩈":"&cupbrcap;","⩆":"&cupcap;","⩊":"&cupcup;","⊍":"&cupdot;","⩅":"&cupor;","∪︀":"&cups;","↷":"&curvearrowright;","⤼":"&curarrm;","⋎":"&cuvee;","⋏":"&cuwed;","¤":"&curren;","∱":"&cwint;","⌭":"&cylcty;","⥥":"&dHar;","†":"&dagger;",ℸ:"&daleth;","‐":"&hyphen;","⤏":"&rBarr;",ď:"&dcaron;",д:"&dcy;","⇊":"&downdownarrows;","⩷":"&eDDot;","°":"&deg;",δ:"&delta;","⦱":"&demptyv;","⥿":"&dfisht;","𝔡":"&dfr;","♦":"&diams;",ϝ:"&gammad;","⋲":"&disin;","÷":"&divide;","⋇":"&divonx;",ђ:"&djcy;","⌞":"&llcorner;","⌍":"&dlcrop;",$:"&dollar;","𝕕":"&dopf;","≑":"&eDot;","∸":"&minusd;","∔":"&plusdo;","⊡":"&sdotb;","⌟":"&lrcorner;","⌌":"&drcrop;","𝒹":"&dscr;",ѕ:"&dscy;","⧶":"&dsol;",đ:"&dstrok;","⋱":"&dtdot;","▿":"&triangledown;","⦦":"&dwangle;",џ:"&dzcy;","⟿":"&dzigrarr;",é:"&eacute;","⩮":"&easter;",ě:"&ecaron;","≖":"&eqcirc;",ê:"&ecirc;","≕":"&eqcolon;",э:"&ecy;",ė:"&edot;","≒":"&fallingdotseq;","𝔢":"&efr;","⪚":"&eg;",è:"&egrave;","⪖":"&eqslantgtr;","⪘":"&egsdot;","⪙":"&el;","⏧":"&elinters;",ℓ:"&ell;","⪕":"&eqslantless;","⪗":"&elsdot;",ē:"&emacr;","∅":"&varnothing;"," ":"&emsp13;"," ":"&emsp14;"," ":"&emsp;",ŋ:"&eng;"," ":"&ensp;",ę:"&eogon;","𝕖":"&eopf;","⋕":"&epar;","⧣":"&eparsl;","⩱":"&eplus;",ε:"&epsilon;","ϵ":"&varepsilon;","=":"&equals;","≟":"&questeq;","⩸":"&equivDD;","⧥":"&eqvparsl;","≓":"&risingdotseq;","⥱":"&erarr;",ℯ:"&escr;",η:"&eta;",ð:"&eth;",ë:"&euml;","€":"&euro;","!":"&excl;",ф:"&fcy;","♀":"&female;",ffi:"&ffilig;",ff:"&fflig;",ffl:"&ffllig;","𝔣":"&ffr;",fi:"&filig;",fj:"&fjlig;","♭":"&flat;",fl:"&fllig;","▱":"&fltns;",ƒ:"&fnof;","𝕗":"&fopf;","⋔":"&pitchfork;","⫙":"&forkv;","⨍":"&fpartint;","½":"&half;","⅓":"&frac13;","¼":"&frac14;","⅕":"&frac15;","⅙":"&frac16;","⅛":"&frac18;","⅔":"&frac23;","⅖":"&frac25;","¾":"&frac34;","⅗":"&frac35;","⅜":"&frac38;","⅘":"&frac45;","⅚":"&frac56;","⅝":"&frac58;","⅞":"&frac78;","⁄":"&frasl;","⌢":"&sfrown;","𝒻":"&fscr;","⪌":"&gtreqqless;",ǵ:"&gacute;",γ:"&gamma;","⪆":"&gtrapprox;",ğ:"&gbreve;",ĝ:"&gcirc;",г:"&gcy;",ġ:"&gdot;","⪩":"&gescc;","⪀":"&gesdot;","⪂":"&gesdoto;","⪄":"&gesdotol;","⋛︀":"&gesl;","⪔":"&gesles;","𝔤":"&gfr;",ℷ:"&gimel;",ѓ:"&gjcy;","⪒":"&glE;","⪥":"&gla;","⪤":"&glj;","≩":"&gneqq;","⪊":"&gnapprox;","⪈":"&gneq;","⋧":"&gnsim;","𝕘":"&gopf;",ℊ:"&gscr;","⪎":"&gsime;","⪐":"&gsiml;","⪧":"&gtcc;","⩺":"&gtcir;","⋗":"&gtrdot;","⦕":"&gtlPar;","⩼":"&gtquest;","⥸":"&gtrarr;","≩︀":"&gvnE;",ъ:"&hardcy;","⥈":"&harrcir;","↭":"&leftrightsquigarrow;",ℏ:"&plankv;",ĥ:"&hcirc;","♥":"&heartsuit;","…":"&mldr;","⊹":"&hercon;","𝔥":"&hfr;","⤥":"&searhk;","⤦":"&swarhk;","⇿":"&hoarr;","∻":"&homtht;","↩":"&larrhk;","↪":"&rarrhk;","𝕙":"&hopf;","―":"&horbar;","𝒽":"&hscr;",ħ:"&hstrok;","⁃":"&hybull;",í:"&iacute;",î:"&icirc;",и:"&icy;",е:"&iecy;","¡":"&iexcl;","𝔦":"&ifr;",ì:"&igrave;","⨌":"&qint;","∭":"&tint;","⧜":"&iinfin;","℩":"&iiota;",ij:"&ijlig;",ī:"&imacr;",ı:"&inodot;","⊷":"&imof;",Ƶ:"&imped;","℅":"&incare;","∞":"&infin;","⧝":"&infintie;","⊺":"&intercal;","⨗":"&intlarhk;","⨼":"&iprod;",ё:"&iocy;",į:"&iogon;","𝕚":"&iopf;",ι:"&iota;","¿":"&iquest;","𝒾":"&iscr;","⋹":"&isinE;","⋵":"&isindot;","⋴":"&isins;","⋳":"&isinsv;",ĩ:"&itilde;",і:"&iukcy;",ï:"&iuml;",ĵ:"&jcirc;",й:"&jcy;","𝔧":"&jfr;","ȷ":"&jmath;","𝕛":"&jopf;","𝒿":"&jscr;",ј:"&jsercy;",є:"&jukcy;",κ:"&kappa;",ϰ:"&varkappa;",ķ:"&kcedil;",к:"&kcy;","𝔨":"&kfr;",ĸ:"&kgreen;",х:"&khcy;",ќ:"&kjcy;","𝕜":"&kopf;","𝓀":"&kscr;","⤛":"&lAtail;","⤎":"&lBarr;","⪋":"&lesseqqgtr;","⥢":"&lHar;",ĺ:"&lacute;","⦴":"&laemptyv;",λ:"&lambda;","⦑":"&langd;","⪅":"&lessapprox;","«":"&laquo;","⤟":"&larrbfs;","⤝":"&larrfs;","↫":"&looparrowleft;","⤹":"&larrpl;","⥳":"&larrsim;","↢":"&leftarrowtail;","⪫":"&lat;","⤙":"&latail;","⪭":"&late;","⪭︀":"&lates;","⤌":"&lbarr;","❲":"&lbbrk;","{":"&lcub;","[":"&lsqb;","⦋":"&lbrke;","⦏":"&lbrksld;","⦍":"&lbrkslu;",ľ:"&lcaron;",ļ:"&lcedil;",л:"&lcy;","⤶":"&ldca;","⥧":"&ldrdhar;","⥋":"&ldrushar;","↲":"&ldsh;","≤":"&leq;","⇇":"&llarr;","⋋":"&lthree;","⪨":"&lescc;","⩿":"&lesdot;","⪁":"&lesdoto;","⪃":"&lesdotor;","⋚︀":"&lesg;","⪓":"&lesges;","⋖":"&ltdot;","⥼":"&lfisht;","𝔩":"&lfr;","⪑":"&lgE;","⥪":"&lharul;","▄":"&lhblk;",љ:"&ljcy;","⥫":"&llhard;","◺":"&lltri;",ŀ:"&lmidot;","⎰":"&lmoustache;","≨":"&lneqq;","⪉":"&lnapprox;","⪇":"&lneq;","⋦":"&lnsim;","⟬":"&loang;","⇽":"&loarr;","⟼":"&xmap;","↬":"&rarrlp;","⦅":"&lopar;","𝕝":"&lopf;","⨭":"&loplus;","⨴":"&lotimes;","∗":"&lowast;","◊":"&lozenge;","(":"&lpar;","⦓":"&lparlt;","⥭":"&lrhard;","‎":"&lrm;","⊿":"&lrtri;","‹":"&lsaquo;","𝓁":"&lscr;","⪍":"&lsime;","⪏":"&lsimg;","‚":"&sbquo;",ł:"&lstrok;","⪦":"&ltcc;","⩹":"&ltcir;","⋉":"&ltimes;","⥶":"&ltlarr;","⩻":"&ltquest;","⦖":"&ltrPar;","◃":"&triangleleft;","⥊":"&lurdshar;","⥦":"&luruhar;","≨︀":"&lvnE;","∺":"&mDDot;","¯":"&strns;","♂":"&male;","✠":"&maltese;","▮":"&marker;","⨩":"&mcomma;",м:"&mcy;","—":"&mdash;","𝔪":"&mfr;","℧":"&mho;",µ:"&micro;","⫰":"&midcir;","−":"&minus;","⨪":"&minusdu;","⫛":"&mlcp;","⊧":"&models;","𝕞":"&mopf;","𝓂":"&mscr;",μ:"&mu;","⊸":"&mumap;","⋙̸":"&nGg;","≫⃒":"&nGt;","⇍":"&nlArr;","⇎":"&nhArr;","⋘̸":"&nLl;","≪⃒":"&nLt;","⇏":"&nrArr;","⊯":"&nVDash;","⊮":"&nVdash;",ń:"&nacute;","∠⃒":"&nang;","⩰̸":"&napE;","≋̸":"&napid;",ʼn:"&napos;","♮":"&natural;","⩃":"&ncap;",ň:"&ncaron;",ņ:"&ncedil;","⩭̸":"&ncongdot;","⩂":"&ncup;",н:"&ncy;","–":"&ndash;","⇗":"&neArr;","⤤":"&nearhk;","≐̸":"&nedot;","⤨":"&toea;","𝔫":"&nfr;","↮":"&nleftrightarrow;","⫲":"&nhpar;","⋼":"&nis;","⋺":"&nisd;",њ:"&njcy;","≦̸":"&nleqq;","↚":"&nleftarrow;","‥":"&nldr;","𝕟":"&nopf;","¬":"&not;","⋹̸":"&notinE;","⋵̸":"&notindot;","⋷":"&notinvb;","⋶":"&notinvc;","⋾":"&notnivb;","⋽":"&notnivc;","⫽⃥":"&nparsl;","∂̸":"&npart;","⨔":"&npolint;","↛":"&nrightarrow;","⤳̸":"&nrarrc;","↝̸":"&nrarrw;","𝓃":"&nscr;","⊄":"&nsub;","⫅̸":"&nsubseteqq;","⊅":"&nsup;","⫆̸":"&nsupseteqq;",ñ:"&ntilde;",ν:"&nu;","#":"&num;","№":"&numero;"," ":"&numsp;","⊭":"&nvDash;","⤄":"&nvHarr;","≍⃒":"&nvap;","⊬":"&nvdash;","≥⃒":"&nvge;",">⃒":"&nvgt;","⧞":"&nvinfin;","⤂":"&nvlArr;","≤⃒":"&nvle;","<⃒":"&nvlt;","⊴⃒":"&nvltrie;","⤃":"&nvrArr;","⊵⃒":"&nvrtrie;","∼⃒":"&nvsim;","⇖":"&nwArr;","⤣":"&nwarhk;","⤧":"&nwnear;",ó:"&oacute;",ô:"&ocirc;",о:"&ocy;",ő:"&odblac;","⨸":"&odiv;","⦼":"&odsold;",œ:"&oelig;","⦿":"&ofcir;","𝔬":"&ofr;","˛":"&ogon;",ò:"&ograve;","⧁":"&ogt;","⦵":"&ohbar;","⦾":"&olcir;","⦻":"&olcross;","⧀":"&olt;",ō:"&omacr;",ω:"&omega;",ο:"&omicron;","⦶":"&omid;","𝕠":"&oopf;","⦷":"&opar;","⦹":"&operp;","∨":"&vee;","⩝":"&ord;",ℴ:"&oscr;",ª:"&ordf;",º:"&ordm;","⊶":"&origof;","⩖":"&oror;","⩗":"&orslope;","⩛":"&orv;",ø:"&oslash;","⊘":"&osol;",õ:"&otilde;","⨶":"&otimesas;",ö:"&ouml;","⌽":"&ovbar;","¶":"&para;","⫳":"&parsim;","⫽":"&parsl;",п:"&pcy;","%":"&percnt;",".":"&period;","‰":"&permil;","‱":"&pertenk;","𝔭":"&pfr;",φ:"&phi;",ϕ:"&varphi;","☎":"&phone;",π:"&pi;",ϖ:"&varpi;",ℎ:"&planckh;","+":"&plus;","⨣":"&plusacir;","⨢":"&pluscir;","⨥":"&plusdu;","⩲":"&pluse;","⨦":"&plussim;","⨧":"&plustwo;","⨕":"&pointint;","𝕡":"&popf;","£":"&pound;","⪳":"&prE;","⪷":"&precapprox;","⪹":"&prnap;","⪵":"&prnE;","⋨":"&prnsim;","′":"&prime;","⌮":"&profalar;","⌒":"&profline;","⌓":"&profsurf;","⊰":"&prurel;","𝓅":"&pscr;",ψ:"&psi;"," ":"&puncsp;","𝔮":"&qfr;","𝕢":"&qopf;","⁗":"&qprime;","𝓆":"&qscr;","⨖":"&quatint;","?":"&quest;","⤜":"&rAtail;","⥤":"&rHar;","∽̱":"&race;",ŕ:"&racute;","⦳":"&raemptyv;","⦒":"&rangd;","⦥":"&range;","»":"&raquo;","⥵":"&rarrap;","⤠":"&rarrbfs;","⤳":"&rarrc;","⤞":"&rarrfs;","⥅":"&rarrpl;","⥴":"&rarrsim;","↣":"&rightarrowtail;","↝":"&rightsquigarrow;","⤚":"&ratail;","∶":"&ratio;","❳":"&rbbrk;","}":"&rcub;","]":"&rsqb;","⦌":"&rbrke;","⦎":"&rbrksld;","⦐":"&rbrkslu;",ř:"&rcaron;",ŗ:"&rcedil;",р:"&rcy;","⤷":"&rdca;","⥩":"&rdldhar;","↳":"&rdsh;","▭":"&rect;","⥽":"&rfisht;","𝔯":"&rfr;","⥬":"&rharul;",ρ:"&rho;",ϱ:"&varrho;","⇉":"&rrarr;","⋌":"&rthree;","˚":"&ring;","‏":"&rlm;","⎱":"&rmoustache;","⫮":"&rnmid;","⟭":"&roang;","⇾":"&roarr;","⦆":"&ropar;","𝕣":"&ropf;","⨮":"&roplus;","⨵":"&rotimes;",")":"&rpar;","⦔":"&rpargt;","⨒":"&rppolint;","›":"&rsaquo;","𝓇":"&rscr;","⋊":"&rtimes;","▹":"&triangleright;","⧎":"&rtriltri;","⥨":"&ruluhar;","℞":"&rx;",ś:"&sacute;","⪴":"&scE;","⪸":"&succapprox;",š:"&scaron;",ş:"&scedil;",ŝ:"&scirc;","⪶":"&succneqq;","⪺":"&succnapprox;","⋩":"&succnsim;","⨓":"&scpolint;",с:"&scy;","⋅":"&sdot;","⩦":"&sdote;","⇘":"&seArr;","§":"&sect;",";":"&semi;","⤩":"&tosa;","✶":"&sext;","𝔰":"&sfr;","♯":"&sharp;",щ:"&shchcy;",ш:"&shcy;","­":"&shy;",σ:"&sigma;",ς:"&varsigma;","⩪":"&simdot;","⪞":"&simg;","⪠":"&simgE;","⪝":"&siml;","⪟":"&simlE;","≆":"&simne;","⨤":"&simplus;","⥲":"&simrarr;","⨳":"&smashp;","⧤":"&smeparsl;","⌣":"&ssmile;","⪪":"&smt;","⪬":"&smte;","⪬︀":"&smtes;",ь:"&softcy;","/":"&sol;","⧄":"&solb;","⌿":"&solbar;","𝕤":"&sopf;","♠":"&spadesuit;","⊓︀":"&sqcaps;","⊔︀":"&sqcups;","𝓈":"&sscr;","☆":"&star;","⊂":"&subset;","⫅":"&subseteqq;","⪽":"&subdot;","⫃":"&subedot;","⫁":"&submult;","⫋":"&subsetneqq;","⊊":"&subsetneq;","⪿":"&subplus;","⥹":"&subrarr;","⫇":"&subsim;","⫕":"&subsub;","⫓":"&subsup;","♪":"&sung;","¹":"&sup1;","²":"&sup2;","³":"&sup3;","⫆":"&supseteqq;","⪾":"&supdot;","⫘":"&supdsub;","⫄":"&supedot;","⟉":"&suphsol;","⫗":"&suphsub;","⥻":"&suplarr;","⫂":"&supmult;","⫌":"&supsetneqq;","⊋":"&supsetneq;","⫀":"&supplus;","⫈":"&supsim;","⫔":"&supsub;","⫖":"&supsup;","⇙":"&swArr;","⤪":"&swnwar;",ß:"&szlig;","⌖":"&target;",τ:"&tau;",ť:"&tcaron;",ţ:"&tcedil;",т:"&tcy;","⌕":"&telrec;","𝔱":"&tfr;",θ:"&theta;",ϑ:"&vartheta;",þ:"&thorn;","×":"&times;","⨱":"&timesbar;","⨰":"&timesd;","⌶":"&topbot;","⫱":"&topcir;","𝕥":"&topf;","⫚":"&topfork;","‴":"&tprime;","▵":"&utri;","≜":"&trie;","◬":"&tridot;","⨺":"&triminus;","⨹":"&triplus;","⧍":"&trisb;","⨻":"&tritime;","⏢":"&trpezium;","𝓉":"&tscr;",ц:"&tscy;",ћ:"&tshcy;",ŧ:"&tstrok;","⥣":"&uHar;",ú:"&uacute;",ў:"&ubrcy;",ŭ:"&ubreve;",û:"&ucirc;",у:"&ucy;",ű:"&udblac;","⥾":"&ufisht;","𝔲":"&ufr;",ù:"&ugrave;","▀":"&uhblk;","⌜":"&ulcorner;","⌏":"&ulcrop;","◸":"&ultri;",ū:"&umacr;",ų:"&uogon;","𝕦":"&uopf;",υ:"&upsilon;","⇈":"&uuarr;","⌝":"&urcorner;","⌎":"&urcrop;",ů:"&uring;","◹":"&urtri;","𝓊":"&uscr;","⋰":"&utdot;",ũ:"&utilde;",ü:"&uuml;","⦧":"&uwangle;","⫨":"&vBar;","⫩":"&vBarv;","⦜":"&vangrt;","⊊︀":"&vsubne;","⫋︀":"&vsubnE;","⊋︀":"&vsupne;","⫌︀":"&vsupnE;",в:"&vcy;","⊻":"&veebar;","≚":"&veeeq;","⋮":"&vellip;","𝔳":"&vfr;","𝕧":"&vopf;","𝓋":"&vscr;","⦚":"&vzigzag;",ŵ:"&wcirc;","⩟":"&wedbar;","≙":"&wedgeq;","℘":"&wp;","𝔴":"&wfr;","𝕨":"&wopf;","𝓌":"&wscr;","𝔵":"&xfr;",ξ:"&xi;","⋻":"&xnis;","𝕩":"&xopf;","𝓍":"&xscr;",ý:"&yacute;",я:"&yacy;",ŷ:"&ycirc;",ы:"&ycy;","¥":"&yen;","𝔶":"&yfr;",ї:"&yicy;","𝕪":"&yopf;","𝓎":"&yscr;",ю:"&yucy;",ÿ:"&yuml;",ź:"&zacute;",ž:"&zcaron;",з:"&zcy;",ż:"&zdot;",ζ:"&zeta;","𝔷":"&zfr;",ж:"&zhcy;","⇝":"&zigrarr;","𝕫":"&zopf;","𝓏":"&zscr;","‍":"&zwj;","‌":"&zwnj;"}}};var yF={};Object.defineProperty(yF,"__esModule",{value:!0}),yF.numericUnicodeMap={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var jm={};Object.defineProperty(jm,"__esModule",{value:!0}),jm.fromCodePoint=String.fromCodePoint||function(e){return String.fromCharCode(Math.floor((e-65536)/1024)+55296,(e-65536)%1024+56320)},jm.getCodePoint=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536},jm.highSurrogateFrom=55296,jm.highSurrogateTo=56319;var Qm=nn&&nn.__assign||function(){return Qm=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Qm.apply(this,arguments)};Object.defineProperty(gx,"__esModule",{value:!0});var vx=G4,tke=yF,Qre=jm,wF=Qm(Qm({},vx.namedReferences),{all:vx.namedReferences.html5});function Hre(e,t,r){t.lastIndex=0;var n=t.exec(e),i;if(n){i="";var a=0;do{a!==n.index&&(i+=e.substring(a,n.index));var o=n[0];i+=r(o),a=n.index+o.length}while(n=t.exec(e));a!==e.length&&(i+=e.substring(a))}else i=e;return i}var rke={specialChars:/[<>'"&]/g,nonAscii:/[<>'"&\u0080-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,nonAsciiPrintable:/[<>'"&\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,nonAsciiPrintableOnly:/[\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,extensive:/[\x01-\x0c\x0e-\x1f\x21-\x2c\x2e-\x2f\x3a-\x40\x5b-\x60\x7b-\x7d\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g},nke={mode:"specialChars",level:"all",numeric:"decimal"};function ike(e,t){var r=t===void 0?nke:t,n=r.mode,i=n===void 0?"specialChars":n,a=r.numeric,o=a===void 0?"decimal":a,s=r.level,l=s===void 0?"all":s;if(!e)return"";var c=rke[i],u=wF[l].characters,d=o==="hexadecimal";return Hre(e,c,function(f){var p=u[f];if(!p){var A=f.length>1?Qre.getCodePoint(f,0):f.charCodeAt(0);p=(d?"&#x"+A.toString(16):"&#"+A)+";"}return p})}gx.encode=ike;var ake={scope:"body",level:"all"},CF=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g,xF=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g,zre={xml:{strict:CF,attribute:xF,body:vx.bodyRegExps.xml},html4:{strict:CF,attribute:xF,body:vx.bodyRegExps.html4},html5:{strict:CF,attribute:xF,body:vx.bodyRegExps.html5}},oke=Qm(Qm({},zre),{all:zre.html5}),Wre=String.fromCharCode,ske=Wre(65533),lke={level:"all"};function Vre(e,t,r,n){var i=e,a=e[e.length-1];if(r&&a==="=")i=e;else if(n&&a!==";")i=e;else{var o=t[e];if(o)i=o;else if(e[0]==="&"&&e[1]==="#"){var s=e[2],l=s=="x"||s=="X"?parseInt(e.substr(3),16):parseInt(e.substr(2));i=l>=1114111?ske:l>65535?Qre.fromCodePoint(l):Wre(tke.numericUnicodeMap[l]||l)}}return i}function cke(e,t){var r=(t===void 0?lke:t).level,n=r===void 0?"all":r;return e?Vre(e,wF[n].entities,!1,!1):""}gx.decodeEntity=cke;function uke(e,t){var r=t===void 0?ake:t,n=r.level,i=n===void 0?"all":n,a=r.scope,o=a===void 0?i==="xml"?"strict":"body":a;if(!e)return"";var s=oke[i][o],l=wF[i].entities,c=o==="attribute",u=o==="strict";return Hre(e,s,function(d){return Vre(d,l,c,u)})}gx.decode=uke,Object.defineProperty(qa,"__esModule",{value:!0}),qa.isBlock=qa.parse=qa.Matcher=qa.HTMLElement=qa.CommentNode=qa.TextNode=qa.AbstractNode=qa.NodeType=void 0;const Hm=gx;var Uo;(function(e){e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE"})(Uo||(qa.NodeType=Uo={}));class mx{constructor(){this.childNodes=[]}get text(){return(0,Hm.decode)(this.rawText)}remove(){return this.parentNode&&this.parentNode.removeChild(this),this}}qa.AbstractNode=mx;class bx extends mx{constructor(t){super(),this.nodeType=Uo.TEXT_NODE,this.value=t}get rawText(){return this.value}get isWhitespace(){return/^(\s|&nbsp;)*$/.test(this.rawText)}toString(){return this.rawText}}qa.TextNode=bx;class Gre extends mx{constructor(t){super(),this.nodeType=Uo.COMMENT_NODE,this.value=t}get rawText(){return this.value}toString(){return`<!--${this.rawText}-->`}}qa.CommentNode=Gre;const dke={div:!0,p:!0,li:!0,td:!0,section:!0,br:!0};function zm(e){return e[e.length-1]}let Y4=class $y extends mx{constructor(t,r="",n=null){super(),this.tagName=t,this.rawAttrs=r,this.classNames=[],this.nodeType=Uo.ELEMENT_NODE,this.rawAttrs=r,this.parentNode=n,this.childNodes=[];let i={};for(let a;a=fke.exec(r);)i[a[2]]=a[4]||a[5]||a[6];i.id&&(this.id=i.id),i.class&&(this.classNames=i.class.split(/\s+/))}removeChild(t){this.childNodes=this.childNodes.filter(r=>r!==t),t instanceof $y&&(t.parentNode=null)}exchangeChild(t,r){const n=this.childNodes.findIndex(i=>i===t);n>=0&&(this.childNodes[n]=r,t instanceof $y&&(t.parentNode=null))}get rawText(){let t="";for(let r=0;r<this.childNodes.length;r++)t+=this.childNodes[r].rawText;return t}get structuredText(){let t=[];const r=[t];function n(i){if(i.nodeType===Uo.ELEMENT_NODE)dke[i.tagName]?(t.length>0&&r.push(t=[]),i.childNodes.forEach(n),t.length>0&&r.push(t=[])):i.childNodes.forEach(n);else if(i.nodeType===Uo.TEXT_NODE)if(i.isWhitespace)t.prependWhitespace=!0;else{let a=i.text;t.prependWhitespace&&(a=" "+a,t.prependWhitespace=!1),t.push(a)}}return n(this),r.map(function(i){return i.join("").trim().replace(/\s{2,}/g," ")}).join(`
81
81
  `).replace(/\s+$/,"")}get children(){return this.childNodes.filter(t=>t instanceof $y)}toString(){const t=this.tagName;if(t){const r=/^(img|br|hr|area|base|input|doctype|link|meta)$/i.test(t),n=this.rawAttrs?" "+this.rawAttrs:"";return r?`<${t}${n} />`:`<${t}${n}>${this.innerHTML}</${t}>`}else return this.innerHTML}get innerHTML(){return this.childNodes.map(t=>t.toString()).join("")}set innerHTML(t){const r=SF(t);this.childNodes.forEach(n=>n.remove()),r.childNodes.forEach(n=>this.appendChild(n))}set_content(t){if(t instanceof mx)t=[t];else if(typeof t=="string"){const r=SF(t);t=r.childNodes.length?r.childNodes:[new bx(t)]}this.childNodes=t}get outerHTML(){return this.toString()}trimRight(t){for(let r=0;r<this.childNodes.length;r++){const n=this.childNodes[r];if(n.nodeType===Uo.ELEMENT_NODE)n.trimRight(t);else{const i=n.rawText.search(t);i>-1&&(n.value=n.rawText.substr(0,i),this.childNodes.length=r+1)}}return this}get structure(){const t=[];let r=0;function n(a){t.push(" ".repeat(r)+a)}function i(a){const o=a.id?"#"+a.id:"",s=a.classNames.length?"."+a.classNames.join("."):"";n(a.tagName+o+s),r++;for(let l=0;l<a.childNodes.length;l++){const c=a.childNodes[l];c.nodeType===Uo.ELEMENT_NODE?i(c):c.nodeType===Uo.TEXT_NODE&&(c.isWhitespace||n("#text"))}r--}return i(this),t.join(`
82
82
  `)}removeWhitespace(){let t=0;for(let r=0;r<this.childNodes.length;r++){const n=this.childNodes[r];if(n.nodeType===Uo.TEXT_NODE){if(n.isWhitespace)continue;n.value=n.rawText.trim()}else n.nodeType===Uo.ELEMENT_NODE&&n.removeWhitespace();this.childNodes[t++]=n}return this.childNodes.length=t,this}querySelectorAll(t){if(!(t instanceof yx))if(t.includes(",")){const a=t.split(","),o=new Set(a.map(s=>this.querySelectorAll(s.trim())).flat());return Array.from(o)}else return this.querySelectorAll(new yx(t));const r=t,n=new Set,i=[];for(this.childNodes.forEach(a=>i.push(a));i.length>0;){const a=i.shift();a.nodeType===Uo.ELEMENT_NODE&&(r.advance(a)&&r.matched&&(n.add(a),r.rewind()),a.childNodes.forEach(o=>{i.push(o)}))}return Array.from(n)}querySelector(t){let r;t instanceof yx?(r=t,r.reset()):r=new yx(t);const n=[];for(let i=0;i<this.childNodes.length;i++)for(n.push([this.childNodes[i],0,!1]);n.length;){const a=zm(n),o=a[0];if(a[1]===0){if(o.nodeType!==Uo.ELEMENT_NODE){n.pop();continue}if((a[2]=r.advance(o))&&r.matched)return o}a[1]<o.childNodes.length?n.push([o.childNodes[a[1]++],0,!1]):(a[2]&&r.rewind(),n.pop())}return null}appendChild(t){return this.childNodes.push(t),t instanceof $y&&(t.parentNode=this),t}prependChild(t){return this.childNodes.unshift(t),t instanceof $y&&(t.parentNode=this),t}get firstChild(){return this.childNodes[0]}get lastChild(){return zm(this.childNodes)}get attributes(){if(this._attrs)return this._attrs;this._attrs={};const t=this.rawAttributes;for(const r in t)this._attrs[r]=(0,Hm.decode)(t[r]);return this._attrs}get rawAttributes(){if(this._rawAttrs)return this._rawAttrs;const t={};if(this.rawAttrs){let r;for(;r=hke.exec(this.rawAttrs);)t[r[1]]=r[4]||r[5]||r[6]||""}return this._rawAttrs=t,t}setAttribute(t,r){t==="id"?this.id=r:t==="class"&&(this.classNames=r.split(/\s+/));const n=this.attributes;r===void 0?delete n[t]:n[t]=r+"",this._rawAttrs&&(r===void 0?delete this._rawAttrs[t]:this._rawAttrs[t]=(0,Hm.encode)(r+"")),this.rawAttrs=Object.keys(n).map(i=>i+(n[i]===""?"":'="'+(0,Hm.encode)(n[i])+'"')).join(" ")}removeAttribute(t){this.setAttribute(t,void 0)}setAttributes(t){t.id?this.id=t.id:t.class&&(this.classNames=t.class.split(/\s+/)),this.attributes&&(Object.keys(this.attributes).forEach(r=>delete this.attributes[r]),Object.keys(t).forEach(r=>this.attributes[r]=t[r]+"")),this.rawAttributes&&(Object.keys(this.rawAttributes).forEach(r=>delete this.rawAttributes[r]),Object.keys(t).forEach(r=>this.rawAttributes[r]=(0,Hm.encode)(t[r]+""))),this.rawAttrs=Object.keys(t).map(r=>r+(t[r]===""?"":'="'+(0,Hm.encode)(t[r]+"")+'"')).join(" ")}};qa.HTMLElement=Y4;let U4={};const EF={f145:function(e,t,r,n,i){if(t=t||"",r=r||[],e.id!=t.substr(1))return!1;for(let a=r,o=0;o<a.length;o++)if(e.classNames.indexOf(a[o])===-1)return!1;return!0},f45:function(e,t,r,n,i){r=r||[];for(let a=r,o=0;o<a.length;o++)if(e.classNames.indexOf(a[o])===-1)return!1;return!0},f15:function(e,t,r,n,i){return t=t||"",e.id==t.substr(1)},f1:function(e,t,r,n,i){if(t=t||"",e.id!=t.substr(1))return!1},f5:function(e,t,r,n,i){return!0},f245:function(e,t,r,n,i){n=n||"",i=i||"";let a=e.attributes;for(let o in a){const s=a[o];if(o==n&&s==i)return!0}return!1},f25:function(e,t,r,n,i){n=n||"",i=i||"";let a=e.attributes;for(let o in a){const s=a[o];if(o==n&&s==i)return!0}return!1},f2:function(e,t,r,n,i){n=n||"",i=i||"";let a=e.attributes;for(let o in a){const s=a[o];if(o==n&&s==i)return!0}return!1},f345:function(e,t,r,n,i){if(t=t||"",r=r||[],e.tagName!=t)return!1;for(let a=r,o=0;o<a.length;o++)if(e.classNames.indexOf(a[o])===-1)return!1;return!0},f35:function(e,t,r,n,i){return t=t||"",e.tagName==t},f3:function(e,t,r,n,i){if(t=t||"",e.tagName!=t)return!1}};class yx{constructor(t){this.nextMatch=0,EF.f5=EF.f5,this.matchers=t.split(" ").map(r=>{if(U4[r])return U4[r];const n=r.split("."),i=n[0],a=n.slice(1).sort();let o='"use strict";',s="f",l="",c="";if(i&&i!="*"){let d;if(i[0]=="#")o+="if (el.id != "+JSON.stringify(i.substr(1))+") return false;",s+="1";else if(d=i.match(/^\[\s*(\S+)\s*(=|!=)\s*((((["'])([^\6]*)\6))|(\S*?))\]\s*/)){l=d[1];let f=d[2];if(f!=="="&&f!=="!=")throw new Error("Selector not supported, Expect [key${op}value].op must be =,!=");f==="="&&(f="=="),c=d[7]||d[8],o+=`let attrs = el.attributes;for (let key in attrs){const val = attrs[key]; if (key == "${l}" && val == "${c}"){return true;}} return false;`,s+="2"}else o+="if (el.tagName != "+JSON.stringify(i)+") return false;",s+="3"}a.length>0&&(o+="for (let cls = "+JSON.stringify(a)+", i = 0; i < cls.length; i++) if (el.classNames.indexOf(cls[i]) === -1) return false;",s+="4"),o+="return true;",s+="5";let u={func:EF[s],tagName:i||"",classes:a||"",attr_key:l||"",value:c||""};return o=o||"",U4[r]=u})}advance(t){return this.nextMatch<this.matchers.length&&this.matchers[this.nextMatch].func(t,this.matchers[this.nextMatch].tagName,this.matchers[this.nextMatch].classes,this.matchers[this.nextMatch].attr_key,this.matchers[this.nextMatch].value)?(this.nextMatch++,!0):!1}rewind(){this.nextMatch--}get matched(){return this.nextMatch==this.matchers.length}reset(){this.nextMatch=0}flushCache(){U4={}}}qa.Matcher=yx;const ef=/<!--[^]*?(?=-->)-->|<(\/?)([a-z][-.:0-9_a-z]*)((\s+[a-z][-.:0-9_a-z]*(\s*=\s*("[^"]*"|'([^']*')|([^\s\/>]+)))?)*)\s*(\/?)>/ig,fke=/(^|\s)(id|class)\s*=\s*("([^"]+)"|'([^']+)'|(\S+))/ig,hke=/([a-z][-.:0-9_a-z]*)(\s*=\s*("([^"]*)"|'([^']*)'|(\S+)))?/ig,pke={area:!0,base:!0,br:!0,col:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,source:!0},Yre={li:{li:!0},p:{p:!0,div:!0},b:{div:!0},td:{td:!0,th:!0},th:{td:!0,th:!0},h1:{h1:!0},h2:{h2:!0},h3:{h3:!0},h4:{h4:!0},h5:{h5:!0},h6:{h6:!0}},Ure={li:{ul:!0,ol:!0},a:{div:!0},b:{div:!0},i:{div:!0},p:{div:!0},td:{tr:!0,table:!0},th:{tr:!0,table:!0}},Ake={script:!0,noscript:!0,style:!0,pre:!0};function SF(e,t){const r=new Y4(null);let n=r;const i=[r];let a=0;t=t||{};let o;for(;o=ef.exec(e);){if(a+o[0].length<ef.lastIndex){const s=e.substring(a,ef.lastIndex-o[0].length);n.appendChild(new bx(s))}if(a=ef.lastIndex,o[0][1]=="!"){if(t.comment){const s=e.substring(a-3,a-o[0].length+4);n.appendChild(new Gre(s))}continue}if(t.lowerCaseTagName&&(o[2]=o[2].toLowerCase()),!o[1]&&(!o[9]&&Yre[n.tagName]&&Yre[n.tagName][o[2]]&&(i.pop(),n=zm(i)),n=n.appendChild(new Y4(o[2],o[3].trim())),i.push(n),Ake[o[2]])){let s="</"+o[2]+">",l=e.indexOf(s,ef.lastIndex);if(t[o[2]]){let c;l==-1?c=e.substr(ef.lastIndex):c=e.substring(ef.lastIndex,l),c.length>0&&n.appendChild(new bx(c))}l==-1?a=ef.lastIndex=e.length+1:(a=ef.lastIndex=l+s.length,o[1]="true")}if(o[1]||o[9]||pke[o[2]])for(;;)if(n.tagName==o[2]){i.pop(),n=zm(i);break}else{if(Ure[n.tagName]&&Ure[n.tagName][o[2]]){i.pop(),n=zm(i);continue}break}}for(a<e.length&&r.appendChild(new bx(e.substring(a))),r.valid=i.length===1;i.length>1;){const s=i.pop(),l=zm(i);s.parentNode&&s.parentNode instanceof Y4&&s.parentNode.parentNode&&(s.parentNode===l&&s.tagName===l.tagName?(l.removeChild(s),s.childNodes.forEach(c=>{l.parentNode.appendChild(c)}),i.pop()):(l.removeChild(s),s.childNodes.forEach(c=>{l.appendChild(c)})))}return r}qa.parse=SF;const gke=["html","body","address","article","aside","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","header","hr","li","main","nav","noscript","ol","p","pre","section","tfoot","table","tbody","ul","video","th","td","tr","h1","h2","h3","h4","h5","h6"];function vke(e){return e.nodeType===Uo.ELEMENT_NODE&&e.tagName&&gke.includes(e.tagName.toLowerCase())}qa.isBlock=vke,fx.Butt,fx.Round,fx.Projecting,z4.EvenOdd,z4.NonZero,hx.Bevel,hx.Miter,hx.Round;let mke=class{constructor(t,r,n){Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"text",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"styles",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"section",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contentHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"contentWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"wrappedWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"minReadableWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"minWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:0}),this.styles=r,this.section=n,this.raw=t;const i=/\r\n|\r|\n/g;this.text=t.split(i)}getContentHeight(){const t=Array.isArray(this.text)?this.text.length:1,r=$p(this.styles.fontSize)*this.styles.lineHeight,n=this.padding("top")+this.padding("bottom"),i=t*r+n;return Math.max(i,this.styles.minCellHeight)}padding(t){return this.styles.cellPadding[t]}},bke=class{constructor(t){Object.defineProperty(this,"index",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"wrappedWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"minReadableWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"minWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:0}),this.index=t}getMaxCustomCellWidth(t){let r=0;for(const n of t.allRows()){const i=n.cells[this.index];r=Math.max(r,i.styles.cellWidth)}return r}},yke=class{constructor(t,r,n,i){Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"index",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"section",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cells",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:0}),this.raw=t,this.index=r,this.section=n,this.cells=i}getMaxCellHeight(t){return t.reduce((r,n)=>{var i;return Math.max(r,((i=this.cells[n.index])==null?void 0:i.height)||0)},0)}getMinimumRowHeight(t){return t.reduce((r,n)=>{const i=this.cells[n.index];if(!i)return 0;const o=i.padding("top")+i.padding("bottom")+i.styles.lineHeight;return o>r?o:r},0)}},wke=class SCe{constructor(t,r){Object.defineProperty(this,"settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"styles",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"columns",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"head",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.settings=t.settings,this.styles=t.styles,this.columns=r.columns,this.head=r.head,this.body=r.body}static async create(t){const{input:r,content:n,font:i,_cache:a}=t,o=new SCe(r,n);return await Cke({table:o,font:i,_cache:a}),o}getHeadHeight(){return this.head.reduce((t,r)=>t+r.getMaxCellHeight(this.columns),0)}getBodyHeight(){return this.body.reduce((t,r)=>t+r.getMaxCellHeight(this.columns),0)}allRows(){return this.head.concat(this.body)}getWidth(){return this.settings.tableWidth}getHeight(){return(this.settings.showHead?this.getHeadHeight():0)+this.getBodyHeight()}};async function Cke(e){const{table:t,font:r,_cache:n}=e,i=l=>mm(l,r,n);await Ike(t,i);const a=[];let o=0;t.columns.forEach(l=>{const c=l.getMaxCustomCellWidth(t);c?l.width=c:(l.width=l.wrappedWidth,a.push(l)),o+=l.width});let s=t.getWidth()-o;s&&(s=IF(a,s,l=>Math.max(l.minReadableWidth,l.minWidth))),s&&(s=IF(a,s,l=>l.minWidth)),s=Math.abs(s),Eke(t),await Ske(t,i),xke(t)}function xke(e){const t={};let r=1;const n=e.allRows();for(let i=0;i<n.length;i++){const a=n[i];for(const o of e.columns){const s=t[o.index];if(r>1)r--,delete a.cells[o.index];else if(s)s.cell.height+=a.height,r=1,delete a.cells[o.index],s.left--,s.left<=1&&delete t[o.index];else{const l=a.cells[o.index];if(!l)continue;l.height=a.height}}}}function Eke(e){const t=e.allRows();for(let r=0;r<t.length;r++){const n=t[r];let i=0,a=0;for(let o=0;o<e.columns.length;o++){const s=e.columns[o];if(a-=1,a>1&&e.columns[o+1])i+=s.width,delete n.cells[s.index];else{const l=n.cells[s.index];if(!l)continue;a=1,i=0,l.width=s.width+i}}}}async function Ske(e,t){const r={count:0,height:0};for(const n of e.allRows()){for(const i of e.columns){const a=n.cells[i.index];if(!a)continue;const o=await t(a.styles.fontName);a.text=Cee({value:a.raw,characterSpacing:a.styles.characterSpacing,boxWidthInPt:kd(a.width),fontSize:a.styles.fontSize,fontKitFont:o}),a.contentHeight=a.getContentHeight();let s=a.contentHeight;r&&r.count>0&&r.height>s&&(s=r.height),s>n.height&&(n.height=s)}r.count--}}function IF(e,t,r){const n=t,i=e.reduce((a,o)=>a+o.wrappedWidth,0);for(let a=0;a<e.length;a++){const o=e[a],s=o.wrappedWidth/i,l=n*s,c=o.width+l,u=r(o),d=c<u?u:c;t-=d-o.width,o.width=d}if(t=Math.round(t*1e10)/1e10,t){const a=e.filter(o=>t<0?o.width>r(o):!0);a.length&&(t=IF(a,t,r))}return t}async function Ike(e,t){for(const r of e.allRows())for(const n of e.columns){const i=r.cells[n.index];if(!i)continue;const a=i.padding("right")+i.padding("left"),o=await t(i.styles.fontName);i.contentWidth=Kre(i,o)+a;const s=Kre(Object.assign(i,{text:i.text.join(" ").split(/\s+/)}),o);i.minReadableWidth=s+a,i.minWidth=i.styles.cellWidth,i.wrappedWidth=i.styles.cellWidth}for(const r of e.allRows())for(const n of e.columns){const i=r.cells[n.index];if(i)n.wrappedWidth=Math.max(n.wrappedWidth,i.wrappedWidth),n.minWidth=Math.max(n.minWidth,i.minWidth),n.minReadableWidth=Math.max(n.minReadableWidth,i.minReadableWidth);else{const a=e.styles.columnStyles[n.index]||{},o=a.cellWidth||a.minCellWidth;o&&(n.minWidth=o,n.wrappedWidth=o)}}}function Kre(e,t){const r=e.text,n=Array.isArray(r)?r:[r],i=e.styles.fontSize,a=e.styles.characterSpacing;return n.map(s=>PC(s,t,i,a)).reduce((s,l)=>Math.max(s,l),0)}function qre(e,t,r,n,i){const a={};return t.map((s,l)=>{let c=0;const u={};let d=0,f=0;for(const p of r)if(a[p.index]==null||a[p.index].left===0)if(f===0){let A;Array.isArray(s)?A=s[p.index-d-c]:A=s[p.index];const v=Mke(e,p,l,n,i),g=new mke(A,v,e);u[p.index]=g,f=0,a[p.index]={left:0,times:f}}else f--,d++;else a[p.index].left--,f=a[p.index].times,c++;return new yke(s,l,e,u)})}function Bke(e,t){const r=e.content,n=r.columns.map(a=>new bke(a)),i=e.styles;return{columns:n,head:qre("head",r.head,n,i,t),body:qre("body",r.body,n,i,t)}}function Mke(e,t,r,n,i){let a;e==="head"?a=n.headStyles:e==="body"&&(a=n.bodyStyles);const o=Object.assign({},n.styles,a),s=n.columnStyles[t.index]||n.columnStyles[t.index]||{},l=e==="body"&&r%2===0?Object.assign({},n.alternateRowStyles):{};return Object.assign({fontName:i,backgroundColor:"",textColor:"#000000",lineHeight:1,characterSpacing:0,alignment:"left",verticalAlignment:"middle",fontSize:10,cellPadding:5,lineColor:"#000000",lineWidth:0,minCellHeight:0,minCellWidth:0},o,l,s)}function Xre(e){return{fontName:e.fontName,alignment:e.alignment,verticalAlignment:e.verticalAlignment,fontSize:e.fontSize,lineHeight:e.lineHeight,characterSpacing:e.characterSpacing,backgroundColor:e.backgroundColor,textColor:e.fontColor,lineColor:e.borderColor,lineWidth:e.borderWidth,cellPadding:e.padding}}function Rke(e,t){const r=e.headWidthPercentages.reduce((o,s,l)=>({...o,[l]:{cellWidth:e.width*(s/100)}}),{}),n=Object.entries(e.columnStyles.alignment||{}).reduce((o,[s,l])=>({...o,[s]:{alignment:l}}),{}),i=new Set([...Object.keys(r).map(Number),...Object.keys(n).map(Number)]),a=Array.from(i).reduce((o,s)=>{const l=r[s]||{},c=n[s]||{};return{...o,[s]:{...l,...c}}},{});return{head:[e.head],body:t,showHead:e.showHead,startY:e.position.y,tableWidth:e.width,tableLineColor:e.tableStyles.borderColor,tableLineWidth:e.tableStyles.borderWidth,headStyles:Xre(e.headStyles),bodyStyles:Xre(e.bodyStyles),alternateRowStyles:{backgroundColor:e.bodyStyles.alternateBackgroundColor},columnStyles:a,margin:{top:0,right:0,left:e.position.x,bottom:0}}}function Pke(e){const t={styles:{},headStyles:{},bodyStyles:{},alternateRowStyles:{},columnStyles:{}};for(const r of Object.keys(t))if(r==="columnStyles"){const n=e[r];t.columnStyles=Object.assign({},n)}else{const i=[e].map(a=>a[r]||{});t[r]=Object.assign({},i[0],i[1],i[2])}return t}function Dke(e){const t=e.head||[],r=e.body||[];return{columns:(t[0]||r[0]||[]).map((i,a)=>a),head:t,body:r}}function Tke(e,t){const r=Rke(e,t),n=Pke(r),i={startY:r.startY,margin:r.margin,tableWidth:r.tableWidth,showHead:r.showHead,tableLineWidth:r.tableLineWidth??0,tableLineColor:r.tableLineColor??""};return{content:Dke(r),styles:n,settings:i}}function _ke(e,t){const{options:r,_cache:n,basePdf:i}=t;uc(i)||console.warn(`[@pdfme/schema/table]When specifying a custom PDF for basePdf, you cannot use features such as page breaks or re-layout of other elements.To utilize these features, please define basePdf as follows:
83
- { width: number; height: number; padding: [number, number, number, number]; }`);const a=Ma(t.schema),{start:o}=a.__bodyRange||{start:0};if(o%2===1){const d=a.bodyStyles.alternateBackgroundColor;a.bodyStyles.alternateBackgroundColor=a.bodyStyles.backgroundColor,a.bodyStyles.backgroundColor=d}a.showHead=a.showHead===!1?!1:!a.__isSplit;const s=Tke(a,e),l=r.font||wh(),c=Kv(l),u=Bke(s,c);return wke.create({input:s,content:u,font:l,_cache:n})}const Oke=1,Zre="^#(?:[A-Fa-f0-9]{6})$",Jre=e=>typeof e=="string"?JSON.parse(e||"[]"):e||[],kke=(e,t)=>{const r=Jre(e);return t?r.slice(t.start,t.end):r},Fke=async(e,t)=>{var a;if(t.schema.type!=="table")return Promise.resolve([t.schema.height]);const r=t.schema,n=((a=r.__bodyRange)==null?void 0:a.start)===0?Jre(e):kke(e,r.__bodyRange);return(await _ke(n,t)).allRows().map(o=>o.height)},Lke=({schema:e,pageHeight:t,applyRotateTranslate:r=!0})=>{const{width:n,height:i,position:a,rotate:o,opacity:s}=e,{x:l,y:c}=a,u=o?-o:0,d=kd(n),f=kd(i);let p=kd(l),A=t-kd(c)-f;if(u&&r){const v={x:p+d/2,y:t-kd(c)-f/2},g=Wm({x:p,y:A},v,u);p=g.x,A=g.y}return{position:{x:p,y:A},height:f,width:d,rotate:WOe(u),opacity:s}},Wm=(e,t,r)=>{const n=VOe(r),i=Math.cos(n)*(e.x-t.x)-Math.sin(n)*(e.y-t.y)+t.x,a=Math.sin(n)*(e.x-t.x)+Math.cos(n)*(e.y-t.y)+t.y;return{x:i,y:a}},Nke=Fke,BF=(e,t)=>e==="designer"||e==="form"&&t.readOnly!==!0,$ke=e=>(e.slice(0,1)==="#"&&(e=e.slice(1)),e.length===3&&(e=e.slice(0,1)+e.slice(0,1)+e.slice(1,2)+e.slice(1,2)+e.slice(2,3)+e.slice(2,3)),[e.slice(0,2),e.slice(2,4),e.slice(4,6)].map(t=>parseInt(t,16))),jke=e=>{if(e){if(!TK(e))throw new Error(`Invalid hex color value ${e}`);const[r,n,i]=$ke(e);return JOe(r/255,n/255,i/255)}},Qke=e=>{if(e){if(!TK(e))throw new Error(`Invalid hex color value ${e}`);e=e.replace("#","");const r=e.substring(0,6),n=e.substring(6,8),i=n?parseInt(n,16)/255:1;let a=parseInt(r.substring(0,2),16)/255,o=parseInt(r.substring(2,4),16)/255,s=parseInt(r.substring(4,6),16)/255;a=a*i+(1-i),o=o*i+(1-i),s=s*i+(1-i);const l=1-Math.max(a,o,s),c=a===0?0:(1-a-l)/(1-l),u=o===0?0:(1-o-l)/(1-l),d=s===0?0:(1-s-l)/(1-l);return eke(c,u,d,l)}},ene=(e,t)=>(t==null?void 0:t.toLocaleLowerCase())=="cmyk"?Qke(e):jke(e),Hke=async e=>{const{pdfDoc:t,font:r,_cache:n}=e;if(n.has(t))return n.get(t);const i=await Promise.all(Object.values(r).map(async o=>{let s=o.data;return typeof s=="string"&&s.startsWith("http")&&(s=await fetch(s).then(l=>l.arrayBuffer())),t.embedFont(s,{subset:typeof o.subset>"u"?!0:o.subset})})),a=Object.keys(r).reduce((o,s,l)=>Object.assign(o,{[s]:i[l]}),{});return n.set(t,a),a},zke=async({value:e,font:t,schema:r,colorType:n,_cache:i})=>{const a=r.dynamicFontSize?await M6({textSchema:r,font:t,value:e,_cache:i}):r.fontSize??am,o=ene(r.fontColor||D3,n);return{alignment:r.alignment??R3,verticalAlignment:r.verticalAlignment??dC,lineHeight:r.lineHeight??om,characterSpacing:r.characterSpacing??fC,fontSize:a,color:o}},Wke=async e=>{const{value:t,pdfDoc:r,pdfLib:n,page:i,options:a,schema:o,_cache:s}=e;if(!t)return;const{font:l=wh(),colorType:c}=a,[u,d,f]=await Promise.all([Hke({pdfDoc:r,font:l,_cache:s}),mm(o.fontName,l,s),zke({value:t,font:l,schema:o,_cache:s,colorType:c})]),{fontSize:p,color:A,alignment:v,verticalAlignment:g,lineHeight:m,characterSpacing:y}=f,b=o.fontName?o.fontName:Kv(l),C=u&&u[b],w=i.getHeight(),{width:x,height:E,rotate:S,position:{x:I,y:B},opacity:R}=Lke({schema:o,pageHeight:w,applyRotateTranslate:!1});if(o.backgroundColor){const T=ene(o.backgroundColor,c);i.drawRectangle({x:I,y:B,width:x,height:E,rotate:S,color:T})}i.pushOperators(n.setCharacterSpacing(y??fC));const _=I6(d,p),O=nTe(d,p),F=m===0?0:(m-1)*p/2,k=Cee({value:t,characterSpacing:y,fontSize:p,fontKitFont:d,boxWidthInPt:x});let D=0;if(g===P3)D=_+F;else{const T=m*p*(k.length-1);g===Rk?D=E-T+O-F:g===Mk&&(D=(E-T-_+O)/2+_)}const M={x:I+x/2,y:w-kd(o.position.y)-E/2};k.forEach((T,L)=>{const N=PC(T,d,p,y),$=I6(d,p),U=m*p*L;let Y=I;v==="center"?Y+=(x-N)/2:v==="right"&&(Y+=x-N);let V=w-kd(o.position.y)-D-U;if(o.strikethrough&&N>0){const K=Y+N+1,ne=V+$/3;i.drawLine({start:Wm({x:Y,y:ne},M,S.angle),end:Wm({x:K,y:ne},M,S.angle),thickness:1/12*p,color:A,opacity:R})}if(o.underline&&N>0){const K=Y+N+1,ne=V-$/12;i.drawLine({start:Wm({x:Y,y:ne},M,S.angle),end:Wm({x:K,y:ne},M,S.angle),thickness:1/12*p,color:A,opacity:R})}if(S.angle!==0){const K=Wm({x:Y,y:V},M,S.angle);Y=K.x,V=K.y}i.drawText(T,{x:Y,y:V,rotate:S,size:p,color:A,lineHeight:m*p,font:C,opacity:R})})},Vke='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M6.85 7.08C6.85 4.37 9.45 3 12.24 3c1.64 0 3 .49 3.9 1.28c.77.65 1.46 1.73 1.46 3.24h-3.01c0-.31-.05-.59-.15-.85c-.29-.86-1.2-1.28-2.25-1.28c-1.86 0-2.34 1.02-2.34 1.7c0 .48.25.88.74 1.21c.38.25.77.48 1.41.7H7.39c-.21-.34-.54-.89-.54-1.92zM21 12v-2H3v2h9.62c1.15.45 1.96.75 1.96 1.97c0 1-.81 1.67-2.28 1.67c-1.54 0-2.93-.54-2.93-2.51H6.4c0 .55.08 1.13.24 1.58c.81 2.29 3.29 3.3 5.67 3.3c2.27 0 5.3-.89 5.3-4.05c0-.3-.01-1.16-.48-1.94H21V12z" fill="currentColor"></path></svg>',Gke='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z" fill="currentColor"></path></svg>',Yke='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z" fill="currentColor"></path></svg>',Uke='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z" fill="currentColor"></path></svg>',Kke='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z" fill="currentColor"></path></svg>',qke='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M8 11h3v10h2V11h3l-4-4l-4 4zM4 3v2h16V3H4z" fill="currentColor"></path></svg>',Xke='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M8 19h3v4h2v-4h3l-4-4l-4 4zm8-14h-3V1h-2v4H8l4 4l4-4zM4 11v2h16v-2H4z" fill="currentColor"></path></svg>',Zke='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M16 13h-3V3h-2v10H8l4 4l4-4zM4 19v2h16v-2H4z" fill="currentColor"></path></svg>';var $u;(function(e){e.STRIKETHROUGH="strikethrough",e.UNDERLINE="underline",e.ALIGNMENT="alignment",e.VERTICAL_ALIGNMENT="verticalAlignment"})($u||($u={}));function Jke(e){const t=[{key:$u.STRIKETHROUGH,icon:Vke,type:"boolean"},{key:$u.UNDERLINE,icon:Gke,type:"boolean"},{key:$u.ALIGNMENT,icon:Yke,type:"select",value:R3},{key:$u.ALIGNMENT,icon:Uke,type:"select",value:m4e},{key:$u.ALIGNMENT,icon:Kke,type:"select",value:b4e},{key:$u.VERTICAL_ALIGNMENT,icon:qke,type:"select",value:dC},{key:$u.VERTICAL_ALIGNMENT,icon:Xke,type:"select",value:Mk},{key:$u.VERTICAL_ALIGNMENT,icon:Zke,type:"select",value:Rk}];return{title:e("schemas.text.format"),widget:"ButtonGroup",buttons:t,span:17}}const e6e={schema:({options:e,activeSchema:t,i18n:r})=>{const n=e.font||{[eO]:{data:"",fallback:!0}},i=Object.keys(n),a=Kv(n),o=!!(t!=null&&t.dynamicFontSize);return{fontName:{title:r("schemas.text.fontName"),type:"string",widget:"select",default:a,props:{options:i.map(l=>({label:l,value:l}))},span:12},fontSize:{title:r("schemas.text.size"),type:"number",widget:"inputNumber",span:6,disabled:o,props:{min:0}},characterSpacing:{title:r("schemas.text.spacing"),type:"number",widget:"inputNumber",span:6,props:{min:0}},formatter:Jke(r),lineHeight:{title:r("schemas.text.lineHeight"),type:"number",widget:"inputNumber",props:{step:.1,min:0},span:7},useDynamicFontSize:{type:"boolean",widget:"UseDynamicFontSize",bind:!1,span:16},dynamicFontSize:{type:"object",widget:"card",column:3,properties:{min:{title:r("schemas.text.min"),type:"number",widget:"inputNumber",hidden:!o,props:{min:0}},max:{title:r("schemas.text.max"),type:"number",widget:"inputNumber",hidden:!o,props:{min:0}},fit:{title:r("schemas.text.fit"),type:"string",widget:"select",hidden:!o,props:{options:[{label:r("schemas.horizontal"),value:Dk},{label:r("schemas.vertical"),value:Pk}]}}}},fontColor:{title:r("schemas.textColor"),type:"string",widget:"color",rules:[{pattern:Zre,message:r("validation.hexColor")}]},backgroundColor:{title:r("schemas.bgColor"),type:"string",widget:"color",rules:[{pattern:Zre,message:r("validation.hexColor")}]}}},widgets:{UseDynamicFontSize:e=>{const{rootElement:t,changeSchemas:r,activeSchema:n,i18n:i}=e,a=document.createElement("input");a.type="checkbox",a.checked=!!(n!=null&&n.dynamicFontSize),a.onchange=l=>{const c=l.target.checked?{min:w4e,max:C4e,fit:fZ}:void 0;r([{key:"dynamicFontSize",value:c,schemaId:n.id}])};const o=document.createElement("label"),s=document.createElement("span");s.innerText=i("schemas.text.dynamicFontSize")||"",s.style.cssText="margin-left: 0.5rem",o.style.cssText="display: flex; width: 100%;",o.appendChild(a),o.appendChild(s),t.appendChild(o)}},defaultSchema:{name:"",type:"text",content:"Type Something...",position:{x:0,y:0},width:45,height:10,rotate:0,alignment:R3,verticalAlignment:dC,fontSize:am,lineHeight:om,characterSpacing:fC,dynamicFontSize:void 0,fontColor:D3,fontName:void 0,backgroundColor:"",opacity:Oke,strikethrough:!1,underline:!1}},t6e=(e,t)=>{const r={},n=a=>{if(a in r)return r[a];const o=t.hasGlyphForCodePoint(a.codePointAt(0)||0);return r[a]=o,o};return e.split(/(\r\n|\n|\r)/).map(a=>/\r\n|\n|\r/.test(a)?a:a.split("").map(o=>/\s/.test(o)||o.charCodeAt(0)<32||n(o)?o:"〿").join("")).join("")},r6e=async e=>{const{value:t,schema:r,mode:n,onChange:i,stopEditing:a,tabIndex:o,placeholder:s,options:l,_cache:c}=e,u=BF(n,r)&&s&&!t,d=g=>{let m=g.innerText;return m.endsWith(`
83
+ { width: number; height: number; padding: [number, number, number, number]; }`);const a=Ma(t.schema),{start:o}=a.__bodyRange||{start:0};if(o%2===1){const d=a.bodyStyles.alternateBackgroundColor;a.bodyStyles.alternateBackgroundColor=a.bodyStyles.backgroundColor,a.bodyStyles.backgroundColor=d}a.showHead=a.showHead===!1?!1:!a.__isSplit;const s=Tke(a,e),l=r.font||wh(),c=Kv(l),u=Bke(s,c);return wke.create({input:s,content:u,font:l,_cache:n})}const Oke=1,Zre="^#(?:[A-Fa-f0-9]{6})$",Jre=e=>typeof e=="string"?JSON.parse(e||"[]"):e||[],kke=(e,t)=>{const r=Jre(e);return t?r.slice(t.start,t.end):r},Fke=async(e,t)=>{var a;if(t.schema.type!=="table")return Promise.resolve([t.schema.height]);const r=t.schema,n=((a=r.__bodyRange)==null?void 0:a.start)===0?Jre(e):kke(e,r.__bodyRange),i=await _ke(n,t);return r.showHead?i.allRows().map(o=>o.height):[0].concat(i.body.map(o=>o.height))},Lke=({schema:e,pageHeight:t,applyRotateTranslate:r=!0})=>{const{width:n,height:i,position:a,rotate:o,opacity:s}=e,{x:l,y:c}=a,u=o?-o:0,d=kd(n),f=kd(i);let p=kd(l),A=t-kd(c)-f;if(u&&r){const v={x:p+d/2,y:t-kd(c)-f/2},g=Wm({x:p,y:A},v,u);p=g.x,A=g.y}return{position:{x:p,y:A},height:f,width:d,rotate:WOe(u),opacity:s}},Wm=(e,t,r)=>{const n=VOe(r),i=Math.cos(n)*(e.x-t.x)-Math.sin(n)*(e.y-t.y)+t.x,a=Math.sin(n)*(e.x-t.x)+Math.cos(n)*(e.y-t.y)+t.y;return{x:i,y:a}},Nke=Fke,BF=(e,t)=>e==="designer"||e==="form"&&t.readOnly!==!0,$ke=e=>(e.slice(0,1)==="#"&&(e=e.slice(1)),e.length===3&&(e=e.slice(0,1)+e.slice(0,1)+e.slice(1,2)+e.slice(1,2)+e.slice(2,3)+e.slice(2,3)),[e.slice(0,2),e.slice(2,4),e.slice(4,6)].map(t=>parseInt(t,16))),jke=e=>{if(e){if(!TK(e))throw new Error(`Invalid hex color value ${e}`);const[r,n,i]=$ke(e);return JOe(r/255,n/255,i/255)}},Qke=e=>{if(e){if(!TK(e))throw new Error(`Invalid hex color value ${e}`);e=e.replace("#","");const r=e.substring(0,6),n=e.substring(6,8),i=n?parseInt(n,16)/255:1;let a=parseInt(r.substring(0,2),16)/255,o=parseInt(r.substring(2,4),16)/255,s=parseInt(r.substring(4,6),16)/255;a=a*i+(1-i),o=o*i+(1-i),s=s*i+(1-i);const l=1-Math.max(a,o,s),c=a===0?0:(1-a-l)/(1-l),u=o===0?0:(1-o-l)/(1-l),d=s===0?0:(1-s-l)/(1-l);return eke(c,u,d,l)}},ene=(e,t)=>(t==null?void 0:t.toLocaleLowerCase())=="cmyk"?Qke(e):jke(e),Hke=async e=>{const{pdfDoc:t,font:r,_cache:n}=e;if(n.has(t))return n.get(t);const i=await Promise.all(Object.values(r).map(async o=>{let s=o.data;return typeof s=="string"&&s.startsWith("http")&&(s=await fetch(s).then(l=>l.arrayBuffer())),t.embedFont(s,{subset:typeof o.subset>"u"?!0:o.subset})})),a=Object.keys(r).reduce((o,s,l)=>Object.assign(o,{[s]:i[l]}),{});return n.set(t,a),a},zke=async({value:e,font:t,schema:r,colorType:n,_cache:i})=>{const a=r.dynamicFontSize?await M6({textSchema:r,font:t,value:e,_cache:i}):r.fontSize??am,o=ene(r.fontColor||D3,n);return{alignment:r.alignment??R3,verticalAlignment:r.verticalAlignment??dC,lineHeight:r.lineHeight??om,characterSpacing:r.characterSpacing??fC,fontSize:a,color:o}},Wke=async e=>{const{value:t,pdfDoc:r,pdfLib:n,page:i,options:a,schema:o,_cache:s}=e;if(!t)return;const{font:l=wh(),colorType:c}=a,[u,d,f]=await Promise.all([Hke({pdfDoc:r,font:l,_cache:s}),mm(o.fontName,l,s),zke({value:t,font:l,schema:o,_cache:s,colorType:c})]),{fontSize:p,color:A,alignment:v,verticalAlignment:g,lineHeight:m,characterSpacing:y}=f,b=o.fontName?o.fontName:Kv(l),C=u&&u[b],w=i.getHeight(),{width:x,height:E,rotate:S,position:{x:I,y:B},opacity:R}=Lke({schema:o,pageHeight:w,applyRotateTranslate:!1});if(o.backgroundColor){const T=ene(o.backgroundColor,c);i.drawRectangle({x:I,y:B,width:x,height:E,rotate:S,color:T})}i.pushOperators(n.setCharacterSpacing(y??fC));const _=I6(d,p),O=nTe(d,p),F=m===0?0:(m-1)*p/2,k=Cee({value:t,characterSpacing:y,fontSize:p,fontKitFont:d,boxWidthInPt:x});let D=0;if(g===P3)D=_+F;else{const T=m*p*(k.length-1);g===Rk?D=E-T+O-F:g===Mk&&(D=(E-T-_+O)/2+_)}const M={x:I+x/2,y:w-kd(o.position.y)-E/2};k.forEach((T,L)=>{const N=PC(T,d,p,y),$=I6(d,p),U=m*p*L;let Y=I;v==="center"?Y+=(x-N)/2:v==="right"&&(Y+=x-N);let V=w-kd(o.position.y)-D-U;if(o.strikethrough&&N>0){const K=Y+N+1,ne=V+$/3;i.drawLine({start:Wm({x:Y,y:ne},M,S.angle),end:Wm({x:K,y:ne},M,S.angle),thickness:1/12*p,color:A,opacity:R})}if(o.underline&&N>0){const K=Y+N+1,ne=V-$/12;i.drawLine({start:Wm({x:Y,y:ne},M,S.angle),end:Wm({x:K,y:ne},M,S.angle),thickness:1/12*p,color:A,opacity:R})}if(S.angle!==0){const K=Wm({x:Y,y:V},M,S.angle);Y=K.x,V=K.y}i.drawText(T,{x:Y,y:V,rotate:S,size:p,color:A,lineHeight:m*p,font:C,opacity:R})})},Vke='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M6.85 7.08C6.85 4.37 9.45 3 12.24 3c1.64 0 3 .49 3.9 1.28c.77.65 1.46 1.73 1.46 3.24h-3.01c0-.31-.05-.59-.15-.85c-.29-.86-1.2-1.28-2.25-1.28c-1.86 0-2.34 1.02-2.34 1.7c0 .48.25.88.74 1.21c.38.25.77.48 1.41.7H7.39c-.21-.34-.54-.89-.54-1.92zM21 12v-2H3v2h9.62c1.15.45 1.96.75 1.96 1.97c0 1-.81 1.67-2.28 1.67c-1.54 0-2.93-.54-2.93-2.51H6.4c0 .55.08 1.13.24 1.58c.81 2.29 3.29 3.3 5.67 3.3c2.27 0 5.3-.89 5.3-4.05c0-.3-.01-1.16-.48-1.94H21V12z" fill="currentColor"></path></svg>',Gke='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z" fill="currentColor"></path></svg>',Yke='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z" fill="currentColor"></path></svg>',Uke='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z" fill="currentColor"></path></svg>',Kke='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z" fill="currentColor"></path></svg>',qke='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M8 11h3v10h2V11h3l-4-4l-4 4zM4 3v2h16V3H4z" fill="currentColor"></path></svg>',Xke='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M8 19h3v4h2v-4h3l-4-4l-4 4zm8-14h-3V1h-2v4H8l4 4l4-4zM4 11v2h16v-2H4z" fill="currentColor"></path></svg>',Zke='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M16 13h-3V3h-2v10H8l4 4l4-4zM4 19v2h16v-2H4z" fill="currentColor"></path></svg>';var $u;(function(e){e.STRIKETHROUGH="strikethrough",e.UNDERLINE="underline",e.ALIGNMENT="alignment",e.VERTICAL_ALIGNMENT="verticalAlignment"})($u||($u={}));function Jke(e){const t=[{key:$u.STRIKETHROUGH,icon:Vke,type:"boolean"},{key:$u.UNDERLINE,icon:Gke,type:"boolean"},{key:$u.ALIGNMENT,icon:Yke,type:"select",value:R3},{key:$u.ALIGNMENT,icon:Uke,type:"select",value:m4e},{key:$u.ALIGNMENT,icon:Kke,type:"select",value:b4e},{key:$u.VERTICAL_ALIGNMENT,icon:qke,type:"select",value:dC},{key:$u.VERTICAL_ALIGNMENT,icon:Xke,type:"select",value:Mk},{key:$u.VERTICAL_ALIGNMENT,icon:Zke,type:"select",value:Rk}];return{title:e("schemas.text.format"),widget:"ButtonGroup",buttons:t,span:17}}const e6e={schema:({options:e,activeSchema:t,i18n:r})=>{const n=e.font||{[eO]:{data:"",fallback:!0}},i=Object.keys(n),a=Kv(n),o=!!(t!=null&&t.dynamicFontSize);return{fontName:{title:r("schemas.text.fontName"),type:"string",widget:"select",default:a,props:{options:i.map(l=>({label:l,value:l}))},span:12},fontSize:{title:r("schemas.text.size"),type:"number",widget:"inputNumber",span:6,disabled:o,props:{min:0}},characterSpacing:{title:r("schemas.text.spacing"),type:"number",widget:"inputNumber",span:6,props:{min:0}},formatter:Jke(r),lineHeight:{title:r("schemas.text.lineHeight"),type:"number",widget:"inputNumber",props:{step:.1,min:0},span:7},useDynamicFontSize:{type:"boolean",widget:"UseDynamicFontSize",bind:!1,span:16},dynamicFontSize:{type:"object",widget:"card",column:3,properties:{min:{title:r("schemas.text.min"),type:"number",widget:"inputNumber",hidden:!o,props:{min:0}},max:{title:r("schemas.text.max"),type:"number",widget:"inputNumber",hidden:!o,props:{min:0}},fit:{title:r("schemas.text.fit"),type:"string",widget:"select",hidden:!o,props:{options:[{label:r("schemas.horizontal"),value:Dk},{label:r("schemas.vertical"),value:Pk}]}}}},fontColor:{title:r("schemas.textColor"),type:"string",widget:"color",rules:[{pattern:Zre,message:r("validation.hexColor")}]},backgroundColor:{title:r("schemas.bgColor"),type:"string",widget:"color",rules:[{pattern:Zre,message:r("validation.hexColor")}]}}},widgets:{UseDynamicFontSize:e=>{const{rootElement:t,changeSchemas:r,activeSchema:n,i18n:i}=e,a=document.createElement("input");a.type="checkbox",a.checked=!!(n!=null&&n.dynamicFontSize),a.onchange=l=>{const c=l.target.checked?{min:w4e,max:C4e,fit:fZ}:void 0;r([{key:"dynamicFontSize",value:c,schemaId:n.id}])};const o=document.createElement("label"),s=document.createElement("span");s.innerText=i("schemas.text.dynamicFontSize")||"",s.style.cssText="margin-left: 0.5rem",o.style.cssText="display: flex; width: 100%;",o.appendChild(a),o.appendChild(s),t.appendChild(o)}},defaultSchema:{name:"",type:"text",content:"Type Something...",position:{x:0,y:0},width:45,height:10,rotate:0,alignment:R3,verticalAlignment:dC,fontSize:am,lineHeight:om,characterSpacing:fC,dynamicFontSize:void 0,fontColor:D3,fontName:void 0,backgroundColor:"",opacity:Oke,strikethrough:!1,underline:!1}},t6e=(e,t)=>{const r={},n=a=>{if(a in r)return r[a];const o=t.hasGlyphForCodePoint(a.codePointAt(0)||0);return r[a]=o,o};return e.split(/(\r\n|\n|\r)/).map(a=>/\r\n|\n|\r/.test(a)?a:a.split("").map(o=>/\s/.test(o)||o.charCodeAt(0)<32||n(o)?o:"〿").join("")).join("")},r6e=async e=>{const{value:t,schema:r,mode:n,onChange:i,stopEditing:a,tabIndex:o,placeholder:s,options:l,_cache:c}=e,u=BF(n,r)&&s&&!t,d=g=>{let m=g.innerText;return m.endsWith(`
84
84
  `)&&(m=m.slice(0,-1)),m},f=(l==null?void 0:l.font)||wh(),[p,A]=await Promise.all([mm(r.fontName,f,c),n6e(e,u?s:t)]),v=t6e(t,p);if(!BF(n,r)){A.innerHTML=v.split("").map((g,m)=>`<span style="letter-spacing:${String(t).length===m+1?0:"inherit"};">${g}</span>`).join("");return}if(i6e(A),A.tabIndex=o||0,A.innerText=n==="designer"?t:v,A.addEventListener("blur",g=>{i&&i({key:"content",value:d(g.target)}),a&&a()}),r.dynamicFontSize){let g;const m=(l==null?void 0:l.font)||wh(),y=await mm(r.fontName,m,c);A.addEventListener("keyup",()=>{setTimeout(()=>{(async()=>{if(!A.textContent)return;g=await M6({textSchema:r,font:m,value:d(A),startingFontSize:g,_cache:c}),A.style.fontSize=`${g}pt`;const{topAdj:b,bottomAdj:C}=wee(y,g??r.fontSize??am,r.lineHeight??om,r.verticalAlignment??dC);A.style.paddingTop=`${b}px`,A.style.marginBottom=`${C}px`})()},0)})}u&&(A.style.color=y4e,A.addEventListener("focus",()=>{A.innerText===s&&(A.innerText="",A.style.color=r.fontColor??D3)})),n==="designer"&&setTimeout(()=>{A.focus();const g=window.getSelection(),m=document.createRange();g&&m&&(m.selectNodeContents(A),m.collapse(!1),g==null||g.removeAllRanges(),g==null||g.addRange(m))})},n6e=async(e,t)=>{const{schema:r,rootElement:n,mode:i,options:a,_cache:o}=e,s=(a==null?void 0:a.font)||wh();let l;r.dynamicFontSize&&t&&(l=await M6({textSchema:r,font:s,value:t,startingFontSize:l,_cache:o}));const c=await mm(r.fontName,s,o),{topAdj:u,bottomAdj:d}=wee(c,l??r.fontSize??am,r.lineHeight??om,r.verticalAlignment??dC),f=u.toString(),p=d.toString(),A=document.createElement("div"),v={padding:0,resize:"none",backgroundColor:o6e(t,r),border:"none",display:"flex",flexDirection:"column",justifyContent:a6e(r.verticalAlignment),width:"100%",height:"100%",cursor:BF(i,r)?"text":"default"};Object.assign(A.style,v),n.innerHTML="",n.appendChild(A);const g=[];r.strikethrough&&g.push("line-through"),r.underline&&g.push("underline");const m={fontFamily:r.fontName?`'${r.fontName}'`:"inherit",color:r.fontColor?r.fontColor:D3,fontSize:`${l??r.fontSize??am}pt`,letterSpacing:`${r.characterSpacing??fC}pt`,lineHeight:`${r.lineHeight??om}em`,textAlign:r.alignment??R3,whiteSpace:"pre-wrap",wordBreak:"break-word",resize:"none",border:"none",outline:"none",marginBottom:`${p}px`,paddingTop:`${f}px`,backgroundColor:"transparent",textDecoration:g.join(" ")},y=document.createElement("div");return y.id="text-"+String(r.id),Object.assign(y.style,m),A.appendChild(y),y},i6e=e=>{if(!dTe()){e.contentEditable="plaintext-only";return}e.contentEditable="true",e.addEventListener("keydown",t=>{t.key==="Enter"&&!t.shiftKey&&(t.preventDefault(),document.execCommand("insertLineBreak",!1,void 0))}),e.addEventListener("paste",t=>{var i;t.preventDefault();const r=(i=t.clipboardData)==null?void 0:i.getData("text"),n=window.getSelection();n!=null&&n.rangeCount&&(n.deleteFromDocument(),n.getRangeAt(0).insertNode(document.createTextNode(r||"")),n.collapseToEnd())})},a6e=e=>{switch(e){case P3:return"flex-start";case Mk:return"center";case Rk:return"flex-end"}return"flex-start"},o6e=(e,t)=>!e||!t.backgroundColor?"transparent":t.backgroundColor,tne={Text:{pdf:Wke,ui:r6e,propPanel:e6e,icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-text-cursor-input"><path d="M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1"/><path d="M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5"/><path d="M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1"/><path d="M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7"/><path d="M9 7v10"/></svg>'}};class rne{constructor(t){this.lang=TO,this.font=wh(),this.pluginsRegistry=tne,this.options={},this.setSize=FX(()=>{if(!this.domContainer)throw Error(fc);this.size={height:this.domContainer.clientHeight||window.innerHeight,width:this.domContainer.clientWidth||window.innerWidth},this.render()},100),this.resizeObserver=new ResizeObserver(this.setSize),ASe(t);const{domContainer:r,template:n,options:i={},plugins:a={}}=t;this.domContainer=r,this.template=Ma(n),this.options=i,this.size={height:this.domContainer.clientHeight||window.innerHeight,width:this.domContainer.clientWidth||window.innerWidth},this.resizeObserver.observe(this.domContainer);const{lang:o,font:s}=i;o&&(this.lang=o),s&&(this.font=s),Object.values(a).length>0&&(this.pluginsRegistry=a)}getLang(){return this.lang}getFont(){return this.font}getPluginsRegistry(){return this.pluginsRegistry}getOptions(){return this.options}getTemplate(){if(!this.domContainer)throw Error(fc);return this.template}updateTemplate(t){if(kK(t),!this.domContainer)throw Error(fc);this.template=Ma(t),this.render()}updateOptions(t){fSe(t);const{lang:r,font:n}=t||{};r&&(this.lang=r),n&&(this.font=n),this.options=Object.assign(this.options,t),this.render()}destroy(){if(!this.domContainer)throw Error(fc);Qo.unmountComponentAtNode(this.domContainer),this.resizeObserver.unobserve(this.domContainer),this.domContainer=null}}class nne extends rne{constructor(t){super(t),hSe(t),this.inputs=ine(Ma(t.inputs))}getInputs(){if(!this.domContainer)throw Error(fc);return this.inputs}setInputs(t){if(!this.domContainer)throw Error(fc);dSe(t),this.inputs=ine(t),this.render()}}function ine(e){return e.map(t=>{const r={};return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?r[n]=JSON.stringify(i):r[n]=i}),r})}function s6e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.useMemo(()=>n=>{t.forEach(i=>i(n))},t)}const K4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Vm(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function MF(e){return"nodeType"in e}function Ko(e){var t,r;return e?Vm(e)?e:MF(e)&&(t=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?t:window:window}function RF(e){const{Document:t}=Ko(e);return e instanceof t}function wx(e){return Vm(e)?!1:e instanceof Ko(e).HTMLElement}function ane(e){return e instanceof Ko(e).SVGElement}function Gm(e){return e?Vm(e)?e.document:MF(e)?RF(e)?e:wx(e)||ane(e)?e.ownerDocument:document:document:document}const Tl=K4?h.useLayoutEffect:h.useEffect;function q4(e){const t=h.useRef(e);return Tl(()=>{t.current=e}),h.useCallback(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t.current==null?void 0:t.current(...n)},[])}function l6e(){const e=h.useRef(null),t=h.useCallback((n,i)=>{e.current=setInterval(n,i)},[]),r=h.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,r]}function Cx(e,t){t===void 0&&(t=[e]);const r=h.useRef(e);return Tl(()=>{r.current!==e&&(r.current=e)},t),r}function xx(e,t){const r=h.useRef();return h.useMemo(()=>{const n=e(r.current);return r.current=n,n},[...t])}function X4(e){const t=q4(e),r=h.useRef(null),n=h.useCallback(i=>{i!==r.current&&(t==null||t(i,r.current)),r.current=i},[]);return[r,n]}function Z4(e){const t=h.useRef();return h.useEffect(()=>{t.current=e},[e]),t.current}let PF={};function Ex(e,t){return h.useMemo(()=>{if(t)return t;const r=PF[e]==null?0:PF[e]+1;return PF[e]=r,e+"-"+r},[e,t])}function one(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return n.reduce((a,o)=>{const s=Object.entries(o);for(const[l,c]of s){const u=a[l];u!=null&&(a[l]=u+e*c)}return a},{...t})}}const Ym=one(1),Sx=one(-1);function c6e(e){return"clientX"in e&&"clientY"in e}function J4(e){if(!e)return!1;const{KeyboardEvent:t}=Ko(e.target);return t&&e instanceof t}function u6e(e){if(!e)return!1;const{TouchEvent:t}=Ko(e.target);return t&&e instanceof t}function eM(e){if(u6e(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return c6e(e)?{x:e.clientX,y:e.clientY}:null}const Xh=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[Xh.Translate.toString(e),Xh.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),sne="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function d6e(e){return e.matches(sne)?e:e.querySelector(sne)}const f6e={display:"none"};function h6e(e){let{id:t,value:r}=e;return J.createElement("div",{id:t,style:f6e},r)}function p6e(e){let{id:t,announcement:r,ariaLiveType:n="assertive"}=e;const i={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return J.createElement("div",{id:t,style:i,role:"status","aria-live":n,"aria-atomic":!0},r)}function A6e(){const[e,t]=h.useState("");return{announce:h.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const lne=h.createContext(null);function g6e(e){const t=h.useContext(lne);h.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function v6e(){const[e]=h.useState(()=>new Set),t=h.useCallback(n=>(e.add(n),()=>e.delete(n)),[e]);return[h.useCallback(n=>{let{type:i,event:a}=n;e.forEach(o=>{var s;return(s=o[i])==null?void 0:s.call(o,a)})},[e]),t]}const m6e={draggable:`
85
85
  To pick up a draggable item, press the space bar.
86
86
  While dragging, use the arrow keys to move the item.
@@ -525,7 +525,7 @@ html body {
525
525
  ${r}-eye,
526
526
  ${r}-download,
527
527
  ${r}-delete
528
- `]:{zIndex:10,width:n,margin:`0 ${fe(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${fe(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${fe(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},wot=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Cot=e=>{const{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},qr(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},xot=Xr("Upload",e=>{const{fontSizeHeading3:t,fontHeight:r,lineWidth:n,controlHeightLG:i,calc:a}=e,o=ur(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(r).div(2)).add(n).equal(),uploadPicCardSize:a(i).mul(2.55).equal()});return[Cot(o),got(o),bot(o),yot(o),vot(o),mot(o),wot(o),Jx(o)]},e=>({actionsColor:e.colorTextDescription}));function SP(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function IP(e,t){const r=Qe(t),n=r.findIndex(i=>{let{uid:a}=i;return a===e.uid});return n===-1?r.push(e):r[n]=e,r}function c9(e,t){const r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function Eot(e,t){const r=e.uid!==void 0?"uid":"name",n=t.filter(i=>i[r]!==e[r]);return n.length===t.length?null:n}const Sot=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},Ehe=e=>e.indexOf("image/")===0,Iot=e=>{if(e.type&&!e.thumbUrl)return Ehe(e.type);const t=e.thumbUrl||e.url||"",r=Sot(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(t)||r)},b0=200;function Bot(e){return new Promise(t=>{if(!e.type||!Ehe(e.type)){t("");return}const r=document.createElement("canvas");r.width=b0,r.height=b0,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${b0}px; height: ${b0}px; z-index: 9999; display: none;`,document.body.appendChild(r);const n=r.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:a,height:o}=i;let s=b0,l=b0,c=0,u=0;a>o?(l=o*(b0/a),u=-(l-s)/2):(s=a*(b0/o),c=-(s-l)/2),n.drawImage(i,c,u,s,l);const d=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(i.src),t(d)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(i.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&t(a.result)},a.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}const Mot=h.forwardRef((e,t)=>{let{prefixCls:r,className:n,style:i,locale:a,listType:o,file:s,items:l,progress:c,iconRender:u,actionIconRender:d,itemRender:f,isImgUrl:p,showPreviewIcon:A,showRemoveIcon:v,showDownloadIcon:g,previewIcon:m,removeIcon:y,downloadIcon:b,extra:C,onPreview:w,onDownload:x,onClose:E}=e;var S,I;const{status:B}=s,[R,_]=h.useState(B);h.useEffect(()=>{B!=="removed"&&_(B)},[B]);const[O,F]=h.useState(!1);h.useEffect(()=>{const q=setTimeout(()=>{F(!0)},300);return()=>{clearTimeout(q)}},[]);const k=u(s);let D=h.createElement("div",{className:`${r}-icon`},k);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(R==="uploading"||!s.thumbUrl&&!s.url){const q=Ae(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:R!=="uploading"});D=h.createElement("div",{className:q},k)}else{const q=p!=null&&p(s)?h.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${r}-list-item-image`,crossOrigin:s.crossOrigin}):k,te=Ae(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:p&&!p(s)});D=h.createElement("a",{className:te,onClick:ae=>w(s,ae),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},q)}const M=Ae(`${r}-list-item`,`${r}-list-item-${R}`),T=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,L=(typeof v=="function"?v(s):v)?d((typeof y=="function"?y(s):y)||h.createElement(Qet,null),()=>E(s),r,a.removeFile,!0):null,N=(typeof g=="function"?g(s):g)&&R==="done"?d((typeof b=="function"?b(s):b)||h.createElement(Wet,null),()=>x(s),r,a.downloadFile):null,$=o!=="picture-card"&&o!=="picture-circle"&&h.createElement("span",{key:"download-delete",className:Ae(`${r}-list-item-actions`,{picture:o==="picture"})},N,L),U=typeof C=="function"?C(s):C,Y=U&&h.createElement("span",{className:`${r}-list-item-extra`},U),V=Ae(`${r}-list-item-name`),K=s.url?h.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:V,title:s.name},T,{href:s.url,onClick:q=>w(s,q)}),s.name,Y):h.createElement("span",{key:"view",className:V,onClick:q=>w(s,q),title:s.name},s.name,Y),ne=(typeof A=="function"?A(s):A)&&(s.url||s.thumbUrl)?h.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:q=>w(s,q),title:a.previewFile},typeof m=="function"?m(s):m||h.createElement(n$,null)):null,X=(o==="picture-card"||o==="picture-circle")&&R!=="uploading"&&h.createElement("span",{className:`${r}-list-item-actions`},ne,R==="done"&&N,L),{getPrefixCls:Q}=h.useContext(Pt),z=Q(),j=h.createElement("div",{className:M},D,K,$,X,O&&h.createElement(to,{motionName:`${z}-fade`,visible:R==="uploading",motionDeadline:2e3},q=>{let{className:te}=q;const ae="percent"in s?h.createElement(bet,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return h.createElement("div",{className:Ae(`${r}-list-item-progress`,te)},ae)})),W=s.response&&typeof s.response=="string"?s.response:((S=s.error)===null||S===void 0?void 0:S.statusText)||((I=s.error)===null||I===void 0?void 0:I.message)||a.uploadError,ee=R==="error"?h.createElement(Co,{title:W,getPopupContainer:q=>q.parentNode},j):j;return h.createElement("div",{className:Ae(`${r}-list-item-container`,n),style:i,ref:t},f?f(ee,s,l,{download:x.bind(null,s),preview:w.bind(null,s),remove:E.bind(null,s)}):ee)}),Rot=(e,t)=>{const{listType:r="text",previewFile:n=Bot,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:l,isImageUrl:c=Iot,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:A=!1,removeIcon:v,previewIcon:g,downloadIcon:m,extra:y,progress:b={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:w=!0,itemRender:x,disabled:E}=e,S=uN(),[I,B]=h.useState(!1),R=["picture-card","picture-circle"].includes(r);h.useEffect(()=>{r.startsWith("picture")&&(d||[]).forEach(Y=>{!(Y.originFileObj instanceof File||Y.originFileObj instanceof Blob)||Y.thumbUrl!==void 0||(Y.thumbUrl="",n==null||n(Y.originFileObj).then(V=>{Y.thumbUrl=V||"",S()}))})},[r,d,n]),h.useEffect(()=>{B(!0)},[]);const _=(Y,V)=>{if(i)return V.preventDefault(),i(Y)},O=Y=>{typeof a=="function"?a(Y):Y.url&&window.open(Y.url)},F=Y=>{o==null||o(Y)},k=Y=>{if(l)return l(Y,r);const V=Y.status==="uploading";if(r.startsWith("picture")){const K=r==="picture"?h.createElement(Wu,null):s.uploading,ne=c!=null&&c(Y)?h.createElement(_tt,null):h.createElement(itt,null);return V?K:ne}return V?h.createElement(Wu,null):h.createElement(Ptt,null)},D=(Y,V,K,ne,X)=>{const Q={type:"text",size:"small",title:ne,onClick:z=>{var j,W;V(),h.isValidElement(Y)&&((W=(j=Y.props).onClick)===null||W===void 0||W.call(j,z))},className:`${K}-list-item-action`};return X&&(Q.disabled=E),h.isValidElement(Y)?h.createElement(Or,Object.assign({},Q,{icon:da(Y,Object.assign(Object.assign({},Y.props),{onClick:()=>{}}))})):h.createElement(Or,Object.assign({},Q),h.createElement("span",null,Y))};h.useImperativeHandle(t,()=>({handlePreview:_,handleDownload:O}));const{getPrefixCls:M}=h.useContext(Pt),T=M("upload",u),L=M(),N=Ae(`${T}-list`,`${T}-list-${r}`),$=h.useMemo(()=>Pn(ub(L),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[L]),U=Object.assign(Object.assign({},R?{}:$),{motionDeadline:2e3,motionName:`${T}-${R?"animate-inline":"animate"}`,keys:Qe(d.map(Y=>({key:Y.uid,file:Y}))),motionAppear:I});return h.createElement("div",{className:N},h.createElement(KL,Object.assign({},U,{component:!1}),Y=>{let{key:V,file:K,className:ne,style:X}=Y;return h.createElement(Mot,{key:V,locale:s,prefixCls:T,className:ne,style:X,file:K,items:d,progress:b,listType:r,isImgUrl:c,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:A,removeIcon:v,previewIcon:g,downloadIcon:m,extra:y,iconRender:k,actionIconRender:D,itemRender:x,onPreview:_,onDownload:O,onClose:F})}),C&&h.createElement(to,Object.assign({},U,{visible:w,forceRender:!0}),Y=>{let{className:V,style:K}=Y;return da(C,ne=>({className:Ae(ne.className,V),style:Object.assign(Object.assign(Object.assign({},K),{pointerEvents:V?"none":void 0}),ne.style)}))}))},Pot=h.forwardRef(Rot);var Dot=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((n=n.apply(e,[])).next())})};const QE=`__LIST_IGNORE_${Date.now()}__`,Tot=(e,t)=>{const{fileList:r,defaultFileList:n,onRemove:i,showUploadList:a=!0,listType:o="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:d,disabled:f,locale:p,iconRender:A,isImageUrl:v,progress:g,prefixCls:m,className:y,type:b="select",children:C,style:w,itemRender:x,maxCount:E,data:S={},multiple:I=!1,hasControlInside:B=!0,action:R="",accept:_="",supportServerRender:O=!0,rootClassName:F}=e,k=h.useContext(ca),D=f??k,[M,T]=Mr(n||[],{value:r,postState:xe=>xe??[]}),[L,N]=h.useState("drop"),$=h.useRef(null),U=h.useRef(null);h.useMemo(()=>{const xe=Date.now();(r||[]).forEach((_e,Pe)=>{!_e.uid&&!Object.isFrozen(_e)&&(_e.uid=`__AUTO__${xe}_${Pe}__`)})},[r]);const Y=(xe,_e,Pe)=>{let Be=Qe(_e),Oe=!1;E===1?Be=Be.slice(-1):E&&(Oe=Be.length>E,Be=Be.slice(0,E)),_n.flushSync(()=>{T(Be)});const Ze={file:xe,fileList:Be};Pe&&(Ze.event=Pe),(!Oe||xe.status==="removed"||Be.some(Et=>Et.uid===xe.uid))&&_n.flushSync(()=>{c==null||c(Ze)})},V=(xe,_e)=>Dot(void 0,void 0,void 0,function*(){const{beforeUpload:Pe,transformFile:Be}=e;let Oe=xe;if(Pe){const Ze=yield Pe(xe,_e);if(Ze===!1)return!1;if(delete xe[QE],Ze===QE)return Object.defineProperty(xe,QE,{value:!0,configurable:!0}),!1;typeof Ze=="object"&&Ze&&(Oe=Ze)}return Be&&(Oe=yield Be(Oe)),Oe}),K=xe=>{const _e=xe.filter(Oe=>!Oe.file[QE]);if(!_e.length)return;const Pe=_e.map(Oe=>SP(Oe.file));let Be=Qe(M);Pe.forEach(Oe=>{Be=IP(Oe,Be)}),Pe.forEach((Oe,Ze)=>{let Et=Oe;if(_e[Ze].parsedFile)Oe.status="uploading";else{const{originFileObj:tt}=Oe;let Ve;try{Ve=new File([tt],tt.name,{type:tt.type})}catch{Ve=new Blob([tt],{type:tt.type}),Ve.name=tt.name,Ve.lastModifiedDate=new Date,Ve.lastModified=new Date().getTime()}Ve.uid=Oe.uid,Et=Ve}Y(Et,Be)})},ne=(xe,_e,Pe)=>{try{typeof xe=="string"&&(xe=JSON.parse(xe))}catch{}if(!c9(_e,M))return;const Be=SP(_e);Be.status="done",Be.percent=100,Be.response=xe,Be.xhr=Pe;const Oe=IP(Be,M);Y(Be,Oe)},X=(xe,_e)=>{if(!c9(_e,M))return;const Pe=SP(_e);Pe.status="uploading",Pe.percent=xe.percent;const Be=IP(Pe,M);Y(Pe,Be,xe)},Q=(xe,_e,Pe)=>{if(!c9(Pe,M))return;const Be=SP(Pe);Be.error=xe,Be.response=_e,Be.status="error";const Oe=IP(Be,M);Y(Be,Oe)},z=xe=>{let _e;Promise.resolve(typeof i=="function"?i(xe):i).then(Pe=>{var Be;if(Pe===!1)return;const Oe=Eot(xe,M);Oe&&(_e=Object.assign(Object.assign({},xe),{status:"removed"}),M==null||M.forEach(Ze=>{const Et=_e.uid!==void 0?"uid":"name";Ze[Et]===_e[Et]&&!Object.isFrozen(Ze)&&(Ze.status="removed")}),(Be=$.current)===null||Be===void 0||Be.abort(_e),Y(_e,Oe))})},j=xe=>{N(xe.type),xe.type==="drop"&&(u==null||u(xe))};h.useImperativeHandle(t,()=>({onBatchStart:K,onSuccess:ne,onProgress:X,onError:Q,fileList:M,upload:$.current,nativeElement:U.current}));const{getPrefixCls:W,direction:ee,upload:q}=h.useContext(Pt),te=W("upload",m),ae=Object.assign(Object.assign({onBatchStart:K,onError:Q,onProgress:X,onSuccess:ne},e),{data:S,multiple:I,action:R,accept:_,supportServerRender:O,prefixCls:te,disabled:D,beforeUpload:V,onChange:void 0,hasControlInside:B});delete ae.className,delete ae.style,(!C||D)&&delete ae.id;const ce=`${te}-wrapper`,[de,se,pe]=xot(te,ce),[ye]=Qu("Upload",Ll.Upload),{showRemoveIcon:Ce,showPreviewIcon:Se,showDownloadIcon:Ie,removeIcon:Re,previewIcon:De,downloadIcon:Fe,extra:re}=typeof a=="boolean"?{}:a,H=typeof Ce>"u"?!D:Ce,G=(xe,_e)=>a?h.createElement(Pot,{prefixCls:te,listType:o,items:M,previewFile:d,onPreview:s,onDownload:l,onRemove:z,showRemoveIcon:H,showPreviewIcon:Se,showDownloadIcon:Ie,removeIcon:Re,previewIcon:De,downloadIcon:Fe,iconRender:A,extra:re,locale:Object.assign(Object.assign({},ye),p),isImageUrl:v,progress:g,appendAction:xe,appendActionVisible:_e,itemRender:x,disabled:D}):xe,oe=Ae(ce,y,F,se,pe,q==null?void 0:q.className,{[`${te}-rtl`]:ee==="rtl",[`${te}-picture-card-wrapper`]:o==="picture-card",[`${te}-picture-circle-wrapper`]:o==="picture-circle"}),me=Object.assign(Object.assign({},q==null?void 0:q.style),w);if(b==="drag"){const xe=Ae(se,te,`${te}-drag`,{[`${te}-drag-uploading`]:M.some(_e=>_e.status==="uploading"),[`${te}-drag-hover`]:L==="dragover",[`${te}-disabled`]:D,[`${te}-rtl`]:ee==="rtl"});return de(h.createElement("span",{className:oe,ref:U},h.createElement("div",{className:xe,style:me,onDrop:j,onDragOver:j,onDragLeave:j},h.createElement(l9,Object.assign({},ae,{ref:$,className:`${te}-btn`}),h.createElement("div",{className:`${te}-drag-container`},C))),G()))}const we=Ae(te,`${te}-select`,{[`${te}-disabled`]:D}),Ee=h.createElement("div",{className:we,style:C?void 0:{display:"none"}},h.createElement(l9,Object.assign({},ae,{ref:$})));return de(o==="picture-card"||o==="picture-circle"?h.createElement("span",{className:oe,ref:U},G(Ee,!!C)):h.createElement("span",{className:oe,ref:U},Ee,G()))},She=h.forwardRef(Tot);var _ot=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Oot=h.forwardRef((e,t)=>{var{style:r,height:n,hasControlInside:i=!1}=e,a=_ot(e,["style","height","hasControlInside"]);return h.createElement(She,Object.assign({ref:t,hasControlInside:i},a,{type:"drag",style:Object.assign(Object.assign({},r),{height:n})}))}),u9=She;u9.Dragger=Oot,u9.LIST_IGNORE=QE;const Ihe={en:{cancel:"Cancel",close:"Close",field:"field",fieldName:"Name",align:"Align",width:"Width",height:"Height",opacity:"Opacity",rotate:"Rotate",required:"Required",editable:"Editable",edit:"Edit",plsInputName:"Please input name",fieldMustUniq:"Name of field is not unique",notUniq:"(Not unique name)",noKeyName:"No name",fieldsList:"Field List",editField:"Edit Field",type:"Type",errorOccurred:"An error occurred",errorBulkUpdateFieldName:"Cannot commit the change because the number of items has been changed.",commitBulkUpdateFieldName:"Commit Changes",bulkUpdateFieldName:"Bulk update field names",addPageAfter:"Add Page After",removePage:"Remove Current Page",removePageConfirm:"Are you sure you want to delete this page? This action cannot be undone.","validation.hexColor":"Please enter a valid hex color code.","validation.uniqueName":"Please enter a unique name.","schemas.color":"Color","schemas.borderWidth":"Border Width","schemas.borderColor":"Border Color","schemas.backgroundColor":"Background Color","schemas.textColor":"Text Color","schemas.bgColor":"Background Color","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Left","schemas.center":"Center","schemas.right":"Right","schemas.top":"Top","schemas.middle":"Middle","schemas.bottom":"Bottom","schemas.padding":"Padding","schemas.text.fontName":"Font Name","schemas.text.size":"Size","schemas.text.spacing":"Spacing","schemas.text.textAlign":"Text Align","schemas.text.verticalAlign":"Vertical Align","schemas.text.lineHeight":"Line Height","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Fit","schemas.text.dynamicFontSize":"Dynamic Font Size","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Add variables by typing words surrounded by curly brackets, e.g.","schemas.mvt.sampleField":"name","schemas.mvt.variablesSampleData":"Variables Sample Data","schemas.barcodes.barColor":"Bar Color","schemas.barcodes.includetext":"Include Text","schemas.table.alternateBackgroundColor":"Alternate Background Color","schemas.table.tableStyle":"Table Style","schemas.table.headStyle":"Header Style","schemas.table.bodyStyle":"Body Style","schemas.table.columnStyle":"Column Style","schemas.date.format":"Date Format","schemas.select.options":"Options","schemas.select.optionPlaceholder":"Enter an option","schemas.radioGroup.groupName":"Group Name"},zh:{cancel:"取消",close:"关闭",field:"字段",fieldName:"名称",align:"对齐",width:"宽度",height:"高度",opacity:"透明度",rotate:"旋转",required:"必需的",editable:"可编辑的",edit:"编辑",plsInputName:"请输入名称",fieldMustUniq:"字段名称必须唯一",notUniq:"(名称不唯一)",noKeyName:"无名称",fieldsList:"字段列表",editField:"编辑字段",type:"类型",errorOccurred:"发生错误",errorBulkUpdateFieldName:"由于项目数量已更改,无法提交更改。",commitBulkUpdateFieldName:"提交更改",bulkUpdateFieldName:"批量更新字段名称",addPageAfter:"在之后添加页面",removePage:"删除当前页面",removePageConfirm:"您确定要删除此页面吗?此操作无法撤销。","validation.hexColor":"请输入有效的十六进制颜色代码。","validation.uniqueName":"请输入一个唯一的名称。","schemas.color":"颜色","schemas.borderWidth":"边框宽度","schemas.borderColor":"边框颜色","schemas.backgroundColor":"背景颜色","schemas.textColor":"文字颜色","schemas.bgColor":"背景颜色","schemas.horizontal":"水平","schemas.vertical":"垂直","schemas.left":"左","schemas.center":"中","schemas.right":"右","schemas.top":"顶","schemas.middle":"中间","schemas.bottom":"底","schemas.padding":"填充","schemas.text.fontName":"字体名称","schemas.text.size":"大小","schemas.text.spacing":"间距","schemas.text.textAlign":"文本对齐","schemas.text.verticalAlign":"垂直对齐","schemas.text.lineHeight":"行高","schemas.text.min":"最小","schemas.text.max":"最大","schemas.text.fit":"适应","schemas.text.dynamicFontSize":"动态字体大小","schemas.text.format":"格式","schemas.mvt.typingInstructions":"通过输入用花括号括起来的单词来添加变量,例如","schemas.mvt.sampleField":"姓名","schemas.mvt.variablesSampleData":"变量样本数据","schemas.barcodes.barColor":"条码颜色","schemas.barcodes.includetext":"包括文本","schemas.table.alternateBackgroundColor":"交替背景颜色","schemas.table.tableStyle":"表格样式","schemas.table.headStyle":"表头样式","schemas.table.bodyStyle":"表体样式","schemas.table.columnStyle":"列样式","schemas.date.format":"日期格式","schemas.select.options":"选项","schemas.select.optionPlaceholder":"请输入选项","schemas.radioGroup.groupName":"组名"},ja:{cancel:"キャンセル",close:"閉じる",field:"入力項目",fieldName:"項目名",align:"整列",width:"幅",height:"高さ",opacity:"不透明度",rotate:"回転",required:"必須",editable:"編集可能",edit:"編集する",plsInputName:"項目名を入力してください",fieldMustUniq:"他の入力項目名と被っています",notUniq:"(他の項目名と重複しています)",noKeyName:"項目名なし",fieldsList:"入力項目一覧",editField:"入力項目を編集",type:"タイプ",errorOccurred:"エラーが発生しました",errorBulkUpdateFieldName:"項目数が変更されているため変更をコミットできません。",commitBulkUpdateFieldName:"変更を反映",bulkUpdateFieldName:"項目名を一括変更",addPageAfter:"次にページを追加",removePage:"現在のページを削除",removePageConfirm:"ページを削除してもよろしいですか?この操作は元に戻せません。","validation.hexColor":"有効な16進数のカラーコードを入力してください。","validation.uniqueName":"一意の名前を入力してください。","schemas.color":"色","schemas.borderWidth":"枠線の太さ","schemas.borderColor":"枠線の色","schemas.backgroundColor":"背景色","schemas.textColor":"テキストの色","schemas.bgColor":"背景色","schemas.horizontal":"水平","schemas.vertical":"垂直","schemas.left":"左","schemas.center":"中央","schemas.right":"右","schemas.top":"上","schemas.middle":"中間","schemas.bottom":"下","schemas.padding":"パディング","schemas.text.fontName":"フォント名","schemas.text.size":"サイズ","schemas.text.spacing":"間隔","schemas.text.textAlign":"テキストの揃え","schemas.text.verticalAlign":"垂直方向の揃え","schemas.text.lineHeight":"行の高さ","schemas.text.min":"最小","schemas.text.max":"最大","schemas.text.fit":"フィット","schemas.text.dynamicFontSize":"動的フォントサイズ","schemas.text.format":"書式","schemas.mvt.typingInstructions":"中括弧で囲まれた単語を入力して変数を追加します。例:","schemas.mvt.sampleField":"名前","schemas.mvt.variablesSampleData":"変数サンプルデータ","schemas.barcodes.barColor":"バーの色","schemas.barcodes.includetext":"テキストを含める","schemas.table.alternateBackgroundColor":"交互の背景色","schemas.table.tableStyle":"テーブルスタイル","schemas.table.headStyle":"ヘッダースタイル","schemas.table.bodyStyle":"ボディスタイル","schemas.table.columnStyle":"カラムスタイル","schemas.date.format":"日付形式","schemas.select.options":"オプション","schemas.select.optionPlaceholder":"オプションを入力してください","schemas.radioGroup.groupName":"グループ名"},ko:{cancel:"취소",close:"닫기",field:"필드",fieldName:"이름",align:"정렬",width:"너비",height:"높이",opacity:"투명도",rotate:"회전",required:"필수의",editable:"편집 가능한",edit:"편집",plsInputName:"이름을 입력하세요",fieldMustUniq:"필드 이름은 유일해야 합니다",notUniq:"(유일하지 않은 이름)",noKeyName:"이름 없음",fieldsList:"필드 목록",editField:"필드 편집",type:"유형",errorOccurred:"오류 발생",errorBulkUpdateFieldName:"항목 수가 변경되어 변경을 커밋할 수 없습니다.",commitBulkUpdateFieldName:"변경 사항 커밋",bulkUpdateFieldName:"필드 이름 일괄 업데이트",addPageAfter:"다음에 페이지 추가",removePage:"현재 페이지 제거",removePageConfirm:"이 페이지를 삭제하시겠습니까? 이 작업은 취소할 수 없습니다.","validation.hexColor":"유효한 16진수 색상 코드를 입력하세요.","validation.uniqueName":"고유한 이름을 입력하세요.","schemas.color":"색상","schemas.borderWidth":"테두리 너비","schemas.borderColor":"테두리 색상","schemas.backgroundColor":"배경색","schemas.textColor":"텍스트 색상","schemas.bgColor":"배경색","schemas.horizontal":"수평","schemas.vertical":"수직","schemas.left":"왼쪽","schemas.center":"중앙","schemas.right":"오른쪽","schemas.top":"상단","schemas.middle":"중간","schemas.bottom":"하단","schemas.padding":"패딩","schemas.text.fontName":"글꼴 이름","schemas.text.size":"크기","schemas.text.spacing":"간격","schemas.text.textAlign":"텍스트 정렬","schemas.text.verticalAlign":"수직 정렬","schemas.text.lineHeight":"줄 높이","schemas.text.min":"최소","schemas.text.max":"최대","schemas.text.fit":"맞춤","schemas.text.dynamicFontSize":"동적 폰트 크기","schemas.text.format":"형식","schemas.mvt.typingInstructions":"중괄호로 묶인 단어를 입력하여 변수를 추가하세요.","schemas.mvt.sampleField":"이름","schemas.mvt.variablesSampleData":"변수 샘플 데이터","schemas.barcodes.barColor":"바코드 색상","schemas.barcodes.includetext":"텍스트 포함","schemas.table.alternateBackgroundColor":"대체 배경색","schemas.table.tableStyle":"테이블 스타일","schemas.table.headStyle":"헤더 스타일","schemas.table.bodyStyle":"본문 스타일","schemas.table.columnStyle":"열 스타일","schemas.date.format":"날짜 형식","schemas.select.options":"옵션","schemas.select.optionPlaceholder":"옵션을 입력하세요","schemas.radioGroup.groupName":"그룹 이름"},ar:{cancel:"إلغاء",close:"إغلاق",field:"الحقل",fieldName:"اسم الحقل",align:"محاذاة",width:"العرض",height:"الارتفاع",opacity:"الشفافية",rotate:"تدوير",required:"مطلوب",editable:"قابل للتحرير",edit:"تعديل",plsInputName:"الرجاء إدخال الاسم",fieldMustUniq:"يجب أن يكون الحقل فريداً",notUniq:"(غير فريد)",noKeyName:"لا يوجد اسم للحقل",fieldsList:"قائمة الحقول",editField:"تعديل الحقل",type:"النوع",errorOccurred:"حدث خطأ",errorBulkUpdateFieldName:"لا يمكن تنفيذ التغيير لأنه تم تغيير عدد العناصر.",commitBulkUpdateFieldName:"تنفيذ التغييرات",bulkUpdateFieldName:"تغيير الأسماء",addPageAfter:"إضافة صفحة بعد",removePage:"احذف الصفحة الحالية",removePageConfirm:"هل أنت متأكد من رغبتك في حذف هذه الصفحة؟ لا يمكن التراجع عن هذا الإجراء.","validation.hexColor":"الرجاء إدخال رمز لون سداسي عشري صالح.","validation.uniqueName":"الرجاء إدخال اسم فريد.","schemas.color":"اللون","schemas.borderWidth":"عرض الحدود","schemas.borderColor":"لون الحدود","schemas.backgroundColor":"لون الخلفية","schemas.textColor":"لون الخط","schemas.bgColor":"لون الخلفية","schemas.horizontal":"أفقي","schemas.vertical":"عمودي","schemas.left":"يسار","schemas.center":"مركز","schemas.right":"يمين","schemas.top":"أعلى","schemas.middle":"وسط","schemas.bottom":"أسفل","schemas.padding":"التبطين","schemas.text.fontName":"اسم الخط","schemas.text.size":"الحجم","schemas.text.spacing":"التباعد","schemas.text.textAlign":"محاذاة النص","schemas.text.verticalAlign":"محاذاة عمودية","schemas.text.lineHeight":"ارتفاع السطر","schemas.text.min":"الحد الأدنى","schemas.text.max":"الحد الأقصى","schemas.text.fit":"ملاءمة","schemas.text.dynamicFontSize":"حجم الخط الديناميكي","schemas.text.format":"تنسيق","schemas.mvt.typingInstructions":"قم بإضافة المتغيرات عن طريق كتابة الكلمات المحاطة بأقواس متعرجة، على سبيل المثال:","schemas.mvt.sampleField":"اسم","schemas.mvt.variablesSampleData":"بيانات عينة المتغيرات","schemas.barcodes.barColor":"لون الشريط","schemas.barcodes.includetext":"تضمين النص","schemas.table.alternateBackgroundColor":"لون الخلفية البديل","schemas.table.tableStyle":"أسلوب الجدول","schemas.table.headStyle":"أسلوب الرأس","schemas.table.bodyStyle":"أسلوب الجسم","schemas.table.columnStyle":"أسلوب العمود","schemas.date.format":"تنسيق التاريخ","schemas.select.options":"خيارات","schemas.select.optionPlaceholder":"أدخل خيارًا","schemas.radioGroup.groupName":"اسم المجموعة"},th:{cancel:"ยกเลิก",close:"ปิด",field:"ฟิลด์",fieldName:"ชื่อฟิลด์",align:"จัดเรียง",width:"ความกว้าง",height:"ความสูง",opacity:"ความทึบ",rotate:"หมุน",required:"ที่จำเป็น",editable:"แก้ไขได้",edit:"แก้ไข",plsInputName:"กรุณาใส่ชื่อ",fieldMustUniq:"ชื่อฟิลด์ต้องไม่ซ้ำกัน",notUniq:"(ชื่อฟิลด์ซ้ำกัน)",noKeyName:"ไม่มีชื่อ",fieldsList:"รายการฟิลด์ทั้งหมด",editField:"แก้ไขฟิลด์",type:"ประเภท",errorOccurred:"เกิดข้อผิดพลาด",errorBulkUpdateFieldName:"ไม่สามารถยืนยันการแก้ไขได้เนื่องจากจำนวนรายการมีการเปลี่ยนแปลง",commitBulkUpdateFieldName:"ยืนยันการแก้ไข",bulkUpdateFieldName:"แก้ไขชื่อฟิลด์เป็นชุด",addPageAfter:"เพิ่มหน้าถัดไป",removePage:"ลบหน้าปัจจุบัน",removePageConfirm:"คุณแน่ใจหรือไม่ว่าต้องการลบหน้านี้? การกระทำนี้ไม่สามารถย้อนกลับได้","validation.hexColor":"กรุณาใส่รหัสสีแบบฐานสิบหกที่ถูกต้อง","validation.uniqueName":"กรุณาระบุชื่อที่ไม่ซ้ำ","schemas.color":"สี","schemas.borderWidth":"ความกว้างของเส้นขอบ","schemas.borderColor":"สีขอบ","schemas.backgroundColor":"สีพื้นหลัง","schemas.textColor":"สีข้อความ","schemas.bgColor":"สีพื้นหลัง","schemas.horizontal":"แนวนอน","schemas.vertical":"แนวตั้ง","schemas.left":"ซ้าย","schemas.center":"ตรงกลาง","schemas.right":"ขวา","schemas.top":"ด้านบน","schemas.middle":"ตรงกลาง","schemas.bottom":"ด้านล่าง","schemas.padding":"การเพิ่มพื้นที่","schemas.text.fontName":"ชื่อแบบอักษร","schemas.text.size":"ขนาด","schemas.text.spacing":"ระยะห่าง","schemas.text.textAlign":"จัดแนวข้อความ","schemas.text.verticalAlign":"จัดแนวแนวตั้ง","schemas.text.lineHeight":"ความสูงของบรรทัด","schemas.text.min":"ต่ำสุด","schemas.text.max":"สูงสุด","schemas.text.fit":"พอดี","schemas.text.dynamicFontSize":"ขนาดตัวอักษรแบบไดนามิก","schemas.text.format":"รูปแบบ","schemas.mvt.typingInstructions":"เพิ่มตัวแปรโดยพิมพ์คำที่ล้อมรอบด้วยวงเล็บปีกกา เช่น","schemas.mvt.sampleField":"ชื่อ","schemas.mvt.variablesSampleData":"ข้อมูลตัวอย่างตัวแปร","schemas.barcodes.barColor":"สีบาร์","schemas.barcodes.includetext":"รวมข้อความ","schemas.table.alternateBackgroundColor":"สีพื้นหลังสลับกัน","schemas.table.tableStyle":"สไตล์ตาราง","schemas.table.headStyle":"สไตล์หัวข้อ","schemas.table.bodyStyle":"สไตล์เนื้อหา","schemas.table.columnStyle":"สไตล์คอลัมน์","schemas.date.format":"รูปแบบวันที่","schemas.select.options":"ตัวเลือก","schemas.select.optionPlaceholder":"กรอกตัวเลือก","schemas.radioGroup.groupName":"ชื่อกลุ่ม"},it:{cancel:"Annulla",close:"Chiudi",field:"Campo",fieldName:"Nome",align:"Allinea",width:"Larghezza",height:"Altezza",opacity:"Opacità",rotate:"Ruota",required:"Necessaria",editable:"Modificabile",edit:"Modifica",plsInputName:"Inserisci il nome per favore",fieldMustUniq:"Il nome del campo non è univoco",notUniq:"(Nome non univoco)",noKeyName:"Nessun nome",fieldsList:"Lista campi",editField:"Modifica campo",type:"Tipo",errorOccurred:"Riscontrato errore",errorBulkUpdateFieldName:"Non è possibile salvare le modifiche perché il numero di elementi è cambiato.",commitBulkUpdateFieldName:"Salva cambiamenti",bulkUpdateFieldName:"Modifica nomi campi in blocco",addPageAfter:"Aggiungi pagina dopo",removePage:"Rimuovi la Pagina Corrente",removePageConfirm:"Sei sicuro di voler eliminare questa pagina? Questa azione non può essere annullata.","validation.hexColor":"Inserisci un codice colore esadecimale valido.","validation.uniqueName":"Inserisci un nome univoco.","schemas.color":"Colore","schemas.borderWidth":"Spessore bordo","schemas.borderColor":"Colore bordo","schemas.backgroundColor":"Colore di Sfondo","schemas.textColor":"Colore testo","schemas.bgColor":"Colore sfondo","schemas.horizontal":"Orizzontale","schemas.vertical":"Verticale","schemas.left":"Sinistra","schemas.center":"Centro","schemas.right":"Destra","schemas.top":"Sopra","schemas.middle":"Medio","schemas.bottom":"Sotto","schemas.padding":"Padding","schemas.text.fontName":"Nome del font","schemas.text.size":"Dimensione","schemas.text.spacing":"Spaziatura","schemas.text.textAlign":"Allineamento testo","schemas.text.verticalAlign":"Allineamento verticale","schemas.text.lineHeight":"Altezza della linea","schemas.text.min":"Minimo","schemas.text.max":"Massimo","schemas.text.fit":"Adatta","schemas.text.dynamicFontSize":"Dimensione font dinamica","schemas.text.format":"Formato","schemas.mvt.typingInstructions":"Aggiungi variabili digitando parole circondate da parentesi graffe, ad es.","schemas.mvt.sampleField":"nome","schemas.mvt.variablesSampleData":"Dati di esempio variabili","schemas.barcodes.barColor":"Colore barra","schemas.barcodes.includetext":"Includi testo","schemas.table.alternateBackgroundColor":"Colore di Sfondo Alternato","schemas.table.tableStyle":"Stile della Tabella","schemas.table.headStyle":"Stile dell'Intestazione","schemas.table.bodyStyle":"Stile del Corpo","schemas.table.columnStyle":"Stile della Colonna","schemas.date.format":"Formato data","schemas.select.options":"Opzioni","schemas.select.optionPlaceholder":"Inserisci un'opzione","schemas.radioGroup.groupName":"Nome del Gruppo"},pl:{cancel:"Anuluj",close:"Zamknij",field:"pole",fieldName:"Klucz pola",align:"Wyrównanie",width:"Szerokość",height:"Wysokość",opacity:"przezroczystość",rotate:"Obrót",required:"Wymagany",editable:"Edytowalny",edit:"Edytuj",plsInputName:"Wymagane wprowadzenie klucza pola",fieldMustUniq:"Klucz pola nie jest unikalny",notUniq:"(Klucz pola nie jest unikalny)",noKeyName:"Brak nazwy klucza pola",fieldsList:"Lista pól",editField:"Edytuj pole",type:"Typ pola",errorOccurred:"Wystąpił błąd",errorBulkUpdateFieldName:"Nie można wprowadzić zmian ponieważ liczba elementów uległa zmianie.",commitBulkUpdateFieldName:"Zaakceptuj zmiany",bulkUpdateFieldName:"Masowo aktualizuj klucze pól",addPageAfter:"Dodaj stronę po",removePage:"Usuń Bieżącą Stronę",removePageConfirm:"Czy na pewno chcesz usunąć tę stronę? Tej operacji nie można cofnąć.","validation.hexColor":"Wprowadź poprawny kod koloru szesnastkowego.","validation.uniqueName":"Proszę wpisać unikalną nazwę.","schemas.color":"Kolor","schemas.borderWidth":"Szerokość obramowania","schemas.borderColor":"Kolor obramowania","schemas.backgroundColor":"Kolor tła","schemas.textColor":"Kolor tekstu","schemas.bgColor":"Kolor tła","schemas.horizontal":"Poziomo","schemas.vertical":"Pionowo","schemas.left":"Lewo","schemas.center":"Centrum","schemas.right":"Prawo","schemas.top":"Góra","schemas.middle":"Środek","schemas.bottom":"Dół","schemas.padding":"Odsadzenie","schemas.text.fontName":"Nazwa czcionki","schemas.text.size":"Rozmiar","schemas.text.spacing":"Odstępy","schemas.text.textAlign":"Wyrównanie tekstu","schemas.text.verticalAlign":"Wyrównanie pionowe","schemas.text.lineHeight":"Wysokość linii","schemas.text.min":"Minimum","schemas.text.max":"Maksimum","schemas.text.fit":"Dopasowanie","schemas.text.dynamicFontSize":"Dynamiczny rozmiar czcionki","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Dodaj zmienne, wpisując słowa ujęte w nawiasy klamrowe, np.","schemas.mvt.sampleField":"nazwa","schemas.mvt.variablesSampleData":"Zmienne Przykładowe dane","schemas.barcodes.barColor":"Kolor paska","schemas.barcodes.includetext":"Dołącz tekst","schemas.table.alternateBackgroundColor":"Alternatywny kolor tła","schemas.table.tableStyle":"Styl tabeli","schemas.table.headStyle":"Styl nagłówka","schemas.table.bodyStyle":"Styl ciała","schemas.table.columnStyle":"Styl kolumny","schemas.date.format":"Format daty","schemas.select.options":"Opcje","schemas.select.optionPlaceholder":"Wpisz opcję","schemas.radioGroup.groupName":"Nazwa grupy"},de:{cancel:"Abbrechen",close:"Schließen",field:"Feld",fieldName:"Name",align:"Ausrichten",width:"Breite",height:"Höhe",opacity:"Opazität",rotate:"Drehen",required:"Erforderlich",editable:"Bearbeitbar",edit:"Bearbeiten",plsInputName:"Bitte geben Sie einen Namen ein",fieldMustUniq:"Feldname ist nicht eindeutig",notUniq:"(Nicht eindeutiger Name)",noKeyName:"Kein Name",fieldsList:"Feldliste",editField:"Feld bearbeiten",type:"Typ",errorOccurred:"Ein Fehler ist aufgetreten",errorBulkUpdateFieldName:"Die Änderung kann nicht übernommen werden, weil die Anzahl der Elemente geändert wurde.",commitBulkUpdateFieldName:"Änderungen übernehmen",bulkUpdateFieldName:"Mehrfachaktualisierung der Feldnamen",addPageAfter:"Seite danach hinzufügen",removePage:"Aktuelle Seite entfernen",removePageConfirm:"Sind Sie sicher, dass Sie diese Seite löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.","validation.hexColor":"Bitte geben Sie einen gültigen Hex-Farbcode ein.","validation.uniqueName":"Bitte geben Sie einen eindeutigen Namen ein.","schemas.color":"Farbe","schemas.borderWidth":"Rahmenbreite","schemas.borderColor":"Rahmenfarbe","schemas.backgroundColor":"Hintergrundfarbe","schemas.textColor":"Textfarbe","schemas.bgColor":"Hintergrundfarbe","schemas.horizontal":"Horizontal","schemas.vertical":"Vertikal","schemas.left":"Links","schemas.center":"Zentriert","schemas.right":"Rechts","schemas.top":"Oben","schemas.middle":"Mitte","schemas.bottom":"Unten","schemas.padding":"Polsterung","schemas.text.fontName":"Schriftart","schemas.text.size":"Größe","schemas.text.spacing":"Abstand","schemas.text.textAlign":"Ausrichtung","schemas.text.verticalAlign":"vert. Ausr.","schemas.text.lineHeight":"Zeilenhöhe","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Anpassen","schemas.text.dynamicFontSize":"Dynamische Schriftgröße","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Fügen Sie Variablen hinzu, indem Sie Wörter in geschweiften Klammern eingeben, z. B.","schemas.mvt.sampleField":"Name","schemas.mvt.variablesSampleData":"Variablen Beispieldaten","schemas.barcodes.barColor":"Strichcodefarbe","schemas.barcodes.includetext":"Text anzeigen","schemas.table.alternateBackgroundColor":"Wechselnde Hintergrundfarbe","schemas.table.tableStyle":"Tabellenstil","schemas.table.headStyle":"Kopfzeilenstil","schemas.table.bodyStyle":"Körperstil","schemas.table.columnStyle":"Spaltenstil","schemas.date.format":"Datumsformat","schemas.select.options":"Optionen","schemas.select.optionPlaceholder":"Geben Sie eine Option ein","schemas.radioGroup.groupName":"Gruppenname"},es:{cancel:"Cancelar",close:"Cerrar",field:"campo",fieldName:"Nombre",align:"Alinear",width:"Anchura",height:"Altura",opacity:"Opacidad",rotate:"Rotar",required:"Requerido",editable:"Editable",edit:"Editar",plsInputName:"Introduce el nombre",fieldMustUniq:"El nombre del campo no es único",notUniq:"(Nombre no único)",noKeyName:"Sin nombre",fieldsList:"Lista de campos",editField:"Editar campo",type:"Tipo",errorOccurred:"Ocurrió un error",errorBulkUpdateFieldName:"No se puede confirmar el cambio porque el número de elementos ha cambiado.",commitBulkUpdateFieldName:"Confirmar cambios",bulkUpdateFieldName:"Actualizar en bloque el nombre de los campos",addPageAfter:"Insertar página",removePage:"Eliminar página actual",removePageConfirm:"¿Estás seguro de que quieres eliminar esta página? Esta acción no se puede deshacer.","validation.hexColor":"Introduce un código de color hexadecimal válido.","validation.uniqueName":"Por favor, introduzca un nombre único.","schemas.color":"Color","schemas.borderWidth":"Ancho del borde","schemas.borderColor":"Color del borde","schemas.backgroundColor":"Color de fondo","schemas.textColor":"Color del texto","schemas.bgColor":"Color del fondo","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Izquierda","schemas.center":"Centro","schemas.right":"Derecha","schemas.top":"Arriba","schemas.middle":"Medio","schemas.bottom":"Abajo","schemas.padding":"Relleno","schemas.text.fontName":"Nombre de la fuente","schemas.text.size":"Tamaño","schemas.text.spacing":"Espaciado","schemas.text.textAlign":"Alineación del texto","schemas.text.verticalAlign":"Alineación vertical","schemas.text.lineHeight":"Altura de línea","schemas.text.min":"Mín","schemas.text.max":"Máx","schemas.text.fit":"Ajustar","schemas.text.dynamicFontSize":"Tamaño de fuente dinámico","schemas.text.format":"Formato","schemas.mvt.typingInstructions":"Agregue variables escribiendo palabras entre llaves, p.","schemas.mvt.sampleField":"nombre","schemas.mvt.variablesSampleData":"Variables Datos de muestra","schemas.barcodes.barColor":"Color de la barra","schemas.barcodes.includetext":"Incluir texto","schemas.table.alternateBackgroundColor":"Color de fondo alternativo","schemas.table.tableStyle":"Estilo de tabla","schemas.table.headStyle":"Estilo de cabecera","schemas.table.bodyStyle":"Estilo de cuerpo","schemas.table.columnStyle":"Estilo de columna","schemas.date.format":"Formato de fecha","schemas.select.options":"Opciones","schemas.select.optionPlaceholder":"Ingrese una opción","schemas.radioGroup.groupName":"Nombre del grupo"},fr:{cancel:"Annuler",close:"Fermer",field:"Champ",fieldName:"Nom",align:"Aligner",width:"Largeur",height:"Hauteur",opacity:"Opacité",rotate:"Rotation",required:"Requis",editable:"Modifiable",edit:"Éditer",plsInputName:"Veuillez saisir le nom",fieldMustUniq:"Le nom du champ n'est pas unique",notUniq:"(Nombre non unique)",noKeyName:"Pas de nom",fieldsList:"Liste des champs",editField:"Éditer le champ",type:"Type",errorOccurred:"Une erreur est survenue",errorBulkUpdateFieldName:"Impossible de confirmer le changement car le nombre d'éléments a changé.",commitBulkUpdateFieldName:"Confirmer les changements",bulkUpdateFieldName:"Modifier les noms de champs en masse",addPageAfter:"Ajouter une page après",removePage:"Supprimer la page actuelle",removePageConfirm:"Êtes-vous sûr de vouloir supprimer cette page ? Cette action est irréversible.","validation.hexColor":"Veuillez entrer un code couleur hexadécimal valide.","validation.uniqueName":"Veuillez saisir un nom unique.","schemas.color":"Couleur","schemas.borderWidth":"Largeur de la bordure","schemas.borderColor":"Couleur de la bordure","schemas.backgroundColor":"Couleur de fond","schemas.textColor":"Couleur du texte","schemas.bgColor":"Couleur de fond","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Gauche","schemas.center":"Centre","schemas.right":"Droite","schemas.top":"Haut","schemas.middle":"Milieu","schemas.bottom":"Bas","schemas.padding":"Zone de remplissage","schemas.text.fontName":"Nom de la police","schemas.text.size":"Taille","schemas.text.spacing":"Espacement","schemas.text.textAlign":"Alignement du texte","schemas.text.verticalAlign":"Alignement vertical","schemas.text.lineHeight":"Hauteur de ligne","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Ajustement","schemas.text.dynamicFontSize":"Taille de police dynamique","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Ajoutez des variables en tapant des mots entourés d'accolades, par ex.","schemas.mvt.sampleField":"nom","schemas.mvt.variablesSampleData":"Variables Exemples de données","schemas.barcodes.barColor":"Couleur de la barre","schemas.barcodes.includetext":"Inclure le texte","schemas.table.alternateBackgroundColor":"Couleur de fond alternative","schemas.table.tableStyle":"Style de tableau","schemas.table.headStyle":"Style d'en-tête","schemas.table.bodyStyle":"Style de corps","schemas.table.columnStyle":"Style de colonne","schemas.date.format":"Format de date","schemas.select.options":"Options","schemas.select.optionPlaceholder":"Entrez une option","schemas.radioGroup.groupName":"Nom du groupe"}},Bhe=e=>Ihe[e]||Ihe[TO],Mhe=(e,t)=>(t||Bhe(TO))[e],hf=h.createContext(Mhe),BP=h.createContext(wh()),y0=h.createContext(tne),HE=h.createContext({});function MP(e,t,r){const n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function kot(e,t){return e.reduce((r,n,i)=>{const a=t.get(n);return a&&(r[i]=a),r},Array(e.length))}function RP(e){return e!==null&&e>=0}function Fot(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function Lot(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Rhe=e=>{let{rects:t,activeIndex:r,overIndex:n,index:i}=e;const a=MP(t,n,r),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},PP={scaleX:1,scaleY:1},Not=e=>{var t;let{activeIndex:r,activeNodeRect:n,index:i,rects:a,overIndex:o}=e;const s=(t=a[r])!=null?t:n;if(!s)return null;if(i===r){const c=a[o];return c?{x:0,y:r<o?c.top+c.height-(s.top+s.height):c.top-s.top,...PP}:null}const l=$ot(a,i,r);return i>r&&i<=o?{x:0,y:-s.height-l,...PP}:i<r&&i>=o?{x:0,y:s.height+l,...PP}:{x:0,y:0,...PP}};function $ot(e,t,r){const n=e[t],i=e[t-1],a=e[t+1];return n?r<t?i?n.top-(i.top+i.height):a?a.top-(n.top+n.height):0:a?a.top-(n.top+n.height):i?n.top-(i.top+i.height):0:0}const Phe="Sortable",Dhe=J.createContext({activeIndex:-1,containerId:Phe,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Rhe,disabled:{draggable:!1,droppable:!1}});function jot(e){let{children:t,id:r,items:n,strategy:i=Rhe,disabled:a=!1}=e;const{active:o,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=$ne(),d=Ex(Phe,r),f=s.rect!==null,p=h.useMemo(()=>n.map(x=>typeof x=="object"&&"id"in x?x.id:x),[n]),A=o!=null,v=o?p.indexOf(o.id):-1,g=c?p.indexOf(c.id):-1,m=h.useRef(p),y=!Fot(p,m.current),b=g!==-1&&v===-1||y,C=Lot(a);Tl(()=>{y&&A&&u(p)},[y,p,A,u]),h.useEffect(()=>{m.current=p},[p]);const w=h.useMemo(()=>({activeIndex:v,containerId:d,disabled:C,disableTransforms:b,items:p,overIndex:g,useDragOverlay:f,sortedRects:kot(p,l),strategy:i}),[v,d,C.draggable,C.droppable,b,p,g,l,f,i]);return J.createElement(Dhe.Provider,{value:w},t)}const Qot=e=>{let{id:t,items:r,activeIndex:n,overIndex:i}=e;return MP(r,n,i).indexOf(t)},Hot=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:l,transition:c}=e;return!c||!n||s!==a&&i===o?!1:r?!0:o!==i&&t===l},zot={duration:200,easing:"ease"},The="transform",Wot=Xh.Transition.toString({property:The,duration:0,easing:"linear"}),Vot={roleDescription:"sortable"};function Got(e){let{disabled:t,index:r,node:n,rect:i}=e;const[a,o]=h.useState(null),s=h.useRef(r);return Tl(()=>{if(!t&&r!==s.current&&n.current){const l=i.current;if(l){const c=Um(n.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&o(u)}}r!==s.current&&(s.current=r)},[t,r,n,i]),h.useEffect(()=>{a&&o(null)},[a]),a}function Yot(e){let{animateLayoutChanges:t=Hot,attributes:r,disabled:n,data:i,getNewIndex:a=Qot,id:o,strategy:s,resizeObserverConfig:l,transition:c=zot}=e;const{items:u,containerId:d,activeIndex:f,disabled:p,disableTransforms:A,sortedRects:v,overIndex:g,useDragOverlay:m,strategy:y}=h.useContext(Dhe),b=Uot(n,p),C=u.indexOf(o),w=h.useMemo(()=>({sortable:{containerId:d,index:C,items:u},...i}),[d,i,C,u]),x=h.useMemo(()=>u.slice(u.indexOf(o)),[u,o]),{rect:E,node:S,isOver:I,setNodeRef:B}=xFe({id:o,data:w,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:x,...l}}),{active:R,activatorEvent:_,activeNodeRect:O,attributes:F,setNodeRef:k,listeners:D,isDragging:M,over:T,setActivatorNodeRef:L,transform:N}=Nne({id:o,data:w,attributes:{...Vot,...r},disabled:b.draggable}),$=s6e(B,k),U=!!R,Y=U&&!A&&RP(f)&&RP(g),V=!m&&M,K=V&&Y?N:null,X=Y?K??(s??y)({rects:v,activeNodeRect:O,activeIndex:f,overIndex:g,index:C}):null,Q=RP(f)&&RP(g)?a({id:o,items:u,activeIndex:f,overIndex:g}):C,z=R==null?void 0:R.id,j=h.useRef({activeId:z,items:u,newIndex:Q,containerId:d}),W=u!==j.current.items,ee=t({active:R,containerId:d,isDragging:M,isSorting:U,id:o,index:C,items:u,newIndex:j.current.newIndex,previousItems:j.current.items,previousContainerId:j.current.containerId,transition:c,wasDragging:j.current.activeId!=null}),q=Got({disabled:!ee,index:C,node:S,rect:E});return h.useEffect(()=>{U&&j.current.newIndex!==Q&&(j.current.newIndex=Q),d!==j.current.containerId&&(j.current.containerId=d),u!==j.current.items&&(j.current.items=u)},[U,Q,d,u]),h.useEffect(()=>{if(z===j.current.activeId)return;if(z&&!j.current.activeId){j.current.activeId=z;return}const ae=setTimeout(()=>{j.current.activeId=z},50);return()=>clearTimeout(ae)},[z]),{active:R,activeIndex:f,attributes:F,data:w,rect:E,index:C,newIndex:Q,items:u,isOver:I,isSorting:U,isDragging:M,listeners:D,node:S,overIndex:g,over:T,setNodeRef:$,setActivatorNodeRef:L,setDroppableNodeRef:B,setDraggableNodeRef:k,transform:q??X,transition:te()};function te(){if(q||W&&j.current.newIndex===C)return Wot;if(!(V&&!J4(_)||!c)&&(U||ee))return Xh.Transition.toString({...c,property:The})}}function Uot(e,t){var r,n;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e==null?void 0:e.draggable)!=null?r:t.draggable,droppable:(n=e==null?void 0:e.droppable)!=null?n:t.droppable}}function DP(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Kot=[bn.Down,bn.Right,bn.Up,bn.Left],qot=(e,t)=>{let{context:{active:r,collisionRect:n,droppableRects:i,droppableContainers:a,over:o,scrollableAncestors:s}}=t;if(Kot.includes(e.code)){if(e.preventDefault(),!r||!n)return;const l=[];a.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const f=i.get(d.id);if(f)switch(e.code){case bn.Down:n.top<f.top&&l.push(d);break;case bn.Up:n.top>f.top&&l.push(d);break;case bn.Left:n.left>f.left&&l.push(d);break;case bn.Right:n.left<f.left&&l.push(d);break}});const c=fne({active:r,collisionRect:n,droppableRects:i,droppableContainers:l,pointerCoordinates:null});let u=dne(c,"id");if(u===(o==null?void 0:o.id)&&c.length>1&&(u=c[1].id),u!=null){const d=a.get(r.id),f=a.get(u),p=f?i.get(f.id):null,A=f==null?void 0:f.node.current;if(A&&p&&d&&f){const g=rM(A).some((x,E)=>s[E]!==x),m=_he(d,f),y=Xot(d,f),b=g||!m?{x:0,y:0}:{x:y?n.width-p.width:0,y:y?n.height-p.height:0},C={x:p.left,y:p.top};return b.x&&b.y?C:Sx(C,b)}}}};function _he(e,t){return!DP(e)||!DP(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Xot(e,t){return!DP(e)||!DP(t)||!_he(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const{Text:Zot}=ff,d9=J.memo(J.forwardRef(({icon:e,value:t,status:r,title:n,required:i,readOnly:a,style:o,dragOverlay:s,onClick:l,onMouseEnter:c,onMouseLeave:u,dragging:d,fadeIn:f,listeners:p,sorting:A,transition:v,transform:g,...m},y)=>{const b=h.useContext(hf);h.useEffect(()=>{if(s)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[s]);const{x:C,y:w,scaleX:x,scaleY:E}=g||{x:0,y:0,scaleX:1,scaleY:1};return ke.jsx("li",{style:{marginTop:10,transition:v,transform:`translate(${C}px, ${w}px) scale(${x}, ${E})`},onMouseEnter:c,onMouseLeave:u,ref:y,children:ke.jsxs("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",...o},...m,onClick:()=>l&&l(),children:[ke.jsx(Or,{...p,style:{display:"flex",alignItems:"center",background:"none",boxShadow:"none",border:"none",paddingLeft:"0.25rem"},icon:ke.jsx(rfe,{style:{cursor:"grab"}})}),e,ke.jsxs(Zot,{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",width:"100%"},title:n||"",children:[r===void 0?t:ke.jsxs("span",{children:[ke.jsx(Jet,{width:15,style:{marginRight:"0.5rem"}}),r==="is-warning"?b("noKeyName"):t,r==="is-danger"?b("notUniq"):""]}),a&&ke.jsx(mtt,{style:{marginLeft:"0.5rem"}}),i&&ke.jsx("span",{style:{color:"red",marginLeft:"0.5rem"},children:"*"})]})]})})})),Jot=e=>{const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current},Ohe=(e,t)=>Math.floor((e/t>1?1:e/t)*100)/100,khe=({template:e,size:t,zoomLevel:r})=>{const[n,i]=h.useState([]),[a,o]=h.useState([]),[s,l]=h.useState(0),[c,u]=h.useState(null),d=async f=>{const{template:{basePdf:p,schemas:A},size:v}=f;let g,m,y,b;if(uc(p)){const{width:w,height:x}=p;g=w*On,m=x*On,y=A.map(()=>"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+P///38ACfsD/QVDRcoAAAAASUVORK5CYII="),b=A.map(()=>({width:w,height:x}))}else{const w=await OK(p),x=cZ(w);b=await lZ(x),g=b[0].width*On,m=b[0].height*On,y=await u4e(x,g)}const C=Math.min(Ohe(v.width,g),Ohe(v.height-na,m));return{backgrounds:y,pageSizes:b,scale:C}};return h.useEffect(()=>{d({template:e,size:t}).then(({pageSizes:f,scale:p,backgrounds:A})=>{o(f),l(p),i(A)}).catch(f=>{u(f),console.error(`[@pdfme/ui] ${f}`)})},[e,t]),{backgrounds:n,pageSizes:a,scale:s*r,error:c,refresh:f=>d({template:f,size:t}).then(({pageSizes:p,scale:A,backgrounds:v})=>{o(p),l(A),i(v)})}},Fhe=({ref:e,pageSizes:t,scale:r,pageCursor:n,onChangePageCursor:i})=>{const a=h.useCallback(()=>{if(!t[0]||!e.current)return;const o=e.current.scrollTop,{top:s}=e.current.getBoundingClientRect(),l=t.reduce((u,d,f)=>{let p=(d.height*On+na)*r;return f===0?p+=s-p/2:p+=u[f-1],u.concat(p)},[]);let c=0;l.forEach((u,d)=>{o>u&&(c=d+1>=l.length?l.length-1:d+1)}),c!==n&&i(c)},[i,n,t,e,r]);h.useEffect(()=>{var o;return(o=e.current)==null||o.addEventListener("scroll",a),()=>{var s;(s=e.current)==null||s.removeEventListener("scroll",a)}},[e,a])},est=()=>{const[e,t]=h.useState(!1);return h.useEffect(()=>{const r=setTimeout(()=>t(!0),500);return()=>clearTimeout(r)},[]),e},tst=({pageCursor:e,pageSizes:t,activeElements:r,template:n,schemasList:i,changeSchemas:a,commitSchemas:o,removeSchemas:s,onSaveTemplate:l,past:c,future:u,setSchemasList:d,onEdit:f,onEditEnd:p})=>{const A=h.useRef(null),v=h.useCallback(()=>{const m=()=>{const b=r.map(C=>C.id);return i[e].filter(C=>b.includes(C.id))},y=b=>{const C=b==="undo",w=C?c:u;if(w.current.length<=0)return;(C?u:c).current.push(Ma(i[e]));const x=Ma(i);x[e]=w.current.pop(),d(x)};s4e({move:(b,C)=>{const w=t[e],x=m(),E=h4e({command:b,activeSchemas:x,pageSize:w,isShift:C});a(E)},copy:()=>{const b=m();b.length!==0&&(A.current=b)},paste:()=>{if(!A.current||A.current.length===0)return;const b=i[e],C=[],w=A.current.map(x=>{const E=uC(),S=f4e({copiedSchemaName:x.name,schema:b,stackUniqueSchemaNames:C}),{height:I,width:B,position:R}=x,_=t[e],O={x:R.x+10>_.width-B?_.width-B:R.x+10,y:R.y+10>_.height-I?_.height-I:R.y+10};return Object.assign(Ma(x),{id:E,name:S,position:O})});o(i[e].concat(w)),f(w.map(x=>document.getElementById(x.id))),A.current=w},redo:()=>y("redo"),undo:()=>y("undo"),save:()=>l&&l(Ik(i,n.basePdf)),remove:()=>s(m().map(b=>b.id)),esc:p,selectAll:()=>f(i[e].map(b=>document.getElementById(b.id)))})},[n,r,e,t,a,o,i,l,s,c,u,d,A,f,p]),g=h.useCallback(()=>{l4e()},[]);h.useEffect(()=>(v(),g),[v,g])},rst=(e,t,r,n)=>{const a=new DOMParser().parseFromString(e,"text/html"),o=s=>{(s.tagName==="SVG"||s.tagName==="svg")&&(s.setAttribute("width",r.toString()),s.setAttribute("height",r.toString())),Array.from(s.children).forEach(l=>o(l))};return Array.from(a.body.children).forEach(s=>o(s)),ke.jsx("div",{style:n,title:t,dangerouslySetInnerHTML:{__html:a.body.innerHTML}})},f9=e=>{var c;const{plugin:t,label:r,size:n,styles:i}=e,{token:a}=ga.useToken(),s=((c=h.useContext(HE).icons)==null?void 0:c[t.propPanel.defaultSchema.type])??t.icon,l={...i,color:a.colorText,display:"flex",justifyContent:"center"};return s?n?rst(s,r,n,l):ke.jsx("div",{style:l,title:r,dangerouslySetInnerHTML:{__html:s}}):ke.jsx("div",{style:{...i,overflow:"hidden",fontSize:10},title:r,children:r})},nst=({isSelected:e,style:t,onSelect:r,onEdit:n,schema:i,schemas:a,onMouseEnter:o,onMouseLeave:s})=>{const{token:l}=ga.useToken(),c=h.useContext(hf),u=h.useContext(y0),{setNodeRef:d,listeners:f,isDragging:p,isSorting:A,transform:v,transition:g}=Yot({id:i.id}),m=est(),y=p&&!m,b={...f,onClick:B=>r(i.id,B.shiftKey)},[C,w]=Object.entries(u).find(([B,R])=>(R==null?void 0:R.propPanel.defaultSchema.type)===i.type),x={width:20,marginRight:"0.5rem"};let E;i.name?a.find(B=>i.name&&B.name===i.name&&B.id!==i.id)&&(E="is-danger"):E="is-warning";let S=c("edit");E==="is-warning"?S=c("plsInputName"):E==="is-danger"&&(S=c("fieldMustUniq"));const I=e?{background:l.colorPrimary,opacity:A||p?.5:1}:{};return ke.jsx(d9,{ref:d,onMouseEnter:o,onMouseLeave:s,onClick:()=>n(i.id),icon:w&&ke.jsx(f9,{plugin:w,label:C,size:20,styles:x}),value:i.name,status:E,title:S,required:i.required,readOnly:i.readOnly,style:{...I,...t},dragging:p,sorting:A,transition:g,transform:v,fadeIn:y,listeners:b})},ist=e=>{const{token:t}=ga.useToken(),{schemas:r,onEdit:n,onSortEnd:i,hoveringSchemaId:a,onChangeHoveringSchemaId:o}=e,[s,l]=h.useState([]),[c,u]=h.useState(null),[d,f]=h.useState(null),p=h.useContext(y0),A=w6e(cne(LF,{activationConstraint:{distance:15}}),cne(kF,{coordinateGetter:qot})),v=y=>s.map(b=>b.id).includes(y),g=(y,b)=>{if(b)if(v(y)){const C=s.filter(w=>w.id!==y);l(C)}else{const C=r.find(x=>x.id===y),w=s.concat(C);l(w)}else l([])},m=y=>{const b=typeof y=="string"?r.find(x=>x.id===y):y,[C,w]=Object.entries(p).find(([x,E])=>(E==null?void 0:E.propPanel.defaultSchema.type)===(b==null?void 0:b.type));return w?ke.jsx(f9,{plugin:w,label:C,size:20,styles:{marginRight:"0.5rem"}}):ke.jsx(ke.Fragment,{})};return ke.jsx(Fne,{sensors:A,collisionDetection:fne,onDragStart:({active:y})=>{f(String(y.id)),u(r),v(String(y.id))?s.length>0&&i(s.reduce((b,C)=>C.id===String(y.id)?b:b.filter(w=>w!==C),r)):l([])},onDragEnd:({active:y,over:b})=>{const C=(b==null?void 0:b.id)||"",w=r.map(E=>E.id).indexOf(String(y.id)),x=r.map(E=>E.id).indexOf(String(C));if(s.length){let E=[...r];E=MP(E,w,x),E.splice(x+1,0,...s.filter(S=>S.id!==d)),i(E),l([])}else w!==x&&i(MP(r,w,x));f(null)},onDragCancel:()=>{c&&i(c),f(null),u(null)},children:ke.jsxs(ke.Fragment,{children:[ke.jsx("div",{style:{height:"100%",overflowY:"auto"},children:ke.jsx(jot,{items:r,strategy:Not,children:ke.jsx("ul",{style:{margin:0,padding:0,listStyle:"none",borderRadius:5},children:r.map(y=>ke.jsx(nst,{style:{border:`1px solid ${y.id===a?t.colorPrimary:"transparent"}`},schema:y,schemas:r,isSelected:v(y.id)||d===y.id,onEdit:n,onSelect:g,onMouseEnter:()=>o(y.id),onMouseLeave:()=>o(null)},y.id))})})}),_n.createPortal(ke.jsx(OFe,{adjustScale:!0,children:d?(()=>{const y=r.find(b=>b.id===d);return y?ke.jsxs(ke.Fragment,{children:[ke.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:ke.jsx(d9,{icon:m(d),value:y.name,required:y.required,readOnly:y.readOnly,style:{background:t.colorPrimary},dragOverlay:!0})}),ke.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:s.filter(b=>b.id!==d).map(b=>ke.jsx(d9,{icon:m(b),value:b.name,required:b.required,readOnly:b.readOnly,style:{background:t.colorPrimary},dragOverlay:!0},b.id))})]}):null})():null}),document.body)]})})},{Text:ast}=ff,{TextArea:ost}=zl,h9=40,sst=e=>{const{schemas:t,onSortEnd:r,onEdit:n,size:i,hoveringSchemaId:a,onChangeHoveringSchemaId:o,changeSchemas:s}=e,{token:l}=ga.useToken(),c=h.useContext(hf),[u,d]=h.useState(!1),[f,p]=h.useState(""),A=dZ(i.height),v=()=>{const m=f.split(`
528
+ `]:{zIndex:10,width:n,margin:`0 ${fe(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${fe(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${fe(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},wot=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Cot=e=>{const{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},qr(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},xot=Xr("Upload",e=>{const{fontSizeHeading3:t,fontHeight:r,lineWidth:n,controlHeightLG:i,calc:a}=e,o=ur(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(r).div(2)).add(n).equal(),uploadPicCardSize:a(i).mul(2.55).equal()});return[Cot(o),got(o),bot(o),yot(o),vot(o),mot(o),wot(o),Jx(o)]},e=>({actionsColor:e.colorTextDescription}));function SP(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function IP(e,t){const r=Qe(t),n=r.findIndex(i=>{let{uid:a}=i;return a===e.uid});return n===-1?r.push(e):r[n]=e,r}function c9(e,t){const r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function Eot(e,t){const r=e.uid!==void 0?"uid":"name",n=t.filter(i=>i[r]!==e[r]);return n.length===t.length?null:n}const Sot=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},Ehe=e=>e.indexOf("image/")===0,Iot=e=>{if(e.type&&!e.thumbUrl)return Ehe(e.type);const t=e.thumbUrl||e.url||"",r=Sot(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(t)||r)},b0=200;function Bot(e){return new Promise(t=>{if(!e.type||!Ehe(e.type)){t("");return}const r=document.createElement("canvas");r.width=b0,r.height=b0,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${b0}px; height: ${b0}px; z-index: 9999; display: none;`,document.body.appendChild(r);const n=r.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:a,height:o}=i;let s=b0,l=b0,c=0,u=0;a>o?(l=o*(b0/a),u=-(l-s)/2):(s=a*(b0/o),c=-(s-l)/2),n.drawImage(i,c,u,s,l);const d=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(i.src),t(d)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(i.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&t(a.result)},a.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}const Mot=h.forwardRef((e,t)=>{let{prefixCls:r,className:n,style:i,locale:a,listType:o,file:s,items:l,progress:c,iconRender:u,actionIconRender:d,itemRender:f,isImgUrl:p,showPreviewIcon:A,showRemoveIcon:v,showDownloadIcon:g,previewIcon:m,removeIcon:y,downloadIcon:b,extra:C,onPreview:w,onDownload:x,onClose:E}=e;var S,I;const{status:B}=s,[R,_]=h.useState(B);h.useEffect(()=>{B!=="removed"&&_(B)},[B]);const[O,F]=h.useState(!1);h.useEffect(()=>{const q=setTimeout(()=>{F(!0)},300);return()=>{clearTimeout(q)}},[]);const k=u(s);let D=h.createElement("div",{className:`${r}-icon`},k);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(R==="uploading"||!s.thumbUrl&&!s.url){const q=Ae(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:R!=="uploading"});D=h.createElement("div",{className:q},k)}else{const q=p!=null&&p(s)?h.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${r}-list-item-image`,crossOrigin:s.crossOrigin}):k,te=Ae(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:p&&!p(s)});D=h.createElement("a",{className:te,onClick:ae=>w(s,ae),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},q)}const M=Ae(`${r}-list-item`,`${r}-list-item-${R}`),T=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,L=(typeof v=="function"?v(s):v)?d((typeof y=="function"?y(s):y)||h.createElement(Qet,null),()=>E(s),r,a.removeFile,!0):null,N=(typeof g=="function"?g(s):g)&&R==="done"?d((typeof b=="function"?b(s):b)||h.createElement(Wet,null),()=>x(s),r,a.downloadFile):null,$=o!=="picture-card"&&o!=="picture-circle"&&h.createElement("span",{key:"download-delete",className:Ae(`${r}-list-item-actions`,{picture:o==="picture"})},N,L),U=typeof C=="function"?C(s):C,Y=U&&h.createElement("span",{className:`${r}-list-item-extra`},U),V=Ae(`${r}-list-item-name`),K=s.url?h.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:V,title:s.name},T,{href:s.url,onClick:q=>w(s,q)}),s.name,Y):h.createElement("span",{key:"view",className:V,onClick:q=>w(s,q),title:s.name},s.name,Y),ne=(typeof A=="function"?A(s):A)&&(s.url||s.thumbUrl)?h.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:q=>w(s,q),title:a.previewFile},typeof m=="function"?m(s):m||h.createElement(n$,null)):null,X=(o==="picture-card"||o==="picture-circle")&&R!=="uploading"&&h.createElement("span",{className:`${r}-list-item-actions`},ne,R==="done"&&N,L),{getPrefixCls:Q}=h.useContext(Pt),z=Q(),j=h.createElement("div",{className:M},D,K,$,X,O&&h.createElement(to,{motionName:`${z}-fade`,visible:R==="uploading",motionDeadline:2e3},q=>{let{className:te}=q;const ae="percent"in s?h.createElement(bet,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return h.createElement("div",{className:Ae(`${r}-list-item-progress`,te)},ae)})),W=s.response&&typeof s.response=="string"?s.response:((S=s.error)===null||S===void 0?void 0:S.statusText)||((I=s.error)===null||I===void 0?void 0:I.message)||a.uploadError,ee=R==="error"?h.createElement(Co,{title:W,getPopupContainer:q=>q.parentNode},j):j;return h.createElement("div",{className:Ae(`${r}-list-item-container`,n),style:i,ref:t},f?f(ee,s,l,{download:x.bind(null,s),preview:w.bind(null,s),remove:E.bind(null,s)}):ee)}),Rot=(e,t)=>{const{listType:r="text",previewFile:n=Bot,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:l,isImageUrl:c=Iot,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:A=!1,removeIcon:v,previewIcon:g,downloadIcon:m,extra:y,progress:b={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:w=!0,itemRender:x,disabled:E}=e,S=uN(),[I,B]=h.useState(!1),R=["picture-card","picture-circle"].includes(r);h.useEffect(()=>{r.startsWith("picture")&&(d||[]).forEach(Y=>{!(Y.originFileObj instanceof File||Y.originFileObj instanceof Blob)||Y.thumbUrl!==void 0||(Y.thumbUrl="",n==null||n(Y.originFileObj).then(V=>{Y.thumbUrl=V||"",S()}))})},[r,d,n]),h.useEffect(()=>{B(!0)},[]);const _=(Y,V)=>{if(i)return V.preventDefault(),i(Y)},O=Y=>{typeof a=="function"?a(Y):Y.url&&window.open(Y.url)},F=Y=>{o==null||o(Y)},k=Y=>{if(l)return l(Y,r);const V=Y.status==="uploading";if(r.startsWith("picture")){const K=r==="picture"?h.createElement(Wu,null):s.uploading,ne=c!=null&&c(Y)?h.createElement(_tt,null):h.createElement(itt,null);return V?K:ne}return V?h.createElement(Wu,null):h.createElement(Ptt,null)},D=(Y,V,K,ne,X)=>{const Q={type:"text",size:"small",title:ne,onClick:z=>{var j,W;V(),h.isValidElement(Y)&&((W=(j=Y.props).onClick)===null||W===void 0||W.call(j,z))},className:`${K}-list-item-action`};return X&&(Q.disabled=E),h.isValidElement(Y)?h.createElement(Or,Object.assign({},Q,{icon:da(Y,Object.assign(Object.assign({},Y.props),{onClick:()=>{}}))})):h.createElement(Or,Object.assign({},Q),h.createElement("span",null,Y))};h.useImperativeHandle(t,()=>({handlePreview:_,handleDownload:O}));const{getPrefixCls:M}=h.useContext(Pt),T=M("upload",u),L=M(),N=Ae(`${T}-list`,`${T}-list-${r}`),$=h.useMemo(()=>Pn(ub(L),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[L]),U=Object.assign(Object.assign({},R?{}:$),{motionDeadline:2e3,motionName:`${T}-${R?"animate-inline":"animate"}`,keys:Qe(d.map(Y=>({key:Y.uid,file:Y}))),motionAppear:I});return h.createElement("div",{className:N},h.createElement(KL,Object.assign({},U,{component:!1}),Y=>{let{key:V,file:K,className:ne,style:X}=Y;return h.createElement(Mot,{key:V,locale:s,prefixCls:T,className:ne,style:X,file:K,items:d,progress:b,listType:r,isImgUrl:c,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:A,removeIcon:v,previewIcon:g,downloadIcon:m,extra:y,iconRender:k,actionIconRender:D,itemRender:x,onPreview:_,onDownload:O,onClose:F})}),C&&h.createElement(to,Object.assign({},U,{visible:w,forceRender:!0}),Y=>{let{className:V,style:K}=Y;return da(C,ne=>({className:Ae(ne.className,V),style:Object.assign(Object.assign(Object.assign({},K),{pointerEvents:V?"none":void 0}),ne.style)}))}))},Pot=h.forwardRef(Rot);var Dot=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((n=n.apply(e,[])).next())})};const QE=`__LIST_IGNORE_${Date.now()}__`,Tot=(e,t)=>{const{fileList:r,defaultFileList:n,onRemove:i,showUploadList:a=!0,listType:o="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:d,disabled:f,locale:p,iconRender:A,isImageUrl:v,progress:g,prefixCls:m,className:y,type:b="select",children:C,style:w,itemRender:x,maxCount:E,data:S={},multiple:I=!1,hasControlInside:B=!0,action:R="",accept:_="",supportServerRender:O=!0,rootClassName:F}=e,k=h.useContext(ca),D=f??k,[M,T]=Mr(n||[],{value:r,postState:xe=>xe??[]}),[L,N]=h.useState("drop"),$=h.useRef(null),U=h.useRef(null);h.useMemo(()=>{const xe=Date.now();(r||[]).forEach((_e,Pe)=>{!_e.uid&&!Object.isFrozen(_e)&&(_e.uid=`__AUTO__${xe}_${Pe}__`)})},[r]);const Y=(xe,_e,Pe)=>{let Be=Qe(_e),Oe=!1;E===1?Be=Be.slice(-1):E&&(Oe=Be.length>E,Be=Be.slice(0,E)),_n.flushSync(()=>{T(Be)});const Ze={file:xe,fileList:Be};Pe&&(Ze.event=Pe),(!Oe||xe.status==="removed"||Be.some(Et=>Et.uid===xe.uid))&&_n.flushSync(()=>{c==null||c(Ze)})},V=(xe,_e)=>Dot(void 0,void 0,void 0,function*(){const{beforeUpload:Pe,transformFile:Be}=e;let Oe=xe;if(Pe){const Ze=yield Pe(xe,_e);if(Ze===!1)return!1;if(delete xe[QE],Ze===QE)return Object.defineProperty(xe,QE,{value:!0,configurable:!0}),!1;typeof Ze=="object"&&Ze&&(Oe=Ze)}return Be&&(Oe=yield Be(Oe)),Oe}),K=xe=>{const _e=xe.filter(Oe=>!Oe.file[QE]);if(!_e.length)return;const Pe=_e.map(Oe=>SP(Oe.file));let Be=Qe(M);Pe.forEach(Oe=>{Be=IP(Oe,Be)}),Pe.forEach((Oe,Ze)=>{let Et=Oe;if(_e[Ze].parsedFile)Oe.status="uploading";else{const{originFileObj:tt}=Oe;let Ve;try{Ve=new File([tt],tt.name,{type:tt.type})}catch{Ve=new Blob([tt],{type:tt.type}),Ve.name=tt.name,Ve.lastModifiedDate=new Date,Ve.lastModified=new Date().getTime()}Ve.uid=Oe.uid,Et=Ve}Y(Et,Be)})},ne=(xe,_e,Pe)=>{try{typeof xe=="string"&&(xe=JSON.parse(xe))}catch{}if(!c9(_e,M))return;const Be=SP(_e);Be.status="done",Be.percent=100,Be.response=xe,Be.xhr=Pe;const Oe=IP(Be,M);Y(Be,Oe)},X=(xe,_e)=>{if(!c9(_e,M))return;const Pe=SP(_e);Pe.status="uploading",Pe.percent=xe.percent;const Be=IP(Pe,M);Y(Pe,Be,xe)},Q=(xe,_e,Pe)=>{if(!c9(Pe,M))return;const Be=SP(Pe);Be.error=xe,Be.response=_e,Be.status="error";const Oe=IP(Be,M);Y(Be,Oe)},z=xe=>{let _e;Promise.resolve(typeof i=="function"?i(xe):i).then(Pe=>{var Be;if(Pe===!1)return;const Oe=Eot(xe,M);Oe&&(_e=Object.assign(Object.assign({},xe),{status:"removed"}),M==null||M.forEach(Ze=>{const Et=_e.uid!==void 0?"uid":"name";Ze[Et]===_e[Et]&&!Object.isFrozen(Ze)&&(Ze.status="removed")}),(Be=$.current)===null||Be===void 0||Be.abort(_e),Y(_e,Oe))})},j=xe=>{N(xe.type),xe.type==="drop"&&(u==null||u(xe))};h.useImperativeHandle(t,()=>({onBatchStart:K,onSuccess:ne,onProgress:X,onError:Q,fileList:M,upload:$.current,nativeElement:U.current}));const{getPrefixCls:W,direction:ee,upload:q}=h.useContext(Pt),te=W("upload",m),ae=Object.assign(Object.assign({onBatchStart:K,onError:Q,onProgress:X,onSuccess:ne},e),{data:S,multiple:I,action:R,accept:_,supportServerRender:O,prefixCls:te,disabled:D,beforeUpload:V,onChange:void 0,hasControlInside:B});delete ae.className,delete ae.style,(!C||D)&&delete ae.id;const ce=`${te}-wrapper`,[de,se,pe]=xot(te,ce),[ye]=Qu("Upload",Ll.Upload),{showRemoveIcon:Ce,showPreviewIcon:Se,showDownloadIcon:Ie,removeIcon:Re,previewIcon:De,downloadIcon:Fe,extra:re}=typeof a=="boolean"?{}:a,H=typeof Ce>"u"?!D:Ce,G=(xe,_e)=>a?h.createElement(Pot,{prefixCls:te,listType:o,items:M,previewFile:d,onPreview:s,onDownload:l,onRemove:z,showRemoveIcon:H,showPreviewIcon:Se,showDownloadIcon:Ie,removeIcon:Re,previewIcon:De,downloadIcon:Fe,iconRender:A,extra:re,locale:Object.assign(Object.assign({},ye),p),isImageUrl:v,progress:g,appendAction:xe,appendActionVisible:_e,itemRender:x,disabled:D}):xe,oe=Ae(ce,y,F,se,pe,q==null?void 0:q.className,{[`${te}-rtl`]:ee==="rtl",[`${te}-picture-card-wrapper`]:o==="picture-card",[`${te}-picture-circle-wrapper`]:o==="picture-circle"}),me=Object.assign(Object.assign({},q==null?void 0:q.style),w);if(b==="drag"){const xe=Ae(se,te,`${te}-drag`,{[`${te}-drag-uploading`]:M.some(_e=>_e.status==="uploading"),[`${te}-drag-hover`]:L==="dragover",[`${te}-disabled`]:D,[`${te}-rtl`]:ee==="rtl"});return de(h.createElement("span",{className:oe,ref:U},h.createElement("div",{className:xe,style:me,onDrop:j,onDragOver:j,onDragLeave:j},h.createElement(l9,Object.assign({},ae,{ref:$,className:`${te}-btn`}),h.createElement("div",{className:`${te}-drag-container`},C))),G()))}const we=Ae(te,`${te}-select`,{[`${te}-disabled`]:D}),Ee=h.createElement("div",{className:we,style:C?void 0:{display:"none"}},h.createElement(l9,Object.assign({},ae,{ref:$})));return de(o==="picture-card"||o==="picture-circle"?h.createElement("span",{className:oe,ref:U},G(Ee,!!C)):h.createElement("span",{className:oe,ref:U},Ee,G()))},She=h.forwardRef(Tot);var _ot=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Oot=h.forwardRef((e,t)=>{var{style:r,height:n,hasControlInside:i=!1}=e,a=_ot(e,["style","height","hasControlInside"]);return h.createElement(She,Object.assign({ref:t,hasControlInside:i},a,{type:"drag",style:Object.assign(Object.assign({},r),{height:n})}))}),u9=She;u9.Dragger=Oot,u9.LIST_IGNORE=QE;const Ihe={en:{cancel:"Cancel",close:"Close",field:"field",fieldName:"Name",align:"Align",width:"Width",height:"Height",opacity:"Opacity",rotate:"Rotate",required:"Required",editable:"Editable",edit:"Edit",plsInputName:"Please input name",fieldMustUniq:"Name of field is not unique",notUniq:"(Not unique name)",noKeyName:"No name",fieldsList:"Field List",editField:"Edit Field",type:"Type",errorOccurred:"An error occurred",errorBulkUpdateFieldName:"Cannot commit the change because the number of items has been changed.",commitBulkUpdateFieldName:"Commit Changes",bulkUpdateFieldName:"Bulk update field names",addPageAfter:"Add Page After",removePage:"Remove Current Page",removePageConfirm:"Are you sure you want to delete this page? This action cannot be undone.","validation.hexColor":"Please enter a valid hex color code.","validation.uniqueName":"Please enter a unique name.","schemas.color":"Color","schemas.borderWidth":"Border Width","schemas.borderColor":"Border Color","schemas.backgroundColor":"Background Color","schemas.textColor":"Text Color","schemas.bgColor":"Background Color","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Left","schemas.center":"Center","schemas.right":"Right","schemas.top":"Top","schemas.middle":"Middle","schemas.bottom":"Bottom","schemas.padding":"Padding","schemas.text.fontName":"Font Name","schemas.text.size":"Size","schemas.text.spacing":"Spacing","schemas.text.textAlign":"Text Align","schemas.text.verticalAlign":"Vertical Align","schemas.text.lineHeight":"Line Height","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Fit","schemas.text.dynamicFontSize":"Dynamic Font Size","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Add variables by typing words surrounded by curly brackets, e.g.","schemas.mvt.sampleField":"name","schemas.mvt.variablesSampleData":"Variables Sample Data","schemas.barcodes.barColor":"Bar Color","schemas.barcodes.includetext":"Include Text","schemas.table.alternateBackgroundColor":"Alternate Background Color","schemas.table.tableStyle":"Table Style","schemas.table.showHead":"Show Head","schemas.table.headStyle":"Header Style","schemas.table.bodyStyle":"Body Style","schemas.table.columnStyle":"Column Style","schemas.date.format":"Date Format","schemas.select.options":"Options","schemas.select.optionPlaceholder":"Enter an option","schemas.radioGroup.groupName":"Group Name"},zh:{cancel:"取消",close:"关闭",field:"字段",fieldName:"名称",align:"对齐",width:"宽度",height:"高度",opacity:"透明度",rotate:"旋转",required:"必需的",editable:"可编辑的",edit:"编辑",plsInputName:"请输入名称",fieldMustUniq:"字段名称必须唯一",notUniq:"(名称不唯一)",noKeyName:"无名称",fieldsList:"字段列表",editField:"编辑字段",type:"类型",errorOccurred:"发生错误",errorBulkUpdateFieldName:"由于项目数量已更改,无法提交更改。",commitBulkUpdateFieldName:"提交更改",bulkUpdateFieldName:"批量更新字段名称",addPageAfter:"在之后添加页面",removePage:"删除当前页面",removePageConfirm:"您确定要删除此页面吗?此操作无法撤销。","validation.hexColor":"请输入有效的十六进制颜色代码。","validation.uniqueName":"请输入一个唯一的名称。","schemas.color":"颜色","schemas.borderWidth":"边框宽度","schemas.borderColor":"边框颜色","schemas.backgroundColor":"背景颜色","schemas.textColor":"文字颜色","schemas.bgColor":"背景颜色","schemas.horizontal":"水平","schemas.vertical":"垂直","schemas.left":"左","schemas.center":"中","schemas.right":"右","schemas.top":"顶","schemas.middle":"中间","schemas.bottom":"底","schemas.padding":"填充","schemas.text.fontName":"字体名称","schemas.text.size":"大小","schemas.text.spacing":"间距","schemas.text.textAlign":"文本对齐","schemas.text.verticalAlign":"垂直对齐","schemas.text.lineHeight":"行高","schemas.text.min":"最小","schemas.text.max":"最大","schemas.text.fit":"适应","schemas.text.dynamicFontSize":"动态字体大小","schemas.text.format":"格式","schemas.mvt.typingInstructions":"通过输入用花括号括起来的单词来添加变量,例如","schemas.mvt.sampleField":"姓名","schemas.mvt.variablesSampleData":"变量样本数据","schemas.barcodes.barColor":"条码颜色","schemas.barcodes.includetext":"包括文本","schemas.table.alternateBackgroundColor":"交替背景颜色","schemas.table.tableStyle":"表格样式","schemas.table.showHead":"显示标题","schemas.table.headStyle":"表头样式","schemas.table.bodyStyle":"表体样式","schemas.table.columnStyle":"列样式","schemas.date.format":"日期格式","schemas.select.options":"选项","schemas.select.optionPlaceholder":"请输入选项","schemas.radioGroup.groupName":"组名"},ja:{cancel:"キャンセル",close:"閉じる",field:"入力項目",fieldName:"項目名",align:"整列",width:"幅",height:"高さ",opacity:"不透明度",rotate:"回転",required:"必須",editable:"編集可能",edit:"編集する",plsInputName:"項目名を入力してください",fieldMustUniq:"他の入力項目名と被っています",notUniq:"(他の項目名と重複しています)",noKeyName:"項目名なし",fieldsList:"入力項目一覧",editField:"入力項目を編集",type:"タイプ",errorOccurred:"エラーが発生しました",errorBulkUpdateFieldName:"項目数が変更されているため変更をコミットできません。",commitBulkUpdateFieldName:"変更を反映",bulkUpdateFieldName:"項目名を一括変更",addPageAfter:"次にページを追加",removePage:"現在のページを削除",removePageConfirm:"ページを削除してもよろしいですか?この操作は元に戻せません。","validation.hexColor":"有効な16進数のカラーコードを入力してください。","validation.uniqueName":"一意の名前を入力してください。","schemas.color":"色","schemas.borderWidth":"枠線の太さ","schemas.borderColor":"枠線の色","schemas.backgroundColor":"背景色","schemas.textColor":"テキストの色","schemas.bgColor":"背景色","schemas.horizontal":"水平","schemas.vertical":"垂直","schemas.left":"左","schemas.center":"中央","schemas.right":"右","schemas.top":"上","schemas.middle":"中間","schemas.bottom":"下","schemas.padding":"パディング","schemas.text.fontName":"フォント名","schemas.text.size":"サイズ","schemas.text.spacing":"間隔","schemas.text.textAlign":"テキストの揃え","schemas.text.verticalAlign":"垂直方向の揃え","schemas.text.lineHeight":"行の高さ","schemas.text.min":"最小","schemas.text.max":"最大","schemas.text.fit":"フィット","schemas.text.dynamicFontSize":"動的フォントサイズ","schemas.text.format":"書式","schemas.mvt.typingInstructions":"中括弧で囲まれた単語を入力して変数を追加します。例:","schemas.mvt.sampleField":"名前","schemas.mvt.variablesSampleData":"変数サンプルデータ","schemas.barcodes.barColor":"バーの色","schemas.barcodes.includetext":"テキストを含める","schemas.table.alternateBackgroundColor":"交互の背景色","schemas.table.tableStyle":"テーブルスタイル","schemas.table.showHead":"ヘッダーを表示","schemas.table.headStyle":"ヘッダースタイル","schemas.table.bodyStyle":"ボディスタイル","schemas.table.columnStyle":"カラムスタイル","schemas.date.format":"日付形式","schemas.select.options":"オプション","schemas.select.optionPlaceholder":"オプションを入力してください","schemas.radioGroup.groupName":"グループ名"},ko:{cancel:"취소",close:"닫기",field:"필드",fieldName:"이름",align:"정렬",width:"너비",height:"높이",opacity:"투명도",rotate:"회전",required:"필수의",editable:"편집 가능한",edit:"편집",plsInputName:"이름을 입력하세요",fieldMustUniq:"필드 이름은 유일해야 합니다",notUniq:"(유일하지 않은 이름)",noKeyName:"이름 없음",fieldsList:"필드 목록",editField:"필드 편집",type:"유형",errorOccurred:"오류 발생",errorBulkUpdateFieldName:"항목 수가 변경되어 변경을 커밋할 수 없습니다.",commitBulkUpdateFieldName:"변경 사항 커밋",bulkUpdateFieldName:"필드 이름 일괄 업데이트",addPageAfter:"다음에 페이지 추가",removePage:"현재 페이지 제거",removePageConfirm:"이 페이지를 삭제하시겠습니까? 이 작업은 취소할 수 없습니다.","validation.hexColor":"유효한 16진수 색상 코드를 입력하세요.","validation.uniqueName":"고유한 이름을 입력하세요.","schemas.color":"색상","schemas.borderWidth":"테두리 너비","schemas.borderColor":"테두리 색상","schemas.backgroundColor":"배경색","schemas.textColor":"텍스트 색상","schemas.bgColor":"배경색","schemas.horizontal":"수평","schemas.vertical":"수직","schemas.left":"왼쪽","schemas.center":"중앙","schemas.right":"오른쪽","schemas.top":"상단","schemas.middle":"중간","schemas.bottom":"하단","schemas.padding":"패딩","schemas.text.fontName":"글꼴 이름","schemas.text.size":"크기","schemas.text.spacing":"간격","schemas.text.textAlign":"텍스트 정렬","schemas.text.verticalAlign":"수직 정렬","schemas.text.lineHeight":"줄 높이","schemas.text.min":"최소","schemas.text.max":"최대","schemas.text.fit":"맞춤","schemas.text.dynamicFontSize":"동적 폰트 크기","schemas.text.format":"형식","schemas.mvt.typingInstructions":"중괄호로 묶인 단어를 입력하여 변수를 추가하세요.","schemas.mvt.sampleField":"이름","schemas.mvt.variablesSampleData":"변수 샘플 데이터","schemas.barcodes.barColor":"바코드 색상","schemas.barcodes.includetext":"텍스트 포함","schemas.table.alternateBackgroundColor":"대체 배경색","schemas.table.tableStyle":"테이블 스타일","schemas.table.showHead":"헤드 표시","schemas.table.headStyle":"헤더 스타일","schemas.table.bodyStyle":"본문 스타일","schemas.table.columnStyle":"열 스타일","schemas.date.format":"날짜 형식","schemas.select.options":"옵션","schemas.select.optionPlaceholder":"옵션을 입력하세요","schemas.radioGroup.groupName":"그룹 이름"},ar:{cancel:"إلغاء",close:"إغلاق",field:"الحقل",fieldName:"اسم الحقل",align:"محاذاة",width:"العرض",height:"الارتفاع",opacity:"الشفافية",rotate:"تدوير",required:"مطلوب",editable:"قابل للتحرير",edit:"تعديل",plsInputName:"الرجاء إدخال الاسم",fieldMustUniq:"يجب أن يكون الحقل فريداً",notUniq:"(غير فريد)",noKeyName:"لا يوجد اسم للحقل",fieldsList:"قائمة الحقول",editField:"تعديل الحقل",type:"النوع",errorOccurred:"حدث خطأ",errorBulkUpdateFieldName:"لا يمكن تنفيذ التغيير لأنه تم تغيير عدد العناصر.",commitBulkUpdateFieldName:"تنفيذ التغييرات",bulkUpdateFieldName:"تغيير الأسماء",addPageAfter:"إضافة صفحة بعد",removePage:"احذف الصفحة الحالية",removePageConfirm:"هل أنت متأكد من رغبتك في حذف هذه الصفحة؟ لا يمكن التراجع عن هذا الإجراء.","validation.hexColor":"الرجاء إدخال رمز لون سداسي عشري صالح.","validation.uniqueName":"الرجاء إدخال اسم فريد.","schemas.color":"اللون","schemas.borderWidth":"عرض الحدود","schemas.borderColor":"لون الحدود","schemas.backgroundColor":"لون الخلفية","schemas.textColor":"لون الخط","schemas.bgColor":"لون الخلفية","schemas.horizontal":"أفقي","schemas.vertical":"عمودي","schemas.left":"يسار","schemas.center":"مركز","schemas.right":"يمين","schemas.top":"أعلى","schemas.middle":"وسط","schemas.bottom":"أسفل","schemas.padding":"التبطين","schemas.text.fontName":"اسم الخط","schemas.text.size":"الحجم","schemas.text.spacing":"التباعد","schemas.text.textAlign":"محاذاة النص","schemas.text.verticalAlign":"محاذاة عمودية","schemas.text.lineHeight":"ارتفاع السطر","schemas.text.min":"الحد الأدنى","schemas.text.max":"الحد الأقصى","schemas.text.fit":"ملاءمة","schemas.text.dynamicFontSize":"حجم الخط الديناميكي","schemas.text.format":"تنسيق","schemas.mvt.typingInstructions":"قم بإضافة المتغيرات عن طريق كتابة الكلمات المحاطة بأقواس متعرجة، على سبيل المثال:","schemas.mvt.sampleField":"اسم","schemas.mvt.variablesSampleData":"بيانات عينة المتغيرات","schemas.barcodes.barColor":"لون الشريط","schemas.barcodes.includetext":"تضمين النص","schemas.table.alternateBackgroundColor":"لون الخلفية البديل","schemas.table.tableStyle":"أسلوب الجدول","schemas.table.showHead":"إظهار الرأس","schemas.table.headStyle":"أسلوب الرأس","schemas.table.bodyStyle":"أسلوب الجسم","schemas.table.columnStyle":"أسلوب العمود","schemas.date.format":"تنسيق التاريخ","schemas.select.options":"خيارات","schemas.select.optionPlaceholder":"أدخل خيارًا","schemas.radioGroup.groupName":"اسم المجموعة"},th:{cancel:"ยกเลิก",close:"ปิด",field:"ฟิลด์",fieldName:"ชื่อฟิลด์",align:"จัดเรียง",width:"ความกว้าง",height:"ความสูง",opacity:"ความทึบ",rotate:"หมุน",required:"ที่จำเป็น",editable:"แก้ไขได้",edit:"แก้ไข",plsInputName:"กรุณาใส่ชื่อ",fieldMustUniq:"ชื่อฟิลด์ต้องไม่ซ้ำกัน",notUniq:"(ชื่อฟิลด์ซ้ำกัน)",noKeyName:"ไม่มีชื่อ",fieldsList:"รายการฟิลด์ทั้งหมด",editField:"แก้ไขฟิลด์",type:"ประเภท",errorOccurred:"เกิดข้อผิดพลาด",errorBulkUpdateFieldName:"ไม่สามารถยืนยันการแก้ไขได้เนื่องจากจำนวนรายการมีการเปลี่ยนแปลง",commitBulkUpdateFieldName:"ยืนยันการแก้ไข",bulkUpdateFieldName:"แก้ไขชื่อฟิลด์เป็นชุด",addPageAfter:"เพิ่มหน้าถัดไป",removePage:"ลบหน้าปัจจุบัน",removePageConfirm:"คุณแน่ใจหรือไม่ว่าต้องการลบหน้านี้? การกระทำนี้ไม่สามารถย้อนกลับได้","validation.hexColor":"กรุณาใส่รหัสสีแบบฐานสิบหกที่ถูกต้อง","validation.uniqueName":"กรุณาระบุชื่อที่ไม่ซ้ำ","schemas.color":"สี","schemas.borderWidth":"ความกว้างของเส้นขอบ","schemas.borderColor":"สีขอบ","schemas.backgroundColor":"สีพื้นหลัง","schemas.textColor":"สีข้อความ","schemas.bgColor":"สีพื้นหลัง","schemas.horizontal":"แนวนอน","schemas.vertical":"แนวตั้ง","schemas.left":"ซ้าย","schemas.center":"ตรงกลาง","schemas.right":"ขวา","schemas.top":"ด้านบน","schemas.middle":"ตรงกลาง","schemas.bottom":"ด้านล่าง","schemas.padding":"การเพิ่มพื้นที่","schemas.text.fontName":"ชื่อแบบอักษร","schemas.text.size":"ขนาด","schemas.text.spacing":"ระยะห่าง","schemas.text.textAlign":"จัดแนวข้อความ","schemas.text.verticalAlign":"จัดแนวแนวตั้ง","schemas.text.lineHeight":"ความสูงของบรรทัด","schemas.text.min":"ต่ำสุด","schemas.text.max":"สูงสุด","schemas.text.fit":"พอดี","schemas.text.dynamicFontSize":"ขนาดตัวอักษรแบบไดนามิก","schemas.text.format":"รูปแบบ","schemas.mvt.typingInstructions":"เพิ่มตัวแปรโดยพิมพ์คำที่ล้อมรอบด้วยวงเล็บปีกกา เช่น","schemas.mvt.sampleField":"ชื่อ","schemas.mvt.variablesSampleData":"ข้อมูลตัวอย่างตัวแปร","schemas.barcodes.barColor":"สีบาร์","schemas.barcodes.includetext":"รวมข้อความ","schemas.table.alternateBackgroundColor":"สีพื้นหลังสลับกัน","schemas.table.tableStyle":"สไตล์ตาราง","schemas.table.headStyle":"สไตล์หัวข้อ","schemas.table.showHead":"แสดงหัวข้อ","schemas.table.bodyStyle":"สไตล์เนื้อหา","schemas.table.columnStyle":"สไตล์คอลัมน์","schemas.date.format":"รูปแบบวันที่","schemas.select.options":"ตัวเลือก","schemas.select.optionPlaceholder":"กรอกตัวเลือก","schemas.radioGroup.groupName":"ชื่อกลุ่ม"},it:{cancel:"Annulla",close:"Chiudi",field:"Campo",fieldName:"Nome",align:"Allinea",width:"Larghezza",height:"Altezza",opacity:"Opacità",rotate:"Ruota",required:"Necessaria",editable:"Modificabile",edit:"Modifica",plsInputName:"Inserisci il nome per favore",fieldMustUniq:"Il nome del campo non è univoco",notUniq:"(Nome non univoco)",noKeyName:"Nessun nome",fieldsList:"Lista campi",editField:"Modifica campo",type:"Tipo",errorOccurred:"Riscontrato errore",errorBulkUpdateFieldName:"Non è possibile salvare le modifiche perché il numero di elementi è cambiato.",commitBulkUpdateFieldName:"Salva cambiamenti",bulkUpdateFieldName:"Modifica nomi campi in blocco",addPageAfter:"Aggiungi pagina dopo",removePage:"Rimuovi la Pagina Corrente",removePageConfirm:"Sei sicuro di voler eliminare questa pagina? Questa azione non può essere annullata.","validation.hexColor":"Inserisci un codice colore esadecimale valido.","validation.uniqueName":"Inserisci un nome univoco.","schemas.color":"Colore","schemas.borderWidth":"Spessore bordo","schemas.borderColor":"Colore bordo","schemas.backgroundColor":"Colore di Sfondo","schemas.textColor":"Colore testo","schemas.bgColor":"Colore sfondo","schemas.horizontal":"Orizzontale","schemas.vertical":"Verticale","schemas.left":"Sinistra","schemas.center":"Centro","schemas.right":"Destra","schemas.top":"Sopra","schemas.middle":"Medio","schemas.bottom":"Sotto","schemas.padding":"Padding","schemas.text.fontName":"Nome del font","schemas.text.size":"Dimensione","schemas.text.spacing":"Spaziatura","schemas.text.textAlign":"Allineamento testo","schemas.text.verticalAlign":"Allineamento verticale","schemas.text.lineHeight":"Altezza della linea","schemas.text.min":"Minimo","schemas.text.max":"Massimo","schemas.text.fit":"Adatta","schemas.text.dynamicFontSize":"Dimensione font dinamica","schemas.text.format":"Formato","schemas.mvt.typingInstructions":"Aggiungi variabili digitando parole circondate da parentesi graffe, ad es.","schemas.mvt.sampleField":"nome","schemas.mvt.variablesSampleData":"Dati di esempio variabili","schemas.barcodes.barColor":"Colore barra","schemas.barcodes.includetext":"Includi testo","schemas.table.alternateBackgroundColor":"Colore di Sfondo Alternato","schemas.table.tableStyle":"Stile della Tabella","schemas.table.showHead":"Mostra Intestazione","schemas.table.headStyle":"Stile dell'Intestazione","schemas.table.bodyStyle":"Stile del Corpo","schemas.table.columnStyle":"Stile della Colonna","schemas.date.format":"Formato data","schemas.select.options":"Opzioni","schemas.select.optionPlaceholder":"Inserisci un'opzione","schemas.radioGroup.groupName":"Nome del Gruppo"},pl:{cancel:"Anuluj",close:"Zamknij",field:"pole",fieldName:"Klucz pola",align:"Wyrównanie",width:"Szerokość",height:"Wysokość",opacity:"przezroczystość",rotate:"Obrót",required:"Wymagany",editable:"Edytowalny",edit:"Edytuj",plsInputName:"Wymagane wprowadzenie klucza pola",fieldMustUniq:"Klucz pola nie jest unikalny",notUniq:"(Klucz pola nie jest unikalny)",noKeyName:"Brak nazwy klucza pola",fieldsList:"Lista pól",editField:"Edytuj pole",type:"Typ pola",errorOccurred:"Wystąpił błąd",errorBulkUpdateFieldName:"Nie można wprowadzić zmian ponieważ liczba elementów uległa zmianie.",commitBulkUpdateFieldName:"Zaakceptuj zmiany",bulkUpdateFieldName:"Masowo aktualizuj klucze pól",addPageAfter:"Dodaj stronę po",removePage:"Usuń Bieżącą Stronę",removePageConfirm:"Czy na pewno chcesz usunąć tę stronę? Tej operacji nie można cofnąć.","validation.hexColor":"Wprowadź poprawny kod koloru szesnastkowego.","validation.uniqueName":"Proszę wpisać unikalną nazwę.","schemas.color":"Kolor","schemas.borderWidth":"Szerokość obramowania","schemas.borderColor":"Kolor obramowania","schemas.backgroundColor":"Kolor tła","schemas.textColor":"Kolor tekstu","schemas.bgColor":"Kolor tła","schemas.horizontal":"Poziomo","schemas.vertical":"Pionowo","schemas.left":"Lewo","schemas.center":"Centrum","schemas.right":"Prawo","schemas.top":"Góra","schemas.middle":"Środek","schemas.bottom":"Dół","schemas.padding":"Odsadzenie","schemas.text.fontName":"Nazwa czcionki","schemas.text.size":"Rozmiar","schemas.text.spacing":"Odstępy","schemas.text.textAlign":"Wyrównanie tekstu","schemas.text.verticalAlign":"Wyrównanie pionowe","schemas.text.lineHeight":"Wysokość linii","schemas.text.min":"Minimum","schemas.text.max":"Maksimum","schemas.text.fit":"Dopasowanie","schemas.text.dynamicFontSize":"Dynamiczny rozmiar czcionki","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Dodaj zmienne, wpisując słowa ujęte w nawiasy klamrowe, np.","schemas.mvt.sampleField":"nazwa","schemas.mvt.variablesSampleData":"Zmienne Przykładowe dane","schemas.barcodes.barColor":"Kolor paska","schemas.barcodes.includetext":"Dołącz tekst","schemas.table.alternateBackgroundColor":"Alternatywny kolor tła","schemas.table.tableStyle":"Styl tabeli","schemas.table.showHead":"Pokaż nagłówek","schemas.table.headStyle":"Styl nagłówka","schemas.table.bodyStyle":"Styl ciała","schemas.table.columnStyle":"Styl kolumny","schemas.date.format":"Format daty","schemas.select.options":"Opcje","schemas.select.optionPlaceholder":"Wpisz opcję","schemas.radioGroup.groupName":"Nazwa grupy"},de:{cancel:"Abbrechen",close:"Schließen",field:"Feld",fieldName:"Name",align:"Ausrichten",width:"Breite",height:"Höhe",opacity:"Opazität",rotate:"Drehen",required:"Erforderlich",editable:"Bearbeitbar",edit:"Bearbeiten",plsInputName:"Bitte geben Sie einen Namen ein",fieldMustUniq:"Feldname ist nicht eindeutig",notUniq:"(Nicht eindeutiger Name)",noKeyName:"Kein Name",fieldsList:"Feldliste",editField:"Feld bearbeiten",type:"Typ",errorOccurred:"Ein Fehler ist aufgetreten",errorBulkUpdateFieldName:"Die Änderung kann nicht übernommen werden, weil die Anzahl der Elemente geändert wurde.",commitBulkUpdateFieldName:"Änderungen übernehmen",bulkUpdateFieldName:"Mehrfachaktualisierung der Feldnamen",addPageAfter:"Seite danach hinzufügen",removePage:"Aktuelle Seite entfernen",removePageConfirm:"Sind Sie sicher, dass Sie diese Seite löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.","validation.hexColor":"Bitte geben Sie einen gültigen Hex-Farbcode ein.","validation.uniqueName":"Bitte geben Sie einen eindeutigen Namen ein.","schemas.color":"Farbe","schemas.borderWidth":"Rahmenbreite","schemas.borderColor":"Rahmenfarbe","schemas.backgroundColor":"Hintergrundfarbe","schemas.textColor":"Textfarbe","schemas.bgColor":"Hintergrundfarbe","schemas.horizontal":"Horizontal","schemas.vertical":"Vertikal","schemas.left":"Links","schemas.center":"Zentriert","schemas.right":"Rechts","schemas.top":"Oben","schemas.middle":"Mitte","schemas.bottom":"Unten","schemas.padding":"Polsterung","schemas.text.fontName":"Schriftart","schemas.text.size":"Größe","schemas.text.spacing":"Abstand","schemas.text.textAlign":"Ausrichtung","schemas.text.verticalAlign":"vert. Ausr.","schemas.text.lineHeight":"Zeilenhöhe","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Anpassen","schemas.text.dynamicFontSize":"Dynamische Schriftgröße","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Fügen Sie Variablen hinzu, indem Sie Wörter in geschweiften Klammern eingeben, z. B.","schemas.mvt.sampleField":"Name","schemas.mvt.variablesSampleData":"Variablen Beispieldaten","schemas.barcodes.barColor":"Strichcodefarbe","schemas.barcodes.includetext":"Text anzeigen","schemas.table.alternateBackgroundColor":"Wechselnde Hintergrundfarbe","schemas.table.tableStyle":"Tabellenstil","schemas.table.headStyle":"Kopfzeilenstil","schemas.table.showHead":"Kopfzeile anzeigen","schemas.table.bodyStyle":"Körperstil","schemas.table.columnStyle":"Spaltenstil","schemas.date.format":"Datumsformat","schemas.select.options":"Optionen","schemas.select.optionPlaceholder":"Geben Sie eine Option ein","schemas.radioGroup.groupName":"Gruppenname"},es:{cancel:"Cancelar",close:"Cerrar",field:"campo",fieldName:"Nombre",align:"Alinear",width:"Anchura",height:"Altura",opacity:"Opacidad",rotate:"Rotar",required:"Requerido",editable:"Editable",edit:"Editar",plsInputName:"Introduce el nombre",fieldMustUniq:"El nombre del campo no es único",notUniq:"(Nombre no único)",noKeyName:"Sin nombre",fieldsList:"Lista de campos",editField:"Editar campo",type:"Tipo",errorOccurred:"Ocurrió un error",errorBulkUpdateFieldName:"No se puede confirmar el cambio porque el número de elementos ha cambiado.",commitBulkUpdateFieldName:"Confirmar cambios",bulkUpdateFieldName:"Actualizar en bloque el nombre de los campos",addPageAfter:"Insertar página",removePage:"Eliminar página actual",removePageConfirm:"¿Estás seguro de que quieres eliminar esta página? Esta acción no se puede deshacer.","validation.hexColor":"Introduce un código de color hexadecimal válido.","validation.uniqueName":"Por favor, introduzca un nombre único.","schemas.color":"Color","schemas.borderWidth":"Ancho del borde","schemas.borderColor":"Color del borde","schemas.backgroundColor":"Color de fondo","schemas.textColor":"Color del texto","schemas.bgColor":"Color del fondo","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Izquierda","schemas.center":"Centro","schemas.right":"Derecha","schemas.top":"Arriba","schemas.middle":"Medio","schemas.bottom":"Abajo","schemas.padding":"Relleno","schemas.text.fontName":"Nombre de la fuente","schemas.text.size":"Tamaño","schemas.text.spacing":"Espaciado","schemas.text.textAlign":"Alineación del texto","schemas.text.verticalAlign":"Alineación vertical","schemas.text.lineHeight":"Altura de línea","schemas.text.min":"Mín","schemas.text.max":"Máx","schemas.text.fit":"Ajustar","schemas.text.dynamicFontSize":"Tamaño de fuente dinámico","schemas.text.format":"Formato","schemas.mvt.typingInstructions":"Agregue variables escribiendo palabras entre llaves, p.","schemas.mvt.sampleField":"nombre","schemas.mvt.variablesSampleData":"Variables Datos de muestra","schemas.barcodes.barColor":"Color de la barra","schemas.barcodes.includetext":"Incluir texto","schemas.table.alternateBackgroundColor":"Color de fondo alternativo","schemas.table.tableStyle":"Estilo de tabla","schemas.table.showHead":"Mostrar encabezado","schemas.table.headStyle":"Estilo de cabecera","schemas.table.bodyStyle":"Estilo de cuerpo","schemas.table.columnStyle":"Estilo de columna","schemas.date.format":"Formato de fecha","schemas.select.options":"Opciones","schemas.select.optionPlaceholder":"Ingrese una opción","schemas.radioGroup.groupName":"Nombre del grupo"},fr:{cancel:"Annuler",close:"Fermer",field:"Champ",fieldName:"Nom",align:"Aligner",width:"Largeur",height:"Hauteur",opacity:"Opacité",rotate:"Rotation",required:"Requis",editable:"Modifiable",edit:"Éditer",plsInputName:"Veuillez saisir le nom",fieldMustUniq:"Le nom du champ n'est pas unique",notUniq:"(Nombre non unique)",noKeyName:"Pas de nom",fieldsList:"Liste des champs",editField:"Éditer le champ",type:"Type",errorOccurred:"Une erreur est survenue",errorBulkUpdateFieldName:"Impossible de confirmer le changement car le nombre d'éléments a changé.",commitBulkUpdateFieldName:"Confirmer les changements",bulkUpdateFieldName:"Modifier les noms de champs en masse",addPageAfter:"Ajouter une page après",removePage:"Supprimer la page actuelle",removePageConfirm:"Êtes-vous sûr de vouloir supprimer cette page ? Cette action est irréversible.","validation.hexColor":"Veuillez entrer un code couleur hexadécimal valide.","validation.uniqueName":"Veuillez saisir un nom unique.","schemas.color":"Couleur","schemas.borderWidth":"Largeur de la bordure","schemas.borderColor":"Couleur de la bordure","schemas.backgroundColor":"Couleur de fond","schemas.textColor":"Couleur du texte","schemas.bgColor":"Couleur de fond","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Gauche","schemas.center":"Centre","schemas.right":"Droite","schemas.top":"Haut","schemas.middle":"Milieu","schemas.bottom":"Bas","schemas.padding":"Zone de remplissage","schemas.text.fontName":"Nom de la police","schemas.text.size":"Taille","schemas.text.spacing":"Espacement","schemas.text.textAlign":"Alignement du texte","schemas.text.verticalAlign":"Alignement vertical","schemas.text.lineHeight":"Hauteur de ligne","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Ajustement","schemas.text.dynamicFontSize":"Taille de police dynamique","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Ajoutez des variables en tapant des mots entourés d'accolades, par ex.","schemas.mvt.sampleField":"nom","schemas.mvt.variablesSampleData":"Variables Exemples de données","schemas.barcodes.barColor":"Couleur de la barre","schemas.barcodes.includetext":"Inclure le texte","schemas.table.alternateBackgroundColor":"Couleur de fond alternative","schemas.table.tableStyle":"Style de tableau","schemas.table.showHead":"Afficher l’en-tête","schemas.table.headStyle":"Style d'en-tête","schemas.table.bodyStyle":"Style de corps","schemas.table.columnStyle":"Style de colonne","schemas.date.format":"Format de date","schemas.select.options":"Options","schemas.select.optionPlaceholder":"Entrez une option","schemas.radioGroup.groupName":"Nom du groupe"}},Bhe=e=>Ihe[e]||Ihe[TO],Mhe=(e,t)=>(t||Bhe(TO))[e],hf=h.createContext(Mhe),BP=h.createContext(wh()),y0=h.createContext(tne),HE=h.createContext({});function MP(e,t,r){const n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function kot(e,t){return e.reduce((r,n,i)=>{const a=t.get(n);return a&&(r[i]=a),r},Array(e.length))}function RP(e){return e!==null&&e>=0}function Fot(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function Lot(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Rhe=e=>{let{rects:t,activeIndex:r,overIndex:n,index:i}=e;const a=MP(t,n,r),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},PP={scaleX:1,scaleY:1},Not=e=>{var t;let{activeIndex:r,activeNodeRect:n,index:i,rects:a,overIndex:o}=e;const s=(t=a[r])!=null?t:n;if(!s)return null;if(i===r){const c=a[o];return c?{x:0,y:r<o?c.top+c.height-(s.top+s.height):c.top-s.top,...PP}:null}const l=$ot(a,i,r);return i>r&&i<=o?{x:0,y:-s.height-l,...PP}:i<r&&i>=o?{x:0,y:s.height+l,...PP}:{x:0,y:0,...PP}};function $ot(e,t,r){const n=e[t],i=e[t-1],a=e[t+1];return n?r<t?i?n.top-(i.top+i.height):a?a.top-(n.top+n.height):0:a?a.top-(n.top+n.height):i?n.top-(i.top+i.height):0:0}const Phe="Sortable",Dhe=J.createContext({activeIndex:-1,containerId:Phe,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Rhe,disabled:{draggable:!1,droppable:!1}});function jot(e){let{children:t,id:r,items:n,strategy:i=Rhe,disabled:a=!1}=e;const{active:o,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=$ne(),d=Ex(Phe,r),f=s.rect!==null,p=h.useMemo(()=>n.map(x=>typeof x=="object"&&"id"in x?x.id:x),[n]),A=o!=null,v=o?p.indexOf(o.id):-1,g=c?p.indexOf(c.id):-1,m=h.useRef(p),y=!Fot(p,m.current),b=g!==-1&&v===-1||y,C=Lot(a);Tl(()=>{y&&A&&u(p)},[y,p,A,u]),h.useEffect(()=>{m.current=p},[p]);const w=h.useMemo(()=>({activeIndex:v,containerId:d,disabled:C,disableTransforms:b,items:p,overIndex:g,useDragOverlay:f,sortedRects:kot(p,l),strategy:i}),[v,d,C.draggable,C.droppable,b,p,g,l,f,i]);return J.createElement(Dhe.Provider,{value:w},t)}const Qot=e=>{let{id:t,items:r,activeIndex:n,overIndex:i}=e;return MP(r,n,i).indexOf(t)},Hot=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:l,transition:c}=e;return!c||!n||s!==a&&i===o?!1:r?!0:o!==i&&t===l},zot={duration:200,easing:"ease"},The="transform",Wot=Xh.Transition.toString({property:The,duration:0,easing:"linear"}),Vot={roleDescription:"sortable"};function Got(e){let{disabled:t,index:r,node:n,rect:i}=e;const[a,o]=h.useState(null),s=h.useRef(r);return Tl(()=>{if(!t&&r!==s.current&&n.current){const l=i.current;if(l){const c=Um(n.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&o(u)}}r!==s.current&&(s.current=r)},[t,r,n,i]),h.useEffect(()=>{a&&o(null)},[a]),a}function Yot(e){let{animateLayoutChanges:t=Hot,attributes:r,disabled:n,data:i,getNewIndex:a=Qot,id:o,strategy:s,resizeObserverConfig:l,transition:c=zot}=e;const{items:u,containerId:d,activeIndex:f,disabled:p,disableTransforms:A,sortedRects:v,overIndex:g,useDragOverlay:m,strategy:y}=h.useContext(Dhe),b=Uot(n,p),C=u.indexOf(o),w=h.useMemo(()=>({sortable:{containerId:d,index:C,items:u},...i}),[d,i,C,u]),x=h.useMemo(()=>u.slice(u.indexOf(o)),[u,o]),{rect:E,node:S,isOver:I,setNodeRef:B}=xFe({id:o,data:w,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:x,...l}}),{active:R,activatorEvent:_,activeNodeRect:O,attributes:F,setNodeRef:k,listeners:D,isDragging:M,over:T,setActivatorNodeRef:L,transform:N}=Nne({id:o,data:w,attributes:{...Vot,...r},disabled:b.draggable}),$=s6e(B,k),U=!!R,Y=U&&!A&&RP(f)&&RP(g),V=!m&&M,K=V&&Y?N:null,X=Y?K??(s??y)({rects:v,activeNodeRect:O,activeIndex:f,overIndex:g,index:C}):null,Q=RP(f)&&RP(g)?a({id:o,items:u,activeIndex:f,overIndex:g}):C,z=R==null?void 0:R.id,j=h.useRef({activeId:z,items:u,newIndex:Q,containerId:d}),W=u!==j.current.items,ee=t({active:R,containerId:d,isDragging:M,isSorting:U,id:o,index:C,items:u,newIndex:j.current.newIndex,previousItems:j.current.items,previousContainerId:j.current.containerId,transition:c,wasDragging:j.current.activeId!=null}),q=Got({disabled:!ee,index:C,node:S,rect:E});return h.useEffect(()=>{U&&j.current.newIndex!==Q&&(j.current.newIndex=Q),d!==j.current.containerId&&(j.current.containerId=d),u!==j.current.items&&(j.current.items=u)},[U,Q,d,u]),h.useEffect(()=>{if(z===j.current.activeId)return;if(z&&!j.current.activeId){j.current.activeId=z;return}const ae=setTimeout(()=>{j.current.activeId=z},50);return()=>clearTimeout(ae)},[z]),{active:R,activeIndex:f,attributes:F,data:w,rect:E,index:C,newIndex:Q,items:u,isOver:I,isSorting:U,isDragging:M,listeners:D,node:S,overIndex:g,over:T,setNodeRef:$,setActivatorNodeRef:L,setDroppableNodeRef:B,setDraggableNodeRef:k,transform:q??X,transition:te()};function te(){if(q||W&&j.current.newIndex===C)return Wot;if(!(V&&!J4(_)||!c)&&(U||ee))return Xh.Transition.toString({...c,property:The})}}function Uot(e,t){var r,n;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e==null?void 0:e.draggable)!=null?r:t.draggable,droppable:(n=e==null?void 0:e.droppable)!=null?n:t.droppable}}function DP(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Kot=[bn.Down,bn.Right,bn.Up,bn.Left],qot=(e,t)=>{let{context:{active:r,collisionRect:n,droppableRects:i,droppableContainers:a,over:o,scrollableAncestors:s}}=t;if(Kot.includes(e.code)){if(e.preventDefault(),!r||!n)return;const l=[];a.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const f=i.get(d.id);if(f)switch(e.code){case bn.Down:n.top<f.top&&l.push(d);break;case bn.Up:n.top>f.top&&l.push(d);break;case bn.Left:n.left>f.left&&l.push(d);break;case bn.Right:n.left<f.left&&l.push(d);break}});const c=fne({active:r,collisionRect:n,droppableRects:i,droppableContainers:l,pointerCoordinates:null});let u=dne(c,"id");if(u===(o==null?void 0:o.id)&&c.length>1&&(u=c[1].id),u!=null){const d=a.get(r.id),f=a.get(u),p=f?i.get(f.id):null,A=f==null?void 0:f.node.current;if(A&&p&&d&&f){const g=rM(A).some((x,E)=>s[E]!==x),m=_he(d,f),y=Xot(d,f),b=g||!m?{x:0,y:0}:{x:y?n.width-p.width:0,y:y?n.height-p.height:0},C={x:p.left,y:p.top};return b.x&&b.y?C:Sx(C,b)}}}};function _he(e,t){return!DP(e)||!DP(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Xot(e,t){return!DP(e)||!DP(t)||!_he(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const{Text:Zot}=ff,d9=J.memo(J.forwardRef(({icon:e,value:t,status:r,title:n,required:i,readOnly:a,style:o,dragOverlay:s,onClick:l,onMouseEnter:c,onMouseLeave:u,dragging:d,fadeIn:f,listeners:p,sorting:A,transition:v,transform:g,...m},y)=>{const b=h.useContext(hf);h.useEffect(()=>{if(s)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[s]);const{x:C,y:w,scaleX:x,scaleY:E}=g||{x:0,y:0,scaleX:1,scaleY:1};return ke.jsx("li",{style:{marginTop:10,transition:v,transform:`translate(${C}px, ${w}px) scale(${x}, ${E})`},onMouseEnter:c,onMouseLeave:u,ref:y,children:ke.jsxs("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",...o},...m,onClick:()=>l&&l(),children:[ke.jsx(Or,{...p,style:{display:"flex",alignItems:"center",background:"none",boxShadow:"none",border:"none",paddingLeft:"0.25rem"},icon:ke.jsx(rfe,{style:{cursor:"grab"}})}),e,ke.jsxs(Zot,{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",width:"100%"},title:n||"",children:[r===void 0?t:ke.jsxs("span",{children:[ke.jsx(Jet,{width:15,style:{marginRight:"0.5rem"}}),r==="is-warning"?b("noKeyName"):t,r==="is-danger"?b("notUniq"):""]}),a&&ke.jsx(mtt,{style:{marginLeft:"0.5rem"}}),i&&ke.jsx("span",{style:{color:"red",marginLeft:"0.5rem"},children:"*"})]})]})})})),Jot=e=>{const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current},Ohe=(e,t)=>Math.floor((e/t>1?1:e/t)*100)/100,khe=({template:e,size:t,zoomLevel:r})=>{const[n,i]=h.useState([]),[a,o]=h.useState([]),[s,l]=h.useState(0),[c,u]=h.useState(null),d=async f=>{const{template:{basePdf:p,schemas:A},size:v}=f;let g,m,y,b;if(uc(p)){const{width:w,height:x}=p;g=w*On,m=x*On,y=A.map(()=>"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+P///38ACfsD/QVDRcoAAAAASUVORK5CYII="),b=A.map(()=>({width:w,height:x}))}else{const w=await OK(p),x=cZ(w);b=await lZ(x),g=b[0].width*On,m=b[0].height*On,y=await u4e(x,g)}const C=Math.min(Ohe(v.width,g),Ohe(v.height-na,m));return{backgrounds:y,pageSizes:b,scale:C}};return h.useEffect(()=>{d({template:e,size:t}).then(({pageSizes:f,scale:p,backgrounds:A})=>{o(f),l(p),i(A)}).catch(f=>{u(f),console.error(`[@pdfme/ui] ${f}`)})},[e,t]),{backgrounds:n,pageSizes:a,scale:s*r,error:c,refresh:f=>d({template:f,size:t}).then(({pageSizes:p,scale:A,backgrounds:v})=>{o(p),l(A),i(v)})}},Fhe=({ref:e,pageSizes:t,scale:r,pageCursor:n,onChangePageCursor:i})=>{const a=h.useCallback(()=>{if(!t[0]||!e.current)return;const o=e.current.scrollTop,{top:s}=e.current.getBoundingClientRect(),l=t.reduce((u,d,f)=>{let p=(d.height*On+na)*r;return f===0?p+=s-p/2:p+=u[f-1],u.concat(p)},[]);let c=0;l.forEach((u,d)=>{o>u&&(c=d+1>=l.length?l.length-1:d+1)}),c!==n&&i(c)},[i,n,t,e,r]);h.useEffect(()=>{var o;return(o=e.current)==null||o.addEventListener("scroll",a),()=>{var s;(s=e.current)==null||s.removeEventListener("scroll",a)}},[e,a])},est=()=>{const[e,t]=h.useState(!1);return h.useEffect(()=>{const r=setTimeout(()=>t(!0),500);return()=>clearTimeout(r)},[]),e},tst=({pageCursor:e,pageSizes:t,activeElements:r,template:n,schemasList:i,changeSchemas:a,commitSchemas:o,removeSchemas:s,onSaveTemplate:l,past:c,future:u,setSchemasList:d,onEdit:f,onEditEnd:p})=>{const A=h.useRef(null),v=h.useCallback(()=>{const m=()=>{const b=r.map(C=>C.id);return i[e].filter(C=>b.includes(C.id))},y=b=>{const C=b==="undo",w=C?c:u;if(w.current.length<=0)return;(C?u:c).current.push(Ma(i[e]));const x=Ma(i);x[e]=w.current.pop(),d(x)};s4e({move:(b,C)=>{const w=t[e],x=m(),E=h4e({command:b,activeSchemas:x,pageSize:w,isShift:C});a(E)},copy:()=>{const b=m();b.length!==0&&(A.current=b)},paste:()=>{if(!A.current||A.current.length===0)return;const b=i[e],C=[],w=A.current.map(x=>{const E=uC(),S=f4e({copiedSchemaName:x.name,schema:b,stackUniqueSchemaNames:C}),{height:I,width:B,position:R}=x,_=t[e],O={x:R.x+10>_.width-B?_.width-B:R.x+10,y:R.y+10>_.height-I?_.height-I:R.y+10};return Object.assign(Ma(x),{id:E,name:S,position:O})});o(i[e].concat(w)),f(w.map(x=>document.getElementById(x.id))),A.current=w},redo:()=>y("redo"),undo:()=>y("undo"),save:()=>l&&l(Ik(i,n.basePdf)),remove:()=>s(m().map(b=>b.id)),esc:p,selectAll:()=>f(i[e].map(b=>document.getElementById(b.id)))})},[n,r,e,t,a,o,i,l,s,c,u,d,A,f,p]),g=h.useCallback(()=>{l4e()},[]);h.useEffect(()=>(v(),g),[v,g])},rst=(e,t,r,n)=>{const a=new DOMParser().parseFromString(e,"text/html"),o=s=>{(s.tagName==="SVG"||s.tagName==="svg")&&(s.setAttribute("width",r.toString()),s.setAttribute("height",r.toString())),Array.from(s.children).forEach(l=>o(l))};return Array.from(a.body.children).forEach(s=>o(s)),ke.jsx("div",{style:n,title:t,dangerouslySetInnerHTML:{__html:a.body.innerHTML}})},f9=e=>{var c;const{plugin:t,label:r,size:n,styles:i}=e,{token:a}=ga.useToken(),s=((c=h.useContext(HE).icons)==null?void 0:c[t.propPanel.defaultSchema.type])??t.icon,l={...i,color:a.colorText,display:"flex",justifyContent:"center"};return s?n?rst(s,r,n,l):ke.jsx("div",{style:l,title:r,dangerouslySetInnerHTML:{__html:s}}):ke.jsx("div",{style:{...i,overflow:"hidden",fontSize:10},title:r,children:r})},nst=({isSelected:e,style:t,onSelect:r,onEdit:n,schema:i,schemas:a,onMouseEnter:o,onMouseLeave:s})=>{const{token:l}=ga.useToken(),c=h.useContext(hf),u=h.useContext(y0),{setNodeRef:d,listeners:f,isDragging:p,isSorting:A,transform:v,transition:g}=Yot({id:i.id}),m=est(),y=p&&!m,b={...f,onClick:B=>r(i.id,B.shiftKey)},[C,w]=Object.entries(u).find(([B,R])=>(R==null?void 0:R.propPanel.defaultSchema.type)===i.type),x={width:20,marginRight:"0.5rem"};let E;i.name?a.find(B=>i.name&&B.name===i.name&&B.id!==i.id)&&(E="is-danger"):E="is-warning";let S=c("edit");E==="is-warning"?S=c("plsInputName"):E==="is-danger"&&(S=c("fieldMustUniq"));const I=e?{background:l.colorPrimary,opacity:A||p?.5:1}:{};return ke.jsx(d9,{ref:d,onMouseEnter:o,onMouseLeave:s,onClick:()=>n(i.id),icon:w&&ke.jsx(f9,{plugin:w,label:C,size:20,styles:x}),value:i.name,status:E,title:S,required:i.required,readOnly:i.readOnly,style:{...I,...t},dragging:p,sorting:A,transition:g,transform:v,fadeIn:y,listeners:b})},ist=e=>{const{token:t}=ga.useToken(),{schemas:r,onEdit:n,onSortEnd:i,hoveringSchemaId:a,onChangeHoveringSchemaId:o}=e,[s,l]=h.useState([]),[c,u]=h.useState(null),[d,f]=h.useState(null),p=h.useContext(y0),A=w6e(cne(LF,{activationConstraint:{distance:15}}),cne(kF,{coordinateGetter:qot})),v=y=>s.map(b=>b.id).includes(y),g=(y,b)=>{if(b)if(v(y)){const C=s.filter(w=>w.id!==y);l(C)}else{const C=r.find(x=>x.id===y),w=s.concat(C);l(w)}else l([])},m=y=>{const b=typeof y=="string"?r.find(x=>x.id===y):y,[C,w]=Object.entries(p).find(([x,E])=>(E==null?void 0:E.propPanel.defaultSchema.type)===(b==null?void 0:b.type));return w?ke.jsx(f9,{plugin:w,label:C,size:20,styles:{marginRight:"0.5rem"}}):ke.jsx(ke.Fragment,{})};return ke.jsx(Fne,{sensors:A,collisionDetection:fne,onDragStart:({active:y})=>{f(String(y.id)),u(r),v(String(y.id))?s.length>0&&i(s.reduce((b,C)=>C.id===String(y.id)?b:b.filter(w=>w!==C),r)):l([])},onDragEnd:({active:y,over:b})=>{const C=(b==null?void 0:b.id)||"",w=r.map(E=>E.id).indexOf(String(y.id)),x=r.map(E=>E.id).indexOf(String(C));if(s.length){let E=[...r];E=MP(E,w,x),E.splice(x+1,0,...s.filter(S=>S.id!==d)),i(E),l([])}else w!==x&&i(MP(r,w,x));f(null)},onDragCancel:()=>{c&&i(c),f(null),u(null)},children:ke.jsxs(ke.Fragment,{children:[ke.jsx("div",{style:{height:"100%",overflowY:"auto"},children:ke.jsx(jot,{items:r,strategy:Not,children:ke.jsx("ul",{style:{margin:0,padding:0,listStyle:"none",borderRadius:5},children:r.map(y=>ke.jsx(nst,{style:{border:`1px solid ${y.id===a?t.colorPrimary:"transparent"}`},schema:y,schemas:r,isSelected:v(y.id)||d===y.id,onEdit:n,onSelect:g,onMouseEnter:()=>o(y.id),onMouseLeave:()=>o(null)},y.id))})})}),_n.createPortal(ke.jsx(OFe,{adjustScale:!0,children:d?(()=>{const y=r.find(b=>b.id===d);return y?ke.jsxs(ke.Fragment,{children:[ke.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:ke.jsx(d9,{icon:m(d),value:y.name,required:y.required,readOnly:y.readOnly,style:{background:t.colorPrimary},dragOverlay:!0})}),ke.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:s.filter(b=>b.id!==d).map(b=>ke.jsx(d9,{icon:m(b),value:b.name,required:b.required,readOnly:b.readOnly,style:{background:t.colorPrimary},dragOverlay:!0},b.id))})]}):null})():null}),document.body)]})})},{Text:ast}=ff,{TextArea:ost}=zl,h9=40,sst=e=>{const{schemas:t,onSortEnd:r,onEdit:n,size:i,hoveringSchemaId:a,onChangeHoveringSchemaId:o,changeSchemas:s}=e,{token:l}=ga.useToken(),c=h.useContext(hf),[u,d]=h.useState(!1),[f,p]=h.useState(""),A=dZ(i.height),v=()=>{const m=f.split(`
529
529
  `);m.length!==t.length?alert(c("errorBulkUpdateFieldName")):(s(m.map((y,b)=>({key:"name",value:y,schemaId:t[b].id}))),d(!1))},g=()=>{p(t.map(m=>m.name).join(`
530
530
  `)),d(!0)};return ke.jsxs("div",{children:[ke.jsx("div",{style:{height:h9,display:"flex",alignItems:"center"},children:ke.jsx(ast,{strong:!0,style:{textAlign:"center",width:"100%"},children:c("fieldsList")})}),ke.jsx(p0,{style:{marginTop:l.marginXS,marginBottom:l.marginXS}}),ke.jsxs("div",{style:{height:A-h9},children:[u?ke.jsx(ost,{wrap:"off",value:f,onChange:m=>p(m.target.value),style:{paddingLeft:30,height:A-h9,width:Gw-35,lineHeight:"2.75rem"}}):ke.jsx(ist,{schemas:t,hoveringSchemaId:a,onChangeHoveringSchemaId:o,onSortEnd:r,onEdit:n}),ke.jsx("div",{style:{paddingTop:"0.5rem",display:"flex",alignItems:"center",justifyContent:"flex-end"},children:u?ke.jsxs(ke.Fragment,{children:[ke.jsx(Or,{size:"small",type:"text",onClick:v,children:ke.jsxs("u",{children:[" ",c("commitBulkUpdateFieldName")]})}),ke.jsx("span",{style:{margin:"0 1rem"},children:"/"}),ke.jsx(Or,{size:"small",type:"text",onClick:()=>d(!1),children:ke.jsxs("u",{children:[" ",c("cancel")]})})]}):ke.jsx(Or,{size:"small",type:"text",onClick:g,children:ke.jsxs("u",{children:[" ",c("bulkUpdateFieldName")]})})})]})]})};/*! *****************************************************************************
531
531
  Copyright (c) Microsoft Corporation.