@win2win/shared-ui 0.3.0 → 0.3.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC"}
|
package/dist/w2w-shared-ui.js
CHANGED
|
@@ -27834,6 +27834,7 @@ export {
|
|
|
27834
27834
|
eJ as createFetchUniq,
|
|
27835
27835
|
uJ as default,
|
|
27836
27836
|
Dm as getFetchUniq,
|
|
27837
|
+
cl as getValue,
|
|
27837
27838
|
ZJ as setFetchUniq,
|
|
27838
27839
|
WS as useDragAndDrop,
|
|
27839
27840
|
oJ as useFetch,
|
|
@@ -63,4 +63,4 @@ Facilidad de instalación, se fija a la pared con tornillos de forma sencilla. M
|
|
|
63
63
|
`)){const X0=document.createElement("div");X0.append(s0?document.createTextNode(s0):document.createElement("br")),this.editorDiv.append(X0)}this.div.draggable=!0,this.editorDiv.contentEditable=!1}else this.div.draggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(c0,P,b0){const a0=super.deserialize(c0,P,b0);return ut(a0,V,c0.fontSize),ut(a0,N,E.Util.makeHexColor(...c0.color)),ut(a0,X,c0.value),a0}serialize(){if(this.isEmpty())return null;const c0=q._internalPadding*this.parentScale,P=this.getRect(c0,c0),b0=f.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:T(this,N));return{annotationType:E.AnnotationEditorType.FREETEXT,color:b0,fontSize:T(this,V),value:T(this,X),pageIndex:this.pageIndex,rect:P,rotation:this.rotation}}};let o0=q;u=new WeakMap,z=new WeakMap,Z=new WeakMap,r=new WeakMap,N=new WeakMap,X=new WeakMap,y=new WeakMap,G=new WeakMap,V=new WeakMap,S=new WeakSet,R=function(c0){const P=a0=>{this.editorDiv.style.fontSize=`calc(${a0}px * var(--scale-factor))`,this.translate(0,-(a0-T(this,V))*this.parentScale),ut(this,V,a0),nt(this,F,U).call(this)},b0=T(this,V);this.addCommands({cmd:()=>{P(c0)},undo:()=>{P(b0)},mustExec:!0,type:E.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},D=new WeakSet,j=function(c0){const P=T(this,N);this.addCommands({cmd:()=>{ut(this,N,this.editorDiv.style.color=c0)},undo:()=>{ut(this,N,this.editorDiv.style.color=P)},mustExec:!0,type:E.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},C=new WeakSet,B=function(){const c0=this.editorDiv.getElementsByTagName("div");if(c0.length===0)return this.editorDiv.innerText;const P=[];for(const b0 of c0)P.push(b0.innerText.replace(/\r\n?|\n/,""));return P.join(`
|
|
64
64
|
`)},F=new WeakSet,U=function(){const[c0,P]=this.parentDimensions;let b0;if(this.isAttachedToDOM)b0=this.div.getBoundingClientRect();else{const{currentLayer:a0,div:O0}=this,s0=O0.style.display;O0.style.display="hidden",a0.div.append(this.div),b0=O0.getBoundingClientRect(),O0.remove(),O0.style.display=s0}this.width=b0.width/c0,this.height=b0.height/P},It(o0,"_freeTextDefaultContent",""),It(o0,"_l10nPromise"),It(o0,"_internalPadding",0),It(o0,"_defaultColor",null),It(o0,"_defaultFontSize",10),It(o0,"_keyboardManager",new g.KeyboardManager([[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],q.prototype.commitOrRemove]])),It(o0,"_type","freetext"),s.FreeTextEditor=o0},(o,s,M)=>{var u,z,Z,r,N,X,y,G,V,S,R,D,j,C,B,F,U,E,g,f,q,o0,c0,P,b0,a0,O0,s0,X0,H,Q,$,l0,_,v,t0,n0,p0,Z0,W0,h0,N0,u0,D0,f0,A0,J,e0,d0,M0,r0,L0,S0,w0,C0,j0,P0,E0,Q0,$0,o1,Y0,v0,d1,i1,k1,m1,g0,M1,W1;Object.defineProperty(s,"__esModule",{value:!0}),s.InkEditor=void 0;var Z1=M(1),b1=M(140),wl=M(141);const A1=16,h1=class extends b1.AnnotationEditor{constructor(I0){super({...I0,name:"inkEditor"}),et(this,U),et(this,g),et(this,q),et(this,c0),et(this,b0),et(this,O0),et(this,X0),et(this,Q),et(this,l0),et(this,v),et(this,n0),et(this,Z0),et(this,h0),et(this,u0),et(this,f0),et(this,J),et(this,d0),et(this,r0),et(this,S0),et(this,P0),et(this,Q0),et(this,o1),et(this,v0),et(this,i1),et(this,m1),et(this,M1),et(this,u,0),et(this,z,0),et(this,Z,0),et(this,r,this.canvasContextMenu.bind(this)),et(this,N,this.canvasPointermove.bind(this)),et(this,X,this.canvasPointerleave.bind(this)),et(this,y,this.canvasPointerup.bind(this)),et(this,G,this.canvasPointerdown.bind(this)),et(this,V,new Path2D),et(this,S,!1),et(this,R,!1),et(this,D,!1),et(this,j,null),et(this,C,0),et(this,B,0),et(this,F,null),this.color=I0.color||null,this.thickness=I0.thickness||null,this.opacity=I0.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0}static initialize(I0){this._l10nPromise=new Map(["editor_ink_canvas_aria_label","editor_ink2_aria_label"].map(F0=>[F0,I0.get(F0)]))}static updateDefaultParams(I0,F0){switch(I0){case Z1.AnnotationEditorParamsType.INK_THICKNESS:h1._defaultThickness=F0;break;case Z1.AnnotationEditorParamsType.INK_COLOR:h1._defaultColor=F0;break;case Z1.AnnotationEditorParamsType.INK_OPACITY:h1._defaultOpacity=F0/100}}updateParams(I0,F0){switch(I0){case Z1.AnnotationEditorParamsType.INK_THICKNESS:nt(this,U,E).call(this,F0);break;case Z1.AnnotationEditorParamsType.INK_COLOR:nt(this,g,f).call(this,F0);break;case Z1.AnnotationEditorParamsType.INK_OPACITY:nt(this,q,o0).call(this,F0)}}static get defaultPropertiesToUpdate(){return[[Z1.AnnotationEditorParamsType.INK_THICKNESS,h1._defaultThickness],[Z1.AnnotationEditorParamsType.INK_COLOR,h1._defaultColor||b1.AnnotationEditor._defaultLineColor],[Z1.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*h1._defaultOpacity)]]}get propertiesToUpdate(){return[[Z1.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||h1._defaultThickness],[Z1.AnnotationEditorParamsType.INK_COLOR,this.color||h1._defaultColor||b1.AnnotationEditor._defaultLineColor],[Z1.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??h1._defaultOpacity))]]}rebuild(){super.rebuild(),this.div!==null&&(this.canvas||(nt(this,f0,A0).call(this),nt(this,J,e0).call(this)),this.isAttachedToDOM||(this.parent.add(this),nt(this,d0,M0).call(this)),nt(this,m1,g0).call(this))}remove(){this.canvas!==null&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,T(this,j).disconnect(),ut(this,j,null),super.remove())}setParent(I0){!this.parent&&I0?this._uiManager.removeShouldRescale(this):this.parent&&I0===null&&this._uiManager.addShouldRescale(this),super.setParent(I0)}onScaleChanging(){const[I0,F0]=this.parentDimensions,_0=this.width*I0,t1=this.height*F0;this.setDimensions(_0,t1)}enableEditMode(){!T(this,S)&&this.canvas!==null&&(super.enableEditMode(),this.div.draggable=!1,this.canvas.addEventListener("pointerdown",T(this,G)))}disableEditMode(){this.isInEditMode()&&this.canvas!==null&&(super.disableEditMode(),this.div.draggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",T(this,G)))}onceAdded(){this.div.draggable=!this.isEmpty()}isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0}commit(){T(this,S)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),ut(this,S,!0),this.div.classList.add("disabled"),nt(this,m1,g0).call(this,!0),this.parent.addInkEditorIfNeeded(!0),this.parent.moveEditorInDOM(this),this.div.focus({preventScroll:!0}))}focusin(I0){super.focusin(I0),this.enableEditMode()}canvasPointerdown(I0){I0.button===0&&this.isInEditMode()&&!T(this,S)&&(this.setInForeground(),I0.preventDefault(),I0.type!=="mouse"&&this.div.focus(),nt(this,O0,s0).call(this,I0.offsetX,I0.offsetY))}canvasContextMenu(I0){I0.preventDefault()}canvasPointermove(I0){I0.preventDefault(),nt(this,X0,H).call(this,I0.offsetX,I0.offsetY)}canvasPointerup(I0){I0.preventDefault(),nt(this,u0,D0).call(this,I0)}canvasPointerleave(I0){nt(this,u0,D0).call(this,I0)}render(){if(this.div)return this.div;let I0,F0;this.width&&(I0=this.x,F0=this.y),super.render(),h1._l10nPromise.get("editor_ink2_aria_label").then(z1=>{var N1;return(N1=this.div)===null||N1===void 0?void 0:N1.setAttribute("aria-label",z1)});const[_0,t1,B0,q0]=nt(this,c0,P).call(this);if(this.setAt(_0,t1,0,0),this.setDims(B0,q0),nt(this,f0,A0).call(this),this.width){const[z1,N1]=this.parentDimensions;this.setAt(I0*z1,F0*N1,this.width*z1,this.height*N1),ut(this,D,!0),nt(this,d0,M0).call(this),this.setDims(this.width*z1,this.height*N1),nt(this,h0,N0).call(this),nt(this,M1,W1).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return nt(this,J,e0).call(this),this.div}setDimensions(I0,F0){const _0=Math.round(I0),t1=Math.round(F0);if(T(this,C)===_0&&T(this,B)===t1)return;ut(this,C,_0),ut(this,B,t1),this.canvas.style.visibility="hidden",T(this,u)&&Math.abs(T(this,u)-I0/F0)>.01&&(F0=Math.ceil(I0/T(this,u)),this.setDims(I0,F0));const[B0,q0]=this.parentDimensions;this.width=I0/B0,this.height=F0/q0,T(this,S)&&nt(this,r0,L0).call(this,I0,F0),nt(this,d0,M0).call(this),nt(this,h0,N0).call(this),this.canvas.style.visibility="visible",this.fixDims()}static deserialize(I0,F0,_0){var t1,B0;const q0=super.deserialize(I0,F0,_0);q0.thickness=I0.thickness,q0.color=Z1.Util.makeHexColor(...I0.color),q0.opacity=I0.opacity;const[z1,N1]=q0.pageDimensions,F1=q0.width*z1,Y1=q0.height*N1,U1=q0.parentScale,I1=I0.thickness/2;ut(q0,u,F1/Y1),ut(q0,S,!0),ut(q0,C,Math.round(F1)),ut(q0,B,Math.round(Y1));for(const{bezier:q1}of I0.paths){const zl=[];q0.paths.push(zl);let B1=U1*(q1[0]-I1),H1=U1*(Y1-q1[1]-I1);for(let bl=2,ql=q1.length;bl<ql;bl+=6){const Te=U1*(q1[bl]-I1),ae=U1*(Y1-q1[bl+1]-I1),ie=U1*(q1[bl+2]-I1),ct=U1*(Y1-q1[bl+3]-I1),je=U1*(q1[bl+4]-I1),T0=U1*(Y1-q1[bl+5]-I1);zl.push([[B1,H1],[Te,ae],[ie,ct],[je,T0]]),B1=je,H1=T0}const rl=nt(this,C0,j0).call(this,zl);q0.bezierPath2D.push(rl)}const J1=nt(t1=q0,v0,d1).call(t1);return ut(q0,Z,Math.max(A1,J1[2]-J1[0])),ut(q0,z,Math.max(A1,J1[3]-J1[1])),nt(B0=q0,r0,L0).call(B0,F1,Y1),q0}serialize(){if(this.isEmpty())return null;const I0=this.getRect(0,0),F0=this.rotation%180==0?I0[3]-I0[1]:I0[2]-I0[0],_0=b1.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle);return{annotationType:Z1.AnnotationEditorType.INK,color:_0,thickness:this.thickness,opacity:this.opacity,paths:nt(this,P0,E0).call(this,this.scaleFactor/this.parentScale,this.translationX,this.translationY,F0),pageIndex:this.pageIndex,rect:I0,rotation:this.rotation}}};let ll=h1;u=new WeakMap,z=new WeakMap,Z=new WeakMap,r=new WeakMap,N=new WeakMap,X=new WeakMap,y=new WeakMap,G=new WeakMap,V=new WeakMap,S=new WeakMap,R=new WeakMap,D=new WeakMap,j=new WeakMap,C=new WeakMap,B=new WeakMap,F=new WeakMap,U=new WeakSet,E=function(I0){const F0=this.thickness;this.addCommands({cmd:()=>{this.thickness=I0,nt(this,m1,g0).call(this)},undo:()=>{this.thickness=F0,nt(this,m1,g0).call(this)},mustExec:!0,type:Z1.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})},g=new WeakSet,f=function(I0){const F0=this.color;this.addCommands({cmd:()=>{this.color=I0,nt(this,h0,N0).call(this)},undo:()=>{this.color=F0,nt(this,h0,N0).call(this)},mustExec:!0,type:Z1.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})},q=new WeakSet,o0=function(I0){I0/=100;const F0=this.opacity;this.addCommands({cmd:()=>{this.opacity=I0,nt(this,h0,N0).call(this)},undo:()=>{this.opacity=F0,nt(this,h0,N0).call(this)},mustExec:!0,type:Z1.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})},c0=new WeakSet,P=function(){const{parentRotation:I0,parentDimensions:[F0,_0]}=this;switch(I0){case 90:return[0,_0,_0,F0];case 180:return[F0,_0,F0,_0];case 270:return[F0,0,_0,F0];default:return[0,0,F0,_0]}},b0=new WeakSet,a0=function(){const{ctx:I0,color:F0,opacity:_0,thickness:t1,parentScale:B0,scaleFactor:q0}=this;I0.lineWidth=t1*B0/q0,I0.lineCap="round",I0.lineJoin="round",I0.miterLimit=10,I0.strokeStyle=`${F0}${(0,wl.opacityToHex)(_0)}`},O0=new WeakSet,s0=function(I0,F0){this.canvas.addEventListener("contextmenu",T(this,r)),this.canvas.addEventListener("pointerleave",T(this,X)),this.canvas.addEventListener("pointermove",T(this,N)),this.canvas.addEventListener("pointerup",T(this,y)),this.canvas.removeEventListener("pointerdown",T(this,G)),this.isEditing=!0,T(this,D)||(ut(this,D,!0),nt(this,d0,M0).call(this),this.thickness||(this.thickness=h1._defaultThickness),this.color||(this.color=h1._defaultColor||b1.AnnotationEditor._defaultLineColor),this.opacity??(this.opacity=h1._defaultOpacity)),this.currentPath.push([I0,F0]),ut(this,R,!1),nt(this,b0,a0).call(this),ut(this,F,()=>{nt(this,v,t0).call(this),T(this,F)&&window.requestAnimationFrame(T(this,F))}),window.requestAnimationFrame(T(this,F))},X0=new WeakSet,H=function(I0,F0){const[_0,t1]=this.currentPath.at(-1);if(this.currentPath.length>1&&I0===_0&&F0===t1)return;const B0=this.currentPath;let q0=T(this,V);B0.push([I0,F0]),ut(this,R,!0),B0.length<=2?(q0.moveTo(...B0[0]),q0.lineTo(I0,F0)):(B0.length===3&&(ut(this,V,q0=new Path2D),q0.moveTo(...B0[0])),nt(this,n0,p0).call(this,q0,...B0.at(-3),...B0.at(-2),I0,F0))},Q=new WeakSet,$=function(){if(this.currentPath.length===0)return;const I0=this.currentPath.at(-1);T(this,V).lineTo(...I0)},l0=new WeakSet,_=function(I0,F0){ut(this,F,null),I0=Math.min(Math.max(I0,0),this.canvas.width),F0=Math.min(Math.max(F0,0),this.canvas.height),nt(this,X0,H).call(this,I0,F0),nt(this,Q,$).call(this);let _0;if(this.currentPath.length!==1)_0=nt(this,Z0,W0).call(this);else{const q0=[I0,F0];_0=[[q0,q0.slice(),q0.slice(),q0]]}const t1=T(this,V),B0=this.currentPath;this.currentPath=[],ut(this,V,new Path2D),this.addCommands({cmd:()=>{this.allRawPaths.push(B0),this.paths.push(_0),this.bezierPath2D.push(t1),this.rebuild()},undo:()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),this.paths.length===0?this.remove():(this.canvas||(nt(this,f0,A0).call(this),nt(this,J,e0).call(this)),nt(this,m1,g0).call(this))},mustExec:!0})},v=new WeakSet,t0=function(){if(!T(this,R))return;ut(this,R,!1),Math.ceil(this.thickness*this.parentScale);const I0=this.currentPath.slice(-3),F0=I0.map(B0=>B0[0]),_0=I0.map(B0=>B0[1]),{ctx:t1}=(Math.min(...F0),Math.max(...F0),Math.min(..._0),Math.max(..._0),this);t1.save(),t1.clearRect(0,0,this.canvas.width,this.canvas.height);for(const B0 of this.bezierPath2D)t1.stroke(B0);t1.stroke(T(this,V)),t1.restore()},n0=new WeakSet,p0=function(I0,F0,_0,t1,B0,q0,z1){const N1=(F0+t1)/2,F1=(_0+B0)/2,Y1=(t1+q0)/2,U1=(B0+z1)/2;I0.bezierCurveTo(N1+2*(t1-N1)/3,F1+2*(B0-F1)/3,Y1+2*(t1-Y1)/3,U1+2*(B0-U1)/3,Y1,U1)},Z0=new WeakSet,W0=function(){const I0=this.currentPath;if(I0.length<=2)return[[I0[0],I0[0],I0.at(-1),I0.at(-1)]];const F0=[];let _0,[t1,B0]=I0[0];for(_0=1;_0<I0.length-2;_0++){const[I1,J1]=I0[_0],[q1,zl]=I0[_0+1],B1=(I1+q1)/2,H1=(J1+zl)/2,rl=[t1+2*(I1-t1)/3,B0+2*(J1-B0)/3],bl=[B1+2*(I1-B1)/3,H1+2*(J1-H1)/3];F0.push([[t1,B0],rl,bl,[B1,H1]]),[t1,B0]=[B1,H1]}const[q0,z1]=I0[_0],[N1,F1]=I0[_0+1],Y1=[t1+2*(q0-t1)/3,B0+2*(z1-B0)/3],U1=[N1+2*(q0-N1)/3,F1+2*(z1-F1)/3];return F0.push([[t1,B0],Y1,U1,[N1,F1]]),F0},h0=new WeakSet,N0=function(){if(this.isEmpty()){nt(this,S0,w0).call(this);return}nt(this,b0,a0).call(this);const{canvas:I0,ctx:F0}=this;F0.setTransform(1,0,0,1,0,0),F0.clearRect(0,0,I0.width,I0.height),nt(this,S0,w0).call(this);for(const _0 of this.bezierPath2D)F0.stroke(_0)},u0=new WeakSet,D0=function(I0){this.canvas.removeEventListener("pointerleave",T(this,X)),this.canvas.removeEventListener("pointermove",T(this,N)),this.canvas.removeEventListener("pointerup",T(this,y)),this.canvas.addEventListener("pointerdown",T(this,G)),setTimeout(()=>{this.canvas.removeEventListener("contextmenu",T(this,r))},10),nt(this,l0,_).call(this,I0.offsetX,I0.offsetY),this.addToAnnotationStorage(),this.setInBackground()},f0=new WeakSet,A0=function(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",h1._l10nPromise.get("editor_ink_canvas_aria_label").then(I0=>{var F0;return(F0=this.canvas)===null||F0===void 0?void 0:F0.setAttribute("aria-label",I0)}),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")},J=new WeakSet,e0=function(){ut(this,j,new ResizeObserver(I0=>{const F0=I0[0].contentRect;F0.width&&F0.height&&this.setDimensions(F0.width,F0.height)})),T(this,j).observe(this.div)},d0=new WeakSet,M0=function(){if(!T(this,D))return;const[I0,F0]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*I0),this.canvas.height=Math.ceil(this.height*F0),nt(this,S0,w0).call(this)},r0=new WeakSet,L0=function(I0,F0){const _0=nt(this,i1,k1).call(this),t1=(I0-_0)/T(this,Z),B0=(F0-_0)/T(this,z);this.scaleFactor=Math.min(t1,B0)},S0=new WeakSet,w0=function(){const I0=nt(this,i1,k1).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+I0,this.translationY*this.scaleFactor+I0)},C0=new WeakSet,j0=function(I0){const F0=new Path2D;for(let _0=0,t1=I0.length;_0<t1;_0++){const[B0,q0,z1,N1]=I0[_0];_0===0&&F0.moveTo(...B0),F0.bezierCurveTo(q0[0],q0[1],z1[0],z1[1],N1[0],N1[1])}return F0},P0=new WeakSet,E0=function(I0,F0,_0,t1){const B0=[],q0=this.thickness/2;let z1,N1;for(const F1 of this.paths){z1=[],N1=[];for(let Y1=0,U1=F1.length;Y1<U1;Y1++){const[I1,J1,q1,zl]=F1[Y1],B1=I0*(I1[0]+F0)+q0,H1=t1-I0*(I1[1]+_0)-q0,rl=I0*(J1[0]+F0)+q0,bl=t1-I0*(J1[1]+_0)-q0,ql=I0*(q1[0]+F0)+q0,Te=t1-I0*(q1[1]+_0)-q0,ae=I0*(zl[0]+F0)+q0,ie=t1-I0*(zl[1]+_0)-q0;Y1===0&&(z1.push(B1,H1),N1.push(B1,H1)),z1.push(rl,bl,ql,Te,ae,ie),nt(this,Q0,$0).call(this,B1,H1,rl,bl,ql,Te,ae,ie,4,N1)}B0.push({bezier:z1,points:N1})}return B0},Q0=new WeakSet,$0=function(I0,F0,_0,t1,B0,q0,z1,N1,F1,Y1){if(nt(this,o1,Y0).call(this,I0,F0,_0,t1,B0,q0,z1,N1))Y1.push(z1,N1);else{for(let U1=1;U1<F1-1;U1++){const I1=U1/F1,J1=1-I1;let q1=I1*I0+J1*_0,zl=I1*F0+J1*t1,B1=I1*_0+J1*B0,H1=I1*t1+J1*q0;q1=I1*q1+J1*B1,zl=I1*zl+J1*H1,B1=I1*B1+J1*(I1*B0+J1*z1),H1=I1*H1+J1*(I1*q0+J1*N1),q1=I1*q1+J1*B1,zl=I1*zl+J1*H1,Y1.push(q1,zl)}Y1.push(z1,N1)}},o1=new WeakSet,Y0=function(I0,F0,_0,t1,B0,q0,z1,N1){const F1=(3*_0-2*I0-z1)**2,Y1=(3*t1-2*F0-N1)**2,U1=(3*B0-I0-2*z1)**2,I1=(3*q0-F0-2*N1)**2;return Math.max(F1,U1)+Math.max(Y1,I1)<=10},v0=new WeakSet,d1=function(){let I0=1/0,F0=-1/0,_0=1/0,t1=-1/0;for(const B0 of this.paths)for(const[q0,z1,N1,F1]of B0){const Y1=Z1.Util.bezierBoundingBox(...q0,...z1,...N1,...F1);I0=Math.min(I0,Y1[0]),_0=Math.min(_0,Y1[1]),F0=Math.max(F0,Y1[2]),t1=Math.max(t1,Y1[3])}return[I0,_0,F0,t1]},i1=new WeakSet,k1=function(){return T(this,S)?Math.ceil(this.thickness*this.parentScale):0},m1=new WeakSet,g0=function(){let I0=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(this.isEmpty())return;if(!T(this,S)){nt(this,h0,N0).call(this);return}const F0=nt(this,v0,d1).call(this),_0=nt(this,i1,k1).call(this);ut(this,Z,Math.max(A1,F0[2]-F0[0])),ut(this,z,Math.max(A1,F0[3]-F0[1]));const t1=Math.ceil(_0+T(this,Z)*this.scaleFactor),B0=Math.ceil(_0+T(this,z)*this.scaleFactor),[q0,z1]=this.parentDimensions;this.width=t1/q0,this.height=B0/z1,ut(this,u,t1/B0),nt(this,M1,W1).call(this);const N1=this.translationX,F1=this.translationY;this.translationX=-F0[0],this.translationY=-F0[1],nt(this,d0,M0).call(this),nt(this,h0,N0).call(this),ut(this,C,t1),ut(this,B,B0),this.setDims(t1,B0);const Y1=I0?_0/this.scaleFactor/2:0;this.translate(N1-this.translationX-Y1,F1-this.translationY-Y1)},M1=new WeakSet,W1=function(){const{style:I0}=this.div;T(this,u)>=1?(I0.minHeight="16px",I0.minWidth=`${Math.round(T(this,u)*A1)}px`):(I0.minWidth="16px",I0.minHeight=`${Math.round(A1/T(this,u))}px`)},et(ll,C0),It(ll,"_defaultColor",null),It(ll,"_defaultOpacity",1),It(ll,"_defaultThickness",1),It(ll,"_l10nPromise"),It(ll,"_type","ink"),s.InkEditor=ll},(o,s,M)=>{var u,z,Z,r,N,X,y,G;Object.defineProperty(s,"__esModule",{value:!0}),s.AnnotationLayer=void 0;var V=M(1),S=M(142),R=M(139),D=M(166),j=M(167);const C=1e3,B=new WeakSet;function F(A0){return{width:A0[2]-A0[0],height:A0[3]-A0[1]}}class U{static create(J){switch(J.data.annotationType){case V.AnnotationType.LINK:return new g(J);case V.AnnotationType.TEXT:return new f(J);case V.AnnotationType.WIDGET:switch(J.data.fieldType){case"Tx":return new o0(J);case"Btn":return J.data.radioButton?new P(J):J.data.checkBox?new c0(J):new b0(J);case"Ch":return new a0(J)}return new q(J);case V.AnnotationType.POPUP:return new s0(J);case V.AnnotationType.FREETEXT:return new H(J);case V.AnnotationType.LINE:return new Q(J);case V.AnnotationType.SQUARE:return new $(J);case V.AnnotationType.CIRCLE:return new l0(J);case V.AnnotationType.POLYLINE:return new _(J);case V.AnnotationType.CARET:return new t0(J);case V.AnnotationType.INK:return new n0(J);case V.AnnotationType.POLYGON:return new v(J);case V.AnnotationType.HIGHLIGHT:return new p0(J);case V.AnnotationType.UNDERLINE:return new Z0(J);case V.AnnotationType.SQUIGGLY:return new W0(J);case V.AnnotationType.STRIKEOUT:return new h0(J);case V.AnnotationType.STAMP:return new N0(J);case V.AnnotationType.FILEATTACHMENT:return new u0(J);default:return new E(J)}}}class E{constructor(J){let{isRenderable:e0=!1,ignoreBorder:d0=!1,createQuadrilaterals:M0=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.isRenderable=e0,this.data=J.data,this.layer=J.layer,this.page=J.page,this.viewport=J.viewport,this.linkService=J.linkService,this.downloadManager=J.downloadManager,this.imageResourcesPath=J.imageResourcesPath,this.renderForms=J.renderForms,this.svgFactory=J.svgFactory,this.annotationStorage=J.annotationStorage,this.enableScripting=J.enableScripting,this.hasJSActions=J.hasJSActions,this._fieldObjects=J.fieldObjects,e0&&(this.container=this._createContainer(d0)),M0&&(this.quadrilaterals=this._createQuadrilaterals(d0))}_createContainer(){let J=arguments.length>0&&arguments[0]!==void 0&&arguments[0];const{data:e0,page:d0,viewport:M0}=this,r0=document.createElement("section");r0.setAttribute("data-annotation-id",e0.id),e0.noRotate&&r0.classList.add("norotate");const{pageWidth:L0,pageHeight:S0,pageX:w0,pageY:C0}=M0.rawDims,{width:j0,height:P0}=F(e0.rect),E0=V.Util.normalizeRect([e0.rect[0],d0.view[3]-e0.rect[1]+d0.view[1],e0.rect[2],d0.view[3]-e0.rect[3]+d0.view[1]]);if(!J&&e0.borderStyle.width>0){r0.style.borderWidth=`${e0.borderStyle.width}px`;const $0=e0.borderStyle.horizontalCornerRadius,o1=e0.borderStyle.verticalCornerRadius;if($0>0||o1>0){const v0=`calc(${$0}px * var(--scale-factor)) / calc(${o1}px * var(--scale-factor))`;r0.style.borderRadius=v0}else if(this instanceof P){const v0=`calc(${j0}px * var(--scale-factor)) / calc(${P0}px * var(--scale-factor))`;r0.style.borderRadius=v0}switch(e0.borderStyle.style){case V.AnnotationBorderStyleType.SOLID:r0.style.borderStyle="solid";break;case V.AnnotationBorderStyleType.DASHED:r0.style.borderStyle="dashed";break;case V.AnnotationBorderStyleType.BEVELED:(0,V.warn)("Unimplemented border style: beveled");break;case V.AnnotationBorderStyleType.INSET:(0,V.warn)("Unimplemented border style: inset");break;case V.AnnotationBorderStyleType.UNDERLINE:r0.style.borderBottomStyle="solid"}const Y0=e0.borderColor||null;Y0?r0.style.borderColor=V.Util.makeHexColor(0|Y0[0],0|Y0[1],0|Y0[2]):r0.style.borderWidth=0}r0.style.left=100*(E0[0]-w0)/L0+"%",r0.style.top=100*(E0[1]-C0)/S0+"%";const{rotation:Q0}=e0;return e0.hasOwnCanvas||Q0===0?(r0.style.width=100*j0/L0+"%",r0.style.height=100*P0/S0+"%"):this.setRotation(Q0,r0),r0}setRotation(J){let e0=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.container;const{pageWidth:d0,pageHeight:M0}=this.viewport.rawDims,{width:r0,height:L0}=F(this.data.rect);let S0,w0;J%180==0?(S0=100*r0/d0,w0=100*L0/M0):(S0=100*L0/d0,w0=100*r0/M0),e0.style.width=`${S0}%`,e0.style.height=`${w0}%`,e0.setAttribute("data-main-rotation",(360-J)%360)}get _commonActions(){const J=(e0,d0,M0)=>{const r0=M0.detail[e0];M0.target.style[d0]=D.ColorConverters[`${r0[0]}_HTML`](r0.slice(1))};return(0,V.shadow)(this,"_commonActions",{display:e0=>{const d0=e0.detail.display%2==1;this.container.style.visibility=d0?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:d0,print:e0.detail.display===0||e0.detail.display===3})},print:e0=>{this.annotationStorage.setValue(this.data.id,{print:e0.detail.print})},hidden:e0=>{this.container.style.visibility=e0.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:e0.detail.hidden})},focus:e0=>{setTimeout(()=>e0.target.focus({preventScroll:!1}),0)},userName:e0=>{e0.target.title=e0.detail.userName},readonly:e0=>{e0.detail.readonly?e0.target.setAttribute("readonly",""):e0.target.removeAttribute("readonly")},required:e0=>{this._setRequired(e0.target,e0.detail.required)},bgColor:e0=>{J("bgColor","backgroundColor",e0)},fillColor:e0=>{J("fillColor","backgroundColor",e0)},fgColor:e0=>{J("fgColor","color",e0)},textColor:e0=>{J("textColor","color",e0)},borderColor:e0=>{J("borderColor","borderColor",e0)},strokeColor:e0=>{J("strokeColor","borderColor",e0)},rotation:e0=>{const d0=e0.detail.rotation;this.setRotation(d0),this.annotationStorage.setValue(this.data.id,{rotation:d0})}})}_dispatchEventFromSandbox(J,e0){const d0=this._commonActions;for(const M0 of Object.keys(e0.detail)){const r0=J[M0]||d0[M0];r0==null||r0(e0)}}_setDefaultPropertiesFromJS(J){if(!this.enableScripting)return;const e0=this.annotationStorage.getRawValue(this.data.id);if(!e0)return;const d0=this._commonActions;for(const[M0,r0]of Object.entries(e0)){const L0=d0[M0];L0&&(L0({detail:{[M0]:r0},target:J}),delete e0[M0])}}_createQuadrilaterals(){let J=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(!this.data.quadPoints)return null;const e0=[],d0=this.data.rect;for(const M0 of this.data.quadPoints)this.data.rect=[M0[2].x,M0[2].y,M0[1].x,M0[1].y],e0.push(this._createContainer(J));return this.data.rect=d0,e0}_createPopup(J,e0){let d0=this.container;this.quadrilaterals&&(J||(J=this.quadrilaterals),d0=this.quadrilaterals[0]),J||((J=document.createElement("div")).classList.add("popupTriggerArea"),d0.append(J));const M0=new X0({container:d0,trigger:J,color:e0.color,titleObj:e0.titleObj,modificationDate:e0.modificationDate,contentsObj:e0.contentsObj,richText:e0.richText,hideWrapper:!0}).render();M0.style.left="100%",d0.append(M0)}_renderQuadrilaterals(J){for(const e0 of this.quadrilaterals)e0.classList.add(J);return this.quadrilaterals}render(){(0,V.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(J){let e0=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const d0=[];if(this._fieldObjects){const M0=this._fieldObjects[J];if(M0)for(const{page:r0,id:L0,exportValues:S0}of M0){if(r0===-1||L0===e0)continue;const w0=typeof S0=="string"?S0:null,C0=document.querySelector(`[data-element-id="${L0}"]`);!C0||B.has(C0)?d0.push({id:L0,exportValue:w0,domElement:C0}):(0,V.warn)(`_getElementsByName - element not allowed: ${L0}`)}return d0}for(const M0 of document.getElementsByName(J)){const{exportValue:r0}=M0,L0=M0.getAttribute("data-element-id");L0!==e0&&B.has(M0)&&d0.push({id:L0,exportValue:r0,domElement:M0})}return d0}}class g extends E{constructor(J){let e0=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;super(J,{isRenderable:!0,ignoreBorder:!(e0==null||!e0.ignoreBorder),createQuadrilaterals:!0}),et(this,u),et(this,Z),this.isTooltipOnly=J.data.isTooltipOnly}render(){const{data:J,linkService:e0}=this,d0=document.createElement("a");d0.setAttribute("data-element-id",J.id);let M0=!1;return J.url?(e0.addLinkAttributes(d0,J.url,J.newWindow),M0=!0):J.action?(this._bindNamedAction(d0,J.action),M0=!0):J.attachment?(this._bindAttachment(d0,J.attachment),M0=!0):J.setOCGState?(nt(this,Z,r).call(this,d0,J.setOCGState),M0=!0):J.dest?(this._bindLink(d0,J.dest),M0=!0):(J.actions&&(J.actions.Action||J.actions["Mouse Up"]||J.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(d0,J),M0=!0),J.resetForm?(this._bindResetFormAction(d0,J.resetForm),M0=!0):this.isTooltipOnly&&!M0&&(this._bindLink(d0,""),M0=!0)),this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map((r0,L0)=>{const S0=L0===0?d0:d0.cloneNode();return r0.append(S0),r0}):(this.container.classList.add("linkAnnotation"),M0&&this.container.append(d0),this.container)}_bindLink(J,e0){J.href=this.linkService.getDestinationHash(e0),J.onclick=()=>(e0&&this.linkService.goToDestination(e0),!1),(e0||e0==="")&&nt(this,u,z).call(this)}_bindNamedAction(J,e0){J.href=this.linkService.getAnchorUrl(""),J.onclick=()=>(this.linkService.executeNamedAction(e0),!1),nt(this,u,z).call(this)}_bindAttachment(J,e0){J.href=this.linkService.getAnchorUrl(""),J.onclick=()=>{var d0;return(d0=this.downloadManager)===null||d0===void 0||d0.openOrDownloadData(this.container,e0.content,e0.filename),!1},nt(this,u,z).call(this)}_bindJSAction(J,e0){J.href=this.linkService.getAnchorUrl("");const d0=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const M0 of Object.keys(e0.actions)){const r0=d0.get(M0);r0&&(J[r0]=()=>{var L0;return(L0=this.linkService.eventBus)===null||L0===void 0||L0.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e0.id,name:M0}}),!1})}J.onclick||(J.onclick=()=>!1),nt(this,u,z).call(this)}_bindResetFormAction(J,e0){const d0=J.onclick;d0||(J.href=this.linkService.getAnchorUrl("")),nt(this,u,z).call(this),this._fieldObjects?J.onclick=()=>{d0==null||d0();const{fields:M0,refs:r0,include:L0}=e0,S0=[];if(M0.length!==0||r0.length!==0){const P0=new Set(r0);for(const E0 of M0){const Q0=this._fieldObjects[E0]||[];for(const{id:$0}of Q0)P0.add($0)}for(const E0 of Object.values(this._fieldObjects))for(const Q0 of E0)P0.has(Q0.id)===L0&&S0.push(Q0)}else for(const P0 of Object.values(this._fieldObjects))S0.push(...P0);const w0=this.annotationStorage,C0=[];for(const P0 of S0){const{id:E0}=P0;switch(C0.push(E0),P0.type){case"text":{const $0=P0.defaultValue||"";w0.setValue(E0,{value:$0});break}case"checkbox":case"radiobutton":{const $0=P0.defaultValue===P0.exportValues;w0.setValue(E0,{value:$0});break}case"combobox":case"listbox":{const $0=P0.defaultValue||"";w0.setValue(E0,{value:$0});break}default:continue}const Q0=document.querySelector(`[data-element-id="${E0}"]`);Q0&&(B.has(Q0)?Q0.dispatchEvent(new Event("resetform")):(0,V.warn)(`_bindResetFormAction - element not allowed: ${E0}`))}if(this.enableScripting){var j0;(j0=this.linkService.eventBus)===null||j0===void 0||j0.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:C0,name:"ResetForm"}})}return!1}:((0,V.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),d0||(J.onclick=()=>!1))}}u=new WeakSet,z=function(){this.container.setAttribute("data-internal-link","")},Z=new WeakSet,r=function(A0,J){A0.href=this.linkService.getAnchorUrl(""),A0.onclick=()=>(this.linkService.executeSetOCGState(J),!1),nt(this,u,z).call(this)};class f extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str)})}render(){this.container.classList.add("textAnnotation");const J=document.createElement("img");return J.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",J.alt="[{{type}} Annotation]",J.dataset.l10nId="text_annotation_type",J.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(J,this.data),this.container.append(J),this.container}}class q extends E{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}showElementAndHideCanvas(J){if(this.data.hasOwnCanvas){var e0;((e0=J.previousSibling)===null||e0===void 0?void 0:e0.nodeName)==="CANVAS"&&(J.previousSibling.hidden=!0),J.hidden=!1}}_getKeyModifier(J){const{isWin:e0,isMac:d0}=V.FeatureTest.platform;return e0&&J.ctrlKey||d0&&J.metaKey}_setEventListener(J,e0,d0,M0){e0.includes("mouse")?J.addEventListener(e0,r0=>{var L0;(L0=this.linkService.eventBus)===null||L0===void 0||L0.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:d0,value:M0(r0),shift:r0.shiftKey,modifier:this._getKeyModifier(r0)}})}):J.addEventListener(e0,r0=>{var L0;(L0=this.linkService.eventBus)===null||L0===void 0||L0.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:d0,value:M0(r0)}})})}_setEventListeners(J,e0,d0){for(const[r0,L0]of e0){var M0;(L0==="Action"||(M0=this.data.actions)!==null&&M0!==void 0&&M0[L0])&&this._setEventListener(J,r0,L0,d0)}}_setBackgroundColor(J){const e0=this.data.backgroundColor||null;J.style.backgroundColor=e0===null?"transparent":V.Util.makeHexColor(e0[0],e0[1],e0[2])}_setTextStyle(J){const e0=["left","center","right"],{fontColor:d0}=this.data.defaultAppearanceData,M0=this.data.defaultAppearanceData.fontSize||9,r0=J.style;let L0;const S0=w0=>Math.round(10*w0)/10;if(this.data.multiLine){const w0=Math.abs(this.data.rect[3]-this.data.rect[1]-2),C0=w0/(Math.round(w0/(V.LINE_FACTOR*M0))||1);L0=Math.min(M0,S0(C0/V.LINE_FACTOR))}else{const w0=Math.abs(this.data.rect[3]-this.data.rect[1]-2);L0=Math.min(M0,S0(w0/V.LINE_FACTOR))}r0.fontSize=`calc(${L0}px * var(--scale-factor))`,r0.color=V.Util.makeHexColor(d0[0],d0[1],d0[2]),this.data.textAlignment!==null&&(r0.textAlign=e0[this.data.textAlignment])}_setRequired(J,e0){e0?J.setAttribute("required",!0):J.removeAttribute("required"),J.setAttribute("aria-required",e0)}}class o0 extends q{constructor(J){super(J,{isRenderable:J.renderForms||!J.data.hasAppearance&&!!J.data.fieldValue})}setPropertyOnSiblings(J,e0,d0,M0){const r0=this.annotationStorage;for(const L0 of this._getElementsByName(J.name,J.id))L0.domElement&&(L0.domElement[e0]=d0),r0.setValue(L0.id,{[M0]:d0})}render(){const J=this.annotationStorage,e0=this.data.id;this.container.classList.add("textWidgetAnnotation");let d0=null;if(this.renderForms){var M0;const L0=J.getValue(e0,{value:this.data.fieldValue});let S0=L0.value||"";const w0=J.getValue(e0,{charLimit:this.data.maxLen}).charLimit;w0&&S0.length>w0&&(S0=S0.slice(0,w0));let C0=L0.formattedValue||((M0=this.data.textContent)===null||M0===void 0?void 0:M0.join(`
|
|
65
65
|
`))||null;C0&&this.data.comb&&(C0=C0.replaceAll(/\s+/g,""));const j0={userValue:S0,formattedValue:C0,lastCommittedValue:null,commitKey:1};this.data.multiLine?(d0=document.createElement("textarea"),d0.textContent=C0??S0,this.data.doNotScroll&&(d0.style.overflowY="hidden")):(d0=document.createElement("input"),d0.type="text",d0.setAttribute("value",C0??S0),this.data.doNotScroll&&(d0.style.overflowX="hidden")),this.data.hasOwnCanvas&&(d0.hidden=!0),B.add(d0),d0.setAttribute("data-element-id",e0),d0.disabled=this.data.readOnly,d0.name=this.data.fieldName,d0.tabIndex=C,this._setRequired(d0,this.data.required),w0&&(d0.maxLength=w0),d0.addEventListener("input",E0=>{J.setValue(e0,{value:E0.target.value}),this.setPropertyOnSiblings(d0,"value",E0.target.value,"value"),j0.formattedValue=null}),d0.addEventListener("resetform",E0=>{const Q0=this.data.defaultFieldValue??"";d0.value=j0.userValue=Q0,j0.formattedValue=null});let P0=E0=>{const{formattedValue:Q0}=j0;Q0!=null&&(E0.target.value=Q0),E0.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){var r0;d0.addEventListener("focus",Q0=>{const{target:$0}=Q0;j0.userValue&&($0.value=j0.userValue),j0.lastCommittedValue=$0.value,j0.commitKey=1}),d0.addEventListener("updatefromsandbox",Q0=>{this.showElementAndHideCanvas(Q0.target);const $0={value(o1){j0.userValue=o1.detail.value??"",J.setValue(e0,{value:j0.userValue.toString()}),o1.target.value=j0.userValue},formattedValue(o1){const{formattedValue:Y0}=o1.detail;j0.formattedValue=Y0,Y0!=null&&o1.target!==document.activeElement&&(o1.target.value=Y0),J.setValue(e0,{formattedValue:Y0})},selRange(o1){o1.target.setSelectionRange(...o1.detail.selRange)},charLimit:o1=>{var Y0;const{charLimit:v0}=o1.detail,{target:d1}=o1;if(v0===0){d1.removeAttribute("maxLength");return}d1.setAttribute("maxLength",v0);let i1=j0.userValue;i1&&!(i1.length<=v0)&&(i1=i1.slice(0,v0),d1.value=j0.userValue=i1,J.setValue(e0,{value:i1}),(Y0=this.linkService.eventBus)===null||Y0===void 0||Y0.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e0,name:"Keystroke",value:i1,willCommit:!0,commitKey:1,selStart:d1.selectionStart,selEnd:d1.selectionEnd}}))}};this._dispatchEventFromSandbox($0,Q0)}),d0.addEventListener("keydown",Q0=>{var $0;j0.commitKey=1;let o1=-1;if(Q0.key==="Escape"?o1=0:Q0.key!=="Enter"||this.data.multiLine?Q0.key==="Tab"&&(j0.commitKey=3):o1=2,o1===-1)return;const{value:Y0}=Q0.target;j0.lastCommittedValue!==Y0&&(j0.lastCommittedValue=Y0,j0.userValue=Y0,($0=this.linkService.eventBus)===null||$0===void 0||$0.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e0,name:"Keystroke",value:Y0,willCommit:!0,commitKey:o1,selStart:Q0.target.selectionStart,selEnd:Q0.target.selectionEnd}}))});const E0=P0;P0=null,d0.addEventListener("blur",Q0=>{if(!Q0.relatedTarget)return;const{value:$0}=Q0.target;if(j0.userValue=$0,j0.lastCommittedValue!==$0){var o1;(o1=this.linkService.eventBus)===null||o1===void 0||o1.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e0,name:"Keystroke",value:$0,willCommit:!0,commitKey:j0.commitKey,selStart:Q0.target.selectionStart,selEnd:Q0.target.selectionEnd}})}E0(Q0)}),(r0=this.data.actions)!==null&&r0!==void 0&&r0.Keystroke&&d0.addEventListener("beforeinput",Q0=>{var $0;j0.lastCommittedValue=null;const{data:o1,target:Y0}=Q0,{value:v0,selectionStart:d1,selectionEnd:i1}=Y0;let k1=d1,m1=i1;switch(Q0.inputType){case"deleteWordBackward":{const g0=v0.substring(0,d1).match(/\w*[^\w]*$/);g0&&(k1-=g0[0].length);break}case"deleteWordForward":{const g0=v0.substring(d1).match(/^[^\w]*\w*/);g0&&(m1+=g0[0].length);break}case"deleteContentBackward":d1===i1&&(k1-=1);break;case"deleteContentForward":d1===i1&&(m1+=1)}Q0.preventDefault(),($0=this.linkService.eventBus)===null||$0===void 0||$0.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e0,name:"Keystroke",value:v0,change:o1||"",willCommit:!1,selStart:k1,selEnd:m1}})}),this._setEventListeners(d0,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],Q0=>Q0.target.value)}if(P0&&d0.addEventListener("blur",P0),this.data.comb){const E0=(this.data.rect[2]-this.data.rect[0])/w0;d0.classList.add("comb"),d0.style.letterSpacing=`calc(${E0}px * var(--scale-factor) - 1ch)`}}else d0=document.createElement("div"),d0.textContent=this.data.fieldValue,d0.style.verticalAlign="middle",d0.style.display="table-cell";return this._setTextStyle(d0),this._setBackgroundColor(d0),this._setDefaultPropertiesFromJS(d0),this.container.append(d0),this.container}}class c0 extends q{constructor(J){super(J,{isRenderable:J.renderForms})}render(){const J=this.annotationStorage,e0=this.data,d0=e0.id;let M0=J.getValue(d0,{value:e0.exportValue===e0.fieldValue}).value;typeof M0=="string"&&(M0=M0!=="Off",J.setValue(d0,{value:M0})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const r0=document.createElement("input");return B.add(r0),r0.setAttribute("data-element-id",d0),r0.disabled=e0.readOnly,this._setRequired(r0,this.data.required),r0.type="checkbox",r0.name=e0.fieldName,M0&&r0.setAttribute("checked",!0),r0.setAttribute("exportValue",e0.exportValue),r0.tabIndex=C,r0.addEventListener("change",L0=>{const{name:S0,checked:w0}=L0.target;for(const C0 of this._getElementsByName(S0,d0)){const j0=w0&&C0.exportValue===e0.exportValue;C0.domElement&&(C0.domElement.checked=j0),J.setValue(C0.id,{value:j0})}J.setValue(d0,{value:w0})}),r0.addEventListener("resetform",L0=>{const S0=e0.defaultFieldValue||"Off";L0.target.checked=S0===e0.exportValue}),this.enableScripting&&this.hasJSActions&&(r0.addEventListener("updatefromsandbox",L0=>{const S0={value(w0){w0.target.checked=w0.detail.value!=="Off",J.setValue(d0,{value:w0.target.checked})}};this._dispatchEventFromSandbox(S0,L0)}),this._setEventListeners(r0,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],L0=>L0.target.checked)),this._setBackgroundColor(r0),this._setDefaultPropertiesFromJS(r0),this.container.append(r0),this.container}}class P extends q{constructor(J){super(J,{isRenderable:J.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const J=this.annotationStorage,e0=this.data,d0=e0.id;let M0=J.getValue(d0,{value:e0.fieldValue===e0.buttonValue}).value;typeof M0=="string"&&(M0=M0!==e0.buttonValue,J.setValue(d0,{value:M0}));const r0=document.createElement("input");if(B.add(r0),r0.setAttribute("data-element-id",d0),r0.disabled=e0.readOnly,this._setRequired(r0,this.data.required),r0.type="radio",r0.name=e0.fieldName,M0&&r0.setAttribute("checked",!0),r0.tabIndex=C,r0.addEventListener("change",L0=>{const{name:S0,checked:w0}=L0.target;for(const C0 of this._getElementsByName(S0,d0))J.setValue(C0.id,{value:!1});J.setValue(d0,{value:w0})}),r0.addEventListener("resetform",L0=>{const S0=e0.defaultFieldValue;L0.target.checked=S0!=null&&S0===e0.buttonValue}),this.enableScripting&&this.hasJSActions){const L0=e0.buttonValue;r0.addEventListener("updatefromsandbox",S0=>{const w0={value:C0=>{const j0=L0===C0.detail.value;for(const P0 of this._getElementsByName(C0.target.name)){const E0=j0&&P0.id===d0;P0.domElement&&(P0.domElement.checked=E0),J.setValue(P0.id,{value:E0})}}};this._dispatchEventFromSandbox(w0,S0)}),this._setEventListeners(r0,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],S0=>S0.target.checked)}return this._setBackgroundColor(r0),this._setDefaultPropertiesFromJS(r0),this.container.append(r0),this.container}}class b0 extends g{constructor(J){super(J,{ignoreBorder:J.data.hasAppearance})}render(){const J=super.render();J.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(J.title=this.data.alternativeText);const e0=J.lastChild;return this.enableScripting&&this.hasJSActions&&e0&&(this._setDefaultPropertiesFromJS(e0),e0.addEventListener("updatefromsandbox",d0=>{this._dispatchEventFromSandbox({},d0)})),J}}class a0 extends q{constructor(J){super(J,{isRenderable:J.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const J=this.annotationStorage,e0=this.data.id,d0=J.getValue(e0,{value:this.data.fieldValue}),M0=document.createElement("select");B.add(M0),M0.setAttribute("data-element-id",e0),M0.disabled=this.data.readOnly,this._setRequired(M0,this.data.required),M0.name=this.data.fieldName,M0.tabIndex=C;let r0=this.data.combo&&this.data.options.length>0;this.data.combo||(M0.size=this.data.options.length,this.data.multiSelect&&(M0.multiple=!0)),M0.addEventListener("resetform",j0=>{const P0=this.data.defaultFieldValue;for(const E0 of M0.options)E0.selected=E0.value===P0});for(const j0 of this.data.options){const P0=document.createElement("option");P0.textContent=j0.displayValue,P0.value=j0.exportValue,d0.value.includes(j0.exportValue)&&(P0.setAttribute("selected",!0),r0=!1),M0.append(P0)}let L0=null;if(r0){const j0=document.createElement("option");j0.value=" ",j0.setAttribute("hidden",!0),j0.setAttribute("selected",!0),M0.prepend(j0),L0=()=>{j0.remove(),M0.removeEventListener("input",L0),L0=null},M0.addEventListener("input",L0)}const S0=j0=>{const P0=j0?"value":"textContent",{options:E0,multiple:Q0}=M0;return Q0?Array.prototype.filter.call(E0,$0=>$0.selected).map($0=>$0[P0]):E0.selectedIndex===-1?null:E0[E0.selectedIndex][P0]};let w0=S0(!1);const C0=j0=>{const P0=j0.target.options;return Array.prototype.map.call(P0,E0=>({displayValue:E0.textContent,exportValue:E0.value}))};return this.enableScripting&&this.hasJSActions?(M0.addEventListener("updatefromsandbox",j0=>{const P0={value(E0){var Q0;(Q0=L0)===null||Q0===void 0||Q0();const $0=E0.detail.value,o1=new Set(Array.isArray($0)?$0:[$0]);for(const Y0 of M0.options)Y0.selected=o1.has(Y0.value);J.setValue(e0,{value:S0(!0)}),w0=S0(!1)},multipleSelection(E0){M0.multiple=!0},remove(E0){const Q0=M0.options,$0=E0.detail.remove;Q0[$0].selected=!1,M0.remove($0),Q0.length>0&&Array.prototype.findIndex.call(Q0,o1=>o1.selected)===-1&&(Q0[0].selected=!0),J.setValue(e0,{value:S0(!0),items:C0(E0)}),w0=S0(!1)},clear(E0){for(;M0.length!==0;)M0.remove(0);J.setValue(e0,{value:null,items:[]}),w0=S0(!1)},insert(E0){const{index:Q0,displayValue:$0,exportValue:o1}=E0.detail.insert,Y0=M0.children[Q0],v0=document.createElement("option");v0.textContent=$0,v0.value=o1,Y0?Y0.before(v0):M0.append(v0),J.setValue(e0,{value:S0(!0),items:C0(E0)}),w0=S0(!1)},items(E0){const{items:Q0}=E0.detail;for(;M0.length!==0;)M0.remove(0);for(const $0 of Q0){const{displayValue:o1,exportValue:Y0}=$0,v0=document.createElement("option");v0.textContent=o1,v0.value=Y0,M0.append(v0)}M0.options.length>0&&(M0.options[0].selected=!0),J.setValue(e0,{value:S0(!0),items:C0(E0)}),w0=S0(!1)},indices(E0){const Q0=new Set(E0.detail.indices);for(const $0 of E0.target.options)$0.selected=Q0.has($0.index);J.setValue(e0,{value:S0(!0)}),w0=S0(!1)},editable(E0){E0.target.disabled=!E0.detail.editable}};this._dispatchEventFromSandbox(P0,j0)}),M0.addEventListener("input",j0=>{var P0;const E0=S0(!0);J.setValue(e0,{value:E0}),j0.preventDefault(),(P0=this.linkService.eventBus)===null||P0===void 0||P0.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e0,name:"Keystroke",value:w0,changeEx:E0,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(M0,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],j0=>j0.target.value)):M0.addEventListener("input",function(j0){J.setValue(e0,{value:S0(!0)})}),this.data.combo&&this._setTextStyle(M0),this._setBackgroundColor(M0),this._setDefaultPropertiesFromJS(M0),this.container.append(M0),this.container}}const O0=class extends E{constructor(A0){var J,e0,d0;const{data:M0}=A0;super(A0,{isRenderable:!O0.IGNORE_TYPES.has(M0.parentType)&&!!((J=M0.titleObj)!==null&&J!==void 0&&J.str||(e0=M0.contentsObj)!==null&&e0!==void 0&&e0.str||(d0=M0.richText)!==null&&d0!==void 0&&d0.str)})}render(){this.container.classList.add("popupAnnotation");const A0=this.layer.querySelectorAll(`[data-annotation-id="${this.data.parentId}"]`);if(A0.length===0)return this.container;const J=new X0({container:this.container,trigger:Array.from(A0),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),e0=this.page,d0=V.Util.normalizeRect([this.data.parentRect[0],e0.view[3]-this.data.parentRect[1]+e0.view[1],this.data.parentRect[2],e0.view[3]-this.data.parentRect[3]+e0.view[1]]),M0=d0[0]+this.data.parentRect[2]-this.data.parentRect[0],r0=d0[1],{pageWidth:L0,pageHeight:S0,pageX:w0,pageY:C0}=this.viewport.rawDims;return this.container.style.left=100*(M0-w0)/L0+"%",this.container.style.top=100*(r0-C0)/S0+"%",this.container.append(J.render()),this.container}};let s0=O0;It(s0,"IGNORE_TYPES",new Set(["Line","Square","Circle","PolyLine","Polygon","Ink"]));class X0{constructor(J){this.container=J.container,this.trigger=J.trigger,this.color=J.color,this.titleObj=J.titleObj,this.modificationDate=J.modificationDate,this.contentsObj=J.contentsObj,this.richText=J.richText,this.hideWrapper=J.hideWrapper||!1,this.pinned=!1}render(){var J,e0;const d0=document.createElement("div");d0.classList.add("popupWrapper"),this.hideElement=this.hideWrapper?d0:this.container,this.hideElement.hidden=!0;const M0=document.createElement("div");M0.classList.add("popup");const r0=this.color;if(r0){const w0=.7*(255-r0[0])+r0[0],C0=.7*(255-r0[1])+r0[1],j0=.7*(255-r0[2])+r0[2];M0.style.backgroundColor=V.Util.makeHexColor(0|w0,0|C0,0|j0)}const L0=document.createElement("h1");L0.dir=this.titleObj.dir,L0.textContent=this.titleObj.str,M0.append(L0);const S0=S.PDFDateString.toDateObject(this.modificationDate);if(S0){const w0=document.createElement("span");w0.classList.add("popupDate"),w0.textContent="{{date}}, {{time}}",w0.dataset.l10nId="annotation_date_string",w0.dataset.l10nArgs=JSON.stringify({date:S0.toLocaleDateString(),time:S0.toLocaleTimeString()}),M0.append(w0)}if((J=this.richText)===null||J===void 0||!J.str||(e0=this.contentsObj)!==null&&e0!==void 0&&e0.str&&this.contentsObj.str!==this.richText.str){const w0=this._formatContents(this.contentsObj);M0.append(w0)}else j.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:M0}),M0.lastChild.classList.add("richText","popupContent");Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(const w0 of this.trigger)w0.addEventListener("click",this._toggle.bind(this)),w0.addEventListener("mouseover",this._show.bind(this,!1)),w0.addEventListener("mouseout",this._hide.bind(this,!1));return M0.addEventListener("click",this._hide.bind(this,!0)),d0.append(M0),d0}_formatContents(J){let{str:e0,dir:d0}=J;const M0=document.createElement("p");M0.classList.add("popupContent"),M0.dir=d0;const r0=e0.split(/(?:\r\n?|\n)/);for(let L0=0,S0=r0.length;L0<S0;++L0){const w0=r0[L0];M0.append(document.createTextNode(w0)),L0<S0-1&&M0.append(document.createElement("br"))}return M0}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(){arguments.length>0&&arguments[0]!==void 0&&arguments[0]&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex=parseInt(this.container.style.zIndex)+1e3)}_hide(){(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0])&&(this.pinned=!1),!this.hideElement.hidden&&!this.pinned&&(this.hideElement.hidden=!0,this.container.style.zIndex=parseInt(this.container.style.zIndex)-1e3)}}class H extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0}),this.textContent=J.data.textContent}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const J=document.createElement("div");J.classList.add("annotationTextContent"),J.setAttribute("role","comment");for(const e0 of this.textContent){const d0=document.createElement("span");d0.textContent=e0,J.append(d0)}this.container.append(J)}return this.data.hasPopup||this._createPopup(null,this.data),this.container}}class Q extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0})}render(){this.container.classList.add("lineAnnotation");const J=this.data,{width:e0,height:d0}=F(J.rect),M0=this.svgFactory.create(e0,d0,!0),r0=this.svgFactory.createElement("svg:line");return r0.setAttribute("x1",J.rect[2]-J.lineCoordinates[0]),r0.setAttribute("y1",J.rect[3]-J.lineCoordinates[1]),r0.setAttribute("x2",J.rect[2]-J.lineCoordinates[2]),r0.setAttribute("y2",J.rect[3]-J.lineCoordinates[3]),r0.setAttribute("stroke-width",J.borderStyle.width||1),r0.setAttribute("stroke","transparent"),r0.setAttribute("fill","transparent"),M0.append(r0),this.container.append(M0),this._createPopup(r0,J),this.container}}class $ extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0})}render(){this.container.classList.add("squareAnnotation");const J=this.data,{width:e0,height:d0}=F(J.rect),M0=this.svgFactory.create(e0,d0,!0),r0=J.borderStyle.width,L0=this.svgFactory.createElement("svg:rect");return L0.setAttribute("x",r0/2),L0.setAttribute("y",r0/2),L0.setAttribute("width",e0-r0),L0.setAttribute("height",d0-r0),L0.setAttribute("stroke-width",r0||1),L0.setAttribute("stroke","transparent"),L0.setAttribute("fill","transparent"),M0.append(L0),this.container.append(M0),this._createPopup(L0,J),this.container}}class l0 extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0})}render(){this.container.classList.add("circleAnnotation");const J=this.data,{width:e0,height:d0}=F(J.rect),M0=this.svgFactory.create(e0,d0,!0),r0=J.borderStyle.width,L0=this.svgFactory.createElement("svg:ellipse");return L0.setAttribute("cx",e0/2),L0.setAttribute("cy",d0/2),L0.setAttribute("rx",e0/2-r0/2),L0.setAttribute("ry",d0/2-r0/2),L0.setAttribute("stroke-width",r0||1),L0.setAttribute("stroke","transparent"),L0.setAttribute("fill","transparent"),M0.append(L0),this.container.append(M0),this._createPopup(L0,J),this.container}}class _ extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const J=this.data,{width:e0,height:d0}=F(J.rect),M0=this.svgFactory.create(e0,d0,!0);let r0=[];for(const S0 of J.vertices){const w0=S0.x-J.rect[0],C0=J.rect[3]-S0.y;r0.push(w0+","+C0)}r0=r0.join(" ");const L0=this.svgFactory.createElement(this.svgElementName);return L0.setAttribute("points",r0),L0.setAttribute("stroke-width",J.borderStyle.width||1),L0.setAttribute("stroke","transparent"),L0.setAttribute("fill","transparent"),M0.append(L0),this.container.append(M0),this._createPopup(L0,J),this.container}}class v extends _{constructor(J){super(J),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class t0 extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),this.data.hasPopup||this._createPopup(null,this.data),this.container}}class n0 extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const J=this.data,{width:e0,height:d0}=F(J.rect),M0=this.svgFactory.create(e0,d0,!0);for(const r0 of J.inkLists){let L0=[];for(const w0 of r0){const C0=w0.x-J.rect[0],j0=J.rect[3]-w0.y;L0.push(`${C0},${j0}`)}L0=L0.join(" ");const S0=this.svgFactory.createElement(this.svgElementName);S0.setAttribute("points",L0),S0.setAttribute("stroke-width",J.borderStyle.width||1),S0.setAttribute("stroke","transparent"),S0.setAttribute("fill","transparent"),this._createPopup(S0,J),M0.append(S0)}return this.container.append(M0),this.container}}class p0 extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.classList.add("highlightAnnotation"),this.container)}}class Z0 extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.classList.add("underlineAnnotation"),this.container)}}class W0 extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.classList.add("squigglyAnnotation"),this.container)}}class h0 extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.classList.add("strikeoutAnnotation"),this.container)}}class N0 extends E{constructor(J){var e0,d0,M0;super(J,{isRenderable:!!(J.data.hasPopup||(e0=J.data.titleObj)!==null&&e0!==void 0&&e0.str||(d0=J.data.contentsObj)!==null&&d0!==void 0&&d0.str||(M0=J.data.richText)!==null&&M0!==void 0&&M0.str),ignoreBorder:!0})}render(){return this.container.classList.add("stampAnnotation"),this.data.hasPopup||this._createPopup(null,this.data),this.container}}class u0 extends E{constructor(J){var e0;super(J,{isRenderable:!0});const{filename:d0,content:M0}=this.data.file;this.filename=(0,S.getFilenameFromUrl)(d0,!0),this.content=M0,(e0=this.linkService.eventBus)===null||e0===void 0||e0.dispatch("fileattachmentannotation",{source:this,filename:d0,content:M0})}render(){var J,e0;this.container.classList.add("fileAttachmentAnnotation");let d0;return this.data.hasAppearance?d0=document.createElement("div"):(d0=document.createElement("img"),d0.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(this.data.name)?"paperclip":"pushpin"}.svg`),d0.classList.add("popupTriggerArea"),d0.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&((J=this.data.titleObj)!==null&&J!==void 0&&J.str||(e0=this.data.contentsObj)!==null&&e0!==void 0&&e0.str||this.data.richText)&&this._createPopup(d0,this.data),this.container.append(d0),this.container}_download(){var J;(J=this.downloadManager)===null||J===void 0||J.openOrDownloadData(this.container,this.content,this.filename)}}const D0=class{static render(A0){var J,e0;const{annotations:d0,div:M0,viewport:r0,accessibilityManager:L0}=A0;(0,S.setLayerDimensions)(M0,r0);const S0={data:null,layer:M0,page:A0.page,viewport:r0,linkService:A0.linkService,downloadManager:A0.downloadManager,imageResourcesPath:A0.imageResourcesPath||"",renderForms:A0.renderForms!==!1,svgFactory:new S.DOMSVGFactory,annotationStorage:A0.annotationStorage||new R.AnnotationStorage,enableScripting:A0.enableScripting===!0,hasJSActions:A0.hasJSActions,fieldObjects:A0.fieldObjects};let w0=0;for(const C0 of d0){if(C0.noHTML)continue;if(C0.annotationType!==V.AnnotationType.POPUP){const{width:E0,height:Q0}=F(C0.rect);if(E0<=0||Q0<=0)continue}S0.data=C0;const j0=U.create(S0);if(!j0.isRenderable)continue;const P0=j0.render();if(C0.hidden&&(P0.style.visibility="hidden"),Array.isArray(P0))for(const E0 of P0)E0.style.zIndex=w0++,nt(J=D0,N,X).call(J,E0,C0.id,M0,L0);else P0.style.zIndex=w0++,j0 instanceof s0?M0.prepend(P0):nt(e0=D0,N,X).call(e0,P0,C0.id,M0,L0)}nt(this,y,G).call(this,M0,A0.annotationCanvasMap)}static update(A0){const{annotationCanvasMap:J,div:e0,viewport:d0}=A0;(0,S.setLayerDimensions)(e0,{rotation:d0.rotation}),nt(this,y,G).call(this,e0,J),e0.hidden=!1}};let f0=D0;N=new WeakSet,X=function(A0,J,e0,d0){const M0=A0.firstChild||A0;M0.id=`${S.AnnotationPrefix}${J}`,e0.append(A0),d0==null||d0.moveElementInDOM(e0,A0,M0,!1)},y=new WeakSet,G=function(A0,J){if(J){for(const[e0,d0]of J){const M0=A0.querySelector(`[data-annotation-id="${e0}"]`);if(!M0)continue;const{firstChild:r0}=M0;r0?r0.nodeName==="CANVAS"?r0.replaceWith(d0):r0.before(d0):M0.append(d0)}J.clear()}},et(f0,N),et(f0,y),s.AnnotationLayer=f0},(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ColorConverters=void 0;function M(u){return Math.floor(255*Math.max(0,Math.min(1,u))).toString(16).padStart(2,"0")}s.ColorConverters=class{static CMYK_G(u){let[z,Z,r,N]=u;return["G",1-Math.min(1,.3*z+.59*r+.11*Z+N)]}static G_CMYK(u){let[z]=u;return["CMYK",0,0,0,1-z]}static G_RGB(u){let[z]=u;return["RGB",z,z,z]}static G_HTML(u){let[z]=u;const Z=M(z);return`#${Z}${Z}${Z}`}static RGB_G(u){let[z,Z,r]=u;return["G",.3*z+.59*Z+.11*r]}static RGB_HTML(u){let[z,Z,r]=u;return`#${M(z)}${M(Z)}${M(r)}`}static T_HTML(){return"#00000000"}static CMYK_RGB(u){let[z,Z,r,N]=u;return["RGB",1-Math.min(1,z+N),1-Math.min(1,r+N),1-Math.min(1,Z+N)]}static CMYK_HTML(u){const z=this.CMYK_RGB(u).slice(1);return this.RGB_HTML(z)}static RGB_CMYK(u){let[z,Z,r]=u;const N=1-z,X=1-Z,y=1-r;return["CMYK",N,X,y,Math.min(N,X,y)]}}},(o,s,M)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.XfaLayer=void 0;var u=M(154);s.XfaLayer=class{static setupStorage(z,Z,r,N,X){const y=N.getValue(Z,{value:null});switch(r.name){case"textarea":if(y.value!==null&&(z.textContent=y.value),X==="print")break;z.addEventListener("input",G=>{N.setValue(Z,{value:G.target.value})});break;case"input":if(r.attributes.type==="radio"||r.attributes.type==="checkbox"){if(y.value===r.attributes.xfaOn?z.setAttribute("checked",!0):y.value===r.attributes.xfaOff&&z.removeAttribute("checked"),X==="print")break;z.addEventListener("change",G=>{N.setValue(Z,{value:G.target.checked?G.target.getAttribute("xfaOn"):G.target.getAttribute("xfaOff")})})}else{if(y.value!==null&&z.setAttribute("value",y.value),X==="print")break;z.addEventListener("input",G=>{N.setValue(Z,{value:G.target.value})})}break;case"select":if(y.value!==null)for(const G of r.children)G.attributes.value===y.value&&(G.attributes.selected=!0);z.addEventListener("input",G=>{const V=G.target.options,S=V.selectedIndex===-1?"":V[V.selectedIndex].value;N.setValue(Z,{value:S})})}}static setAttributes(z){let{html:Z,element:r,storage:N=null,intent:X,linkService:y}=z;const{attributes:G}=r,V=Z instanceof HTMLAnchorElement;G.type==="radio"&&(G.name=`${G.name}-${X}`);for(const[S,R]of Object.entries(G))if(R!=null)switch(S){case"class":R.length&&Z.setAttribute(S,R.join(" "));break;case"dataId":break;case"id":Z.setAttribute("data-element-id",R);break;case"style":Object.assign(Z.style,R);break;case"textContent":Z.textContent=R;break;default:(!V||S!=="href"&&S!=="newWindow")&&Z.setAttribute(S,R)}V&&y.addLinkAttributes(Z,G.href,G.newWindow),N&&G.dataId&&this.setupStorage(Z,G.dataId,r,N)}static render(z){const Z=z.annotationStorage,r=z.linkService,N=z.xfaHtml,X=z.intent||"display",y=document.createElement(N.name);N.attributes&&this.setAttributes({html:y,element:N,intent:X,linkService:r});const G=[[N,-1,y]],V=z.div;if(V.append(y),z.viewport){const D=`matrix(${z.viewport.transform.join(",")})`;V.style.transform=D}X!=="richText"&&V.setAttribute("class","xfaLayer xfaFont");const S=[];for(;G.length>0;){var R;const[D,j,C]=G.at(-1);if(j+1===D.children.length){G.pop();continue}const B=D.children[++G.at(-1)[1]];if(B===null)continue;const{name:F}=B;if(F==="#text"){const E=document.createTextNode(B.value);S.push(E),C.append(E);continue}let U;if(U=B!=null&&(R=B.attributes)!==null&&R!==void 0&&R.xmlns?document.createElementNS(B.attributes.xmlns,F):document.createElement(F),C.append(U),B.attributes&&this.setAttributes({html:U,element:B,storage:Z,intent:X,linkService:r}),B.children&&B.children.length>0)G.push([B,-1,U]);else if(B.value){const E=document.createTextNode(B.value);u.XfaText.shouldBuildText(F)&&S.push(E),U.append(E)}}for(const D of V.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))D.setAttribute("readOnly",!0);return{textDivs:S}}static update(z){const Z=`matrix(${z.viewport.transform.join(",")})`;z.div.style.transform=Z,z.div.hidden=!1}}},(o,s,M)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.SVGGraphics=void 0;var u=M(142),z=M(1),Z=M(3);let r=class{constructor(){(0,z.unreachable)("Not implemented: SVGGraphics")}};s.SVGGraphics=r;{let N=function(g){let f=[];const q=[];for(const o0 of g)o0.fn!=="save"?o0.fn==="restore"?f=q.pop():f.push(o0):(f.push({fnId:92,fn:"group",items:[]}),q.push(f),f=f.at(-1).items);return f},X=function(g){if(Number.isInteger(g))return g.toString();const f=g.toFixed(10);let q=f.length-1;if(f[q]!=="0")return f;do q--;while(f[q]==="0");return f.substring(0,f[q]==="."?q:q+1)},y=function(g){if(g[4]===0&&g[5]===0){if(g[1]===0&&g[2]===0)return g[0]===1&&g[3]===1?"":`scale(${X(g[0])} ${X(g[3])})`;if(g[0]===g[3]&&g[1]===-g[2])return`rotate(${X(180*Math.acos(g[0])/Math.PI)})`}else if(g[0]===1&&g[1]===0&&g[2]===0&&g[3]===1)return`translate(${X(g[4])} ${X(g[5])})`;return`matrix(${X(g[0])} ${X(g[1])} ${X(g[2])} ${X(g[3])} ${X(g[4])} ${X(g[5])})`};const G={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},V="http://www.w3.org/XML/1998/namespace",S="http://www.w3.org/1999/xlink",R=["butt","round","square"],D=["miter","round","bevel"],j=function(g){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",q=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(URL.createObjectURL&&typeof Blob<"u"&&!q)return URL.createObjectURL(new Blob([g],{type:f}));const o0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let c0=`data:${f};base64,`;for(let P=0,b0=g.length;P<b0;P+=3){const a0=255&g[P],O0=255&g[P+1],s0=255&g[P+2];c0+=o0[a0>>2]+o0[(3&a0)<<4|O0>>4]+o0[P+1<b0?(15&O0)<<2|s0>>6:64]+o0[P+2<b0?63&s0:64]}return c0},C=function(){const g=new Uint8Array([137,80,78,71,13,10,26,10]),f=new Int32Array(256);for(let P=0;P<256;P++){let b0=P;for(let a0=0;a0<8;a0++)b0=1&b0?3988292384^b0>>1&2147483647:b0>>1&2147483647;f[P]=b0}function q(P,b0,a0,O0){let s0=O0;const X0=b0.length;a0[s0]=X0>>24&255,a0[s0+1]=X0>>16&255,a0[s0+2]=X0>>8&255,a0[s0+3]=255&X0,s0+=4,a0[s0]=255&P.charCodeAt(0),a0[s0+1]=255&P.charCodeAt(1),a0[s0+2]=255&P.charCodeAt(2),a0[s0+3]=255&P.charCodeAt(3),s0+=4,a0.set(b0,s0),s0+=b0.length;const H=function(Q,$,l0){let _=-1;for(let v=$;v<l0;v++){const t0=255&(_^Q[v]);_=_>>>8^f[t0]}return-1^_}(a0,O0+4,s0);a0[s0]=H>>24&255,a0[s0+1]=H>>16&255,a0[s0+2]=H>>8&255,a0[s0+3]=255&H}function o0(P){let b0=P.length;const a0=65535,O0=Math.ceil(b0/a0),s0=new Uint8Array(2+b0+5*O0+4);let X0=0;s0[X0++]=120,s0[X0++]=156;let H=0;for(;b0>a0;)s0[X0++]=0,s0[X0++]=255,s0[X0++]=255,s0[X0++]=0,s0[X0++]=0,s0.set(P.subarray(H,H+a0),X0),X0+=a0,H+=a0,b0-=a0;s0[X0++]=1,s0[X0++]=255&b0,s0[X0++]=b0>>8&255,s0[X0++]=255&~b0,s0[X0++]=(65535&~b0)>>8&255,s0.set(P.subarray(H),X0),X0+=P.length-H;const Q=function($,l0,_){let v=1,t0=0;for(let n0=l0;n0<_;++n0)v=(v+(255&$[n0]))%65521,t0=(t0+v)%65521;return t0<<16|v}(P,0,P.length);return s0[X0++]=Q>>24&255,s0[X0++]=Q>>16&255,s0[X0++]=Q>>8&255,s0[X0++]=255&Q,s0}function c0(P,b0,a0,O0){const s0=P.width,X0=P.height;let H,Q,$;const l0=P.data;switch(b0){case z.ImageKind.GRAYSCALE_1BPP:Q=0,H=1,$=s0+7>>3;break;case z.ImageKind.RGB_24BPP:Q=2,H=8,$=3*s0;break;case z.ImageKind.RGBA_32BPP:Q=6,H=8,$=4*s0;break;default:throw new Error("invalid format")}const _=new Uint8Array((1+$)*X0);let v=0,t0=0;for(let N0=0;N0<X0;++N0)_[v++]=0,_.set(l0.subarray(t0,t0+$),v),t0+=$,v+=$;if(b0===z.ImageKind.GRAYSCALE_1BPP&&O0){v=0;for(let N0=0;N0<X0;N0++){v++;for(let u0=0;u0<$;u0++)_[v++]^=255}}const n0=new Uint8Array([s0>>24&255,s0>>16&255,s0>>8&255,255&s0,X0>>24&255,X0>>16&255,X0>>8&255,255&X0,H,Q,0,0,0]),p0=function(N0){if(!Z.isNodeJS)return o0(N0);try{let u0;u0=parseInt(process.versions.node)>=8?N0:Buffer.from(N0);const D0=require$$6.deflateSync(u0,{level:9});return D0 instanceof Uint8Array?D0:new Uint8Array(D0)}catch(u0){(0,z.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+u0)}return o0(N0)}(_),Z0=g.length+36+n0.length+p0.length,W0=new Uint8Array(Z0);let h0=0;return W0.set(g,h0),h0+=g.length,q("IHDR",n0,W0,h0),h0+=12+n0.length,q("IDATA",p0,W0,h0),h0+=12+p0.length,q("IEND",new Uint8Array(0),W0,h0),j(W0,"image/png",a0)}return function(P,b0,a0){return c0(P,P.kind===void 0?z.ImageKind.GRAYSCALE_1BPP:P.kind,b0,a0)}}();class B{constructor(){this.fontSizeScale=1,this.fontWeight=G.fontWeight,this.fontSize=0,this.textMatrix=z.IDENTITY_MATRIX,this.fontMatrix=z.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=z.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=G.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(f,q){this.x=f,this.y=q}}let F=0,U=0,E=0;s.SVGGraphics=r=class{constructor(g,f){let q=arguments.length>2&&arguments[2]!==void 0&&arguments[2];(0,u.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new u.DOMSVGFactory,this.current=new B,this.transformMatrix=z.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=g,this.objs=f,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!q,this._operatorIdMapping=[];for(const o0 in z.OPS)this._operatorIdMapping[z.OPS[o0]]=o0}getObject(g){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return typeof g=="string"?g.startsWith("g_")?this.commonObjs.get(g):this.objs.get(g):f}save(){this.transformStack.push(this.transformMatrix);const g=this.current;this.extraStack.push(g),this.current=g.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(g){this.save(),this.executeOpTree(g),this.restore()}loadDependencies(g){const f=g.fnArray,q=g.argsArray;for(let o0=0,c0=f.length;o0<c0;o0++)if(f[o0]===z.OPS.dependency)for(const P of q[o0]){const b0=P.startsWith("g_")?this.commonObjs:this.objs,a0=new Promise(O0=>{b0.get(P,O0)});this.current.dependencies.push(a0)}return Promise.all(this.current.dependencies)}transform(g,f,q,o0,c0,P){const b0=[g,f,q,o0,c0,P];this.transformMatrix=z.Util.transform(this.transformMatrix,b0),this.tgrp=null}getSVG(g,f){this.viewport=f;const q=this._initialize(f);return this.loadDependencies(g).then(()=>(this.transformMatrix=z.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(g)),q))}convertOpList(g){const f=this._operatorIdMapping,q=g.argsArray,o0=g.fnArray,c0=[];for(let P=0,b0=o0.length;P<b0;P++){const a0=o0[P];c0.push({fnId:a0,fn:f[a0],args:q[P]})}return N(c0)}executeOpTree(g){for(const f of g){const q=f.fn,o0=f.fnId,c0=f.args;switch(0|o0){case z.OPS.beginText:this.beginText();break;case z.OPS.dependency:break;case z.OPS.setLeading:this.setLeading(c0);break;case z.OPS.setLeadingMoveText:this.setLeadingMoveText(c0[0],c0[1]);break;case z.OPS.setFont:this.setFont(c0);break;case z.OPS.showText:case z.OPS.showSpacedText:this.showText(c0[0]);break;case z.OPS.endText:this.endText();break;case z.OPS.moveText:this.moveText(c0[0],c0[1]);break;case z.OPS.setCharSpacing:this.setCharSpacing(c0[0]);break;case z.OPS.setWordSpacing:this.setWordSpacing(c0[0]);break;case z.OPS.setHScale:this.setHScale(c0[0]);break;case z.OPS.setTextMatrix:this.setTextMatrix(c0[0],c0[1],c0[2],c0[3],c0[4],c0[5]);break;case z.OPS.setTextRise:this.setTextRise(c0[0]);break;case z.OPS.setTextRenderingMode:this.setTextRenderingMode(c0[0]);break;case z.OPS.setLineWidth:this.setLineWidth(c0[0]);break;case z.OPS.setLineJoin:this.setLineJoin(c0[0]);break;case z.OPS.setLineCap:this.setLineCap(c0[0]);break;case z.OPS.setMiterLimit:this.setMiterLimit(c0[0]);break;case z.OPS.setFillRGBColor:this.setFillRGBColor(c0[0],c0[1],c0[2]);break;case z.OPS.setStrokeRGBColor:this.setStrokeRGBColor(c0[0],c0[1],c0[2]);break;case z.OPS.setStrokeColorN:this.setStrokeColorN(c0);break;case z.OPS.setFillColorN:this.setFillColorN(c0);break;case z.OPS.shadingFill:this.shadingFill(c0[0]);break;case z.OPS.setDash:this.setDash(c0[0],c0[1]);break;case z.OPS.setRenderingIntent:this.setRenderingIntent(c0[0]);break;case z.OPS.setFlatness:this.setFlatness(c0[0]);break;case z.OPS.setGState:this.setGState(c0[0]);break;case z.OPS.fill:this.fill();break;case z.OPS.eoFill:this.eoFill();break;case z.OPS.stroke:this.stroke();break;case z.OPS.fillStroke:this.fillStroke();break;case z.OPS.eoFillStroke:this.eoFillStroke();break;case z.OPS.clip:this.clip("nonzero");break;case z.OPS.eoClip:this.clip("evenodd");break;case z.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case z.OPS.paintImageXObject:this.paintImageXObject(c0[0]);break;case z.OPS.paintInlineImageXObject:this.paintInlineImageXObject(c0[0]);break;case z.OPS.paintImageMaskXObject:this.paintImageMaskXObject(c0[0]);break;case z.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(c0[0],c0[1]);break;case z.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case z.OPS.closePath:this.closePath();break;case z.OPS.closeStroke:this.closeStroke();break;case z.OPS.closeFillStroke:this.closeFillStroke();break;case z.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case z.OPS.nextLine:this.nextLine();break;case z.OPS.transform:this.transform(c0[0],c0[1],c0[2],c0[3],c0[4],c0[5]);break;case z.OPS.constructPath:this.constructPath(c0[0],c0[1]);break;case z.OPS.endPath:this.endPath();break;case 92:this.group(f.items);break;default:(0,z.warn)(`Unimplemented operator ${q}`)}}}setWordSpacing(g){this.current.wordSpacing=g}setCharSpacing(g){this.current.charSpacing=g}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(g,f,q,o0,c0,P){const b0=this.current;b0.textMatrix=b0.lineMatrix=[g,f,q,o0,c0,P],b0.textMatrixScale=Math.hypot(g,f),b0.x=b0.lineX=0,b0.y=b0.lineY=0,b0.xcoords=[],b0.ycoords=[],b0.tspan=this.svgFactory.createElement("svg:tspan"),b0.tspan.setAttributeNS(null,"font-family",b0.fontFamily),b0.tspan.setAttributeNS(null,"font-size",`${X(b0.fontSize)}px`),b0.tspan.setAttributeNS(null,"y",X(-b0.y)),b0.txtElement=this.svgFactory.createElement("svg:text"),b0.txtElement.append(b0.tspan)}beginText(){const g=this.current;g.x=g.lineX=0,g.y=g.lineY=0,g.textMatrix=z.IDENTITY_MATRIX,g.lineMatrix=z.IDENTITY_MATRIX,g.textMatrixScale=1,g.tspan=this.svgFactory.createElement("svg:tspan"),g.txtElement=this.svgFactory.createElement("svg:text"),g.txtgrp=this.svgFactory.createElement("svg:g"),g.xcoords=[],g.ycoords=[]}moveText(g,f){const q=this.current;q.x=q.lineX+=g,q.y=q.lineY+=f,q.xcoords=[],q.ycoords=[],q.tspan=this.svgFactory.createElement("svg:tspan"),q.tspan.setAttributeNS(null,"font-family",q.fontFamily),q.tspan.setAttributeNS(null,"font-size",`${X(q.fontSize)}px`),q.tspan.setAttributeNS(null,"y",X(-q.y))}showText(g){const f=this.current,q=f.font,o0=f.fontSize;if(o0===0)return;const c0=f.fontSizeScale,P=f.charSpacing,b0=f.wordSpacing,a0=f.fontDirection,O0=f.textHScale*a0,s0=q.vertical,X0=s0?1:-1,H=q.defaultVMetrics,Q=o0*f.fontMatrix[0];let $=0;for(const v of g){if(v===null){$+=a0*b0;continue}if(typeof v=="number"){$+=X0*v*o0/1e3;continue}const t0=(v.isSpace?b0:0)+P,n0=v.fontChar;let p0,Z0,W0,h0=v.width;if(s0){let N0;const u0=v.vmetric||H;N0=v.vmetric?u0[1]:.5*h0,N0=-N0*Q;const D0=u0[2]*Q;h0=u0?-u0[0]:h0,p0=N0/c0,Z0=($+D0)/c0}else p0=$/c0,Z0=0;(v.isInFont||q.missingFile)&&(f.xcoords.push(f.x+p0),s0&&f.ycoords.push(-f.y+Z0),f.tspan.textContent+=n0),W0=s0?h0*Q-t0*a0:h0*Q+t0*a0,$+=W0}f.tspan.setAttributeNS(null,"x",f.xcoords.map(X).join(" ")),s0?f.tspan.setAttributeNS(null,"y",f.ycoords.map(X).join(" ")):f.tspan.setAttributeNS(null,"y",X(-f.y)),s0?f.y-=$:f.x+=$*O0,f.tspan.setAttributeNS(null,"font-family",f.fontFamily),f.tspan.setAttributeNS(null,"font-size",`${X(f.fontSize)}px`),f.fontStyle!==G.fontStyle&&f.tspan.setAttributeNS(null,"font-style",f.fontStyle),f.fontWeight!==G.fontWeight&&f.tspan.setAttributeNS(null,"font-weight",f.fontWeight);const l0=f.textRenderingMode&z.TextRenderingMode.FILL_STROKE_MASK;if(l0===z.TextRenderingMode.FILL||l0===z.TextRenderingMode.FILL_STROKE?(f.fillColor!==G.fillColor&&f.tspan.setAttributeNS(null,"fill",f.fillColor),f.fillAlpha<1&&f.tspan.setAttributeNS(null,"fill-opacity",f.fillAlpha)):f.textRenderingMode===z.TextRenderingMode.ADD_TO_PATH?f.tspan.setAttributeNS(null,"fill","transparent"):f.tspan.setAttributeNS(null,"fill","none"),l0===z.TextRenderingMode.STROKE||l0===z.TextRenderingMode.FILL_STROKE){const v=1/(f.textMatrixScale||1);this._setStrokeAttributes(f.tspan,v)}let _=f.textMatrix;f.textRise!==0&&(_=_.slice(),_[5]+=f.textRise),f.txtElement.setAttributeNS(null,"transform",`${y(_)} scale(${X(O0)}, -1)`),f.txtElement.setAttributeNS(V,"xml:space","preserve"),f.txtElement.append(f.tspan),f.txtgrp.append(f.txtElement),this._ensureTransformGroup().append(f.txtElement)}setLeadingMoveText(g,f){this.setLeading(-f),this.moveText(g,f)}addFontStyle(g){if(!g.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle));const f=j(g.data,g.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${g.loadedName}"; src: url(${f}); }
|
|
66
|
-
`}setFont(g){const f=this.current,q=this.commonObjs.get(g[0]);let o0=g[1];f.font=q,this.embedFonts&&!q.missingFile&&!this.embeddedFonts[q.loadedName]&&(this.addFontStyle(q),this.embeddedFonts[q.loadedName]=q),f.fontMatrix=q.fontMatrix||z.FONT_IDENTITY_MATRIX;let c0="normal";q.black?c0="900":q.bold&&(c0="bold");const P=q.italic?"italic":"normal";o0<0?(o0=-o0,f.fontDirection=-1):f.fontDirection=1,f.fontSize=o0,f.fontFamily=q.loadedName,f.fontWeight=c0,f.fontStyle=P,f.tspan=this.svgFactory.createElement("svg:tspan"),f.tspan.setAttributeNS(null,"y",X(-f.y)),f.xcoords=[],f.ycoords=[]}endText(){var g;const f=this.current;f.textRenderingMode&z.TextRenderingMode.ADD_TO_PATH_FLAG&&(g=f.txtElement)!==null&&g!==void 0&&g.hasChildNodes()&&(f.element=f.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(g){g>0&&(this.current.lineWidth=g)}setLineCap(g){this.current.lineCap=R[g]}setLineJoin(g){this.current.lineJoin=D[g]}setMiterLimit(g){this.current.miterLimit=g}setStrokeAlpha(g){this.current.strokeAlpha=g}setStrokeRGBColor(g,f,q){this.current.strokeColor=z.Util.makeHexColor(g,f,q)}setFillAlpha(g){this.current.fillAlpha=g}setFillRGBColor(g,f,q){this.current.fillColor=z.Util.makeHexColor(g,f,q),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(g){this.current.strokeColor=this._makeColorN_Pattern(g)}setFillColorN(g){this.current.fillColor=this._makeColorN_Pattern(g)}shadingFill(g){const f=this.viewport.width,q=this.viewport.height,o0=z.Util.inverseTransform(this.transformMatrix),c0=z.Util.applyTransform([0,0],o0),P=z.Util.applyTransform([0,q],o0),b0=z.Util.applyTransform([f,0],o0),a0=z.Util.applyTransform([f,q],o0),O0=Math.min(c0[0],P[0],b0[0],a0[0]),s0=Math.min(c0[1],P[1],b0[1],a0[1]),X0=Math.max(c0[0],P[0],b0[0],a0[0]),H=Math.max(c0[1],P[1],b0[1],a0[1]),Q=this.svgFactory.createElement("svg:rect");Q.setAttributeNS(null,"x",O0),Q.setAttributeNS(null,"y",s0),Q.setAttributeNS(null,"width",X0-O0),Q.setAttributeNS(null,"height",H-s0),Q.setAttributeNS(null,"fill",this._makeShadingPattern(g)),this.current.fillAlpha<1&&Q.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(Q)}_makeColorN_Pattern(g){return g[0]==="TilingPattern"?this._makeTilingPattern(g):this._makeShadingPattern(g)}_makeTilingPattern(g){const f=g[1],q=g[2],o0=g[3]||z.IDENTITY_MATRIX,[c0,P,b0,a0]=g[4],O0=g[5],s0=g[6],X0=g[7],H="shading"+E++,[Q,$,l0,_]=z.Util.normalizeRect([...z.Util.applyTransform([c0,P],o0),...z.Util.applyTransform([b0,a0],o0)]),[v,t0]=z.Util.singularValueDecompose2dScale(o0),n0=O0*v,p0=s0*t0,Z0=this.svgFactory.createElement("svg:pattern");Z0.setAttributeNS(null,"id",H),Z0.setAttributeNS(null,"patternUnits","userSpaceOnUse"),Z0.setAttributeNS(null,"width",n0),Z0.setAttributeNS(null,"height",p0),Z0.setAttributeNS(null,"x",`${Q}`),Z0.setAttributeNS(null,"y",`${$}`);const W0=this.svg,h0=this.transformMatrix,N0=this.current.fillColor,u0=this.current.strokeColor,D0=this.svgFactory.create(l0-Q,_-$);if(this.svg=D0,this.transformMatrix=o0,X0===2){const f0=z.Util.makeHexColor(...f);this.current.fillColor=f0,this.current.strokeColor=f0}return this.executeOpTree(this.convertOpList(q)),this.svg=W0,this.transformMatrix=h0,this.current.fillColor=N0,this.current.strokeColor=u0,Z0.append(D0.childNodes[0]),this.defs.append(Z0),`url(#${H})`}_makeShadingPattern(g){switch(typeof g=="string"&&(g=this.objs.get(g)),g[0]){case"RadialAxial":const f="shading"+E++,q=g[3];let o0;switch(g[1]){case"axial":const c0=g[4],P=g[5];o0=this.svgFactory.createElement("svg:linearGradient"),o0.setAttributeNS(null,"id",f),o0.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),o0.setAttributeNS(null,"x1",c0[0]),o0.setAttributeNS(null,"y1",c0[1]),o0.setAttributeNS(null,"x2",P[0]),o0.setAttributeNS(null,"y2",P[1]);break;case"radial":const b0=g[4],a0=g[5],O0=g[6],s0=g[7];o0=this.svgFactory.createElement("svg:radialGradient"),o0.setAttributeNS(null,"id",f),o0.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),o0.setAttributeNS(null,"cx",a0[0]),o0.setAttributeNS(null,"cy",a0[1]),o0.setAttributeNS(null,"r",s0),o0.setAttributeNS(null,"fx",b0[0]),o0.setAttributeNS(null,"fy",b0[1]),o0.setAttributeNS(null,"fr",O0);break;default:throw new Error(`Unknown RadialAxial type: ${g[1]}`)}for(const c0 of q){const P=this.svgFactory.createElement("svg:stop");P.setAttributeNS(null,"offset",c0[0]),P.setAttributeNS(null,"stop-color",c0[1]),o0.append(P)}return this.defs.append(o0),`url(#${f})`;case"Mesh":return(0,z.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${g[0]}`)}}setDash(g,f){this.current.dashArray=g,this.current.dashPhase=f}constructPath(g,f){const q=this.current;let o0=q.x,c0=q.y,P=[],b0=0;for(const a0 of g)switch(0|a0){case z.OPS.rectangle:o0=f[b0++],c0=f[b0++];const O0=o0+f[b0++],s0=c0+f[b0++];P.push("M",X(o0),X(c0),"L",X(O0),X(c0),"L",X(O0),X(s0),"L",X(o0),X(s0),"Z");break;case z.OPS.moveTo:o0=f[b0++],c0=f[b0++],P.push("M",X(o0),X(c0));break;case z.OPS.lineTo:o0=f[b0++],c0=f[b0++],P.push("L",X(o0),X(c0));break;case z.OPS.curveTo:o0=f[b0+4],c0=f[b0+5],P.push("C",X(f[b0]),X(f[b0+1]),X(f[b0+2]),X(f[b0+3]),X(o0),X(c0)),b0+=6;break;case z.OPS.curveTo2:P.push("C",X(o0),X(c0),X(f[b0]),X(f[b0+1]),X(f[b0+2]),X(f[b0+3])),o0=f[b0+2],c0=f[b0+3],b0+=4;break;case z.OPS.curveTo3:o0=f[b0+2],c0=f[b0+3],P.push("C",X(f[b0]),X(f[b0+1]),X(o0),X(c0),X(o0),X(c0)),b0+=4;break;case z.OPS.closePath:P.push("Z")}P=P.join(" "),q.path&&g.length>0&&g[0]!==z.OPS.rectangle&&g[0]!==z.OPS.moveTo?P=q.path.getAttributeNS(null,"d")+P:(q.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(q.path)),q.path.setAttributeNS(null,"d",P),q.path.setAttributeNS(null,"fill","none"),q.element=q.path,q.setCurrentPoint(o0,c0)}endPath(){const g=this.current;if(g.path=null,!this.pendingClip)return;if(!g.element){this.pendingClip=null;return}const f="clippath"+F++,q=this.svgFactory.createElement("svg:clipPath");q.setAttributeNS(null,"id",f),q.setAttributeNS(null,"transform",y(this.transformMatrix));const o0=g.element.cloneNode(!0);if(this.pendingClip==="evenodd"?o0.setAttributeNS(null,"clip-rule","evenodd"):o0.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,q.append(o0),this.defs.append(q),g.activeClipUrl){g.clipGroup=null;for(const c0 of this.extraStack)c0.clipGroup=null;q.setAttributeNS(null,"clip-path",g.activeClipUrl)}g.activeClipUrl=`url(#${f})`,this.tgrp=null}clip(g){this.pendingClip=g}closePath(){const g=this.current;if(g.path){const f=`${g.path.getAttributeNS(null,"d")}Z`;g.path.setAttributeNS(null,"d",f)}}setLeading(g){this.current.leading=-g}setTextRise(g){this.current.textRise=g}setTextRenderingMode(g){this.current.textRenderingMode=g}setHScale(g){this.current.textHScale=g/100}setRenderingIntent(g){}setFlatness(g){}setGState(g){for(const[f,q]of g)switch(f){case"LW":this.setLineWidth(q);break;case"LC":this.setLineCap(q);break;case"LJ":this.setLineJoin(q);break;case"ML":this.setMiterLimit(q);break;case"D":this.setDash(q[0],q[1]);break;case"RI":this.setRenderingIntent(q);break;case"FL":this.setFlatness(q);break;case"Font":this.setFont(q);break;case"CA":this.setStrokeAlpha(q);break;case"ca":this.setFillAlpha(q);break;default:(0,z.warn)(`Unimplemented graphic state operator ${f}`)}}fill(){const g=this.current;g.element&&(g.element.setAttributeNS(null,"fill",g.fillColor),g.element.setAttributeNS(null,"fill-opacity",g.fillAlpha),this.endPath())}stroke(){const g=this.current;g.element&&(this._setStrokeAttributes(g.element),g.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(g){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const q=this.current;let o0=q.dashArray;f!==1&&o0.length>0&&(o0=o0.map(function(c0){return f*c0})),g.setAttributeNS(null,"stroke",q.strokeColor),g.setAttributeNS(null,"stroke-opacity",q.strokeAlpha),g.setAttributeNS(null,"stroke-miterlimit",X(q.miterLimit)),g.setAttributeNS(null,"stroke-linecap",q.lineCap),g.setAttributeNS(null,"stroke-linejoin",q.lineJoin),g.setAttributeNS(null,"stroke-width",X(f*q.lineWidth)+"px"),g.setAttributeNS(null,"stroke-dasharray",o0.map(X).join(" ")),g.setAttributeNS(null,"stroke-dashoffset",X(f*q.dashPhase)+"px")}eoFill(){var g;(g=this.current.element)===null||g===void 0||g.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){var g;(g=this.current.element)===null||g===void 0||g.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const g=this.svgFactory.createElement("svg:rect");g.setAttributeNS(null,"x","0"),g.setAttributeNS(null,"y","0"),g.setAttributeNS(null,"width","1px"),g.setAttributeNS(null,"height","1px"),g.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(g)}paintImageXObject(g){const f=this.getObject(g);f?this.paintInlineImageXObject(f):(0,z.warn)(`Dependent image with object ID ${g} is not ready yet`)}paintInlineImageXObject(g,f){const q=g.width,o0=g.height,c0=C(g,this.forceDataSchema,!!f),P=this.svgFactory.createElement("svg:rect");P.setAttributeNS(null,"x","0"),P.setAttributeNS(null,"y","0"),P.setAttributeNS(null,"width",X(q)),P.setAttributeNS(null,"height",X(o0)),this.current.element=P,this.clip("nonzero");const b0=this.svgFactory.createElement("svg:image");b0.setAttributeNS(S,"xlink:href",c0),b0.setAttributeNS(null,"x","0"),b0.setAttributeNS(null,"y",X(-o0)),b0.setAttributeNS(null,"width",X(q)+"px"),b0.setAttributeNS(null,"height",X(o0)+"px"),b0.setAttributeNS(null,"transform",`scale(${X(1/q)} ${X(-1/o0)})`),f?f.append(b0):this._ensureTransformGroup().append(b0)}paintImageMaskXObject(g){const f=this.getObject(g.data,g);if(f.bitmap){(0,z.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");return}const q=this.current,o0=f.width,c0=f.height,P=q.fillColor;q.maskId="mask"+U++;const b0=this.svgFactory.createElement("svg:mask");b0.setAttributeNS(null,"id",q.maskId);const a0=this.svgFactory.createElement("svg:rect");a0.setAttributeNS(null,"x","0"),a0.setAttributeNS(null,"y","0"),a0.setAttributeNS(null,"width",X(o0)),a0.setAttributeNS(null,"height",X(c0)),a0.setAttributeNS(null,"fill",P),a0.setAttributeNS(null,"mask",`url(#${q.maskId})`),this.defs.append(b0),this._ensureTransformGroup().append(a0),this.paintInlineImageXObject(f,b0)}paintFormXObjectBegin(g,f){if(Array.isArray(g)&&g.length===6&&this.transform(g[0],g[1],g[2],g[3],g[4],g[5]),f){const q=f[2]-f[0],o0=f[3]-f[1],c0=this.svgFactory.createElement("svg:rect");c0.setAttributeNS(null,"x",f[0]),c0.setAttributeNS(null,"y",f[1]),c0.setAttributeNS(null,"width",X(q)),c0.setAttributeNS(null,"height",X(o0)),this.current.element=c0,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(g){const f=this.svgFactory.create(g.width,g.height),q=this.svgFactory.createElement("svg:defs");f.append(q),this.defs=q;const o0=this.svgFactory.createElement("svg:g");return o0.setAttributeNS(null,"transform",y(g.transform)),f.append(o0),this.svg=o0,f}_ensureClipGroup(){if(!this.current.clipGroup){const g=this.svgFactory.createElement("svg:g");g.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(g),this.current.clipGroup=g}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",y(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}}}],__webpack_module_cache__={};function __w_pdfjs_require__(o){var s=__webpack_module_cache__[o];if(s!==void 0)return s.exports;var M=__webpack_module_cache__[o]={exports:{}};return __webpack_modules__[o].call(M.exports,M,M.exports,__w_pdfjs_require__),M.exports}var __webpack_exports__={};return(()=>{var o=__webpack_exports__;Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"AbortException",{enumerable:!0,get:function(){return s.AbortException}}),Object.defineProperty(o,"AnnotationEditorLayer",{enumerable:!0,get:function(){return Z.AnnotationEditorLayer}}),Object.defineProperty(o,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return s.AnnotationEditorParamsType}}),Object.defineProperty(o,"AnnotationEditorType",{enumerable:!0,get:function(){return s.AnnotationEditorType}}),Object.defineProperty(o,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return r.AnnotationEditorUIManager}}),Object.defineProperty(o,"AnnotationLayer",{enumerable:!0,get:function(){return N.AnnotationLayer}}),Object.defineProperty(o,"AnnotationMode",{enumerable:!0,get:function(){return s.AnnotationMode}}),Object.defineProperty(o,"CMapCompressionType",{enumerable:!0,get:function(){return s.CMapCompressionType}}),Object.defineProperty(o,"FeatureTest",{enumerable:!0,get:function(){return s.FeatureTest}}),Object.defineProperty(o,"GlobalWorkerOptions",{enumerable:!0,get:function(){return X.GlobalWorkerOptions}}),Object.defineProperty(o,"InvalidPDFException",{enumerable:!0,get:function(){return s.InvalidPDFException}}),Object.defineProperty(o,"MissingPDFException",{enumerable:!0,get:function(){return s.MissingPDFException}}),Object.defineProperty(o,"OPS",{enumerable:!0,get:function(){return s.OPS}}),Object.defineProperty(o,"PDFDataRangeTransport",{enumerable:!0,get:function(){return M.PDFDataRangeTransport}}),Object.defineProperty(o,"PDFDateString",{enumerable:!0,get:function(){return u.PDFDateString}}),Object.defineProperty(o,"PDFWorker",{enumerable:!0,get:function(){return M.PDFWorker}}),Object.defineProperty(o,"PasswordResponses",{enumerable:!0,get:function(){return s.PasswordResponses}}),Object.defineProperty(o,"PermissionFlag",{enumerable:!0,get:function(){return s.PermissionFlag}}),Object.defineProperty(o,"PixelsPerInch",{enumerable:!0,get:function(){return u.PixelsPerInch}}),Object.defineProperty(o,"PromiseCapability",{enumerable:!0,get:function(){return s.PromiseCapability}}),Object.defineProperty(o,"RenderingCancelledException",{enumerable:!0,get:function(){return u.RenderingCancelledException}}),Object.defineProperty(o,"SVGGraphics",{enumerable:!0,get:function(){return y.SVGGraphics}}),Object.defineProperty(o,"UnexpectedResponseException",{enumerable:!0,get:function(){return s.UnexpectedResponseException}}),Object.defineProperty(o,"Util",{enumerable:!0,get:function(){return s.Util}}),Object.defineProperty(o,"VerbosityLevel",{enumerable:!0,get:function(){return s.VerbosityLevel}}),Object.defineProperty(o,"XfaLayer",{enumerable:!0,get:function(){return G.XfaLayer}}),Object.defineProperty(o,"build",{enumerable:!0,get:function(){return M.build}}),Object.defineProperty(o,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return s.createValidAbsoluteUrl}}),Object.defineProperty(o,"getDocument",{enumerable:!0,get:function(){return M.getDocument}}),Object.defineProperty(o,"getFilenameFromUrl",{enumerable:!0,get:function(){return u.getFilenameFromUrl}}),Object.defineProperty(o,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return u.getPdfFilenameFromUrl}}),Object.defineProperty(o,"getXfaPageViewport",{enumerable:!0,get:function(){return u.getXfaPageViewport}}),Object.defineProperty(o,"isDataScheme",{enumerable:!0,get:function(){return u.isDataScheme}}),Object.defineProperty(o,"isPdfFile",{enumerable:!0,get:function(){return u.isPdfFile}}),Object.defineProperty(o,"loadScript",{enumerable:!0,get:function(){return u.loadScript}}),Object.defineProperty(o,"normalizeUnicode",{enumerable:!0,get:function(){return s.normalizeUnicode}}),Object.defineProperty(o,"renderTextLayer",{enumerable:!0,get:function(){return z.renderTextLayer}}),Object.defineProperty(o,"setLayerDimensions",{enumerable:!0,get:function(){return u.setLayerDimensions}}),Object.defineProperty(o,"shadow",{enumerable:!0,get:function(){return s.shadow}}),Object.defineProperty(o,"updateTextLayer",{enumerable:!0,get:function(){return z.updateTextLayer}}),Object.defineProperty(o,"version",{enumerable:!0,get:function(){return M.version}});var s=__w_pdfjs_require__(1),M=__w_pdfjs_require__(138),u=__w_pdfjs_require__(142),z=__w_pdfjs_require__(161),Z=__w_pdfjs_require__(162),r=__w_pdfjs_require__(141),N=__w_pdfjs_require__(165),X=__w_pdfjs_require__(149),y=__w_pdfjs_require__(168),G=__w_pdfjs_require__(167)})(),__webpack_exports__})())})(pdf_min$2);var pdf_minExports=pdf_min$2.exports;const pdf_min=getDefaultExportFromCjs(pdf_minExports),pdf_min$1=Object.freeze(Object.defineProperty({__proto__:null,default:pdf_min},Symbol.toStringTag,{value:"Module"})),pdf_minF72cfa08=Object.freeze(Object.defineProperty({__proto__:null,p:pdf_min$1},Symbol.toStringTag,{value:"Module"}));exports.Button=_sfc_main$Q,exports.Card=Card$1,exports.DEFAULT_FETCH_OPTIONS=DEFAULT_FETCH_OPTIONS,exports.DynamicCarousel=_sfc_main$L,exports.DynamicForm=_sfc_main$r,exports.IconButton=IconButton,exports.IndicatorColor=IndicatorColor$1,exports.ProductPrice=ProductPrice,exports.ProductProps=_sfc_main$e,exports.ProductTag=ProductTag,exports.SectionSpinner=SectionSpinner,exports.SectionsContainer=SectionsContainer,exports.StateIndicator=StateIndicator,exports.WidgetsIndex=WidgetsIndex,exports.createFetchUniq=createFetchUniq,exports.default=W2WSharedUi,exports.getFetchUniq=getFetchUniq,exports.setFetchUniq=setFetchUniq,exports.useDragAndDrop=useDragAndDrop,exports.useFetch=useFetch,exports.useFetchPages=useFetchPages,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
66
|
+
`}setFont(g){const f=this.current,q=this.commonObjs.get(g[0]);let o0=g[1];f.font=q,this.embedFonts&&!q.missingFile&&!this.embeddedFonts[q.loadedName]&&(this.addFontStyle(q),this.embeddedFonts[q.loadedName]=q),f.fontMatrix=q.fontMatrix||z.FONT_IDENTITY_MATRIX;let c0="normal";q.black?c0="900":q.bold&&(c0="bold");const P=q.italic?"italic":"normal";o0<0?(o0=-o0,f.fontDirection=-1):f.fontDirection=1,f.fontSize=o0,f.fontFamily=q.loadedName,f.fontWeight=c0,f.fontStyle=P,f.tspan=this.svgFactory.createElement("svg:tspan"),f.tspan.setAttributeNS(null,"y",X(-f.y)),f.xcoords=[],f.ycoords=[]}endText(){var g;const f=this.current;f.textRenderingMode&z.TextRenderingMode.ADD_TO_PATH_FLAG&&(g=f.txtElement)!==null&&g!==void 0&&g.hasChildNodes()&&(f.element=f.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(g){g>0&&(this.current.lineWidth=g)}setLineCap(g){this.current.lineCap=R[g]}setLineJoin(g){this.current.lineJoin=D[g]}setMiterLimit(g){this.current.miterLimit=g}setStrokeAlpha(g){this.current.strokeAlpha=g}setStrokeRGBColor(g,f,q){this.current.strokeColor=z.Util.makeHexColor(g,f,q)}setFillAlpha(g){this.current.fillAlpha=g}setFillRGBColor(g,f,q){this.current.fillColor=z.Util.makeHexColor(g,f,q),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(g){this.current.strokeColor=this._makeColorN_Pattern(g)}setFillColorN(g){this.current.fillColor=this._makeColorN_Pattern(g)}shadingFill(g){const f=this.viewport.width,q=this.viewport.height,o0=z.Util.inverseTransform(this.transformMatrix),c0=z.Util.applyTransform([0,0],o0),P=z.Util.applyTransform([0,q],o0),b0=z.Util.applyTransform([f,0],o0),a0=z.Util.applyTransform([f,q],o0),O0=Math.min(c0[0],P[0],b0[0],a0[0]),s0=Math.min(c0[1],P[1],b0[1],a0[1]),X0=Math.max(c0[0],P[0],b0[0],a0[0]),H=Math.max(c0[1],P[1],b0[1],a0[1]),Q=this.svgFactory.createElement("svg:rect");Q.setAttributeNS(null,"x",O0),Q.setAttributeNS(null,"y",s0),Q.setAttributeNS(null,"width",X0-O0),Q.setAttributeNS(null,"height",H-s0),Q.setAttributeNS(null,"fill",this._makeShadingPattern(g)),this.current.fillAlpha<1&&Q.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(Q)}_makeColorN_Pattern(g){return g[0]==="TilingPattern"?this._makeTilingPattern(g):this._makeShadingPattern(g)}_makeTilingPattern(g){const f=g[1],q=g[2],o0=g[3]||z.IDENTITY_MATRIX,[c0,P,b0,a0]=g[4],O0=g[5],s0=g[6],X0=g[7],H="shading"+E++,[Q,$,l0,_]=z.Util.normalizeRect([...z.Util.applyTransform([c0,P],o0),...z.Util.applyTransform([b0,a0],o0)]),[v,t0]=z.Util.singularValueDecompose2dScale(o0),n0=O0*v,p0=s0*t0,Z0=this.svgFactory.createElement("svg:pattern");Z0.setAttributeNS(null,"id",H),Z0.setAttributeNS(null,"patternUnits","userSpaceOnUse"),Z0.setAttributeNS(null,"width",n0),Z0.setAttributeNS(null,"height",p0),Z0.setAttributeNS(null,"x",`${Q}`),Z0.setAttributeNS(null,"y",`${$}`);const W0=this.svg,h0=this.transformMatrix,N0=this.current.fillColor,u0=this.current.strokeColor,D0=this.svgFactory.create(l0-Q,_-$);if(this.svg=D0,this.transformMatrix=o0,X0===2){const f0=z.Util.makeHexColor(...f);this.current.fillColor=f0,this.current.strokeColor=f0}return this.executeOpTree(this.convertOpList(q)),this.svg=W0,this.transformMatrix=h0,this.current.fillColor=N0,this.current.strokeColor=u0,Z0.append(D0.childNodes[0]),this.defs.append(Z0),`url(#${H})`}_makeShadingPattern(g){switch(typeof g=="string"&&(g=this.objs.get(g)),g[0]){case"RadialAxial":const f="shading"+E++,q=g[3];let o0;switch(g[1]){case"axial":const c0=g[4],P=g[5];o0=this.svgFactory.createElement("svg:linearGradient"),o0.setAttributeNS(null,"id",f),o0.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),o0.setAttributeNS(null,"x1",c0[0]),o0.setAttributeNS(null,"y1",c0[1]),o0.setAttributeNS(null,"x2",P[0]),o0.setAttributeNS(null,"y2",P[1]);break;case"radial":const b0=g[4],a0=g[5],O0=g[6],s0=g[7];o0=this.svgFactory.createElement("svg:radialGradient"),o0.setAttributeNS(null,"id",f),o0.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),o0.setAttributeNS(null,"cx",a0[0]),o0.setAttributeNS(null,"cy",a0[1]),o0.setAttributeNS(null,"r",s0),o0.setAttributeNS(null,"fx",b0[0]),o0.setAttributeNS(null,"fy",b0[1]),o0.setAttributeNS(null,"fr",O0);break;default:throw new Error(`Unknown RadialAxial type: ${g[1]}`)}for(const c0 of q){const P=this.svgFactory.createElement("svg:stop");P.setAttributeNS(null,"offset",c0[0]),P.setAttributeNS(null,"stop-color",c0[1]),o0.append(P)}return this.defs.append(o0),`url(#${f})`;case"Mesh":return(0,z.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${g[0]}`)}}setDash(g,f){this.current.dashArray=g,this.current.dashPhase=f}constructPath(g,f){const q=this.current;let o0=q.x,c0=q.y,P=[],b0=0;for(const a0 of g)switch(0|a0){case z.OPS.rectangle:o0=f[b0++],c0=f[b0++];const O0=o0+f[b0++],s0=c0+f[b0++];P.push("M",X(o0),X(c0),"L",X(O0),X(c0),"L",X(O0),X(s0),"L",X(o0),X(s0),"Z");break;case z.OPS.moveTo:o0=f[b0++],c0=f[b0++],P.push("M",X(o0),X(c0));break;case z.OPS.lineTo:o0=f[b0++],c0=f[b0++],P.push("L",X(o0),X(c0));break;case z.OPS.curveTo:o0=f[b0+4],c0=f[b0+5],P.push("C",X(f[b0]),X(f[b0+1]),X(f[b0+2]),X(f[b0+3]),X(o0),X(c0)),b0+=6;break;case z.OPS.curveTo2:P.push("C",X(o0),X(c0),X(f[b0]),X(f[b0+1]),X(f[b0+2]),X(f[b0+3])),o0=f[b0+2],c0=f[b0+3],b0+=4;break;case z.OPS.curveTo3:o0=f[b0+2],c0=f[b0+3],P.push("C",X(f[b0]),X(f[b0+1]),X(o0),X(c0),X(o0),X(c0)),b0+=4;break;case z.OPS.closePath:P.push("Z")}P=P.join(" "),q.path&&g.length>0&&g[0]!==z.OPS.rectangle&&g[0]!==z.OPS.moveTo?P=q.path.getAttributeNS(null,"d")+P:(q.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(q.path)),q.path.setAttributeNS(null,"d",P),q.path.setAttributeNS(null,"fill","none"),q.element=q.path,q.setCurrentPoint(o0,c0)}endPath(){const g=this.current;if(g.path=null,!this.pendingClip)return;if(!g.element){this.pendingClip=null;return}const f="clippath"+F++,q=this.svgFactory.createElement("svg:clipPath");q.setAttributeNS(null,"id",f),q.setAttributeNS(null,"transform",y(this.transformMatrix));const o0=g.element.cloneNode(!0);if(this.pendingClip==="evenodd"?o0.setAttributeNS(null,"clip-rule","evenodd"):o0.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,q.append(o0),this.defs.append(q),g.activeClipUrl){g.clipGroup=null;for(const c0 of this.extraStack)c0.clipGroup=null;q.setAttributeNS(null,"clip-path",g.activeClipUrl)}g.activeClipUrl=`url(#${f})`,this.tgrp=null}clip(g){this.pendingClip=g}closePath(){const g=this.current;if(g.path){const f=`${g.path.getAttributeNS(null,"d")}Z`;g.path.setAttributeNS(null,"d",f)}}setLeading(g){this.current.leading=-g}setTextRise(g){this.current.textRise=g}setTextRenderingMode(g){this.current.textRenderingMode=g}setHScale(g){this.current.textHScale=g/100}setRenderingIntent(g){}setFlatness(g){}setGState(g){for(const[f,q]of g)switch(f){case"LW":this.setLineWidth(q);break;case"LC":this.setLineCap(q);break;case"LJ":this.setLineJoin(q);break;case"ML":this.setMiterLimit(q);break;case"D":this.setDash(q[0],q[1]);break;case"RI":this.setRenderingIntent(q);break;case"FL":this.setFlatness(q);break;case"Font":this.setFont(q);break;case"CA":this.setStrokeAlpha(q);break;case"ca":this.setFillAlpha(q);break;default:(0,z.warn)(`Unimplemented graphic state operator ${f}`)}}fill(){const g=this.current;g.element&&(g.element.setAttributeNS(null,"fill",g.fillColor),g.element.setAttributeNS(null,"fill-opacity",g.fillAlpha),this.endPath())}stroke(){const g=this.current;g.element&&(this._setStrokeAttributes(g.element),g.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(g){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const q=this.current;let o0=q.dashArray;f!==1&&o0.length>0&&(o0=o0.map(function(c0){return f*c0})),g.setAttributeNS(null,"stroke",q.strokeColor),g.setAttributeNS(null,"stroke-opacity",q.strokeAlpha),g.setAttributeNS(null,"stroke-miterlimit",X(q.miterLimit)),g.setAttributeNS(null,"stroke-linecap",q.lineCap),g.setAttributeNS(null,"stroke-linejoin",q.lineJoin),g.setAttributeNS(null,"stroke-width",X(f*q.lineWidth)+"px"),g.setAttributeNS(null,"stroke-dasharray",o0.map(X).join(" ")),g.setAttributeNS(null,"stroke-dashoffset",X(f*q.dashPhase)+"px")}eoFill(){var g;(g=this.current.element)===null||g===void 0||g.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){var g;(g=this.current.element)===null||g===void 0||g.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const g=this.svgFactory.createElement("svg:rect");g.setAttributeNS(null,"x","0"),g.setAttributeNS(null,"y","0"),g.setAttributeNS(null,"width","1px"),g.setAttributeNS(null,"height","1px"),g.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(g)}paintImageXObject(g){const f=this.getObject(g);f?this.paintInlineImageXObject(f):(0,z.warn)(`Dependent image with object ID ${g} is not ready yet`)}paintInlineImageXObject(g,f){const q=g.width,o0=g.height,c0=C(g,this.forceDataSchema,!!f),P=this.svgFactory.createElement("svg:rect");P.setAttributeNS(null,"x","0"),P.setAttributeNS(null,"y","0"),P.setAttributeNS(null,"width",X(q)),P.setAttributeNS(null,"height",X(o0)),this.current.element=P,this.clip("nonzero");const b0=this.svgFactory.createElement("svg:image");b0.setAttributeNS(S,"xlink:href",c0),b0.setAttributeNS(null,"x","0"),b0.setAttributeNS(null,"y",X(-o0)),b0.setAttributeNS(null,"width",X(q)+"px"),b0.setAttributeNS(null,"height",X(o0)+"px"),b0.setAttributeNS(null,"transform",`scale(${X(1/q)} ${X(-1/o0)})`),f?f.append(b0):this._ensureTransformGroup().append(b0)}paintImageMaskXObject(g){const f=this.getObject(g.data,g);if(f.bitmap){(0,z.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");return}const q=this.current,o0=f.width,c0=f.height,P=q.fillColor;q.maskId="mask"+U++;const b0=this.svgFactory.createElement("svg:mask");b0.setAttributeNS(null,"id",q.maskId);const a0=this.svgFactory.createElement("svg:rect");a0.setAttributeNS(null,"x","0"),a0.setAttributeNS(null,"y","0"),a0.setAttributeNS(null,"width",X(o0)),a0.setAttributeNS(null,"height",X(c0)),a0.setAttributeNS(null,"fill",P),a0.setAttributeNS(null,"mask",`url(#${q.maskId})`),this.defs.append(b0),this._ensureTransformGroup().append(a0),this.paintInlineImageXObject(f,b0)}paintFormXObjectBegin(g,f){if(Array.isArray(g)&&g.length===6&&this.transform(g[0],g[1],g[2],g[3],g[4],g[5]),f){const q=f[2]-f[0],o0=f[3]-f[1],c0=this.svgFactory.createElement("svg:rect");c0.setAttributeNS(null,"x",f[0]),c0.setAttributeNS(null,"y",f[1]),c0.setAttributeNS(null,"width",X(q)),c0.setAttributeNS(null,"height",X(o0)),this.current.element=c0,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(g){const f=this.svgFactory.create(g.width,g.height),q=this.svgFactory.createElement("svg:defs");f.append(q),this.defs=q;const o0=this.svgFactory.createElement("svg:g");return o0.setAttributeNS(null,"transform",y(g.transform)),f.append(o0),this.svg=o0,f}_ensureClipGroup(){if(!this.current.clipGroup){const g=this.svgFactory.createElement("svg:g");g.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(g),this.current.clipGroup=g}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",y(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}}}],__webpack_module_cache__={};function __w_pdfjs_require__(o){var s=__webpack_module_cache__[o];if(s!==void 0)return s.exports;var M=__webpack_module_cache__[o]={exports:{}};return __webpack_modules__[o].call(M.exports,M,M.exports,__w_pdfjs_require__),M.exports}var __webpack_exports__={};return(()=>{var o=__webpack_exports__;Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"AbortException",{enumerable:!0,get:function(){return s.AbortException}}),Object.defineProperty(o,"AnnotationEditorLayer",{enumerable:!0,get:function(){return Z.AnnotationEditorLayer}}),Object.defineProperty(o,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return s.AnnotationEditorParamsType}}),Object.defineProperty(o,"AnnotationEditorType",{enumerable:!0,get:function(){return s.AnnotationEditorType}}),Object.defineProperty(o,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return r.AnnotationEditorUIManager}}),Object.defineProperty(o,"AnnotationLayer",{enumerable:!0,get:function(){return N.AnnotationLayer}}),Object.defineProperty(o,"AnnotationMode",{enumerable:!0,get:function(){return s.AnnotationMode}}),Object.defineProperty(o,"CMapCompressionType",{enumerable:!0,get:function(){return s.CMapCompressionType}}),Object.defineProperty(o,"FeatureTest",{enumerable:!0,get:function(){return s.FeatureTest}}),Object.defineProperty(o,"GlobalWorkerOptions",{enumerable:!0,get:function(){return X.GlobalWorkerOptions}}),Object.defineProperty(o,"InvalidPDFException",{enumerable:!0,get:function(){return s.InvalidPDFException}}),Object.defineProperty(o,"MissingPDFException",{enumerable:!0,get:function(){return s.MissingPDFException}}),Object.defineProperty(o,"OPS",{enumerable:!0,get:function(){return s.OPS}}),Object.defineProperty(o,"PDFDataRangeTransport",{enumerable:!0,get:function(){return M.PDFDataRangeTransport}}),Object.defineProperty(o,"PDFDateString",{enumerable:!0,get:function(){return u.PDFDateString}}),Object.defineProperty(o,"PDFWorker",{enumerable:!0,get:function(){return M.PDFWorker}}),Object.defineProperty(o,"PasswordResponses",{enumerable:!0,get:function(){return s.PasswordResponses}}),Object.defineProperty(o,"PermissionFlag",{enumerable:!0,get:function(){return s.PermissionFlag}}),Object.defineProperty(o,"PixelsPerInch",{enumerable:!0,get:function(){return u.PixelsPerInch}}),Object.defineProperty(o,"PromiseCapability",{enumerable:!0,get:function(){return s.PromiseCapability}}),Object.defineProperty(o,"RenderingCancelledException",{enumerable:!0,get:function(){return u.RenderingCancelledException}}),Object.defineProperty(o,"SVGGraphics",{enumerable:!0,get:function(){return y.SVGGraphics}}),Object.defineProperty(o,"UnexpectedResponseException",{enumerable:!0,get:function(){return s.UnexpectedResponseException}}),Object.defineProperty(o,"Util",{enumerable:!0,get:function(){return s.Util}}),Object.defineProperty(o,"VerbosityLevel",{enumerable:!0,get:function(){return s.VerbosityLevel}}),Object.defineProperty(o,"XfaLayer",{enumerable:!0,get:function(){return G.XfaLayer}}),Object.defineProperty(o,"build",{enumerable:!0,get:function(){return M.build}}),Object.defineProperty(o,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return s.createValidAbsoluteUrl}}),Object.defineProperty(o,"getDocument",{enumerable:!0,get:function(){return M.getDocument}}),Object.defineProperty(o,"getFilenameFromUrl",{enumerable:!0,get:function(){return u.getFilenameFromUrl}}),Object.defineProperty(o,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return u.getPdfFilenameFromUrl}}),Object.defineProperty(o,"getXfaPageViewport",{enumerable:!0,get:function(){return u.getXfaPageViewport}}),Object.defineProperty(o,"isDataScheme",{enumerable:!0,get:function(){return u.isDataScheme}}),Object.defineProperty(o,"isPdfFile",{enumerable:!0,get:function(){return u.isPdfFile}}),Object.defineProperty(o,"loadScript",{enumerable:!0,get:function(){return u.loadScript}}),Object.defineProperty(o,"normalizeUnicode",{enumerable:!0,get:function(){return s.normalizeUnicode}}),Object.defineProperty(o,"renderTextLayer",{enumerable:!0,get:function(){return z.renderTextLayer}}),Object.defineProperty(o,"setLayerDimensions",{enumerable:!0,get:function(){return u.setLayerDimensions}}),Object.defineProperty(o,"shadow",{enumerable:!0,get:function(){return s.shadow}}),Object.defineProperty(o,"updateTextLayer",{enumerable:!0,get:function(){return z.updateTextLayer}}),Object.defineProperty(o,"version",{enumerable:!0,get:function(){return M.version}});var s=__w_pdfjs_require__(1),M=__w_pdfjs_require__(138),u=__w_pdfjs_require__(142),z=__w_pdfjs_require__(161),Z=__w_pdfjs_require__(162),r=__w_pdfjs_require__(141),N=__w_pdfjs_require__(165),X=__w_pdfjs_require__(149),y=__w_pdfjs_require__(168),G=__w_pdfjs_require__(167)})(),__webpack_exports__})())})(pdf_min$2);var pdf_minExports=pdf_min$2.exports;const pdf_min=getDefaultExportFromCjs(pdf_minExports),pdf_min$1=Object.freeze(Object.defineProperty({__proto__:null,default:pdf_min},Symbol.toStringTag,{value:"Module"})),pdf_minF72cfa08=Object.freeze(Object.defineProperty({__proto__:null,p:pdf_min$1},Symbol.toStringTag,{value:"Module"}));exports.Button=_sfc_main$Q,exports.Card=Card$1,exports.DEFAULT_FETCH_OPTIONS=DEFAULT_FETCH_OPTIONS,exports.DynamicCarousel=_sfc_main$L,exports.DynamicForm=_sfc_main$r,exports.IconButton=IconButton,exports.IndicatorColor=IndicatorColor$1,exports.ProductPrice=ProductPrice,exports.ProductProps=_sfc_main$e,exports.ProductTag=ProductTag,exports.SectionSpinner=SectionSpinner,exports.SectionsContainer=SectionsContainer,exports.StateIndicator=StateIndicator,exports.WidgetsIndex=WidgetsIndex,exports.createFetchUniq=createFetchUniq,exports.default=W2WSharedUi,exports.getFetchUniq=getFetchUniq,exports.getValue=getValue,exports.setFetchUniq=setFetchUniq,exports.useDragAndDrop=useDragAndDrop,exports.useFetch=useFetch,exports.useFetchPages=useFetchPages,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|