PageSourceSearch

https://polydoc.tech/_next/static/chunks/3179004r4sjcm.js

js polydoc.tech collected 2026-10-05 02:02:50 UTC 178,751 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,34069,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s={isFiniteNumber:function(){return a},isNonEmptyString:function(){return n},isPoint:function(){return l},isSimpleObject:function(){return o}};for(var r in s)Object.defineProperty(i,r,{enumerable:!0,get:s[r]});var n=function(e){return"string"==typeof e&&""!==e.trim()},a=function(e){return"number"==typeof e&&Number.isFinite(e)},o=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)},l=function(e){return o(e)&&Reflect.has(e,"x")&&"number"==typeof Reflect.get(e,"y")&&Reflect.has(e,"x")&&"number"==typeof Reflect.get(e,"y")}},23557,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s={clampNumber:function(){return o},getNumber:function(){return a},mergeClassNames:function(){return h},neg:function(){return c},radians:function(){return l},round:function(){return d},spacingToRadius:function(){return u}};for(var r in s)Object.defineProperty(i,r,{enumerable:!0,get:s[r]});var n=e.r(34069),a=function(e){if((0,n.isFiniteNumber)(e))return e;if((0,n.isNonEmptyString)(e)){var t=Number(e.replace(/([^\d\\.xabcdef])/i,"").toLowerCase());if((0,n.isFiniteNumber)(t))return t}return 0},o=function(e,t,i){return(0,n.isFiniteNumber)(e)?(0,n.isFiniteNumber)(t)&&e<t?t:(0,n.isFiniteNumber)(i)&&e>i?i:e:e},l=function(e){return Math.PI/180*e},d=function(e){return Math.round(1e3*e)/1e3},c=function(e){return -1*e},u=function(e,t){return(0,n.isFiniteNumber)(t)&&0!==t?t*(Math.sin(l(90))/Math.sin(l((180-360/e)/2))):0},h=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return t.filter(function(e){return(0,n.isNonEmptyString)(e)}).map(function(e){return e.trim()}).join(" ")}},13618,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"PolygonClass",{enumerable:!0,get:function(){return a}});var s=e.r(34069),r=e.r(23557);function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var a=function e(t){var i=this,a=t.sides,o=t.margin,l=t.borderWidth,d=t.hasChildren,c=t.padding,u=t.stable,h=t.rotate,p=t.center,m=t.debug;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");n(this,"sides",void 0),n(this,"margin",void 0),n(this,"borderWidth",void 0),n(this,"hasChildren",void 0),n(this,"padding",void 0),n(this,"stable",void 0),n(this,"rotate",void 0),n(this,"center",void 0),n(this,"debug",void 0),n(this,"hasBorder",void 0),n(this,"isEven",void 0),n(this,"radiusMain",void 0),n(this,"radiusBorder",void 0),n(this,"radiusPadding",void 0),n(this,"pointsMain",void 0),n(this,"pointsBorder",void 0),n(this,"pointsPadding",void 0),n(this,"pointsPaddingByY",void 0),n(this,"polygonMain",void 0),n(this,"polygonBorder",void 0),n(this,"outsideShapes",void 0),n(this,"bufferTop",void 0),n(this,"bufferBottom",void 0),n(this,"getPoints",function(e){for(var t=360/i.sides,s=i.stable&&i.isEven?t/2:0,n=(0,r.neg)(i.rotate)%t+s,a=[],o=0;o<i.sides;o++){var l=t*o+n+90,d={x:0,y:0};switch(l%360){case 0:d.x=e;break;case 90:d.y=e;break;case 180:d.x=(0,r.neg)(e);break;case 270:d.y=(0,r.neg)(e);break;default:d.x=e*Math.cos((0,r.radians)(l)),d.y=e*Math.sin((0,r.radians)(l))}a.push(d)}return a.map(function(e){var t=e.x,s=e.y;return{x:(0,r.round)(t+i.center.x),y:(0,r.round)((0,r.neg)(s)+i.center.y)}})}),n(this,"getPointsBorder",function(){if(i.borderWidth<=0)return[];var e=i.getPoints(i.radiusBorder);return e.push({x:e[0].x,y:e[0].y},{x:e[0].x,y:0},{x:100,y:0},{x:100,y:100},{x:0,y:100},{x:0,y:0},{x:e[0].x,y:0}),e}),n(this,"pointsToPolygon",function(e){return e.map(function(e){var t=e.x,i=e.y;return"".concat(t,"% ").concat(i,"%")}).join(", ")}),n(this,"getOutsideShapes",function(){var e=i.pointsPaddingByY.reduce(function(e,t){var i=e.findIndex(function(e){return e.y===t.y});return -1===i?e.push({y:t.y,x:[t.x]}):(e[i].x.push(t.x),e[i].x.sort()),e},[]).map(function(e,t,i){if(2===e.x.length)return e;if(0===t||t===i.length-1){var s,a;return s=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},s=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(s=s.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}
1))),s.forEach(function(t){n(e,t,i[t])})}return e}({},e),a=a={x:[e.x[0],e.x[0]]},Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(a)).forEach(function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(a,e))}),s}var o=i[t-1],l=i[t+1],d=e.x[0]>50||1===t?0:1,c=l.y-o.y,u=l.x[0]-o.x[d],h=e.y-o.y;return e.x.push((0,r.round)(o.x[d]+u/c*h)),e.x.sort(function(e,t){return e-t}),e});return e.reduce(function(t,s,n){if(0===n)return t;var a=e[n-1],o=s.y-a.y,l=Math.max(a.x[0],s.x[0]),d=Math.max(100-a.x[1],100-s.x[1]),c=l+d>100?100-l-d:0,u=100,h=100;s.x[0]<a.x[0]?h=100*(s.x[0]/a.x[0]):s.x[0]>a.x[0]&&(u=100*(a.x[0]/s.x[0]));var p=0,m=0;s.x[1]<a.x[1]?p=100-100*((100-a.x[1])/(100-s.x[1])):s.x[1]>a.x[1]&&(m=100-100*((100-s.x[1])/(100-a.x[1])));var f=[{x:0,y:0},{x:(0,r.round)(u),y:0},{x:(0,r.round)(h),y:100},{x:0,y:100}],g={points:f,polygon:i.pointsToPolygon(f),height:(0,r.round)(o),width:(0,r.round)(l),float:"left",marginRight:l>d?c:0},v=[{x:(0,r.round)(p),y:0},{x:100,y:0},{x:100,y:100},{x:(0,r.round)(m),y:100}],x={points:v,polygon:i.pointsToPolygon(v),height:(0,r.round)(o),width:(0,r.round)(d),float:"right",marginLeft:l<d?c:0};return t.push(g,x),t},[])}),this.sides=(0,r.clampNumber)((0,r.getNumber)(a),3),this.margin=(0,r.clampNumber)((0,r.getNumber)(o),0,50),this.borderWidth=(0,r.clampNumber)((0,r.getNumber)(l),0,50),this.hasChildren="boolean"==typeof d&&d,this.padding=(0,r.clampNumber)((0,r.getNumber)(c),0,50),this.stable="boolean"==typeof u&&u,this.rotate=(0,r.getNumber)(h),this.center=(0,s.isPoint)(p)?p:{x:50,y:50},this.debug="boolean"==typeof m&&m,this.hasBorder=this.borderWidth>0,this.isEven=this.sides%2==0,this.radiusMain=Math.max(0,50-(0,r.spacingToRadius)(this.sides,this.margin)),this.radiusBorder=Math.max(0,this.radiusMain-(0,r.spacingToRadius)(this.sides,this.borderWidth)),this.radiusPadding=Math.max(0,this.radiusBorder-(0,r.spacingToRadius)(this.sides,this.padding)),this.pointsMain=this.getPoints(this.radiusMain),this.pointsBorder=this.getPointsBorder(),this.pointsPadding=this.hasChildren?this.getPoints(this.radiusPadding):[],this.pointsPaddingByY=this.pointsPadding.sort(function(e,t){return e.y-t.y}),this.polygonMain=this.pointsToPolygon(this.pointsMain),this.polygonBorder=this.pointsToPolygon(this.pointsBorder),this.outsideShapes=this.getOutsideShapes(),this.bufferTop=this.hasChildren?(0,r.round)(this.pointsPaddingByY[0].y):0,this.bufferBottom=this.hasChildren?(0,r.round)(100-this.pointsPaddingByY[this.sides-1].y):0}},50843,(e,t,i)=>{"use strict";function s(e,t){return Object.keys(e).forEach(function(i){"default"===i||Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[i]}})}),e}Object.defineProperty(i,"__esModule",{value:!0}),s(e.r(34069),i),s(e.r(13618),i),s(e.r(23557),i)},40806,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"Polygon",{enumerable:!0,get:function(){return l}});var s=e.r(50843),r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=n(void 0);if(t&&t.has(e))return t.get(e);var i={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var a=s?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(i,r,a):i[r]=e[r]}return i.default=e,t&&t.set(e,i),i}(e.r(15295));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(n=function(e){return e?i:t})(e)}function a(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},s=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(s=s.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),s.forEach(function(t){var s;s=i[t],t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s})}return e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t}
1)(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}),e}var l=(0,r.forwardRef)(function(e,t){var i=e.sides,n=e.margin,l=e.borderWidth,d=e.borderColor,c=e.borderClassName,u=e.borderStyle,h=e.padding,p=e.stable,m=e.rotate,f=e.center,g=e.debug,v=e.idSuffix,x=e.className,b=e.style,y=e.onMouseOver,w=e.onMouseOut,S=e.onMouseDown,j=e.onMouseUp,T=e.onClick,E=e.dataTestId,P=e.role,M=e.children,C=function(e,t){if(null==e)return{};var i,s,r=function(e,t){if(null==e)return{};var i,s,r={},n=Object.keys(e);for(s=0;s<n.length;s++)i=n[s],t.indexOf(i)>=0||(r[i]=e[i]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}(e,["sides","margin","borderWidth","borderColor","borderClassName","borderStyle","padding","stable","rotate","center","debug","idSuffix","className","style","onMouseOver","onMouseOut","onMouseDown","onMouseUp","onClick","dataTestId","role","children"]),N=!1;r.Children.forEach(M,function(e){N||null==e||"boolean"==typeof e||("string"!=typeof e||""!==e.trim())&&(N=!0)});var O=new s.PolygonClass({sides:i,margin:n,borderWidth:l,hasChildren:N,padding:h,stable:p,rotate:m,center:f,debug:g}),k={borderColor:(0,s.isNonEmptyString)(d)?d:void 0,borderClassName:(0,s.mergeClassNames)("html-polygon-border",c),borderStyle:(0,s.isSimpleObject)(u)?u:void 0,idSuffix:(0,s.isNonEmptyString)(v)?"-".concat(v):"",className:(0,s.mergeClassNames)("html-polygon","html-polygon-sides-".concat(O.sides),x),style:(0,s.isSimpleObject)(b)?b:void 0,onMouseOver:"function"==typeof y?y:void 0,onMouseOut:"function"==typeof w?w:void 0,onMouseDown:"function"==typeof S?S:void 0,onMouseUp:"function"==typeof j?j:void 0,onClick:"function"==typeof T?T:void 0,role:(0,s.isNonEmptyString)(P)?P:void 0,dataTestid:(0,s.isNonEmptyString)(E)?E:void 0},_=null;if(N){var D=O.bufferTop>0?r.default.createElement("div",{id:"html-polygon-buffer-top".concat(k.idSuffix),className:"html-polygon-buffer html-polygon-buffer-top",style:a({height:"".concat(O.bufferTop,"%")},O.debug?{boxSizing:"border-box",backgroundColor:"rgba(0, 255, 0, 0.25)",borderTop:"1px solid rgba(255, 0, 0, 0.5)",borderBottom:"1px solid rgba(255, 0, 0, 0.5)"}:{}),"data-testid":k.dataTestid?"".concat(k.dataTestid,"-buffer-top"):void 0}):null,A=O.bufferBottom>0?r.default.createElement("div",{id:"html-polygon-buffer-bottom".concat(k.idSuffix),className:"html-polygon-buffer html-polygon-buffer-bottom",style:a({height:"".concat(O.bufferBottom,"%"),width:"100%",clear:"left",float:"left",shapeOutside:"polygon(0 0, 100% 0, 100% 100%, 0 100%)"},O.debug?{boxSizing:"border-box",backgroundColor:"rgba(0, 255, 0, 0.25)",borderTop:"1px solid rgba(255, 0, 0, 0.5)",borderBottom:"1px solid rgba(255, 0, 0, 0.5)"}:{}),"data-testid":k.dataTestid?"".concat(k.dataTestid,"-buffer-bottom"):void 0}):null;_=r.default.createElement(r.default.Fragment,null,D,O.outsideShapes.map(function(e,t){var i=O.debug?t%2==0?t%4==0?"rgba(255, 255, 0, 0.25)":"rgba(0, 255, 255, 0.25)":t%4==1?"rgba(255, 0, 255, 0.25)":"rgba(0, 0, 255, 0.25)":"";return r.default.createElement("div",{key:"shapeOutside-".concat(t),id:"html-polygon-buffer-side-".concat(t).concat(k.idSuffix),className:"html-polygon-buffer html-polygon-buffer-side",style:a({clear:e.float,float:e.float,height:"".concat(e.height,"%"),width:"".concat(e.width,"%"),marginLeft:e.marginLeft?"".concat(e.marginLeft,"%"):"0",marginRight:e.marginRight?"".concat(e.marginRight,"%"):"0",shapeOutside:"polygon(".concat(e.polygon,")")},O.debug?{boxSizing:"border-box",clipPath:"polygon(".concat(e.polygon,")"),backgroundColor:i,borderTop:"1px solid rgba(255, 0, 0, 0.5)",borderBottom:"1px solid rgba(255, 0, 0, 0.5)"}:{}),"data-testid":k.dataTestid?"".concat(k.dataTestid,"-buffer-side-").concat(t):void 0})}),A,M)}var L=O.polygonBorder||O.debug?r.default.createElement("div",{id:"html-polygon-border-container".concat(k.idSuffix),className:"html-polygon-border-container",style:{position:"relative",height:"100%",width:"100%",overflow:"hidden"},"data-testid":k.dataTestid?"".concat(k.dataTestid,"-border-container"):void 0},O.debug?r.default.createElement("div",{id:"html-polygon-debug-clip".concat(k.idSuffix),className:"html-polygon-debug-clip",style:{position:"absolute",zIndex:1,height:"100%",width:"100%",clipPath:"pol
1ygon(".concat(O.polygonMain,")"),backgroundColor:"rgba(255, 0, 0, 0.25)"},"data-testid":k.dataTestid?"".concat(k.dataTestid,"-debug-clip"):void 0}):null,O.polygonBorder?r.default.createElement("div",{id:"html-polygon-border".concat(k.idSuffix),className:k.borderClassName,style:o(a({backgroundColor:k.borderColor},k.borderStyle),{position:"absolute",height:"100%",width:"100%",clipPath:"polygon(".concat(O.polygonBorder,")")}),"data-testid":k.dataTestid?"".concat(k.dataTestid,"-border"):void 0}):null,_):_;return r.default.createElement("div",o(a({id:"html-polygon".concat(k.idSuffix),className:k.className,style:o(a({},k.style),{clipPath:O.debug?"":"polygon(".concat(O.polygonMain,")")}),onMouseOver:k.onMouseOver,onMouseOut:k.onMouseOut,onMouseDown:k.onMouseDown,onMouseUp:k.onMouseUp,onClick:k.onClick,"data-testid":k.dataTestid,role:k.role},C),{ref:t}),L)});l.displayName="Polygon"},73320,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s={Decagon:function(){return y},Dodecagon:function(){return S},Enneadecagon:function(){return N},Enneagon:function(){return x},Hendecagon:function(){return w},Heptadecagon:function(){return M},Heptagon:function(){return f},Hexadecagon:function(){return P},Hexagon:function(){return m},Icosihenagon:function(){return O},Nonagon:function(){return b},Octadecagon:function(){return C},Octagon:function(){return v},Pentadecagon:function(){return E},Pentagon:function(){return p},Quadrilateral:function(){return h},Septagon:function(){return g},Tetradecagon:function(){return T},Tetragon:function(){return u},Triangle:function(){return c},Tridecagon:function(){return j},Trigon:function(){return d}};for(var r in s)Object.defineProperty(i,r,{enumerable:!0,get:s[r]});var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o(void 0);if(t&&t.has(e))return t.get(e);var i={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var n=s?Object.getOwnPropertyDescriptor(e,r):null;n&&(n.get||n.set)?Object.defineProperty(i,r,n):i[r]=e[r]}return i.default=e,t&&t.set(e,i),i}(e.r(15295)),a=e.r(40806);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(o=function(e){return e?i:t})(e)}var l=function(e,t){var i=(0,n.forwardRef)(function(t,i){var s=t.children,r=function(e,t){if(null==e)return{};var i,s,r=function(e,t){if(null==e)return{};var i,s,r={},n=Object.keys(e);for(s=0;s<n.length;s++)i=n[s],t.indexOf(i)>=0||(r[i]=e[i]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}(t,["children"]);return n.default.createElement(a.Polygon,function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},s=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(s=s.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),s.forEach(function(t){var s;s=i[t],t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s})}return e}({sides:e,ref:i},r),s)});return i.displayName=t,i},d=l(3,"Trigon"),c=l(3,"Triangle"),u=l(4,"Tetragon"),h=l(4,"Quadrilateral"),p=l(5,"Pentagon"),m=l(6,"Hexagon"),f=l(7,"Heptagon"),g=l(7,"Septagon"),v=l(8,"Octagon"),x=l(9,"Enneagon"),b=l(9,"Nonagon"),y=l(10,"Decagon"),w=l(11,"Hendecagon"),S=l(12,"Dodecagon"),j=l(13,"Tridecagon"),T=l(14,"Tetradecagon"),E=l(15,"Pentadecagon"),P=l(16,"Hexadecagon"),M=l(17,"Heptadecagon"),C=l(18,"Octadecagon"),N=l(19,"Enneadecagon"),O=l(20,"Icosihenagon")},48281,(e,t,i)=>{"use strict";function s(e,t){return Object.keys(e).forEach(function(i){"default"===i||Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[i]}})}),e}Object.defineProperty(i,"__esModule",{value:!0}),s(e.r(73320),i),s(e.r(40806),i)},71801,e=>{e.v({"polygon-container":"polygon-module-scss-module__fnLWGa__polygon-container","polygon-container-hover":"polygon-module-scss-module__fnLWGa__polygon-container-hover","radius-10":"polygon-module-scss-module__fnLWGa__radius-10","radius-15":"polygon-module-scss-module__fnLWGa__radius-15","radius-20":"polygon-module-scss-module__fnLWGa__radius-20","radius-5":"polygon-module-scss-module__fnLWGa__radius-5"})},43875,e=>{e.v({"highlight-container":"word-flip-module-scss-module__QjjtSq__highlight-container"})},10706,(e,t,i)=>{"use strict";e.i(60239),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"Image",{enumerable:!0,get:function(){return w}});let s=e.r(49539),r=e.r(25127),n=e.r(93584),a=r._(e.r(15295)),o=s._(e.r(59497)),l=s._(e.r(98058)),d=e.r(74584),c=e.r(95250),u=e.r(86220),h=e.r(82383),p=s._(e.r(77343)),m=e.r(30041),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qual
1ities:[75],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function g(e,t,i,s,r,n,a){let o=e?.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&r(!0),i?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let s=!1,r=!1;i.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>s,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{s=!0,t.preventDefault()},stopPropagation:()=>{r=!0,t.stopPropagation()}})}s?.current&&s.current(e)}}))}function v(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let x="u"<typeof window?a.useEffect:a.useLayoutEffect,b=(0,a.forwardRef)(({src:e,srcSet:t,sizes:i,height:s,width:r,decoding:o,className:l,style:d,fetchPriority:c,placeholder:u,loading:h,unoptimized:p,fill:f,onLoadRef:b,onLoadingCompleteRef:y,setBlurComplete:w,setShowAltText:S,sizesInput:j,onLoad:T,onError:E,...P},M)=>{let C=(0,a.useRef)(!1),N=(0,a.useRef)(null);x(()=>{let{current:e}=C,{current:t}=N;e||null===t||(E&&(t.src=t.src),t.complete&&g(t,u,b,y,w,p,j),C.current=!0)},[e,u,b,y,E,p,j]);let O=(0,m.useMergedRef)(M,N);return(0,n.jsx)("img",{...P,...v(c),loading:h,width:r,height:s,decoding:o,"data-nimg":f?"fill":"1",className:l,style:d,sizes:i,srcSet:t,src:e,ref:O,onLoad:e=>{g(e.currentTarget,u,b,y,w,p,j)},onError:e=>{S(!0),"empty"!==u&&w(!0),E&&E(e)}})});function y({isAppRouter:e,imgAttributes:t}){let i={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...v(t.fetchPriority)};return e&&o.default.preload?(o.default.preload(t.src,i),null):(0,n.jsx)(l.default,{children:(0,n.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...i},"__nimg-"+t.src+t.srcSet+t.sizes)})}let w=(0,a.forwardRef)((e,t)=>{let i=(0,a.useContext)(h.RouterContext),s=(0,a.useContext)(u.ImageConfigContext),r=(0,a.useMemo)(()=>{let e=f||s||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),i=e.deviceSizes.sort((e,t)=>e-t),r=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:i,qualities:r,localPatterns:"u"<typeof window?s?.localPatterns:e.localPatterns}},[s]),{onLoad:o,onLoadingComplete:l}=e,m=(0,a.useRef)(o);(0,a.useEffect)(()=>{m.current=o},[o]);let g=(0,a.useRef)(l);(0,a.useEffect)(()=>{g.current=l},[l]);let[v,x]=(0,a.useState)(!1),[w,S]=(0,a.useState)(!1),{props:j,meta:T}=(0,d.getImgProps)(e,{defaultLoader:p.default,imgConf:r,blurComplete:v,showAltText:w});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b,{...j,unoptimized:T.unoptimized,placeholder:T.placeholder,fill:T.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:x,setShowAltText:S,sizesInput:e.sizes,ref:t}),T.preload?(0,n.jsx)(y,{isAppRouter:!i,imgAttributes:j}):null]})});("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},92573,(e,t,i)=>{"use strict";e.i(60239),Object.defineProperty(i,"__esModule",{value:!0});var s={default:function(){return c},getImageProps:function(){return d}};for(var r in s)Object.defineProperty(i,r,{enumerable:!0,get:s[r]});let n=e.r(49539),a=e.r(74584),o=e.r(10706),l=n._(e.r(77343));function d(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,i]of Object.entries(t))void 0===i&&delete t[e];return{props:t}}let c=o.Image},81390,(e,t,i)=>{t.exports=e.r(92573)},74598,(e,t,i)=>{"use strict";function s(e,t){let i=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-i)<Math.abs(e-i)?t:e,t.qualities[0]):i}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"findClosestQuality",{enumerable:!0,get:function(){return s}})},77343,(e,t,i)=>{"use strict";e.i(60239),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return a}});let s=e.r(74598),r=e.r(55881);function n({config:e,src:t,width:i,quality:a}){let o=(0,r.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//"))if(t.includes("/_next/static/immutable")&&!(0,r.getAssetToken)())o=void 0;else{let e=t.indexOf("?");if(-1!==e){let i=new URLSearchParams(t.slice(e+1)),s=i.get("dpl");if(s){o=s,i.delete("dpl");let r=i.toString();t=t.slice(0,e)+(r?"?"+r:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
2Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,
2configurable:!0});let l=(0,s.findClosestQuality)(a,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${i}&q=${l}${t.startsWith("/")&&o?`&dpl=${o}`:""}`}n.__next_img_default=!0;let a=n},74584,(e,t,i)=>{"use strict";e.i(60239),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImgProps",{enumerable:!0,get:function(){return d}});let s=e.r(55881),r=e.r(68554),n=e.r(95250),a=["-moz-initial","fill","none","scale-down",void 0];function o(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function d({src:e,sizes:t,unoptimized:i=!1,priority:c=!1,preload:u=!1,loading:h,className:p,quality:m,width:f,height:g,fill:v=!1,style:x,overrideSrc:b,onLoad:y,onLoadingComplete:w,placeholder:S="empty",blurDataURL:j,fetchPriority:T,decoding:E="async",layout:P,objectFit:M,objectPosition:C,lazyBoundary:N,lazyRoot:O,...k},_){var D;let A,L,I,{imgConf:z,showAltText:F,blurComplete:R,defaultLoader:B}=_,$=z||n.imageConfigDefault;if("allSizes"in $)A=$;else{let e=[...$.deviceSizes,...$.imageSizes].sort((e,t)=>e-t),t=$.deviceSizes.sort((e,t)=>e-t),i=$.qualities?.sort((e,t)=>e-t);A={...$,allSizes:e,deviceSizes:t,qualities:i}}if(void 0===B)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let G=k.loader||B;delete k.loader,delete k.srcSet;let V="__next_img_default"in G;if(V){if("custom"===A.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
3Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=G;G=t=>{let{config:i,...s}=t;return e(s)}}if(P){"fill"===P&&(v=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[P];e&&(x={...x,...e});let i={responsive:"100vw",fill:"100vw"}[P];i&&!t&&(t=i)}let H="",W=l(f),Y=l(g);if((D=e)&&"object"==typeof D&&(o(D)||void 0!==D.src)){let t=o(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(L=t.blurWidth,I=t.blurHeight,j=j||t.blurDataURL,H=t.src,!v)if(W||Y){if(W&&!Y){let e=W/t.width;Y=Math.round(t.height*e)}else if(!W&&Y){let e=Y/t.height;W=Math.round(t.width*e)}}else W=t.width,Y=t.height}let X=!c&&!u&&("lazy"===h||void 0===h);(!(e="string"==typeof e?e:H)||e.startsWith("data:")||e.startsWith("blob:"))&&(i=!0,X=!1),A.unoptimized&&(i=!0),V&&!A.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(i=!0);let q=l(m),U=Object.assign(v?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:M,objectPosition:C}:{},F?{}:{color:"transparent"},x),J=R||"empty"===S?null:"blur"===S?`url("data:image/svg+xml;charset=utf-8,${(0,r.getImageBlurSvg)({widthInt:W,heightInt:Y,blurWidth:L,blurHeight:I,blurDataURL:j||"",objectFit:U.objectFit})}")`:`url("${S}")`,Q=a.includes(U.objectFit)?"fill"===U.objectFit?"100% 100%":"cover":U.objectFit,K=J?{backgroundSize:Q,backgroundPosition:U.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:J}:{},Z=function({config:e,src:t,unoptimized:i,width:r,quality:n,sizes:a,loader:o}){if(i){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,s.getDeploymentId)();if(t.includes("/_next/static/immutable")&&!(0,s.getAssetToken)())e=void 0;else if(e){let i=t.indexOf("?");if(-1!==i){let s=new URLSearchParams(t.slice(i+1));s.get("dpl")||(s.append("dpl",e),t=t.slice(0,i)+"?"+s.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:l,kind:d}=function({deviceSizes:e,allSizes:t},i,s){if(s){let i=/(^|\s)(1?\d?\d)vw/g,r=[];for(let e;e=i.exec(s);)r.push(parseInt(e[2]));if(r.length){let i=.01*Math.min(...r);return{widths:t.filter(t=>t>=e[0]*i),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof i?{widths:e,kind:"w"}:{widths:[...new Set([i,2*i].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,r,a),c=l.length-1;return{sizes:a||"w"!==d?a:"100vw",srcSet:l.map((i,s)=>`${o({config:e,src:t,quality:n,width:i})} ${"w"===d?i:s+1}${d}`).join(", "),src:o({config:e,src:t,quality:n,width:l[c]})}}({config:A,src:e,unoptimized:i,width:W,quality:q,sizes:t,loader:G}),ee=X?"lazy":h;return{props:{...k,loading:ee,fetchPriority:T,width:W,height:Y,decoding:E,className:p,style:{...U,...
3K},sizes:Z.sizes,srcSet:Z.srcSet,src:b||Z.src},meta:{unoptimized:i,preload:u||c,placeholder:S,fill:v}}}},68554,(e,t,i)=>{"use strict";function s({widthInt:e,heightInt:t,blurWidth:i,blurHeight:r,blurDataURL:n,objectFit:a}){let o=i?40*i:e,l=r?40*r:t,d=o&&l?`viewBox='0 0 ${o} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${d}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${d?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${n}'/%3E%3C/svg%3E`}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImageBlurSvg",{enumerable:!0,get:function(){return s}})},74459,e=>{"use strict";let t,i,s,r;var n=e.i(93584),a=e.i(74845),o=e.i(90953),l=e.i(15125),d=e.i(85641),c=e.i(77134),u=e.i(15295),h=e.i(48281);class p{constructor(e,t){this.element=e,this.touch1=null,this.touch2=null,this.touchStartX=null,this.touchStartY=null,this.touchEndX=null,this.touchEndY=null,this.touchMove1=null,this.touchMove2=null,this.touchMoveX=null,this.touchMoveY=null,this.velocityX=null,this.velocityY=null,this.longPressTimer=null,this.doubleTapTimer=null,this.doubleTapWaiting=!1,this.thresholdX=0,this.thresholdY=0,this.disregardVelocityThresholdX=0,this.disregardVelocityThresholdY=0,this.swipingHorizontal=!1,this.swipingVertical=!1,this.swipingDirection=null,this.swipedHorizontal=!1,this.swipedVertical=!1,this.originalDistance=null,this.newDistance=null,this.scale=null,this.originalAngle=null,this.newAngle=null,this.rotation=null,this.handlers={panstart:[],panmove:[],panend:[],swipeleft:[],swiperight:[],swipeup:[],swipedown:[],tap:[],doubletap:[],longpress:[],pinch:[],pinchend:[],rotate:[],rotateend:[]},this._onTouchStart=this.onTouchStart.bind(this),this._onTouchMove=this.onTouchMove.bind(this),this._onTouchEnd=this.onTouchEnd.bind(this),this.opts=Object.assign({},p.defaults,t),this.element.addEventListener("touchstart",this._onTouchStart,m),this.element.addEventListener("touchmove",this._onTouchMove,m),this.element.addEventListener("touchend",this._onTouchEnd,m),!this.opts.mouseSupport||"ontouchstart"in window||(this.element.addEventListener("mousedown",this._onTouchStart,m),document.addEventListener("mousemove",this._onTouchMove,m),document.addEventListener("mouseup",this._onTouchEnd,m))}destroy(){var e,t;this.element.removeEventListener("touchstart",this._onTouchStart),this.element.removeEventListener("touchmove",this._onTouchMove),this.element.removeEventListener("touchend",this._onTouchEnd),this.element.removeEventListener("mousedown",this._onTouchStart),document.removeEventListener("mousemove",this._onTouchMove),document.removeEventListener("mouseup",this._onTouchEnd),clearTimeout(null!=(e=this.longPressTimer)?e:void 0),clearTimeout(null!=(t=this.doubleTapTimer)?t:void 0)}on(e,t){if(this.handlers[e])return this.handlers[e].push(t),{type:e,fn:t,cancel:()=>this.off(e,t)}}off(e,t){if(this.handlers[e]){let i=this.handlers[e].indexOf(t);-1!==i&&this.handlers[e].splice(i,1)}}fire(e,t){for(let i=0;i<this.handlers[e].length;i++)this.handlers[e][i](t)}onTouchStart(e){var t,i,s,r,n,a,o,l,d,c,u,h,p,m,f,g,v,x,b,y,w,S,j,T,E,P;let M=!1;if("mousedown"!==e.type){if(this.touch1||(this.touch1=e.changedTouches[0],M=!0),(M&&e.changedTouches.length>1||!M)&&!this.touch2){this.touch2=[...e.changedTouches].find(e=>{var t;return e.identifier!==(null==(t=this.touch1)?void 0:t.identifier)})||null,this.originalDistance=Math.sqrt(Math.pow((null!=(i=null==(t=this.touch2)?void 0:t.screenX)?i:0)-(null!=(a=null!=(r=null==(s=this.touchMove1)?void 0:s.screenX)?r:null==(n=this.touch1)?void 0:n.screenX)?a:0),2)+Math.pow((null!=(l=null==(o=this.touch2)?void 0:o.screenY)?l:0)-(null!=(h=null!=(c=null==(d=this.touchMove1)?void 0:d.screenY)?c:null==(u=this.touch1)?void 0:u.screenY)?h:0),2)),this.originalAngle=Math.atan2((null!=(m=null==(p=this.touch2)?void 0:p.screenY)?m:0)-(null!=(x=null!=(g=null==(f=this.touchMove1)?void 0:f.screenY)?g:null==(v=this.touch1)?void 0:v.screenY)?x:0),(null!=(y=null==(b=this.touch2)?void 0:b.screenX)?y:0)-(null!=(T=null!=(S=null==(w=this.touchMove1)?void 0:w.screenX)?S:null==(j=this.touch1)?void 0:j.screenX)?T:0))/(Math.PI/180);return}if(!M)return}(M||"mousedown"===e.type)&&(this.thresholdX=this.opts.threshold("x",this),this.thresholdY=this.opts.threshold("y",this),this.disregardVelocityThresholdX=this.opts.disregardVelocityThreshold("x",this),this.disregardVelocityThresholdY=this.opts.disregardVelocityThreshold("y",this),this.touchStartX="mousedown"===e.type?e.screenX:(null==(E=this.touch1)?void 0:E.screenX)||0,this.touchStartY="mousedown"===e.type?e.screenY:(null==(P=this.touch1)?void 0:P.screenY)||0,this.touchMoveX=null,this.touchMoveY=null,this.touchEndX=null,this.touchEndY=null,this.swipingDirection=null,this.longPressTimer=setTimeout(()=>this.fire("longpress",e),this.opts.longPressTime),this.scale=1,this.rotation=0,this.fire("panstart",e))}onTouchMove(e){var t,i,s,r,n,a,o,l,d,c,u,h,p;let m,f;if("mousemove"!==e.type||this.touchStartX&&null===this.touchEndX){if("mousemove"!==e.type&&(m=[...e.changedTouches].find(e=>{var t;return e.identifier===(null==(t=this.touch1)?void 0:t.identifier)}),this.touchMove1=m||this.touchMove1,f=[...e.changedTouches].find(e=>{var t;return e.identifier===(null==(t=this.touch2)?void 0:t.identifier)}),this.touchMove2=f||this.touchMove2),"mousemove"===e.type||m){let l=("mousemove"===e.type?e.screenX:null!=(t=null==m?void 0:m.screenX)?t:0)-(null!=(i=this.touchStartX)?i:0);this.velocityX=l-(null!=(s=this.touchMoveX)?s:0),this.touchMoveX=l;let d=("mousemove"===e.type?e.screenY:null!=(r=null==m?void 0:m.screenY)?r:0)-(null!=(n=this.touchStartY)?n:0);this.velocityY=d-(null!=(a=this.touchMoveY)?a:0),this.touchMoveY=d;let c=Math.abs(this.touchMoveX),u=Math.abs(this.touchMoveY);this.swipingHorizontal=c>this.thresholdX,this.swipingVertical=u>this.thresholdY,this.swipingDirection=c>u?this.swipingHorizontal?"horizontal":"pre-horizontal":this.swipingVertical?"vertical":"pre-vertical",Math.max(c,u)>this.opts.pressThreshold&&clearTimeout(null!=(o=this.longPressTimer)?o:void 0),this.fire("panmove",e)}"mousemove"!==e.type&&null!=this.touchMove1&&null!=this.touchMove2&&(this.newDistance=Math.sqrt(Math.pow(this.touchMove2.screenX-this.touchMove1.screenX,2)+Math.pow(this.touchMove2.screenY-this.touchMove1.screenY,2)),this.scale=this.newDistance/(null!=(l=this.originalDistance)?l:0),this.fire("pinch",e),this.newAngle=Math.atan2((null!=(d=this.touchMove2.screenY)?d:0)-(null!=(c=this.touchMove1.screenY)?c:0),(null!=(u=this.touchMove2.screenX)?u:0)-(null!=(h=this.touchMove1.screenX)?h:0))/(Math.PI/180),this.rotation=this.newAngle-(null!=(p=this.originalAngle)?p:0),this.fire("rotate",e))}}onTouchEnd(e){var t,i,s,r,n,a,o,l,d,c;let u;if("mouseup"!==e.type&&(u=[...e.changedTouches].find(e=>{var t;return e.identifier===(null==(t=this.touch1)?void 0:t.identifier)}),[...e.touches].find(e=>{var t;return e.identifier===(null==(t=this.touch1)?void 0:t.identifier)})||(this.touch1=null,this.touchMove1=null),[...e.touches].find(e=>{var t;return e.identifier===(null==(t=this.touch2)?void 0:t.identifier)})||(this.touch2=null,this.touchMove2=null)),"mouseup"!==e.type||this.touchStartX&&null===this.touchEndX){if("mouseup"===e.type||u){this.touchEndX="mouseup"===e.type?e.screenX:null!=(t=null==u?void 0:u.screenX)?t:0,this.touchEndY="mouseup"===e.type?e.screenY:null!=(i=null==u?void 0:u.screenY)?i:0,this.fire("panend",e),clearTimeout(null!=(s=this.longPressTimer)?s:void 0);let h=this.touchEndX-(null!=(r=this.touchStartX)?r:0),p=Math.abs(h),m=this.touchEndY-(null!=(n=this.touchStartY)?n:0),f=Math.abs(m),g=Math.sqrt(Math.pow(h,2)+Math.pow(m,2)),v=Math.abs(g),x=f/p;p>this.thresholdX||f>this.thresholdY||this.opts.diagonalSwipes&&(v>this.thresholdX||v>this.thresholdY)?(this.swipedHorizontal=p>this.thresholdX||this.opts.diagonalSwipes&&v>this.thresholdX,this.swipedVertical=f>this.thresholdY||this.opts.diagonalSwipes&&v>this.thresholdY,(!this.opts.diagonalSwipes||x<Math.tan((45-this.opts.diagonalLimit)*Math.PI/180)||x>
3Math.tan((45+this.opts.diagonalLimit)*Math.PI/180))&&(p>=f&&(this.swipedVertical=!1),f>p&&(this.swipedHorizontal=!1)),this.swipedHorizontal&&(h<0?((null!=(a=this.velocityX)?a:0)<-this.opts.velocityThreshold||g>this.disregardVelocityThresholdX)&&this.fire("swipeleft",e):((null!=(o=this.velocityX)?o:0)>this.opts.velocityThreshold||g>this.disregardVelocityThresholdX)&&this.fire("swiperight",e)),this.swipedVertical&&(m<0?((null!=(l=this.velocityY)?l:0)<-this.opts.velocityThreshold||g>this.disregardVelocityThresholdY)&&this.fire("swipeup",e):((null!=(d=this.velocityY)?d:0)>this.opts.velocityThreshold||g>this.disregardVelocityThresholdY)&&this.fire("swipedown",e))):p<this.opts.pressThreshold&&f<this.opts.pressThreshold&&(this.doubleTapWaiting?(this.doubleTapWaiting=!1,clearTimeout(null!=(c=this.doubleTapTimer)?c:void 0),this.fire("doubletap",e)):(this.doubleTapWaiting=!0,this.doubleTapTimer=setTimeout(()=>this.doubleTapWaiting=!1,this.opts.doubleTapTime),this.fire("tap",e)))}this.touch1||this.touch2||(this.fire("pinchend",e),this.fire("rotateend",e),this.originalDistance=null,this.newDistance=null,this.scale=null,this.originalAngle=null,this.newAngle=null,this.rotation=null)}}}p.defaults={threshold:(e,t)=>Math.max(25,Math.floor(.15*("x"===e?window.innerWidth||document.body.clientWidth:window.innerHeight||document.body.clientHeight))),velocityThreshold:10,disregardVelocityThreshold:(e,t)=>Math.floor(.5*("x"===e?t.element.clientWidth:t.element.clientHeight)),pressThreshold:8,diagonalSwipes:!1,diagonalLimit:15,longPressTime:500,doubleTapTime:300,mouseSupport:!0};let m=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){m={passive:!0}}}))}catch(e){}var f=e.i(71801);let g=({sides:e,rotate:t,className:i,children:s,hoverContent:r,scale:a,backgroundColor:o,borderWidth:l,borderColor:d,radius:c})=>{let m=(0,u.useRef)(null),[g,v]=(0,u.useState)(!1),x=`radius-${c??5}`;return(0,u.useEffect)(()=>{if(m.current){let e=m.current.querySelector(".html-polygon-border-container"),t=m.current.querySelector(".html-polygon-border");if(e&&t){let i=document.createElement("div");i.className=`absolute w-full h-full polygon-border-wrapper ${f.default[x]}`,e.insertBefore(i,t),i.appendChild(t)}}},[x]),(0,u.useEffect)(()=>{let e=m.current;if(e&&"ontouchstart"in window){let t=new p(e);t.on("tap",()=>{v(e=>!e)});let i=t=>{e.contains(t.target)||v(!1)};return document.addEventListener("touchstart",i),()=>{t.destroy(),document.removeEventListener("touchstart",i)}}},[]),(0,n.jsx)("div",{className:`${f.default["polygon-container"]} ${g?f.default["polygon-container-hover"]:""} ${f.default[x]}`,style:g?{transform:`scale(${a})`}:{},ref:m,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:(0,n.jsx)(h.Polygon,{className:`inline-block w-60 h-60 ${o||"bg-gray-100"} ${i}`,sides:e||6,rotate:t||0,borderWidth:"number"==typeof l?l:3,borderColor:d||"#d1d5db",padding:0,children:r?(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("div",{className:`absolute -top-10 -left-5 -bottom-5 -right-5 ${g?"pointer-events-auto":"hidden pointer-events-none"}`,children:(0,n.jsx)("div",{style:g?{transform:`scale(${1/(a??1)})`}:{},children:r})}),(0,n.jsx)("div",{className:`absolute top-5 right-10 left-10 ${g?"hidden pointer-events-none":"pointer-events-auto	"}`,children:s})]}):s})})};var v=e.i(43875);let x=({words:e,className:t})=>(0,n.jsx)("div",{className:`relative h-12 -mb-1 overflow-hidden ${t}`,children:(0,n.jsxs)("div",{className:`absolute w-full h-full animate-flip ${v.default["highlight-container"]}`,children:[e.map((e,t)=>(0,n.jsx)("div",{className:"text-center w-full h-full",children:(0,n.jsx)("span",{className:v.default.highlight,children:e})},t)),e.map((t,i)=>(0,n.jsx)("div",{className:"text-center w-full h-full",children:(0,n.jsx)("span",{className:v.default.highlight,children:t})},i+e.length))]})});var b=e.i(87755),y=e.i(19121);let w=()=>(0,n.jsxs)("div",{className:"hero -mt-10 min-[640px]:mt-2 mb-4 pt-2",children:[(0,n.jsx)("div",{className:"hidden min-[640px]:block",children:(0,n.jsx)(g,{borderWidth:0,radius:20,className:"w-[min(34rem,90vw)] h-[min(34rem,90vw)] pt-14 animate-rotate"})}),(0,n.jsxs)("div",{className:"mt-2 text-center w-full min-[640px]:w-[min(34rem,90vw)] min-[640px]:h-[min(34rem,90vw)] p-8 pt-16 sm:p-14 sm:pt-24 z-10",children:[(0,n.jsx)(b.default,{children:"HTML conversion REST API"}),(0,n.jsxs)("h1",{className:"text-3xl sm:text-4xl px-2 sm:px-10",children:["Automate HTML to ",(0,n.jsx)(x,{words:["PDF","Screenshot"]}),"Conversion"]}),(0,n.jsx)("p",{className:"pt-4 pb-6 px-2 sm:px-6 text-sm sm:text-base",children:"Integrate our API and get PDF or screenshot documents generated 
3with ease."}),(0,n.jsxs)("a",{href:"https://dashboard.polydoc.tech/register",className:`relative btn font-normal border-main-500 bg-main-500 text-white hover:bg-main-500/90 hover:border-main-500 ripple ${y.default.button}`,children:["Start free",(0,n.jsx)("span",{className:y.default["icon-wrapper"],children:(0,n.jsx)(l.FontAwesomeIcon,{icon:d.faArrowRight,className:y.default.icon})})]}),(0,n.jsx)("span",{className:"px-2 sm:px-4",children:"or"}),(0,n.jsx)("button",{type:"button",onClick:()=>(0,c.openChatwootChat)(),className:"relative btn font-normal border-main-500 bg-white text-main-500 hover:bg-main-500 hover:text-white hover:border-main-500 ripple",children:"Contact Us"})]})]});var S=e.i(41183);function j({children:e,className:t}){let i=e.split("`");if(1===i.length)return(0,n.jsx)("span",{className:t,children:e});let s=[];for(let e=0;e<i.length;e++){let t=i[e];e%2==1?s.push((0,n.jsx)("code",{className:"rounded px-1 py-0.5 bg-gray-100 text-gray-800 font-mono text-[0.85em] align-baseline",children:t},e)):""!==t&&s.push((0,n.jsx)(u.default.Fragment,{children:t},e))}return(0,n.jsx)("span",{className:t,children:s})}let T=({icon:e,title:t,description:i,guide:s})=>(0,n.jsxs)("div",{className:"flex flex-col items-start p-6 bg-white/60 border border-gray-200 rounded-lg shadow-sm hover:shadow-md icon-zoom transition-shadow relative",children:[(0,n.jsx)(l.FontAwesomeIcon,{icon:e,className:"text-main-500 text-[6rem] absolute top-4 left-4 opacity-10"}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("div",{className:"flex items-center gap-3 mb-2",children:(0,n.jsx)("h3",{className:"text-base font-medium text-gray-900",children:t})}),(0,n.jsx)("p",{className:"text-sm text-gray-500 leading-relaxed",children:(0,n.jsx)(j,{children:i})}),s&&(s.href.startsWith("/")?(0,n.jsx)(S.default,{className:"inline-flex items-center gap-1 text-sm text-main-500 hover:underline mt-2",href:s.href,children:s.label}):(0,n.jsx)("a",{className:"inline-flex items-center gap-1 text-sm text-main-500 hover:underline mt-2",href:s.href,target:"_blank",rel:"noopener noreferrer",children:s.label}))]})]}),E=({title:e,children:t})=>(0,n.jsxs)("div",{className:"mb-10",children:[(0,n.jsx)(g,{rotate:0,radius:10,borderWidth:0,className:"w-[10rem] h-[10rem] mb-4",children:(0,n.jsx)("h3",{className:"text-lg font-medium text-gray-700 p-[1.5rem] mt-[1.75rem]",children:e})}),(0,n.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:t})]}),P=()=>(0,n.jsx)("section",{id:"features",className:"mask-bg py-10 px-4 sm:p-20 mb-4",children:(0,n.jsxs)("div",{className:"container mx-auto text-center",children:[(0,n.jsx)("h2",{className:"text-3xl mb-4",children:"Features"}),(0,n.jsx)("div",{className:"flex justify-center mb-8",children:(0,n.jsx)(b.default,{className:"p-7 text-base",children:(0,n.jsxs)("span",{children:[(0,n.jsx)("strong",{className:"font-normal",children:"Powerful"}),","," ",(0,n.jsx)("strong",{className:"font-normal",children:"feature-rich"})," &"," ",(0,n.jsx)("strong",{className:"font-normal",children:"composable"})]})})}),(0,n.jsxs)(E,{title:"PDF Generation",children:[(0,n.jsx)(T,{icon:d.faFilePdf,title:"HTML & URL to PDF",description:"Convert HTML strings or URLs into high-fidelity PDFs using a Chromium-based rendering engine with full JavaScript ES6+ and modern CSS support."}),(0,n.jsx)(T,{icon:d.faBoxArchive,title:"PDF/A Archival",description:"Generate PDF/A-1b, 2b, and 3b output for long-term archival. Turn on the optional veraPDF check and a file that does not pass is rejected instead of returned.",guide:{href:"https://docs.polydoc.tech/guides/compliance/pdf-a/",label:"PDF/A guide"}}),(0,n.jsx)(T,{icon:d.faFileInvoiceDollar,title:"E-Invoicing",description:"Create Factur-X and ZUGFeRD hybrid e-invoices with embedded structured XML data, supporting the Basic, EN 16931 and Extended profiles.",guide:{href:"/e-invoice/",label:"E-invoicing overview"}}),(0,n.jsx)(T,{icon:d.faLock,title:"PDF Encryption",description:"Protect your documents with user and owner passwords, controlling access and permissions for viewing, printing, and editing."}),(0,n.jsx)(T,{icon:d.faDroplet,title:"Watermarks",description:"Add text or image watermarks with full control over font, color, opacity, rotation, position, and repeat patterns."}),(0,n.jsx)(T,{icon:d.faBookmark,title:"PDF outline & metadata",description:"Optional PDF outline (navigation pane bookmarks) from document headings via Chromium when enabled in the API, plus standard PDF metadata fields."}),(0,n.jsx)(T,{icon:d.faUniversalAccess,title:"Accessible PDFs (PDF/UA)",description:"Generate tagged PDFs targeting PDF/UA-1 (ISO 14289-1) with structure trees for screen readers, and optional VeraPDF validation of the machine-checkable accessibility rules. Relevant under the European A
3ccessibility Act, which reaches the documents a service hands to its users, not just the website. Combines with any PDF/A level, so one call can return a file that is archival and accessible.",guide:{href:"/accessible-pdf/",label:"Accessible PDF overview"}}),(0,n.jsx)(T,{icon:d.faPalette,title:"Layout Control",description:"Choose from standard sizes (A0-A6, Letter, Legal) or custom dimensions. Configure margins, orientation, headers, footers, page ranges, and scale."}),(0,n.jsx)(T,{icon:d.faBookOpen,title:"Paged layouts (documented workflows)",description:"PolyDoc does not ship a built-in CSS Paged Media engine. You can load tools such as Paged.js or Vivliostyle in your HTML; our docs explain how, and the API supports waits, `preferCSSPageSize`, and print vs screen CSS (see Rendering control)."})]}),(0,n.jsxs)(E,{title:"Screenshot Capture",children:[(0,n.jsx)(T,{icon:d.faCamera,title:"HTML & URL to Screenshot",description:"Capture pixel-perfect screenshots from HTML or URLs in PNG, JPEG, or WebP formats with configurable quality."}),(0,n.jsx)(T,{icon:d.faExpand,title:"Full-Page & Clip",description:"Capture entire pages or specific regions with precise clip coordinates. Support for transparent backgrounds."}),(0,n.jsx)(T,{icon:d.faMobileScreenButton,title:"Custom Viewports",description:"Set any viewport width, height, and device pixel ratio up to 10x for pixel-perfect, high-resolution captures."})]}),(0,n.jsxs)(E,{title:"Developer Tools",children:[(0,n.jsx)(T,{icon:d.faCode,title:"Rendering control",description:"Inject CSS and JavaScript, wait for a selector or custom function, set `render.mediaType` to `print` or `screen`, and optionally block ads and trackers with `render.blockAds` for cleaner, faster URL captures."}),(0,n.jsx)(T,{icon:d.faFileCode,title:"Templates",description:"Create and manage HTML templates with a built-in Monaco editor. Use Liquid syntax for variables and loops with dynamic JSON data."}),(0,n.jsx)(T,{icon:d.faBell,title:"Webhooks",description:"Receive conversion results asynchronously via webhooks with HMAC-SHA256 signed payloads, configurable retries, and custom headers."}),(0,n.jsx)(T,{icon:d.faCloudArrowUp,title:"Your cloud (presigned URL)",description:"Have the finished PDF or screenshot uploaded straight into your bucket or object store using a presigned PUT URL you create. That keeps outputs in infrastructure you control and fits our privacy-first approach: we focus on conversion, not hosting your files."}),(0,n.jsx)(T,{icon:d.faFlask,title:"Sandbox Mode",description:"Test your integration risk-free with sandbox conversions that don't count toward your quota. Sandbox quota is 10x your production limit."}),(0,n.jsx)(T,{icon:d.faScrewdriverWrench,title:"Dashboard & Playground",description:"Manage API keys, edit templates, monitor conversions with analytics and charts, and test conversions live in the playground."}),(0,n.jsx)(T,{icon:d.faTag,title:"Conversion tags",description:"Tag conversions with custom labels for filtering, grouping, and analyzing your usage patterns in the dashboard."})]}),(0,n.jsxs)(E,{title:"Security & Infrastructure",children:[(0,n.jsx)(T,{icon:d.faShieldHalved,title:"Privacy by Design",description:"Stateless architecture ensures your data is never stored after conversion. Each rendering runs in an isolated environment."}),(0,n.jsx)(T,{icon:d.faLock,title:"Encryption & Compliance",description:"Encrypted in transit and at rest, with isolated rendering. How we process data is described in our Privacy Policy and Data Processing Agreement (including GDPR-related information)."}),(0,n.jsx)(T,{icon:d.faEarthEurope,title:"EU Data Residency",description:"All servers, storage, and data processing run in the EU (Germany), and every infrastructure sub-processor is EU-based. Your content stays in the EU/EEA and is never transferred outside it."}),(0,n.jsx)(T,{icon:d.faGaugeHigh,title:"Scalable Infrastructure",description:"Auto-scaling infrastructure that reliably handles high loads and peak traffic, ensuring fast and consistent conversions."})]})]})});function M(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function C(e={},t={}){let i=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>
3i.indexOf(e)).forEach(i=>{void 0===e[i]?e[i]=t[i]:M(t[i])&&M(e[i])&&Object.keys(t[i]).length>0&&C(e[i],t[i])})}let N={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function O(){let e="u">typeof document?document:{};return C(e,N),e}let k={document:N,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"u"<typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"u">typeof setTimeout&&clearTimeout(e)}};function _(){let e="u">typeof window?window:{};return C(e,k),e}function D(e,t=0){return setTimeout(e,t)}function A(){return Date.now()}function L(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function I(...e){let t=Object(e[0]);for(let i=1;i<e.length;i+=1){let s=e[i];if(null!=s&&("u">typeof window&&void 0!==window.HTMLElement?!(s instanceof HTMLElement):!s||1!==s.nodeType&&11!==s.nodeType)){let e=Object.keys(Object(s)).filter(e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e);for(let i=0,r=e.length;i<r;i+=1){let r=e[i],n=Object.getOwnPropertyDescriptor(s,r);void 0!==n&&n.enumerable&&(L(t[r])&&L(s[r])?s[r].__swiper__?t[r]=s[r]:I(t[r],s[r]):!L(t[r])&&L(s[r])?(t[r]={},s[r].__swiper__?t[r]=s[r]:I(t[r],s[r])):t[r]=s[r])}}}return t}function z(e,t,i){e.style.setProperty(t,i)}function F({swiper:e,targetPosition:t,side:i}){let s,r=_(),n=-e.translate,a=null,o=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);let l=t>n?"next":"prev",d=(e,t)=>"next"===l&&e>=t||"prev"===l&&e<=t,c=()=>{s=new Date().getTime(),null===a&&(a=s);let l=n+(.5-Math.cos(Math.max(Math.min((s-a)/o,1),0)*Math.PI)/2)*(t-n);if(d(l,t)&&(l=t),e.wrapperEl.scrollTo({[i]:l}),d(l,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:l})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(c)};c()}function R(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function B(e,t=""){let i=_(),s=[...e.children];return(i.HTMLSlotElement&&e instanceof HTMLSlotElement&&s.push(...e.assignedElements()),t)?s.filter(e=>e.matches(t)):s}function $(e){try{console.warn(e);return}catch(e){}}function G(e,t=[]){let i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:function(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}(t)),i}function V(e,t){return _().getComputedStyle(e,null).getPropertyValue(t)}function H(e){let t,i=e;if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}}function W(e,t,i){let s=_();return i?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function Y(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function X(e,t=""){"u">typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}function q(){let e,i;return t||(e=_(),t={smoothScroll:(i=O()).documentElement&&i.documentElement.style&&"scrollBehavior"in i.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&i instanceof e.DocumentTouch)}),t}function U(e={}
3){return i||(i=function({userAgent:e}={}){let t=q(),i=_(),s=i.navigator.platform,r=e||i.navigator.userAgent,n={ios:!1,android:!1},a=i.screen.width,o=i.screen.height,l=r.match(/(Android);?[\s\/]+([\d.]+)?/),d=r.match(/(iPad)(?!\1).*OS\s([\d_]+)/),c=r.match(/(iPod)(.*OS\s([\d_]+))?/),u=!d&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="MacIntel"===s;return!d&&h&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${o}`)>=0&&((d=r.match(/(Version)\/([\d.]+)/))||(d=[0,1,"13_0_0"]),h=!1),l&&"Win32"!==s&&(n.os="android",n.android=!0),(d||u||c)&&(n.os="ios",n.ios=!0),n}(e)),i}function J(){return s||(s=function(){let e=_(),t=U(),i=!1;function s(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&0>t.indexOf("chrome")&&0>t.indexOf("android")}if(s()){let t=String(e.navigator.userAgent);if(t.includes("Version/")){let[e,s]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));i=e<16||16===e&&s<2}}let r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),n=s(),a=n||r&&t.ios;return{isSafari:i||n,needPerspectiveFix:i,need3dFix:a,isWebView:r}}()),s}let Q=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)},K=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)},Z=(e,t)=>{if(!e||e.destroyed||!e.params)return;let i=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(i){let t=i.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(i.shadowRoot?t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`))&&!t.lazyPreloaderManaged&&t.remove()})),t&&!t.lazyPreloaderManaged&&t.remove()}},ee=(e,t)=>{if(!e.slides[t])return;let i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},et=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);let s="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){let i=[r-t];i.push(...Array.from({length:t}).map((e,t)=>r+s+t)),e.slides.forEach((t,s)=>{i.includes(t.column)&&ee(e,s)});return}let n=r+s-1;if(e.params.rewind||e.params.loop)for(let s=r-t;s<=n+t;s+=1){let t=(s%i+i)%i;(t<r||t>n)&&ee(e,t)}else for(let s=Math.max(r-t,0);s<=Math.min(n+t,i-1);s+=1)s!==r&&(s>n||s<r)&&ee(e,s)};function ei({swiper:e,runCallbacks:t,direction:i,step:s}){let{activeIndex:r,previousIndex:n}=e,a=i;a||(a=r>n?"next":r<n?"prev":"reset"),e.emit(`transition${s}`),t&&"reset"===a?e.emit(`slideResetTransition${s}`):t&&r!==n&&(e.emit(`slideChangeTransition${s}`),"next"===a?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`))}function es(e,t,i){let s=_(),{params:r}=e,n=r.edgeSwipeDetection,a=r.edgeSwipeThreshold;return!n||!(i<=a)&&!(i>=s.innerWidth-a)||"prevent"===n&&(t.preventDefault(),!0)}function er(e){var t,i;let s,r;if(this.destroyed)return;let n=O(),a=e;a.originalEvent&&(a=a.originalEvent);let o=this.touchEventsData;if("pointerdown"===a.type){if(null!==o.pointerId&&o.pointerId!==a.pointerId)return;o.pointerId=a.pointerId}else"touchstart"===a.type&&1===a.targetTouches.length&&(o.touchId=a.targetTouches[0].identifier);if("touchstart"===a.type)return void es(this,a,a.targetTouches[0].pageX);let{params:l,touches:d,enabled:c}=this;if(!c||!l.simulateTouch&&"mouse"===a.pointerType||this.animating&&l.preventInteractionOnTransition)return;!this.animating&&l.cssMode&&l.loop&&this.loopFix();let u=a.target;if("wrapper"===l.touchEventsTarget&&(t=u,i=this.wrapperEl,s=_(),!(r=i.contains(t))&&s.HTMLSlotElement&&i instanceof HTMLSlotElement&&((r=[...i.assignedElements()].includes(t))||(r=function(e,t){let i=[t];for(;i.length>0;){let t=i.shift();if(e===t)return!0;i.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(t,i))),!r)||"which"in a&&3===a.which||"button"in a&&a.button>0||o.isTouched&&o.isMoved)return;let h=!!l.noSwipingClass&&""!==l.noSwipingClass,p=a.composedPath?a.composedPath():a.path;h&&a.target&&a.target.shadowRoot&&p&&(u=p[0]);let m=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,f=!!(a.target&&a.target.shadowRoot);if(l.noSwiping&&(f?function(e,t=this){return function t(i){if(!i||i===O()||i===_())return null;i.assignedSlot&&(i=i.assignedSlot);let s=i.closest(e);return s||i.getRootNode?s||t(i.getRootNode().host):null}(t)}(m,u):u.closest(m))){this.allowClick=!0;return}if(l.swipeHandler&&!u.closest(l.swipeHandler))return;d.currentX=a.pageX,d.currentY=a.pageY;let g=d.currentX,v=d.currentY;if(!es(this,a,g))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),d.startX=g,d.startY=v,o.touchStartTime=A(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,l.threshold>0&&(o.allowThresholdMove=!1);let x=!0;u.matches(o.focusableElements)&&(x=!1,"SELECT"===u.nodeName&&(o.isTouched=!1)),n.activeElement&&n.activeElement.matches(o.focusableElements)&&n.activeElement!==u&&("mouse"===a.pointerType||"mouse"!==a.pointerType&&!u.matches(o.focusableElements))&&n.activeElement.blur();let b=x&&this.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||b)&&!u.isContentEditable&&a.preventDefault(),l.freeMode&&l.freeMode.enabled&&this.freeMode&&this.animating&&!l.cssMode&&this.freeMode.onTouchStart(),this.emit
3("touchStart",a)}function en(e){let t,i,s=O();if(this.destroyed)return;let r=this.touchEventsData,{params:n,touches:a,rtlTranslate:o,enabled:l}=this;if(!l||!n.simulateTouch&&"mouse"===e.pointerType)return;let d=e;if(d.originalEvent&&(d=d.originalEvent),"pointermove"===d.type&&(null!==r.touchId||d.pointerId!==r.pointerId))return;if("touchmove"===d.type){if(!(t=[...d.changedTouches].find(e=>e.identifier===r.touchId))||t.identifier!==r.touchId)return}else t=d;if(!r.isTouched){r.startMoving&&r.isScrolling&&this.emit("touchMoveOpposite",d);return}let c=t.pageX,u=t.pageY;if(d.preventedByNestedSwiper){a.startX=c,a.startY=u;return}if(!this.allowTouchMove){d.target.matches(r.focusableElements)||(this.allowClick=!1),r.isTouched&&(Object.assign(a,{startX:c,startY:u,currentX:c,currentY:u}),r.touchStartTime=A());return}if(n.touchReleaseOnEdges&&!n.loop){if(this.isVertical()){if(u<a.startY&&this.translate<=this.maxTranslate()||u>a.startY&&this.translate>=this.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(o&&(c>a.startX&&-this.translate<=this.maxTranslate()||c<a.startX&&-this.translate>=this.minTranslate()))return;else if(!o&&(c<a.startX&&this.translate<=this.maxTranslate()||c>a.startX&&this.translate>=this.minTranslate()))return}if(s.activeElement&&s.activeElement.matches(r.focusableElements)&&s.activeElement!==d.target&&"mouse"!==d.pointerType&&s.activeElement.blur(),s.activeElement&&d.target===s.activeElement&&d.target.matches(r.focusableElements)){r.isMoved=!0,this.allowClick=!1;return}r.allowTouchCallbacks&&this.emit("touchMove",d),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=c,a.currentY=u;let h=a.currentX-a.startX,p=a.currentY-a.startY;if(this.params.threshold&&Math.sqrt(h**2+p**2)<this.params.threshold)return;if(void 0===r.isScrolling){let e;this.isHorizontal()&&a.currentY===a.startY||this.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:h*h+p*p>=25&&(e=180*Math.atan2(Math.abs(p),Math.abs(h))/Math.PI,r.isScrolling=this.isHorizontal()?e>n.touchAngle:90-e>n.touchAngle)}if(r.isScrolling&&this.emit("touchMoveOpposite",d),void 0===r.startMoving&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(r.startMoving=!0),r.isScrolling||"touchmove"===d.type&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;this.allowClick=!1,!n.cssMode&&d.cancelable&&d.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&d.stopPropagation();let m=this.isHorizontal()?h:p,f=this.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;n.oneWayMovement&&(m=Math.abs(m)*(o?1:-1),f=Math.abs(f)*(o?1:-1)),a.diff=m,m*=n.touchRatio,o&&(m=-m,f=-f);let g=this.touchesDirection;this.swipeDirection=m>0?"prev":"next",this.touchesDirection=f>0?"prev":"next";let v=this.params.loop&&!n.cssMode,x="next"===this.touchesDirection&&this.allowSlideNext||"prev"===this.touchesDirection&&this.allowSlidePrev;if(!r.isMoved){if(v&&x&&this.loopFix({direction:this.swipeDirection}),r.startTranslate=this.getTranslate(),this.setTransition(0),this.animating){let e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});this.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,n.grabCursor&&(!0===this.allowSlideNext||!0===this.allowSlidePrev)&&this.setGrabCursor(!0),this.emit("sliderFirstMove",d)}if(new Date().getTime(),!1!==n._loopSwapReset&&r.isMoved&&r.allowThresholdMove&&g!==this.touchesDirection&&v&&x&&Math.abs(m)>=1){Object.assign(a,{startX:c,startY:u,currentX:c,currentY:u,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}this.emit("sliderMove",d),r.isMoved=!0,r.currentTranslate=m+r.startTranslate;let b=!0,y=n.resistanceRatio;if(n.touchReleaseOnEdges&&(y=0),m>0?(v&&x&&!i&&r.allowThresholdMove&&r.currentTranslate>(n.centeredSlides?this.minTranslate()-this.slidesSizesGrid[this.activeIndex+1]-("auto"!==n.slidesPerView&&this.slides.length-n.slidesPerView>=2?this.slidesSizesGrid[this.activeIndex+1]+this.params.spaceBetween:0)-this.params.spaceBetween:this.minTranslate())&&this.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>this.minTranslate()&&(b=!1,n.resistance&&(r.currentTranslate=this.minTranslate()-1+(-this.minTranslate()+r.startTranslate+m)**y))):m<0&&(v&&x&&!i&&r.allowThresholdMove&&r.currentTranslate<(n.centeredSlides?this.maxTranslate()+this.slidesSizesGrid[this.slidesSizesGrid.length-1]+this.params.spaceBetween+("auto"!==n.slidesPerView&&this.slides.length-n.slidesPerView>=2?this.slidesSizesGrid[this.slidesSizesGrid.length-1]+this.params.spaceBetween:0):this.maxTranslate())&&this.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:this.slides.length-("auto"===n.slidesPerView?this.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),r.currentTranslate<this.maxTranslate()&&(b=!1,n.resistance&&(r.currentTranslate=this.maxTranslate()+1-(this.maxTranslate()-r.startTranslate-m)**y))),b&&(d.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),this.allowSlidePrev||this.allowSlideNext||(r.currentTranslate=r.startTranslate),n.threshold>0)if(Math.abs(m)>n.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,a.diff=this.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{r.currentTranslate=r.startTranslate;return}n.followFinger&&!n.cssMode&&((n.freeMode&&n.freeMode.enabled&&this.freeMode||n.watchSlidesProgress)&&(this.updateActiveIndex(),this.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&this.freeMode&&this.freeMode.onTouchMove(),this.updateProgress(r.currentTranslate),this.setTranslate(r.currentTranslate))}function ea(e){let t,i,s=this;if(s.destroyed)return;let r=s.touchEventsData,n=e;if(n.originalEvent&&(n=n.originalEvent),"touchend"===n.type||"touchcancel"===n.type){if(!(t=[...n.changedTouches].find(e=>e.identifier===r.touchId))||t.identifier!==r.touchId)return}else{if(null!==r.touchId||n.pointerId!==r.pointerId)return;t=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.t
3ype)&&!(["pointercancel","contextmenu"].includes(n.type)&&(s.browser.isSafari||s.browser.isWebView)))return;r.pointerId=null,r.touchId=null;let{params:a,touches:o,rtlTranslate:l,slidesGrid:d,enabled:c}=s;if(!c||!a.simulateTouch&&"mouse"===n.pointerType)return;if(r.allowTouchCallbacks&&s.emit("touchEnd",n),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&a.grabCursor&&s.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}a.grabCursor&&r.isMoved&&r.isTouched&&(!0===s.allowSlideNext||!0===s.allowSlidePrev)&&s.setGrabCursor(!1);let u=A(),h=u-r.touchStartTime;if(s.allowClick){let e=n.path||n.composedPath&&n.composedPath();s.updateClickedSlide(e&&e[0]||n.target,e),s.emit("tap click",n),h<300&&u-r.lastClickTime<300&&s.emit("doubleTap doubleClick",n)}if(r.lastClickTime=A(),D(()=>{s.destroyed||(s.allowClick=!0)}),!r.isTouched||!r.isMoved||!s.swipeDirection||0===o.diff&&!r.loopSwapReset||r.currentTranslate===r.startTranslate&&!r.loopSwapReset){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}if(r.isTouched=!1,r.isMoved=!1,r.startMoving=!1,i=a.followFinger?l?s.translate:-s.translate:-r.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled)return void s.freeMode.onTouchEnd({currentPos:i});let p=i>=-s.maxTranslate()&&!s.params.loop,m=0,f=s.slidesSizesGrid[0];for(let e=0;e<d.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){let t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;void 0!==d[e+t]?(p||i>=d[e]&&i<d[e+t])&&(m=e,f=d[e+t]-d[e]):(p||i>=d[e])&&(m=e,f=d[d.length-1]-d[d.length-2])}let g=null,v=null;a.rewind&&(s.isBeginning?v=a.virtual&&a.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1:s.isEnd&&(g=0));let x=(i-d[m])/f,b=m<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(h>a.longSwipesMs){if(!a.longSwipes)return void s.slideTo(s.activeIndex);"next"===s.swipeDirection&&(x>=a.longSwipesRatio?s.slideTo(a.rewind&&s.isEnd?g:m+b):s.slideTo(m)),"prev"===s.swipeDirection&&(x>1-a.longSwipesRatio?s.slideTo(m+b):null!==v&&x<0&&Math.abs(x)>a.longSwipesRatio?s.slideTo(v):s.slideTo(m))}else{if(!a.shortSwipes)return void s.slideTo(s.activeIndex);s.navigation&&(n.target===s.navigation.nextEl||n.target===s.navigation.prevEl)?n.target===s.navigation.nextEl?s.slideTo(m+b):s.slideTo(m):("next"===s.swipeDirection&&s.slideTo(null!==g?g:m+b),"prev"===s.swipeDirection&&s.slideTo(null!==v?v:m))}}function eo(){let e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:s,allowSlidePrev:r,snapGrid:n}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let o=a&&t.loop;if("auto"!==t.slidesPerView&&!(t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||o)e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);else{let t=a?e.virtual.slides:e.slides;e.slideTo(t.length-1,0,!1,!0)}e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=r,e.allowSlideNext=s,e.params.watchOverflow&&n!==e.snapGrid&&e.checkOverflow()}function el(e){this.destroyed||this.enabled&&!this.allowClick&&(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function ed(){if(this.destroyed)return;let{wrapperEl:e,rtlTranslate:t,enabled:i}=this;if(!i)return;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=-e.scrollLeft:this.translate=-e.scrollTop,0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();let s=this.maxTranslate()-this.minTranslate();(0===s?0:(this.translate-this.minTranslate())/s)!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}function ec(e){this.destroyed||(Z(this,e.target),!this.params.cssMode&&("auto"===this.params.slidesPerView||this.params.autoHeight)&&this.update())}function eu(){this.destroyed||!this.documentTouchHandlerProceeded&&(this.documentTouchHandlerProceeded=!0,this.params.touchReleaseOnEdges&&(this.el.style.touchAction="auto"))}let eh=(e,t)=>{let i=O(),{params:s,el:r,wrapperEl:n,device:a}=e,o=!!s.nested,l="on"===t?"addEventListener":"removeEventListener";r&&"string"!=typeof r&&(i[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),r[l]("touchstart",e.onTouchStart,{passive:!1}),r[l]("pointerdown",e.onTouchStart,{passive:!1}),i[l]("touchmove",e.onTouchMove,{passive:!1,capture:o}),i[l]("pointermove",e.onTouchMove,{passive:!1,capture:o}),i[l]("touchend",e.onTouchEnd,{passive:!0}),i[l]("pointerup",e.onTouchEnd,{passive:!0}),i[l]("pointercancel",e.onTouchEnd,{passive:!0}),i[l]("touchcancel",e.onTouchEnd,{passive:!0}),i[l]("pointerout",e.onTouchEnd,{passive:!0}),i[l]("pointerleave",e.onTouchEnd,{passive:!0}),i[l]("contextmenu",e.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&r[l]("click",e.onClick,!0),s.cssMode&&n[l]("scroll",e.onScroll),s.updateOnWindowResize?e[t](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",eo,!0):e[t]("observerUpdate",eo,!0),r[l]("load",e.onLoad,{capture:!0}))},ep=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var em={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",
3spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};let ef={eventsEmitter:{on(e,t,i){let s=this;if(!s.eventsListeners||s.destroyed||"function"!=typeof t)return s;let r=i?"unshift":"push";return e.split(" ").forEach(e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][r](t)}),s},once(e,t,i){let s=this;if(!s.eventsListeners||s.destroyed||"function"!=typeof t)return s;function r(...i){s.off(e,r),r.__emitterProxy&&delete r.__emitterProxy,t.apply(s,i)}return r.__emitterProxy=t,s.on(e,r,i)},onAny(e,t){return!this.eventsListeners||this.destroyed||"function"!=typeof e||0>this.eventsAnyListeners.indexOf(e)&&this.eventsAnyListeners[t?"unshift":"push"](e),this},offAny(e){if(!this.eventsListeners||this.destroyed||!this.eventsAnyListeners)return this;let t=this.eventsAnyListeners.indexOf(e);return t>=0&&this.eventsAnyListeners.splice(t,1),this},off(e,t){let i=this;return i.eventsListeners&&!i.destroyed&&i.eventsListeners&&e.split(" ").forEach(e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach((s,r)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&i.eventsListeners[e].splice(r,1)})}),i},emit(...e){let t,i,s,r=this;return r.eventsListeners&&!r.destroyed&&r.eventsListeners&&("string"==typeof e[0]||Array.isArray(e[0])?(t=e[0],i=e.slice(1,e.length),s=r):(t=e[0].events,i=e[0].data,s=e[0].context||r),i.unshift(s),(Array.isArray(t)?t:t.split(" ")).forEach(e=>{r.eventsAnyListeners&&r.eventsAnyListeners.length&&r.eventsAnyListeners.forEach(t=>{t.apply(s,[e,...i])}),r.eventsListeners&&r.eventsListeners[e]&&r.eventsListeners[e].forEach(e=>{e.apply(s,i)})})),r}},update:{updateSize:function(){let e,t,i=this.el;e=void 0!==this.params.width&&null!==this.params.width?this.params.width:i.clientWidth,t=void 0!==this.params.height&&null!==this.params.height?this.params.height:i.clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(V(i,"padding-left")||0,10)-parseInt(V(i,"padding-right")||0,10),t=t-parseInt(V(i,"padding-top")||0,10)-parseInt(V(i,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){let e,t=this;function i(e,i){return parseFloat(e.getPropertyValue(t.getDirectionLabel(i))||0)}let s=t.params,{wrapperEl:r,slidesEl:n,rtlTranslate:a,wrongRTL:o}=t,l=t.virtual&&s.virtual.enabled,d=l?t.virtual.slides.length:t.slides.length,c=B(n,`.${t.params.slideClass}, swiper-slide`),u=l?t.virtual.slides.length:c.length,h=[],p=[],m=[],f=s.slidesOffsetBefore;"function"==typeof f&&(f=s.slidesOffsetBefore.call(t));let g=s.slidesOffsetAfter;"function"==typeof g&&(g=s.slidesOffsetAfter.call(t));let v=t.snapGrid.length,x=t.slidesGrid.length,b=t.size-f-g,y=s.spaceBetween,w=-f,S=0,j=0;if(void 0===b)return;"string"==typeof y&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*b:"string"==typeof y&&(y=parseFloat(y)),t.virtualSize=-y-f-g,c.forEac
3h(e=>{a?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),s.centeredSlides&&s.cssMode&&(z(r,"--swiper-centered-offset-before",""),z(r,"--swiper-centered-offset-after","")),s.cssMode&&(z(r,"--swiper-slides-offset-before",`${f}px`),z(r,"--swiper-slides-offset-after",`${g}px`));let T=s.grid&&s.grid.rows>1&&t.grid;T?t.grid.initSlides(c):t.grid&&t.grid.unsetSlides();let E="auto"===s.slidesPerView&&s.breakpoints&&Object.keys(s.breakpoints).filter(e=>void 0!==s.breakpoints[e].slidesPerView).length>0;for(let r=0;r<u;r+=1){e=0;let n=c[r];if(!n||(T&&t.grid.updateSlide(r,n,c),"none"!==V(n,"display"))){if(l&&"auto"===s.slidesPerView)s.virtual.slidesPerViewAutoSlideSize&&(e=s.virtual.slidesPerViewAutoSlideSize),e&&n&&(s.roundLengths&&(e=Math.floor(e)),n.style[t.getDirectionLabel("width")]=`${e}px`);else if("auto"===s.slidesPerView){E&&(n.style[t.getDirectionLabel("width")]="");let r=getComputedStyle(n),a=n.style.transform,o=n.style.webkitTransform;if(a&&(n.style.transform="none"),o&&(n.style.webkitTransform="none"),s.roun
3dLengths)e=t.isHorizontal()?W(n,"width",!0):W(n,"height",!0);else{let t=i(r,"width"),s=i(r,"padding-left"),a=i(r,"padding-right"),o=i(r,"margin-left"),l=i(r,"margin-right"),d=r.getPropertyValue("box-sizing");if(d&&"border-box"===d)e=t+o+l;else{let{clientWidth:i,offsetWidth:r}=n;e=t+s+a+o+l+(r-i)}}a&&(n.style.transform=a),o&&(n.style.webkitTransform=o),s.roundLengths&&(e=Math.floor(e))}else e=(b-(s.slidesPerView-1)*y)/s.slidesPerView,s.roundLengths&&(e=Math.floor(e)),n&&(n.style[t.getDirectionLabel("width")]=`${e}px`);n&&(n.swiperSlideSize=e),m.push(e),s.centeredSlides?(w=w+e/2+S/2+y,0===S&&0!==r&&(w=w-b/2-y),0===r&&(w=w-b/2-y),.001>Math.abs(w)&&(w=0),s.roundLengths&&(w=Math.floor(w)),j%s.slidesPerGroup==0&&h.push(w),p.push(w)):(s.roundLengths&&(w=Math.floor(w)),(j-Math.min(t.params.slidesPerGroupSkip,j))%t.params.slidesPerGroup==0&&h.push(w),p.push(w),w=w+e+y),t.virtualSize+=e+y,S=e,j+=1}}if(t.virtualSize=Math.max(t.virtualSize,b)+g,a&&o&&("slide"===s.effect||"coverflow"===s.effect)&&(r.style.width=`${t.virtualSize+y}px`),s.setWrapperSize&&(r.style[t.getDirectionLabel("width")]=`${t.virtualSize+y}px`),T&&t.grid.updateWrapperSize(e,h),!s.centeredSlides){let e="auto"!==s.slidesPerView&&s.slidesPerView%1!=0,i=s.snapToSlideEdge&&!s.loop&&("auto"===s.slidesPerView||e),r=h.length;if(i){let e;if("auto"===s.slidesPerView){e=1;let t=0;for(let i=m.length-1;i>=0;i-=1)if((t+=m[i]+(i<m.length-1?y:0))<=b)e=m.length-i;else break}else e=Math.floor(s.slidesPerView);r=Math.max(u-e,0)}let n=[];for(let e=0;e<h.length;e+=1){let a=h[e];s.roundLengths&&(a=Math.floor(a)),i?e<=r&&n.push(a):h[e]<=t.virtualSize-b&&n.push(a)}h=n,Math.floor(t.virtualSize-b)-Math.floor(h[h.length-1])>1&&!i&&h.push(t.virtualSize-b)}if(l&&s.loop){let e=m[0]+y;if(s.slidesPerGroup>1){let i=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/s.slidesPerGroup),r=e*s.slidesPerGroup;for(let e=0;e<i;e+=1)h.push(h[h.length-1]+r)}for(let i=0;i<t.virtual.slidesBefore+t.virtual.slidesAfter;i+=1)1===s.slidesPerGroup&&h.push(h[h.length-1]+e),p.push(p[p.length-1]+e),t.virtualSize+=e}if(0===h.length&&(h=[0]),0!==y){let e=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");c.filter((e,t)=>!s.cssMode||!!s.loop||t!==c.length-1).forEach(t=>{t.style[e]=`${y}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let e=0;m.forEach(t=>{e+=t+(y||0)});let t=(e-=y)>b?e-b:0;h=h.map(e=>e<=0?-f:e>t?t+g:e)}if(s.centerInsufficientSlides){let e=0;if(m.forEach(t=>{e+=t+(y||0)}),(e-=y)<b){let t=(b-e)/2;h.forEach((e,i)=>{h[i]=e-t}),p.forEach((e,i)=>{p[i]=e+t})}}if(Object.assign(t,{slides:c,snapGrid:h,slidesGrid:p,slidesSizesGrid:m}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){z(r,"--swiper-centered-offset-before",`${-h[0]}px`),z(r,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);let e=-t.snapGrid[0],i=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(t=>t+e),t.slidesGrid=t.slidesGrid.map(e=>e+i)}if(u!==d&&t.emit("slidesLengthChange"),h.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==x&&t.emit("slidesGridLengthChange"),s.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!l&&!s.cssMode&&("slide"===s.effect||"fade"===s.effect)){let e=`${s.containerModifierClass}backface-hidden`,i=t.el.classList.contains(e);u<=s.maxBackfaceHiddenSlides?i||t.el.classList.add(e):i&&t.el.classList.remove(e)}},updateAutoHeight:function(e){let t,i=this,s=[],r=i.virtual&&i.params.virtual.enabled,n=0;"number"==typeof e?i.setTransition(e):!0===e&&i.setTransition(i.params.speed);let a=e=>r?i.slides[i.getSlideIndexByData(e)]:i.slides[e];if("auto"!==i.params.slidesPerView&&i.params.slidesPerView>1)if(i.params.centeredSlides)(i.visibleSlides||[]).forEach(e=>{s.push(e)});else for(t=0;t<Math.ceil(i.params.slidesPerView);t+=1){let e=i.activeIndex+t;if(e>i.slides.length&&!r)break;s.push(a(e))}else s.push(a(i.activeIndex));for(t=0;t<s.length;t+=1)if(void 0!==s[t]){let e=s[t].offsetHeight;n=e>n?e:n}(n||0===n)&&(i.wrapperEl.style.height=`${n}px`)},updateSlidesOffset:function(){let e=this.slides,t=this.isElement?this.isHorizontal()?this.wrapperEl.offsetLeft:this.wrapperEl.offsetTop:0;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=(this.isHorizontal()?e[i].offsetLeft:e[i].offsetTop)-t-this.cssOverflowAdjustment()},updateSlidesProgress:function(e=this&&this.translate||0){let t=this.params,{slides:i,rtlTranslate:s,snapGrid:r}=this;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&this.updateSlidesOffset();let n=-e;s&&(n=e),this.visibleSlidesIndexes=[],this.visibleSlides=[];let a=t.spaceBetween;"string"==typeof a&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*this.size:"string"==typeof a&&(a=parseFloat(a));for(let e=0;e<i.length;e+=1){let o=i[e],l=o.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(l-=i[0].swiperSlideOffset);let d=(n+(t.centeredSlides?this.minTranslate():0)-l)/(o.swiperSlideSize+a),c=(n-r[0]+(t.centeredSlides?this.minTranslate():0)-l)/(o.swiperSlideSize+a),u=-(n-l),h=u+this.slidesSizesGrid[e],p=u>=0&&u<=this.size-this.slidesSizesGrid[e],m=u>=0&&u<this.size-1||h>1&&h<=this.size||u<=0&&h>=this.size;m&&(this.visibleSlides.push(o),this.visibleSlidesIndexes.push(e)),Q(o,m,t.slideVisibleClass),Q(o,p,t.slideFullyVisibleClass),o.progress=s?-d:d,o.originalProgress=s?-c:c}},updateProgress:function(e){if(void 0===e){let t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}let t=this.params,i=this.maxTranslate()-this.minTranslate(),{progress:s,isBeginning:r,isEnd:n,progressLoop:a}=this,o=r,l=n;if(0===i)s=0,r=!0,n=!0;else{s=(e-this.minTranslate())/i;let t=1>Math.abs(e-this.minTranslate()),a=1>Math.abs(e-this.maxTranslate());r=t||s<=0,n=a||s>=1,t&&(s=0),a&&(s=1)}if(t.loop){let t=this.getSlideIndexByData(0),i=this.getSlideIndexByData(this.slides.length-1),s=this.slidesGrid[t],r=this.slidesGrid[i],n=this.slidesGrid[this.slidesGrid.length-1],o=Math.abs(e);(a=o>=s?(o-s)/n:(o+n-r)/n)>1&&(a-=1)}Object.assign(this,{progress:s,progressLoop:a,isBeginning:r,isEnd:n}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&this.updateSlidesProgress(e),r&&!o&&this.emit
3("reachBeginning toEdge"),n&&!l&&this.emit("reachEnd toEdge"),(o&&!r||l&&!n)&&this.emit("fromEdge"),this.emit("progress",s)},updateSlidesClasses:function(){let e,t,i,{slides:s,params:r,slidesEl:n,activeIndex:a}=this,o=this.virtual&&r.virtual.enabled,l=this.grid&&r.grid&&r.grid.rows>1,d=e=>B(n,`.${r.slideClass}${e}, swiper-slide${e}`)[0];if(o)if(r.loop){let t=a-this.virtual.slidesBefore;t<0&&(t=this.virtual.slides.length+t),t>=this.virtual.slides.length&&(t-=this.virtual.slides.length),e=d(`[data-swiper-slide-index="${t}"]`)}else e=d(`[data-swiper-slide-index="${a}"]`);else l?(e=s.find(e=>e.column===a),i=s.find(e=>e.column===a+1),t=s.find(e=>e.column===a-1)):e=s[a];e&&!l&&(i=function(e,t){let i=[];for(;e.nextElementSibling;){let s=e.nextElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(e,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!i&&(i=s[0]),t=function(e,t){let i=[];for(;e.previousElementSibling;){let s=e.previousElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(e,`.${r.slideClass}, swiper-slide`)[0],r.loop),s.forEach(s=>{K(s,s===e,r.slideActiveClass),K(s,s===i,r.slideNextClass),K(s,s===t,r.slidePrevClass)}),this.emitSlidesClasses()},updateActiveIndex:function(e){let t,i,s=this,r=s.rtlTranslate?s.translate:-s.translate,{snapGrid:n,params:a,activeIndex:o,realIndex:l,snapIndex:d}=s,c=e,u=e=>{let t=e-s.virtual.slidesBefore;return t<0&&(t=s.virtual.slides.length+t),t>=s.virtual.slides.length&&(t-=s.virtual.slides.length),t};if(void 0===c&&(c=function(e){let t,{slidesGrid:i,params:s}=e,r=e.rtlTranslate?e.translate:-e.translate;for(let e=0;e<i.length;e+=1)void 0!==i[e+1]?r>=i[e]&&r<i[e+1]-(i[e+1]-i[e])/2?t=e:r>=i[e]&&r<i[e+1]&&(t=e+1):r>=i[e]&&(t=e);return s.normalizeSlideIndex&&(t<0||void 0===t)&&(t=0),t}(s)),n.indexOf(r)>=0)t=n.indexOf(r);else{let e=Math.min(a.slidesPerGroupSkip,c);t=e+Math.floor((c-e)/a.slidesPerGroup)}if(t>=n.length&&(t=n.length-1),c===o&&!s.params.loop){t!==d&&(s.snapIndex=t,s.emit("snapIndexChange"));return}if(c===o&&s.params.loop&&s.virtual&&s.params.virtual.enabled){s.realIndex=u(c);return}let h=s.grid&&a.grid&&a.grid.rows>1;if(s.virtual&&a.virtual.enabled)i=a.loop?u(c):c;else if(h){let e=s.slides.find(e=>e.column===c),t=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(t)&&(t=Math.max(s.slides.indexOf(e),0)),i=Math.floor(t/a.grid.rows)}else if(s.slides[c]){let e=s.slides[c].getAttribute("data-swiper-slide-index");i=e?parseInt(e,10):c}else i=c;Object.assign(s,{previousSnapIndex:d,snapIndex:t,previousRealIndex:l,realIndex:i,previousIndex:o,activeIndex:c}),s.initialized&&et(s),s.emit("activeIndexChange"),s.emit("snapIndexChange"),(s.initialized||s.params.runCallbacksOnInit)&&(l!==i&&s.emit("realIndexChange"),s.emit("slideChange"))},updateClickedSlide:function(e,t){let i,s=this.params,r=e.closest(`.${s.slideClass}, swiper-slide`);!r&&this.isElement&&t&&t.length>
31&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!r&&e.matches&&e.matches(`.${s.slideClass}, swiper-slide`)&&(r=e)});let n=!1;if(r){for(let e=0;e<this.slides.length;e+=1)if(this.slides[e]===r){n=!0,i=e;break}}if(r&&n)this.clickedSlide=r,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):this.clickedIndex=i;else{this.clickedSlide=void 0,this.clickedIndex=void 0;return}s.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}},translate:{getTranslate:function(e=this.isHorizontal()?"x":"y"){let{params:t,rtlTranslate:i,translate:s,wrapperEl:r}=this;if(t.virtualTranslate)return i?-s:s;if(t.cssMode)return s;let n=function(e,t="x"){let i,s,r,n,a,o=_(),l=((a=_()).getComputedStyle&&(n=a.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n);return o.WebKitCSSMatrix?((s=l.transform||l.webkitTransform).split(",").length>6&&(s=s.split(", ").map(e=>e.replace(",",".")).join(", ")),r=new o.WebKitCSSMatrix("none"===s?"":s)):i=(r=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(s=o.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(s=o.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),s||0}(r,e);return n+=this.cssOverflowAdjustment(),i&&(n=-n),n||0},setTranslate:function(e,t){let{rtlTranslate:i,params:s,wrapperEl:r,progress:n}=this,a=0,o=0;this.isHorizontal()?a=i?-e:e:o=e,s.roundLengths&&(a=Math.floor(a),o=Math.floor(o)),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?a:o,s.cssMode?r[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-a:-o:s.virtualTranslate||(this.isHorizontal()?a-=this.cssOverflowAdjustment():o-=this.cssOverflowAdjustment(),r.style.transform=`translate3d(${a}px, ${o}px, 0px)`);let l=this.maxTranslate()-this.minTranslate();(0===l?0:(e-this.minTranslate())/l)!==n&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,i=!0,s=!0,r){let n,a=this,{params:o,wrapperEl:l}=a;if(a.animating&&o.preventInteractionOnTransition)return!1;let d=a.minTranslate(),c=a.maxTranslate();if(n=s&&e>d?d:s&&e<c?c:e,a.updateProgress(n),o.cssMode){let e=a.isHorizontal();if(0===t)l[e?"scrollLeft":"scrollTop"]=-n;else{if(!a.support.smoothScroll)return F({swiper:a,targetPosition:-n,side:e?"left":"top"}),!0;l.scrollTo({[e?"left":"top"]:-n,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(n),i&&(a.emit("beforeTransitionStart",t,r),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(n),i&&(a.emit("beforeTransitionStart",t,r),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){!a||a.destroyed||e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,i&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){this.params.cssMode||(this.wrapperEl.style.transitionDuration=`${e}ms`,this.wrapperEl.style.transitionDelay=0===e?"0ms":""),this.emit("setTransition",e,t)},transitionStart:function(e=!0,t){let{params:i}=this;i.cssMode||(i.autoHeight&&this.updateAutoHeight(),ei({swiper:this,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){let{params:i}=this;this.animating=!1,i.cssMode||(this.setTransition(0),ei({swiper:this,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e=0,t,i=!0,s,r){let n;"string"==typeof e&&(e=parseInt(e,10));let a=this,o=e;o<0&&(o=0);let{params:l,snapGrid:d,slidesGrid:c,previousIndex:u,activeIndex:h,rtlTranslate:p,wrapperEl:m,enabled:f}=a;if(!f&&!s&&!r||a.destroyed||a.animating&&l.preventInteractionOnTransition)return!1;void 0===t&&(t=a.params.speed);let g=Math.min(a.params.slidesPerGroupSkip,o),v=g+Math.floor((o-g)/a.params.slidesPerGroup);v>=d.length&&(v=d.length-1);let x=-d[v];if(l.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){let t=-Math.floor(100*x),i=Math.floor(100*c[e]),s=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=i&&t<s-(s-i)/2?o=e:t>=i&&t<s&&(o=e+1):t>=i&&(o=e)}if(a.initialized&&o!==h&&(!a.allowSlideNext&&(p?x>a.translate&&x>a.minTranslate():x<a.translate&&x<a.minTranslate())||!a.allowSlidePrev&&x>a.translate&&x>a.maxTranslate()&&(h||0)!==o))return!1;o!==(u||0)&&i&&a.emit("beforeSlideChangeStart"),a.updateProgress(x),n=o>h?"next":o<h?"prev":"reset";let b=a.virtual&&a.params.virtual.enabled;if(!(b&&r)&&(p&&-x===a.translate||!p&&x===a.translate))return a.updateActiveIndex(o),l.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==l.effect&&a.setTranslate(x),"reset"!==n&&(a.transitionStart(i,n),a.transitionEnd(i,n)),!1;if(l.cssMode){let e=a.isHorizontal(),i=p?x:-x;if(0===t)b&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),b&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[e?"scrollLeft":"scrollTop"]=i})):m[e?"scrollLeft":"scrollTop"]=i,b&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1});else{if(!a.support.smoothScroll)return F({swiper:a,targetPosition:i,side:e?"left"
3:"top"}),!0;m.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}let y=J().isSafari;return b&&!r&&y&&a.isElement&&a.virtual.update(!1,!1,o),a.setTransition(t),a.setTranslate(x),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,s),a.transitionStart(i,n),0===t?a.transitionEnd(i,n):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){!a||a.destroyed||e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(i,n))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t,i=!0,s){"string"==typeof e&&(e=parseInt(e,10));let r=this;if(r.destroyed)return;void 0===t&&(t=r.params.speed);let n=r.grid&&r.params.grid&&r.params.grid.rows>1,a=e;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)a+=r.virtual.slidesBefore;else{let e;if(n){let t=a*r.params.grid.rows;e=r.slides.find(e=>+e.getAttribute("data-swiper-slide-index")===t).column}else e=r.getSlideIndexByData(a);let t=n?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:i,slidesOffsetBefore:o,slidesOffsetAfter:l}=r.params,d=i||!!o||!!l,c=r.params.slidesPerView;"auto"===c?c=r.slidesPerViewDynamic():(c=Math.ceil(parseFloat(r.params.slidesPerView,10)),d&&c%2==0&&(c+=1));let u=t-e<c;if(d&&(u=u||e<Math.ceil(c/2)),s&&d&&"auto"!==r.params.slidesPerView&&!n&&(u=!1),u){let i=d?e<r.activeIndex?"prev":"next":e-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:i,slideTo:!0,activeSlideIndex:"next"===i?e+1:e-t+1,slideRealIndex:"next"===i?r.realIndex:void 0})}if(n){let e=a*r.params.grid.rows;a=r.slides.find(t=>+t.getAttribute("data-swiper-slide-index")===e).column}else a=r.getSlideIndexByData(a)}return requestAnimationFrame(()=>{r.slideTo(a,t,i,s)}),r},slideNext:function(e,t=!0,i){let s=this,{enabled:r,params:n,animating:a}=s;if(!r||s.destroyed)return s;void 0===e&&(e=s.params.speed);let o=n.slidesPerGroup;"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));let l=s.activeIndex<n.slidesPerGroupSkip?1:o,d=s.virtual&&n.virtual.enabled;if(n.loop){if(a&&!d&&n.loopPreventsSliding)return!1;if(s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft,s.activeIndex===s.slides.length-1&&n.cssMode)return requestAnimationFrame(()=>{s.slideTo(s.activeIndex+l,e,t,i)}),!0}return n.rewind&&s.isEnd?s.slideTo(0,e,t,i):s.slideTo(s.activeIndex+l,e,t,i)},slidePrev:function(e,t=!0,i){let s=this,{params:r,snapGrid:n,slidesGrid:a,rtlTranslate:o,enabled:l,animating:d}=s;
3if(!l||s.destroyed)return s;void 0===e&&(e=s.params.speed);let c=s.virtual&&r.virtual.enabled;if(r.loop){if(d&&!c&&r.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let h=u(o?s.translate:-s.translate),p=n.map(e=>u(e)),m=r.freeMode&&r.freeMode.enabled,f=n[p.indexOf(h)-1];if(void 0===f&&(r.cssMode||m)){let e;n.forEach((t,i)=>{h>=t&&(e=i)}),void 0!==e&&(f=m?n[e]:n[e>0?e-1:e])}let g=0;if(void 0!==f&&((g=a.indexOf(f))<0&&(g=s.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(g=Math.max(g=g-s.slidesPerViewDynamic("previous",!0)+1,0))),r.rewind&&s.isBeginning){let r=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(r,e,t,i)}return r.loop&&0===s.activeIndex&&r.cssMode?(requestAnimationFrame(()=>{s.slideTo(g,e,t,i)}),!0):s.slideTo(g,e,t,i)},slideReset:function(e,t=!0,i){if(!this.destroyed)return void 0===e&&(e=this.params.speed),this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e,t=!0,i,s=.5){if(this.destroyed)return;void 0===e&&(e=this.params.speed);let r=this.activeIndex,n=Math.min(this.params.slidesPerGroupSkip,r),a=n+Math.floor((r-n)/this.params.slidesPerGroup),o=this.rtlTranslate?this.translate:-this.translate;if(o>=this.snapGrid[a]){let e=this.snapGrid[a];o-e>(this.snapGrid[a+1]-e)*s&&(r+=this.params.slidesPerGroup)}else{let e=this.snapGrid[a-1];o-e<=(this.snapGrid[a]-e)*s&&(r-=this.params.slidesPerGroup)}return r=Math.min(r=Math.max(r,0),this.slidesGrid.length-1),this.slideTo(r,e,t,i)},slideToClickedSlide:function(){let e,t=this;if(t.destroyed)return;let{params:i,slidesEl:s}=t,r="auto"===i.slidesPerView?t.slidesPerViewDynamic():i.slidesPerView,n=t.getSlideIndexWhenGrid(t.clickedIndex),a=t.isElement?"swiper-slide":`.${i.slideClass}`,o=t.grid&&t.params.grid&&t.params.grid.rows>1;if(i.loop){if(t.animating)return;e=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),i.centeredSlides?t.slideToLoop(e):n>(o?(t.slides.length-r)/2-(t.params.grid.rows-1):t.slides.length-r)?(t.loopFix(),n=t.getSlideIndex(B(s,`${a}[data-swiper-slide-index="${e}"]`)[0]),D(()=>{t.slideTo(n)})):t.slideTo(n)}else t.slideTo(n)}},loop:{loopCreate:function(e,t){let i,s=this,{params:r,slidesEl:n}=s;if(!r.loop||s.virtual&&s.params.virtual.enabled)return;let a=s.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||a)&&((i=B(n,`.${r.slideBlankClass}
3`)).forEach(e=>{e.remove()}),i.length>0&&(s.recalcSlides(),s.updateSlides()));let o=r.slidesPerGroup*(a?r.grid.rows:1),l=s.slides.length%o!=0,d=a&&s.slides.length%r.grid.rows!=0,c=e=>{for(let t=0;t<e;t+=1){let e=s.isElement?G("swiper-slide",[r.slideBlankClass]):G("div",[r.slideClass,r.slideBlankClass]);s.slidesEl.append(e)}};l?r.loopAddBlankSlides?(c(o-s.slides.length%o),s.recalcSlides(),s.updateSlides()):$("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"):d&&(r.loopAddBlankSlides?(c(r.grid.rows-s.slides.length%r.grid.rows),s.recalcSlides(),s.updateSlides()):$("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)")),B(n,`.${r.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)});let u=r.centeredSlides||!!r.slidesOffsetBefore||!!r.slidesOffsetAfter;s.loopFix({slideRealIndex:e,direction:u?void 0:"next",initial:t})},loopFix:function({slideRealIndex:e,slideTo:t=!0,direction:i,setTranslate:s,activeSlideIndex:r,initial:n,byController:a,byMousewheel:o}={}){let l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");let{slides:d,allowSlidePrev:c,allowSlideNext:u,slidesEl:h,params:p}=l,{centeredSlides:m,slidesOffsetBefore:f,slidesOffsetAfter:g,initialSlide:v}=p,x=m||!!f||!!g;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&p.virtual.enabled){t&&(x||0!==l.snapIndex?x&&l.snapIndex<p.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=c,l.allowSlideNext=u,l.emit("loopFix");return}let b=p.slidesPerView;"auto"===b?b=l.slidesPerViewDynamic():(b=Math.ceil(parseFloat(p.slidesPerView,10)),x&&b%2==0&&(b+=1));let y=p.slidesPerGroupAuto?b:p.slidesPerGroup,w=x?Math.max(y,Math.ceil(b/2)):y;w%y!=0&&(w+=y-w%y),l.loopedSlides=w+=p.loopAdditionalSlides;let S=l.grid&&p.grid&&p.grid.rows>1;d.length<b+w||"cards"===l.params.effect&&d.length<b+2*w?$("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):S&&"row"===p.grid.fill&&$("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");let j=[],T=[],E=S?Math.ceil(d.length/p.grid.rows):d.length,P=n&&E-v<b&&!x,M=P?v:l.activeIndex;void 0===r?r=l.getSlideIndex(d.find(e=>e.classList.contains(p.slideActiveClass))):M=r;let C="next"===i||!i,N="prev"===i||!i,O=0,k=0,_=(S?d[r].column:r)+(x&&void 0===s?-b/2+.5:0);if(_<w){O=Math.max(w-_,y);for(let e=0;e<w-_;e+=1){let t=e-Math.floor(e/E)*E;if(S){let e=E-t-1;for(let t=d.length-1;t>=0;t-=1)d[t].column===e&&j.push(t)}else j.push(E-t-1)}}else if(_+b>E-w){k=Math.max(_-(E-2*w),y),P&&(k=Math.max(k,b-E+v+1));for(let e=0;e<k;e+=1){let t=e-Math.floor(e/E)*E;S?d.forEach((e,i)=>{e.column===t&&T.push(i)}):T.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),"cards"===l.params.effect&&d.length<b+2*w&&(T.includes(r)&&T.splice(T.indexOf(r),1),j.includes(r)&&j.splice(j.indexOf(r),1)),N&&j.forEach(e=>{d[e].swiperLoopMoveDOM=!0,h.prepend(d[e]),d[e].swiperLoopMoveDOM=!1}),C&&T.forEach(e=>{d[e].swiperLoopMoveDOM=!0,h.append(d[e]),d[e].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===p.slidesPerView?l.updateSlides():S&&(j.length>0&&N||T.length>0&&C)&&l.slides.forEach((e,t)=>{l.grid.updateSlide(t,e,l.slides)}),p.watchSlidesProgress&&l.updateSlidesOffset(),t){if(j.length>0&&N){if(void 0===e){let e=l.slidesGrid[M],t=l.slidesGrid[M+O]-e;o?l.setTranslate(l.translate-t):(l.slideTo(M+Math.ceil(O),0,!1,!0),s&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(s){let e=S?j.length/p.grid.rows:j.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(T.length>0&&C)if(void 0===e){let e=l.slidesGrid[M],t=l.slidesGrid[M-k]-e;o?l.setTranslate(l.translate-t):(l.slideTo(M-k,0,!1,!0),s&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{let e=S?T.length/p.grid.rows:T.length;l.slideTo(l.activeIndex-e,0,!1,!0)}}if(l.allowSlidePrev=c,l.allowSlideNext=u,l.controller&&l.controller.control&&!a){let n={slideRealIndex:e,direction:i,setTranslate:s,activeSlideIndex:r,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(e
3=>{!e.destroyed&&e.params.loop&&e.loopFix({...n,slideTo:e.params.slidesPerView===p.slidesPerView&&t})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...n,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView&&t})}l.emit("loopFix")},loopDestroy:function(){let{params:e,slidesEl:t}=this;if(!e.loop||!t||this.virtual&&this.params.virtual.enabled)return;this.recalcSlides();let i=[];this.slides.forEach(e=>{i[void 0===e.swiperSlideIndex?+e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex]=e}),this.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),i.forEach(e=>{t.append(e)}),this.recalcSlides(),this.slideTo(this.realIndex,0)}},grabCursor:{setGrabCursor:function(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){let e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){let{params:e}=this;this.onTouchStart=er.bind(this),this.onTouchMove=en.bind(this),this.onTouchEnd=ea.bind(this),this.onDocumentTouchStart=eu.bind(this),e.cssMode&&(this.onScroll=ed.bind(this)),this.onClick=el.bind(this),this.onLoad=ec.bind(this),eh(this,"on")},detachEvents:function(){eh(this,"off")}},breakpoints:{setBreakpoint:function(){let e=this,{realIndex:t,initialized:i,params:s,el:r}=e,n=s.breakpoints;if(!n||n&&0===Object.keys(n).length)return;let a=O(),o="window"!==s.breakpointsBase&&s.breakpointsBase?"container":s.breakpointsBase,l=["window","container"].includes(s.breakpointsBase)||!s.breakpointsBase?e.el:a.querySelector(s.breakpointsBase),d=e.getBreakpoint(n,o,l);if(!d||e.currentBreakpoint===d)return;let c=(d in n?n[d]:void 0)||e.originalParams,u=ep(e,s),h=ep(e,c),p=e.params.grabCursor,m=c.grabCursor,f=s.enabled;u&&!h?(r.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&h&&(r.classList.add(`${s.containerModifierClass}grid`),(c.grid.fill&&"column"===c.grid.fill||!c.grid.fill&&"column"===s.grid.fill)&&r.classList.add(`${s.containerModifierClass}grid-column`),e.emitContainerClasses()),p&&!m?e.unsetGrabCursor():!p&&m&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===c[t])return;let i=s[t]&&s[t].enabled,r=c[t]&&c[t].enabled;i&&!r&&e[t].disable(),!i&&r&&e[t].enable()});let g=c.direction&&c.direction!==s.direction,v=s.loop&&(c.slidesPerView!==s.slidesPerView||g),x=s.loop;g&&i&&e.changeDirection(),I(e.params,c);let b=e.params.enabled,y=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!b?e.disable():!f&&b&&e.enable(),e.currentBreakpoint=d,e.emit("_beforeBreakpoint",c),i&&(v?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!x&&y?(e.loopCreate(t),e.updateSlides()):x&&!y&&e.loopDestroy()),e.emit("breakpoint",c)},getBreakpoint:function(e,t="window",i){if(!e||"container"===t&&!i)return;let s=!1,r=_(),n="window"===t?r.innerHeight:i.clientHeight,a=Object.keys(e).map(e=>"string"==typeof e&&0===e.indexOf("@")?{value:n*parseFloat(e.substr(1)),point:e}:{value:e,point:e});a.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<a.length;e+=1){let{point:n,value:o}=a[e];"window"===t?r.matchMedia(`(min-width: ${o}px)`).matches&&(s=n):o<=i.clientWidth&&(s=n)}return s||"max"}},checkOverflow:{checkOverflow:function(){let{isLocked:e,params:t}=this,{slidesOffsetBefore:i}=t;if(i){let e=this.slides.length-1,t=this.slidesGrid[e]+this.slidesSizesGrid[e]+2*i;this.isLocked=this.size>t}else this.isLocked=1===this.snapGrid.length;!0===t.allowSlideNext&&(this.allowSlideNext=!this.isLocked),!0===t.allowSlidePrev&&(this.allowSlidePrev=!this.isLocked),e&&e!==this.isLocked&&(this.isEnd=!1),e!==this.isLocked&&this.emit
3(this.isLocked?"lock":"unlock")}},classes:{addClasses:function(){var e,t;let i,{classNames:s,params:r,rtl:n,el:a,device:o}=this,l=(e=["initialized",r.direction,{"free-mode":this.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:n},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&"column"===r.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],t=r.containerModifierClass,i=[],e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(s=>{e[s]&&i.push(t+s)}):"string"==typeof e&&i.push(t+e)}),i);s.push(...l),a.classList.add(...s),this.emitContainerClasses()},removeClasses:function(){let{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},eg={};class ev{constructor(...e){let t,i;1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?i=e[0]:[t,i]=e,i||(i={}),i=I({},i),t&&!i.el&&(i.el=t);const s=O();if(i.el&&"string"==typeof i.el&&s.querySelectorAll(i.el).length>1){const e=[];return s.querySelectorAll(i.el).forEach(t=>{let s=I({},i,{el:t});e.push(new ev(s))}),e}const r=this;r.__swiper__=!0,r.support=q(),r.device=U({userAgent:i.userAgent}),r.browser=J(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],i.modules&&Array.isArray(i.modules)&&i.modules.forEach(e=>{"function"==typeof e&&0>r.modules.indexOf(e)&&r.modules.push(e)});const n={};r.modules.forEach(e=>{var t;e({params:i,swiper:r,extendParams:(t=i,function(e={}){let i=Object.keys(e)[0],s=e[i];"object"!=typeof s||null===s||(!0===t[i]&&(t[i]={enabled:!0}),"navigation"===i&&t[i]&&t[i].enabled&&!t[i].prevEl&&!t[i].nextEl&&(t[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&t[i]&&t[i].enabled&&!t[i].el&&(t[i].auto=!0),i in t&&"enabled"in s&&("object"!=typeof t[i]||"enabled"in t[i]||(t[i].enabled=!0),t[i]||(t[i]={enabled:!1}))),I(n,e)}),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const a=I({},em,n);return r.params=I({},a,eg,i),r.originalParams=I({},r.params),r.passedParams=I({}
3,i),r.params&&r.params.on&&Object.keys(r.params.on).forEach(e=>{r.on(e,r.params.on[e])}),r.params&&r.params.onAny&&r.onAny(r.params.onAny),Object.assign(r,{enabled:r.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===r.params.direction,isVertical:()=>"vertical"===r.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return 8388608*Math.trunc(this.translate/8388608)},allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:r.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}getDirectionLabel(e){return this.isHorizontal()?e:({width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"})[e]}getSlideIndex(e){let{slidesEl:t,params:i}=this,s=H(B(t,`.${i.slideClass}, swiper-slide`)[0]);return H(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>+t.getAttribute("data-swiper-slide-index")===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){let{slidesEl:e,params:t}=this;this.slides=B(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);let i=this.minTranslate(),s=(this.maxTranslate()-i)*e+i;this.translateTo(s,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){let t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.forEach(i=>{let s=e.getSlideClasses(i);t.push({slideEl:i,classNames:s}),e.emit("_slideClass",i,s)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){let{params:i,slides:s,slidesGrid:r,slidesSizesGrid:n,size:a,activeIndex:o}=this,l=1;if("number"==typeof i.slidesPerView)return i.slidesPerView;if(i.centeredSlides){let e,t=s[o]?Math.ceil(s[o].swiperSlideSize):0;for(let i=o+1;i<s.length;i+=1)s[i]&&!e&&(t+=Math.ceil(s[i].swiperSlideSize),l+=1,t>a&&(e=!0));for(let i=o-1;i>=0;i-=1)s[i]&&!e&&(t+=s[i].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=o+1;e<s.length;e+=1)(t?r[e]+n[e]-r[o]<a:r[e]-r[o]<a)&&(l+=1);else for(let e=o-1;e>=0;e-=1)r[o]-r[e]<a&&(l+=1);return l}update(){let e,t=this;if(!t||t.destroyed)return;let{snapGrid:i,params:s}=t;function r(){let e=Math.min(Math.max(t.rtlTranslate?-1*t.translate:t.translate,t.maxTranslate()),t.minTranslate());t.setTranslate(e),t.updateActiveIndex(),t.updateSlidesClasses()}if(s.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(e=>{e.complete&&Z(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),s.freeMode&&s.freeMode.enabled&&!s.cssMode)r(),s.autoHeight&&t.updateAutoHeight();else{if(("auto"===s.slidesPerView||s.slidesPerView>1)&&t.isEnd&&!s.centeredSlides){let i=t.virtual&&s.virtual.enabled?t.virtual.slides:t.slides;
3e=t.slideTo(i.length-1,0,!1,!0)}else e=t.slideTo(t.activeIndex,0,!1,!0);e||r()}s.watchOverflow&&i!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(e,t=!0){let i=this.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(this.el.classList.remove(`${this.params.containerModifierClass}${i}`),this.el.classList.add(`${this.params.containerModifierClass}${e}`),this.emitContainerClasses(),this.params.direction=e,this.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),this.emit("changeDirection"),t&&this.update()),this}changeLanguageDirection(e){(!this.rtl||"rtl"!==e)&&(this.rtl||"ltr"!==e)&&(this.rtl="rtl"===e,this.rtlTranslate="horizontal"===this.params.direction&&this.rtl,this.rtl?(this.el.classList.add(`${this.params.containerModifierClass}rtl`),this.el.dir="rtl"):(this.el.classList.remove(`${this.params.containerModifierClass}rtl`),this.el.dir="ltr"),this.update())}mount(e){let t=this;if(t.mounted)return!0;let i=e||t.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);let s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`,r=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(s()):B(i,s())[0];return!r&&t.params.createElements&&(r=G("div",t.params.wrapperClass),i.append(r),B(i,`.${t.params.slideClass}`).forEach(e=>{r.append(e)})),Object.assign(t,{el:i,wrapperEl:r,slidesEl:t.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:r,hostEl:t.isElement?i.parentNode.host:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===V(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===V(i,"direction")),wrongRTL:"-webkit-box"===V(r,"display")}),!0}init(e){let t=this;if(t.initialized||!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();let i=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&i.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(e=>{e.complete?Z(t,e):e.addEventListener("load",e=>{Z(t,e.target)})}),et(t),t.initialized=!0,et(t),t.emit("init"),t.emit("afterInit"),t}destroy(e=!0,t=!0){let i=this,{params:s,el:r,wrapperEl:n,slides:a}=i;if(void 0===i.params||i.destroyed)return null;(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),r&&"string"!=typeof r&&r.removeAttribute("style"),n&&n.removeAttribute("style"),a&&a.length&&a.forEach(e=>{e.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(e=>{i.off(e)}),!1!==e)&&(i.el&&"string"!=typeof i.el&&(i.el.swiper=null),Object.keys(i).forEac
3h(e=>{try{i[e]=null}catch(e){}try{delete i[e]}catch(e){}}));return i.destroyed=!0,null}static extendDefaults(e){I(eg,e)}static get extendedDefaults(){return eg}static get defaults(){return em}static installModule(e){ev.prototype.__modules__||(ev.prototype.__modules__=[]);let t=ev.prototype.__modules__;"function"==typeof e&&0>t.indexOf(e)&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>ev.installModule(e)):ev.installModule(e),ev}}Object.keys(ef).forEach(e=>{Object.keys(ef[e]).forEach(t=>{ev.prototype[t]=ef[e][t]})}),ev.use([function({swiper:e,on:t,emit:i}){let s=_(),r=null,n=null,a=()=>{e&&!e.destroyed&&e.initialized&&(i("beforeResize"),i("resize"))},o=()=>{e&&!e.destroyed&&e.initialized&&i("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==s.ResizeObserver?e&&!e.destroyed&&e.initialized&&(r=new ResizeObserver(t=>{n=s.requestAnimationFrame(()=>{let{width:i,height:s}=e,r=i,n=s;t.forEach(({contentBoxSize:t,contentRect:i,target:s})=>{s&&s!==e.el||(r=i?i.width:(t[0]||t).inlineSize,n=i?i.height:(t[0]||t).blockSize)}),(r!==i||n!==s)&&a()})})).observe(e.el):(s.addEventListener("resize",a),s.addEventListener("orientationchange",o))}),t("destroy",()=>{n&&s.cancelAnimationFrame(n),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null),s.removeEventListener("resize",a),s.removeEventListener("orientationchange",o)})},function({swiper:e,extendParams:t,on:i,emit:s}){let r=[],n=_(),a=(t,i={})=>{let a=new(n.MutationObserver||n.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length)return void s("observerUpdate",t[0]);let i=function(){s("observerUpdate",t[0])};n.requestAnimationFrame?n.requestAnimationFrame(i):n.setTimeout(i,0)});a.observe(t,{attributes:void 0===i.attributes||i.attributes,childList:e.isElement||(void 0===i.childList||i).childList,characterData:void 0===i.characterData||i.characterData}),r.push(a)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",()=>{if(e.params.observer){if(e.params.observeParents){let t=function(e){let t=[],i=e.parentElement;for(;i;)t.push(i),i=i.parentElement;return t}(e.hostEl);for(let e=0;e<t.length;e+=1)a(t[e])}a(e.hostEl,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}}),i("destroy",()=>{r.forEach(e=>{e.disconnect()}),r.splice(0,r.length)})}]);let ex=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function eb(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function ey(e,t){let i=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>
3i.indexOf(e)).forEach(i=>{void 0===e[i]?e[i]=t[i]:eb(t[i])&&eb(e[i])&&Object.keys(t[i]).length>0?t[i].__swiper__?e[i]=t[i]:ey(e[i],t[i]):e[i]=t[i]})}function ew(e={}){return e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function eS(e={}){return e.pagination&&void 0===e.pagination.el}function ej(e={}){return e.scrollbar&&void 0===e.scrollbar.el}function eT(e=""){let t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),i=[];return t.forEach(e=>{0>i.indexOf(e)&&i.push(e)}),i.join(" ")}function eE(){return(eE=Object.assign.bind()).apply(this,arguments)}function eP(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function eM(e,t){return"u"<typeof window?(0,u.useEffect)(e,t):(0,u.useLayoutEffect)(e,t)}let eC=(0,u.createContext)(null),eN=(0,u.createContext)(null),eO=(0,u.forwardRef)(({className:e,tag:t="div",wrapperTag:i="div",children:s,onSwiper:r,...n}={},a)=>{let o,l,d=!1,[c,h]=(0,u.useState)("swiper"),[p,m]=(0,u.useState)(null),[f,g]=(0,u.useState)(!1),v=(0,u.useRef)(!1),x=(0,u.useRef)(null),b=(0,u.useRef)(null),y=(0,u.useRef)(null),w=(0,u.useRef)(null),S=(0,u.useRef)(null),j=(0,u.useRef)(null),T=(0,u.useRef)(null),E=(0,u.useRef)(null),{params:P,passedParams:M,rest:C,events:N}=function(e={},t=!0){let i={on:{}},s={},r={};ey(i,em),i._emitClasses=!0,i.init=!1;let n={},a=ex.map(e=>e.replace(/_/,""));return Object.keys(Object.assign({},e)).forEach(o=>{void 0!==e[o]&&(a.indexOf(o)>=0?eb(e[o])?(i[o]={},r[o]={},ey(i[o],e[o]),ey(r[o],e[o])):(i[o]=e[o],r[o]=e[o]):0===o.search(/on[A-Z]/)&&"function"==typeof e[o]?t?s[`${o[2].toLowerCase()}${o.substr(3)}`]=e[o]:i.on[`${o[2].toLowerCase()}${o.substr(3)}`]=e[o]:n[o]=e[o])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===i[e]&&(i[e]={}),!1===i[e]&&delete i[e]}),{params:i,passedParams:r,rest:n,events:s}}(n),{slides:O,slots:k}=(o=[],l={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]}
3,u.default.Children.toArray(s).forEach(e=>{if(eP(e))o.push(e);else if(e.props&&e.props.slot&&l[e.props.slot])l[e.props.slot].push(e);else if(e.props&&e.props.children){let t=function e(t){let i=[];return u.default.Children.toArray(t).forEach(t=>{eP(t)?i.push(t):t.props&&t.props.children&&e(t.props.children).forEach(e=>i.push(e))}),i}(e.props.children);t.length>0?t.forEach(e=>o.push(e)):l["container-end"].push(e)}else l["container-end"].push(e)}),{slides:o,slots:l}),_=()=>{g(!f)};Object.assign(P.on,{_containerClasses(e,t){h(t)}});let D=()=>{Object.assign(P.on,N),d=!0;let e={...P};if(delete e.wrapperClass,b.current=new ev(e),b.current.virtual&&b.current.params.virtual.enabled){b.current.virtual.slides=O;let e={cache:!1,slides:O,renderExternal:m,renderExternalUpdate:!1};ey(b.current.params.virtual,e),ey(b.current.originalParams.virtual,e)}};return x.current||D(),b.current&&b.current.on("_beforeBreakpoint",_),(0,u.useEffect)(()=>()=>{b.current&&b.current.off("_beforeBreakpoint",_)}),(0,u.useEffect)(()=>{!v.current&&b.current&&(b.current.emitSlidesClasses(),v.current=!0)}),eM(()=>{if(a&&(a.current=x.current),x.current)return b.current.destroyed&&D(),!function({el:e,nextEl:t,prevEl:i,paginationEl:s,scrollbarEl:r,swiper:n},a){ew(a)&&t&&i&&(n.params.navigation.nextEl=t,n.originalParams.navigation.nextEl=t,n.params.navigation.prevEl=i,n.originalParams.navigation.prevEl=i),eS(a)&&s&&(n.params.pagination.el=s,n.originalParams.pagination.el=s),ej(a)&&r&&(n.params.scrollbar.el=r,n.originalParams.scrollbar.el=r),n.init(e)}({el:x.current,nextEl:S.current,prevEl:j.current,paginationEl:T.current,scrollbarEl:E.current,swiper:b.current},P),r&&!b.current.destroyed&&r(b.current),()=>{b.current&&!b.current.destroyed&&b.current.destroy(!0,!1)}},[]),eM(()=>{!d&&N&&b.current&&Object.keys(N).forEach(e=>{b.current.on(e,N[e])});let e=function(e,t,i,s,r){let n=[];if(!t)return n;let a=e=>{0>n.indexOf(e)&&n.push(e)};if(i&&s){let e=s.map(r),t=i.map(r);e.join("")!==t.join("")&&a("children"),s.length!==i.length&&a("children")}return ex.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(i=>{if(i in e&&i in t)if(eb(e[i])&&eb(t[i])){let s=Object.keys(e[i]),r=Object.keys(t[i]);s.length!==r.length?a(i):(s.forEach(s=>{e[i][s]!==t[i][s]&&a(i)}),r.forEach(s=>{e[i][s]!==t[i][s]&&a(i)}))}else e[i]!==t[i]&&a(i)}),n}(M,y.current,O,w.current,e=>e.key);return y.current=M,w.current=O,e.length&&b.current&&!b.current.destroyed&&function({swiper:e,slides:t,passedParams:i,changedParams:s,nextEl:r,prevEl:n,scrollbarEl:a,paginationEl:o}){let l,d,c,u,h,p,m,f,g=s.filter(e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:v,pagination:x,navigation:b,scrollbar:y,virtual:w,thumbs:S}=e;s.includes("thumbs")&&i.thumbs&&i.thumbs.swiper&&!i.thumbs.swiper.destroyed&&v.thumbs&&(!v.thumbs.swiper||v.thumbs.swiper.destroyed)&&(l=!0),s.includes("controller")&&i.controller&&i.controller.control&&v.controller&&!v.controller.control&&(d=!0),s.includes("pagination")&&i.pagination&&(i.pagination.el||o)&&(v.pagination||!1===v.pagination)&&x&&!x.el&&(c=!0),s.includes("scrollbar")&&i.scrollbar&&(i.scrollbar.el||a)&&(v.scrollbar||!1===v.scrollbar)&&y&&!y.el&&(u=!0),s.includes("navigation")&&i.navigation&&(i.navigation.prevEl||n)&&(i.navigation.nextEl||r)&&(v.navigation||!1===v.navigation)&&b&&!b.prevEl&&!b.nextEl&&(h=!0);let j=t=>{e[t]&&(e[t].destroy(),"navigation"===t?(e.isElement&&(e[t].prevEl.remove(),e[t].nextEl.remove()),v[t].prevEl=void 0,v[t].nextEl=void 0,e[t].prevEl=void 0,e[t].nextEl=void 0):(e.isElement&&e[t].el.remove(),v[t].el=void 0,e[t].el=void 0))};s.includes("loop")&&e.isElement&&(v.loop&&!i.loop?p=!0:!v.loop&&i.loop?m=!0:f=!0),g.forEach(e=>{if(eb(v[e])&&eb(i[e]))Object.assign(v[e],i[e]),("navigation"===e||"pagination"===e||"scrollbar"===e)&&"enabled"in i[e]&&!i[e].enabled&&j(e);else{let t=i[e];(!0===t||!1===t)&&("navigation"===e||"pagination"===e||"scrollbar"===e)?!1===t&&j(e):v[e]=i[e]}}),g.includes("controller")&&!d&&e.controller&&e.controller.control&&v.controller&&v.controller.control&&(e.controller.control=v.controller.control),s.includes("children")&&t&&w&&v.virtual.enabled?(w.slides=t,w.update(!0)):s.includes("virtual")&&w&&v.virtual.enabled&&(t&&(w.slides=t),w.update(!0)),s.includes("children")&&t&&v.loop&&(f=!0),l&&S.init()&&S.update(!0),d&&(e.controller.control=v.controller.control),c&&(e.isElement&&(!o||"string"==typeof o)&&((o=document.createElement("div")).classList.add("swiper-pagination"),o.part.add("pagination"),e.el.appendChild(o)),o&&(v.pagination.el=o),x.init(),x.render(),x.update()),u&&(e.isElement&&(!a||"string"==typeof a)&&((a=document.createElement("div")).classList.add("swiper-scrollbar"),a.part.add("scrollbar"),e.el.appendChild(a)),a&&(v.scrollbar.el=a),y.init(),y.updateSize(),y.setTranslate()),h&&(e.isElement&&(r&&"string"!=typeof r||((r=document.createElement("div")).classList.add("swiper-button-next"),X(r,e.navigation.arrowSvg),r.part.add("button-next"),e.el.appendChild(r)),n&&"string"!=typeof n||((n=document.createElement("div")).classList.add("swiper-button-prev"),X(n,e.navigation.arrowSvg),n.part.add("button-prev"),e.el.appendChild(n))),r&&(v.navigation.nextEl=r),n&&(v.navigation.prevEl=n),b.init(),b.update(
3)),s.includes("allowSlideNext")&&(e.allowSlideNext=i.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=i.allowSlidePrev),s.includes("direction")&&e.changeDirection(i.direction,!1),(p||f)&&e.loopDestroy(),(m||f)&&e.loopCreate(),e.update()}({swiper:b.current,slides:O,passedParams:M,changedParams:e,nextEl:S.current,prevEl:j.current,scrollbarEl:E.current,paginationEl:T.current}),()=>{N&&b.current&&Object.keys(N).forEach(e=>{b.current.off(e,N[e])})}}),eM(()=>{var e;(e=b.current)&&!e.destroyed&&e.params.virtual&&(!e.params.virtual||e.params.virtual.enabled)&&(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())},[p]),u.default.createElement(t,eE({ref:x,className:eT(`${c}${e?` ${e}`:""}`)},C),u.default.createElement(eN.Provider,{value:b.current},k["container-start"],u.default.createElement(i,{className:function(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}(P.wrapperClass)},k["wrapper-start"],P.virtual?function(e,t,i){if(!i)return null;let s=e=>{let i=e;return e<0?i=t.length+e:i>=t.length&&(i-=t.length),i},r=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:n,to:a}=i,o=e.params.loop?-t.length:0,l=e.params.loop?2*t.length:t.length,d=[];for(let e=o;e<l;e+=1)e>=n&&e<=a&&d.push(t[s(e)]);return d.map((t,i)=>u.default.cloneElement(t,{swiper:e,style:r,key:t.props.virtualIndex||t.key||`slide-${i}`}))}(b.current,O,p):O.map((e,t)=>u.default.cloneElement(e,{swiper:b.current,swiperSlideIndex:t})),k["wrapper-end"]),ew(P)&&u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{ref:j,className:"swiper-button-prev"}),u.default.createElement("div",{ref:S,className:"swiper-button-next"})),ej(P)&&u.default.createElement("div",{ref:E,className:"swiper-scrollbar"}),eS(P)&&u.default.createElement("div",{ref:T,className:"swiper-pagination"}),k["container-end"]))});eO.displayName="Swiper";let ek=(0,u.forwardRef)(({tag:e="div",children:t,className:i="",swiper:s,zoom:r,lazy:n,virtualIndex:a,swiperSlideIndex:o,...l}={},d)=>{let c=(0,u.useRef)(null),[h,p]=(0,u.useState)("swiper-slide"),[m,f]=(0,u.useState)(!1);function g(e,t,i){t===c.current&&p(i)}eM(()=>
3{if(void 0!==o&&(c.current.swiperSlideIndex=o),d&&(d.current=c.current),c.current&&s){if(s.destroyed){"swiper-slide"!==h&&p("swiper-slide");return}return s.on("_slideClass",g),()=>{s&&s.off("_slideClass",g)}}}),eM(()=>{s&&c.current&&!s.destroyed&&p(s.getSlideClasses(c.current))},[s]);let v={isActive:h.indexOf("swiper-slide-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isFullyVisible:h.indexOf("swiper-slide-fully-visible")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0},x=()=>"function"==typeof t?t(v):t;return u.default.createElement(e,eE({ref:c,className:eT(`${h}${i?` ${i}`:""}`),"data-swiper-slide-index":a,onLoad:()=>{f(!0)}},l),r&&u.default.createElement(eC.Provider,{value:v},u.default.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof r?r:void 0},x(),n&&!m&&u.default.createElement("div",{className:"swiper-lazy-preloader",ref:e=>{e&&(e.lazyPreloaderManaged=!0)}}))),!r&&u.default.createElement(eC.Provider,{value:v},x(),n&&!m&&u.default.createElement("div",{className:"swiper-lazy-preloader",ref:e=>{e&&(e.lazyPreloaderManaged=!0)}})))});function e_(e,t,i){let s=`swiper-slide-shadow${i?`-${i}`:""}${e?` swiper-slide-shadow-${e}`:""}`,r=R(t),n=r.querySelector(`.${s.split(" ").join(".")}`);return n||(n=G("div",s.split(" ")),r.append(n)),n}function eD({swiper:e,extendParams:t,on:i}){t({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),!function(e){let t,{effect:i,swiper:s,on:r,setTranslate:n,setTransition:a,overwriteParams:o,perspective:l,recreateShadows:d,getEffectParams:c}=e;r("beforeInit",()=>{if(s.params.effect!==i)return;s.classNames.push(`${s.params.containerModifierClass}${i}`),l&&l()&&s.classNames.push(`${s.params.containerModifierClass}3d`);let e=o?o():{};Object.assign(s.params,e),Object.assign(s.originalParams,e)}),r("setTranslate _virtualUpdated",()=>{s.params.effect===i&&n()}),r("setTransition",(e,t)=>{s.params.effect===i&&a(t)}),r("transitionEnd",()=>{s.params.effect===i&&d&&c&&c().slideShadows&&(s.slides.forEach(e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>e.remove())}),d())}),r("virtualUpdate",()=>{s.params.effect===i&&(s.slides.length||(t=!0),requestAnimationFrame(()=>{t&&s.slides&&s.slides.length&&(n(),t=!1)}))})}({effect:"coverflow",swiper:e,on:i,setTranslate:()=>{let{width:t,height:i,slides:s,slidesSizesGrid:r}=e,n=e.params.coverflowEffect,a=e.isHorizontal(),o=e.translate,l=a?-o+t/2:-o+i/2,d=a?n.rotate:-n.rotate,c=n.depth,u=t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t;for(let e=0,t=s.length;e<t;e+=1){let t=s[e],i=r[e],o=(l-t.swiperSlideOffset-i/2)/i,h="function"==typeof n.modifier?n.modifier(o):o*n.modifier,p=a?d*h:0,m=a?0:d*h,f=-c*Math.abs(h),g=n.stretch;"string"==typeof g&&-1!==g.indexOf("%")&&(g=parseFloat(n.stretch)/100*i);let v=a?0:g*h,x=a?g*h:0,b=1-(1-n.scale)*Math.abs(h);.001>Math.abs(x)&&(x=0),.001>Math.abs(v)&&(v=0),.001>Math.abs(f)&&(f=0),.001>Math.abs(p)&&(p=0),.001>Math.abs(m)&&(m=0),.001>Math.abs(b)&&(b=0);let y=`translate3d(${x}px,${v}px,${f}px)  rotateX(${u(m)}deg) rotateY(${u(p)}deg) scale(${b})`;if(function(e){let t=R(e);return t!==e&&(t.style.backfaceVisibility="hidden",t.style["-webkit-backface-visibility"]="hidden"),t}(t).style.transform=y,t.style.zIndex=-Math.abs(Math.round(h))+1,n.slideShadows){let e=a?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),i=a?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");e||(e=e_("coverflow",t,a?"left":"top")),i||(i=e_("coverflow",t,a?"right":"bottom")),e&&(e.style.opacity=h>0?h:0),i&&(i.style.opacity=-h>0?-h:0)}}},setTransition:t=>{e.slides.map(e=>R(e)).forEach(e=>{e.style.transitionDuration=`${t}ms`,e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>{e.style.transitionDuration=`${t}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}ek.displayName="SwiperSlide";let eA='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function eL({swiper:e,extendParams:t,on:i,emit:s}){function r(t){let i;return t&&"string"==typeof t&&e.isElement&&(i=e.el.querySelector(t)||e.hostEl.querySelector(t))?i:(t&&("string"==typeof t&&(i=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&i&&i.length>1&&1===e.el.querySelectorAll(t).length?i=e.el.querySelector(t):i&&1===i.length&&(i=i[0])),t&&!i)?t:i}function n(t,i){let s=e.params.navigation;
3(t=Y(t)).forEach(t=>{t&&(t.classList[i?"add":"remove"](...s.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=i),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](s.lockClass))})}function a(){let{nextEl:t,prevEl:i}=e.navigation;if(e.params.loop){n(i,!1),n(t,!1);return}n(i,e.isBeginning&&!e.params.rewind),n(t,e.isEnd&&!e.params.rewind)}function o(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function l(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function d(){var t,i,s;let n=e.params.navigation;if(e.params.navigation=(t=e.originalParams.navigation,i=e.params.navigation,s={nextEl:"swiper-button-next",prevEl:"swiper-button-prev"},e.params.createElements&&Object.keys(s).forEach(r=>{if(!i[r]&&!0===i.auto){let n=B(e.el,`.${s[r]}`)[0];n||((n=G("div",s[r])).className=s[r],e.el.append(n)),i[r]=n,t[r]=n}}),i),!(n.nextEl||n.prevEl))return;let a=r(n.nextEl),d=r(n.prevEl);Object.assign(e.navigation,{nextEl:a,prevEl:d}),a=Y(a),d=Y(d);let c=(t,i)=>{if(t){if(n.addIcons&&t.matches(".swiper-button-next,.swiper-button-prev")&&!t.querySelector("svg")){let e=document.createElement("div");X(e,eA),t.appendChild(e.querySelector("svg")),e.remove()}t.addEventListener("click","next"===i?l:o)}!e.enabled&&t&&t.classList.add(...n.lockClass.split(" "))};a.forEach(e=>c(e,"next")),d.forEach(e=>c(e,"prev"))}function c(){let{nextEl:t,prevEl:i}=e.navigation;t=Y(t),i=Y(i);let s=(t,i)=>{t.removeEventListener("click","next"===i?l:o),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(e=>s(e,"next")),i.forEach(e=>s(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:eA},i("init",()=>{!1===e.params.navigation.enabled?u():(d(),a())}),i("toEdge fromEdge lock unlock",()=>{a()}),i("destroy",()=>{c()}),i("enable disable",()=>{let{nextEl:t,prevEl:i}=e.navigation;(t=Y(t),i=Y(i),e.enabled)?a():[...t,...i].filter(e=>!!e).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),i("click",(t,i)=>{let{nextEl:r,prevEl:n}=e.navigation;r=Y(r),n=Y(n);let a=i.target,o=n.includes(a)||r.includes(a);if(e.isElement&&!o){let e=i.path||i.composedPath&&i.composedPath();e&&(o=e.find(e=>r.includes(e)||n.includes(e)))}if(e.params.navigation.hideOnClick&&!o){let t;if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===a||e.pagination.el.contains(a)))return;r.length?t=r[0].classList.contains(e.params.navigation.hiddenClass):n.length&&(t=n[0].classList.contains(e.params.navigation.hiddenClass)),!0===t?s("navigationShow"):s("navigationHide"),[...r,...n].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});let u=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),c()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),a()},disable:u,update:a,init:d,destroy:c})}let eI=({children:e,onClick:t,className:i})=>(0,n.jsxs)("button",{className:`relative btn font-normal border-main-500 bg-main-500 text-white hover:bg-main-500/90 hover:border-main-500 ripple ${y.default.button} ${i}`,onClick:t,children:[e,(0,n.jsx)("span",{className:y.default["icon-wrapper"],children:(0,n.jsx)(l.FontAwesomeIcon,{icon:d.faArrowRight,className:y.default.icon})})]}),ez=[{name:"Free",period:"/forever",monthlyPrice:"free",subDescription:"No credit card required",urlDollar:"https://dashboard.polydoc.tech/register",urlEuro:"https://dashboard.polydoc.tech/register",features:["150 conversions* / month","30sec timeout*","Friendly overage policy*"],buttonText:"Start for free"},{name:"Starter",period:"/month",monthlyPriceDollar:"9",annualPriceDollar:"90",monthlyPriceEuro:"9",annualPriceEuro:"90",urlDollar:"https://dashboard.polydoc.tech/subscription/2/usd",urlEuro:"https://dashboard.polydoc.tech/subscription/2/eur",features:["1000 conversions* / month","10m timeout*","Friendly overage policy*"],buttonText:"Cho
3ose plan"},{name:"Standard",period:"/month",monthlyPriceDollar:"19",annualPriceDollar:"190",monthlyPriceEuro:"19",annualPriceEuro:"190",urlDollar:"https://dashboard.polydoc.tech/subscription/3/usd",urlEuro:"https://dashboard.polydoc.tech/subscription/3/eur",features:["5000 conversions* / month","10m timeout*","Friendly overage policy*"],buttonText:"Choose plan"},{name:"Business",period:"/month",monthlyPriceDollar:"39",annualPriceDollar:"390",monthlyPriceEuro:"39",annualPriceEuro:"390",urlDollar:"https://dashboard.polydoc.tech/subscription/4/usd",urlEuro:"https://dashboard.polydoc.tech/subscription/4/eur",features:["15000 conversions* / month","10m timeout*","Friendly overage policy*"],buttonText:"Choose plan"},{name:"Business XL",period:"/month",monthlyPriceDollar:"99",annualPriceDollar:"990",monthlyPriceEuro:"99",annualPriceEuro:"990",urlDollar:"https://dashboard.polydoc.tech/subscription/5/usd",urlEuro:"https://dashboard.polydoc.tech/subscription/5/eur",features:["50000 conversions* / month","10m timeout*","Friendly overage policy*"],buttonText:"Choose plan"},{name:"Premium",period:"/month",monthlyPriceDollar:"279",annualPriceDollar:"2790",monthlyPriceEuro:"279",annualPriceEuro:"2790",urlDollar:"https://dashboard.polydoc.tech/subscription/6/usd",urlEuro:"https://dashboard.polydoc.tech/subscription/6/eur",features:["150000 conversions* / month","10m timeout*","Friendly overage policy*"],buttonText:"Choose plan"},{name:"Premium XL",period:"/month",monthlyPriceDollar:"499",annualPriceDollar:"4990",monthlyPriceEuro:"499",annualPriceEuro:"4990",urlDollar:"https://dashboard.polydoc.tech/subscription/7/usd",urlEuro:"https://dashboard.polydoc.tech/subscription/7/eur",features:["300000 conversions* / month","10m timeout*","Friendly overage policy*"],buttonText:"Choose plan"},{name:"Enterprise",period:"/month",monthlyPriceDollar:"699",annualPriceDollar:"6990",monthlyPriceEuro:"699",annualPriceEuro:"6990",urlDollar:"https://dashboard.polydoc.tech/subscription/8/usd",urlEuro:"https://dashboard.polydoc.tech/subscription/8/eur",features:["500000 conversions* / month","10m timeout*","Friendly overage policy*"],buttonText:"Choose plan"},{name:"Custom",mainDescription:"We can handle any volume and are happy to accommodate your needs. Please get in touch.",features:["Cheaper price per conversion*","Custom timeout*"],buttonText:"Contact Us"}];function eF(e,t){if("Custom"===e.name)return void(0,c.openChatwootChat)();let i="USD"===t?"urlDollar"in e?e.urlDollar:"":"urlEuro"in e?e.urlEuro??"":"";!i||window.open(i,"_blank","noopener,noreferrer")||(window.location.href=i)}let eR=()=>{let[e,t]=(0,u.useState)("USD");(0,u.useEffect)(()=>{(function(){if("u"<typeof Intl||!Intl.DateTimeFormat)return!1;try{return Intl.DateTimeFormat().resolvedOptions().timeZone.startsWith("Europe/")}catch{return!1}})()&&t("EUR")},[]);let i="EUR"===e?"€":"$",s=t=>"monthlyPrice"in t&&"free"===t.monthlyPrice?{monthlyPrice:"free",annualPrice:null}:"mainDescription"in t?{monthlyPrice:null,annualPrice:null}:{monthlyPrice:("EUR"===e?t.monthlyPriceEuro:t.monthlyPriceDollar)??null,annualPrice:("EUR"===e?t.annualPriceEuro:t.annualPriceDollar)??null};return(0,n.jsx)("section",{id:"pricing",className:"py-10 px-4 sm:p-20",children:(0,n.jsxs)("div",{className:"container mx-auto text-center mb-10 px-4 sm:px-0",children:[(0,n.jsx)("h2",{className:"text-3xl mb-4",children:"Pricing"}),(0,n.jsx)(b.default,{className:"p-7 text-base",children:"Start for free, upgrade as you grow"}),(0,n.jsxs)("div",{className:"flex justify-center gap-2 mb-4",children:[(0,n.jsx)("button",{type:"button",onClick:()=>t("USD"),className:`px-3 py-1 rounded text-sm font-medium ${"USD"===e?"bg-main-500 text-white":"bg-gray-200 text-gray-600 hover:bg-gray-300"}`,children:"USD"}),(0,n.jsx)("button",{type:"button",onClick:()=>t("EUR"),className:`px-3 py-1 rounded text-sm font-medium ${"EUR"===e?"bg-main-500 text-white":"bg-gray-200 text-gray-600 hover:bg-gray-300"}`,children:"EUR"})]}),(0,n.jsx)("div",{className:"lg:hidden",children:(0,n.jsx)(eO,{effect:"coverflow",centeredSlides:!0,slidesPerView:3,initialSlide:2,spaceBetween:20,grabCursor:!0,navigation:!0,modules:[eD,eL],onInit:e=>{e.wrapperEl.style.marginLeft="0"},coverflowEffect:{rotate:0,stretch:8,depth:220,modifier:1,slideShadows:!1},className:"w-full min-w-0 max-w-184 px-4 pb-6 overflow-visible!",children:ez.map((t,r)=>{let{monthlyPrice:a,annualPrice:o}=s(t);return(0,n.jsx)(ek,{children:(0,n.jsxs)("div",{className:"flex flex-col w-70 min-h-[22.1rem] -ml-18 mb-2 p-4 xl:p-8 bg-white border border-gray-200 rounded-lg shadow-md mx-auto",children:[(0,n.jsx)("h5",{className:"mb-4 text-xl font-medium text-gray-500",children:t.name}),a&&(0,n.jsxs)("div",{className:"flex items-baseline text-gray-900",children:["free"!==a&&(0,n.jsx)("span",{className:"text-3xl",children:i}),(0,n.jsx)("span",{className:"text-4xl tracking-tight",children:a}),(0,n.jsx)("span",{className:"ms-1 text-lg font-normal text-gray-500",children:"period"in t?t.period:""})]}),"subDescription"in t&&t.subDescription&&(0,n.jsx)("div",{className:"flex items-baseline text-sm text-main-500",children:t.subDescription}),o&&(0,n.jsxs)("div",{className:"flex items-baseline text-sm text-main-500",children:[(0,n.jsx)("span",{className:"font-normal text-gray-500",children:"or"}),(0,n.jsx)("span",{className:"ms-1 text-xs",children:i}),(0,n.jsx)("span",{className:"text-normal tracking-tight",children:o}),(0,n.jsx)("span",{className:"ms-1 font-normal",children:"/annual"})]}),t.mainDescription&&(0,n.jsx)("div",{className:"tracking-tight",children:t.mainDescription}),(0,n.jsx)("div",{className:"flex-1 min-h-0 my-7",children:(0,n.jsx)("ul",{role:"list",className:"space-y-2",children:t.features.map((e,t)=>(0,n.jsxs)("li",{className:"flex items-center",children:[(0,n.jsx)(l.FontAwesomeIcon,{className:"text-main-500 text-2xl",icon:d.faCheck}),(0,n.jsx)("span",{className:"text-sm font-normal leading-tight text-gray-500 ms-2",children:e})]},t))})}),(0,n.jsx)("div",{className:"mt-auto",children:(0,n.jsx)(eI,{className:"w-full ripple-xl",onClick:()=>eF(t,e),children:t.buttonText})})]})},r)})})}),(0,n.jsx)("div",{className:"hidden lg:flex justify-center mx-auto xl:max-w-300 w-full",children:(0,n.jsx)(eO,{slidesPerView:4,spaceBetween:65,centeredSlides:!0,initialSlide:1,navigation:!0,modules:[eL],onInit:e=>{e.navigation?.prevEl?.classList.add("swiper-button-disabled")},onSlideChange:e=>{e.activeIndex>1?e.navigation?.prevEl?.classList.remove("swiper-button-disabled"):e.navigation?.prevEl?.classList.add("swiper-button-disabled"),e.activeIndex<7?e.navigation?.nextEl?.classList.remove("swiper-button-disabled"):e.navigation?.nextEl?.classList.add("swiper-button-disabled")},className:"px-5 w-full",children:ez.map((t,r)=>{let{monthlyPrice:a,annualPrice:o}=s(t);return(0,n.jsx)(ek,{children:(0,n.jsxs)("div",{className:"flex flex-col w-[75%] min-w-68 ml-[17%] md:ml-0 md:min-w-62 md:w-62 xl:w-[18.7rem] min-h-[22.1rem] mb-2 p-4 xl:p-8 bg-white border border-gray-200 rounded-lg shadow-md mx-auto",children:[(0,n.jsx)("h5",{className:"mb-4 text-xl font-medium text-gray-500",children:t.name}),a&&(0,n.jsxs)("div",{className:"flex items-baseline text-gray-900",children:["free"!==a&&(0,n.jsx)("span",{className:"text-3xl",children:i}),(0,n.jsx)("span",{className:"text-4xl tracking-tight",children:a}),(0,n.jsx)("span",{className:"ms-1 text-lg font-normal text-gray-500",children:"period"in t?t.period:""})]}),"subDescription"in t&&t.subDescription&&(0,n.jsx)("div",{className:"flex items-baseline text-sm text-main-500",children:t.subDescription}),o&&(0,n.jsxs)("div",{className:"flex items-baseline text-sm text-main-500",children:[(0,n.jsx)("span",{className:"font-normal text-gray-500",children:"or"}),(0,n.jsx)("span",{className:"ms-1 text-xs",children:i}),(0,n.jsx)("span",{className:"text-normal tracking-tight",children:o}),(0,n.jsx)("span",{className:"ms-1 font-normal",children:"/annual"})]}),t.mainDescription&&(0,n.jsx)("div",{className:"tracking-tight",children:t.mainDescription}),(0,n.jsx)("div",{className:"flex-1 min-h-0 my-7",children:(0,n.jsx)("ul",{role:"list",className:"space-y-2",children:t.features.map((e,t)=>(0,n.jsxs)("li",{className:"flex items-center",children:[(0,n.jsx)(l.FontAwesomeIcon,{className:"text-main-500 text-2xl",icon:d.faCheck}),(0,n.jsx)("span",{className:"text-sm font-normal leading-tight text-gray-500 ms-2",children:e})]},t))})}),(0,n.jsx)("div",{className:"mt-auto",children:(0,n.jsx)(eI,{className:"w-full ripple-xl",onClick:()=>eF(t,e),children:t.buttonText})})]})},r)})})}),(0,n.jsxs)("div",{className:"text-center text-gray-500 text-sm mt-0 mb-3",children:["* See 5th, 6th & 7th question in the"," ",(0,n.jsx)("a",{href:"#faq",className:"link hover:no-underline",children:"FAQ"})," ","section below for more information about conversions, timeouts and overage policy."]}),(0,n.jsx)("div",{className:"flex justify-center mx-auto max-w-5xl mt-2 px-3 sm:px-0",children:(0,n.jsxs)("div",{className:"w-full min-w-0 mb-2 p-3 sm:p-8 bg-white border border-gray-200 rounded-lg shadow-md",children:[(0,n.jsx)("h5",{className:"mb-4 text-base font-medium text-gray-500 sm:text-lg",children:"All plans include"}),(0,n.jsxs)("div",{className:"grid grid-cols-1 gap-x-4 gap-y-5 text-left sm:grid-cols-2 sm:gap-x-8 sm:gap-y-6 lg:grid-cols-3 [&_li]:wrap-break-word",children:[(0,n.jsxs)("div",{className:"min-w-0 max-sm:order-1 sm:order-1 lg:order-0 lg:col-start-1 lg:row-start-1",children:[(0,n.jsx)(l.FontAwesomeIcon,{className:"text-main-500 text-2xl",icon:d.faCheck}),(0,n.jsx)("span",{className:"text-base font-normal leading-tight text-gray-900 ms-2 sm:text-lg",children:"PDF"}),(0,n.jsxs)("ul",{role:"list",className:"text-gray-500 text-xs mt-1 sm:text-sm",children:[(0,n.jsx)("li",{children:"PDF/A (1b, 2b, 3b)"}),(0,n.jsx)("li",{children:"E-Invoicing (Factur-X / ZUGFeRD)"}),(0,n.jsx)("li",{children:"Custom Header & Footer"}),(0,n.jsx)("li",{children:"Watermark (Text & Image)"}),(0,n.jsx)("li",{children:"Encryption"}),(0,n.jsx)("li",{children:"Metadata"}),(0,n.jsx)("li",{children:"PDF outline (bookmarks, Chromium)"}),(0,n.jsx)("li",{children:"Tagged / Accessible PDFs (PDF/UA-1)"}),(0,n.jsx)("li",{children:"Custom Page Sizes"})]})]}),(0,n.jsxs)("div",{className:"min-w-0 max-sm:order-3 sm:order-2 lg:order-0 lg:col-start-1 lg:row-start-2",children:[(0,n.jsx)(l.FontAwesomeIcon,{className:"text-main-500 text-2xl",icon:d.faCheck}),(0,n.jsx)("span",{className:"text-base font-normal leading-tight text-gray-900 ms-2 sm:text-lg",children:"Screenshot"}),(0,n.jsxs)("ul",{role:"list",className:"text-gray-500 text-xs mt-1 sm:text-sm",children:[(0,n.jsx)("li",{children:"PNG, JPEG & WebP"}),(0,n.jsx)("li",{children:"Full-Page Capture"}),(0,n.jsx)("li",{children:"Clip Region"}),(0,n.jsx)("li",{children:"Custom Viewports & Pixel Ratio"}),(0,n.jsx)("li",{children:"Base64 Encoding"})]})]}),(0,n.jsxs)("div",{className:"min-w-0 max-sm:order-5 sm:order-3 lg:order-0 lg:col-start-2 lg:row-start-1",children:[(0,n.jsx)(l.FontAwesomeIcon,{className:"text-main-500 text-2xl",icon:d.faCheck}),(0,n.jsx)("span",{className:"text-base font-normal leading-tight text-gray-900 ms-2 sm:text-lg",children:"Rendering"}),(0,n.jsxs)("ul",{role:"list",className:"text-gray-500 text-xs mt-1 sm:text-sm",children:[(0,n.jsx)("li",{children:"CSS & JavaScript Injection"}),(0,n.jsx)("li",{children:"Web Fonts"}),(0,n.jsx)("li",{children:"waitForSelector / waitForFunction"}),(0,n.jsx)("li",{children:(0,n.jsx)(j,{children:"Print vs screen CSS (`render.mediaType`)"})}),(0,n.jsx)("li",{children:(0,n.jsx)(j,{children:"CSS page size mode (`preferCSSPageSize`)"})}),(0,n.jsx)("li",{children:"Docs: Paged.js / Vivliostyle in HTML"}),(0,n.jsx)("li",{children:"URL authentication"})]})]}),(0,n.jsxs)("div",{className:"min-w-0 max-sm:order-2 sm:order-6 lg:order-0 lg:col-start-2 lg:row-start-2",children:[(0,n.jsx)(l.FontAwesomeIcon,{className:"text-main-500 text-2xl",icon:d.faCheck}),(0,n.jsx)("span",{className:"text-base font-normal leading-tight text-gray-900 ms-2 sm:text-lg",children:"Delivery"}),(0,n.jsxs)("ul",{role:"list",className:"text-gray-500 text-xs mt-1 sm:text-sm",children:[(0,n.jsx)("li",{children:"Webhooks (HMAC-SHA256 signing)"}),(0,n.jsx)("li",{children:"Your cloud (presigned URL)"})]})]}),(0,n.jsxs)("div",{className:"min-w-0 max-sm:order-7 sm:order-5 lg:order-0 lg:col-start-2 lg:row-start-3",children:[(0,n.jsx)(l.FontAwesomeIcon,{className:"text-main-500 text-2xl",icon:d.faCheck}),(0,n.jsx)("span",{className:"text-base font-normal leading-tight text-gray-900 ms-2 sm:text-lg",children:"Developer Tools"}),(0,n.jsxs)("ul",{role:"list",className:"text-gray-500 text-xs mt-1 sm:text-sm",children:[(0,n.jsx)("li",{children:"REST API"}),(0,n.jsx)("li",{children:"Sandbox Mode"}),(0,n.jsx)("li",{children:"Conversion Tags"}),(0,n.jsx)("li",{children:"Dashboard & Playground"}),(0,n.jsx)("li",{children:"Conversion analytics"})]})]}),(0,n.jsxs)("div",{className:"min-w-0 max-sm:order-8 sm:order-4 lg:order-0 lg:col-start-3 lg:row-start-1",children:[(0,n.jsx)(l.FontAwesomeIcon,{className:"text-main-500 text-2xl",icon:d.faCheck}),(0,n.jsx)("span",{className:"text-base font-normal leading-tight text-gray-900 ms-2 sm:text-lg",children:"Your cloud (presigned URL)"}),(0,n.jsxs)("ul",{role:"list",className:"text-gray-500 text-xs mt-1 sm:text-sm",children:[(0,n.jsx)("li",{children:"AWS S3"}),(0,n.jsx)("li",{children:"Google Cloud Storage"}),(0,n.jsx)("li",{children:"Microsoft Azure Blob Storage"}),(0,n.jsx)("li",{children:"Backblaze B2"}),(0,n.jsx)("li",{children:"Wasabi"}),(0,n.jsx)("li",{children:"Rabata.io"})]})]}),(0,n.jsxs)("div",{className:"min-w-0 max-sm:order-4 sm:order-7 lg:order-0 lg:col-start-3 lg:row-start-2",children:[(0,n.jsx)(l.FontAwesomeIcon,{className:"text-main-500 text-2xl",icon:d.faCheck}),(0,n.jsx)("span",{className:"text-base font-normal leading-tight text-gray-900 ms-2 sm:text-lg",children:"Templates"}),(0,n.jsxs)("ul",{role:"list",className:"text-gray-500 text-xs mt-1 sm:text-sm",children:[(0,n.jsx)("li",{children:"HTML Editor"}),(0,n.jsx)("li",{children:"Variables & Loops (Liquid)"})]})]}),(0,n.jsxs)("div",{className:"min-w-0 max-sm:order-6 sm:order-8 lg:order-0 lg:col-start-3 lg:row-start-3",children:[(0,n.jsx)(l.FontAwesomeIcon,{className:"text-main-500 text-2xl",icon:d.faCheck}),(0,n.jsx)("span",{className:"text-base font-normal leading-tight text-gray-900 ms-2 sm:text-lg",children:"Integrations"}),(0,n.jsx)("ul",{role:"list",className:"text-gray-500 text-xs mt-1 sm:text-sm",children:(0,n.jsxs)("li",{children:["20+ step-by-step automation tool guides (Make, Zapier, n8n, and more)."," ",(0,n.jsx)("a",{href:"#automation-integrations",className:"link hover:no-underline",children:"Full list in the footer"})]})})]})]})]})})]})})};var eB=e.i(81390);let e$=[{title:"QR Code",image:"/images/templates/template-invoice-qr.png"},{title:"Invoice",image:"/images/templates/template-invoice.png"},{title:"Charts",image:"/images/templates/template-report-charts.png"},{title:"Report",image:"/images/templates/template-report.png"},{title:"Tickets",image:"/images/templates/template-ticket.png"},{title:"Statements",image:"/images/templates/template-bank-statement.png"}],eG=()=>(0,n.jsx)("section",{id:"templates",className:"mask-bg py-10 px-4 sm:p-20 mb-4",children:(0,n.jsxs)("div",{className:"container mx-auto",children:[(0,n.jsxs)("div",{className:"text-center max-w-3xl mx-auto",children:[(0,n.jsx)("h2",{className:"text-3xl mb-4",children:"Templates"}),(0,n.jsx)(b.default,{className:"p-7 text-base",children:"Ready-to-use examples and flexible customization"}),(0,n.jsx)("p",{className:"text-gray-600 mb-4 max-w-xl mx-auto",children:"Start with built-in templates for invoices, reports, tickets, statements, and banners, then adjust them to match your exact layout and brand."})]}),(0,n.jsxs)("div",{className:"mt-8",children:[(0,n.jsx)(eO,{effect:"coverflow",centeredSlides:!0,slidesPerView:3,initialSlide:2,loop:!0,spaceBetween:20,grabCursor:!0,navigation:!0,modules:[eD,eL],onInit:e=>{e.wrapperEl.style.marginLeft="0"},breakpoints:{0:{slidesPerView:1.15,spaceBetween:12},960:{slidesPerView:2.2,spaceBetween:18},1280:{slidesPerView:3,spaceBetween:20}},coverflowEffect:{rotate:0,stretch:8,depth:220,modifier:1,slideShadows:!1},className:"templates-swiper px-4 pb-6 max-w-184 overflow-visible!",children:e$.map(e=>(0,n.jsx)(ek,{className:"h-auto! overflow-visible!",children:(0,n.jsx
3s)("article",{className:"bg-white border border-gray-200 rounded-2xl shadow-md overflow-hidden",children:[(0,n.jsx)("div",{className:"relative aspect-12/7",children:(0,n.jsx)(eB.default,{src:e.image,alt:`${e.title} template preview`,fill:!0,className:"object-cover",sizes:"(max-width: 1280px) 33vw, 360px"})}),(0,n.jsx)("div",{className:"text-center p-3",children:(0,n.jsx)("h3",{className:"text-sm text-gray-700",children:e.title})})]})},e.title))}),(0,n.jsxs)("div",{className:"text-center max-w-3xl mx-auto mt-8",children:[(0,n.jsx)("p",{className:"text-gray-600 max-w-xl mx-auto",children:"Create your own templates with HTML editor, use variables and loops for dynamic data, and generate consistent PDF or screenshot outputs at scale."}),(0,n.jsxs)("p",{className:"text-gray-600 max-w-xl mx-auto mt-2",children:["More in the"," ",(0,n.jsxs)("a",{className:"inline-flex items-center gap-1 text-main-500 hover:underline",href:"https://docs.polydoc.tech/guides/templates/",target:"_blank",rel:"noopener noreferrer",children:["templates guide",(0,n.jsx)(l.FontAwesomeIcon,{icon:d.faArrowUpRightFromSquare,className:"text-xs"})]}),"."]})]})]})]})}),eV=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],eH=e=>e?6:5,eW=(e,t,i,s,r,n)=>{r&&(clearTimeout(r.t),cancelAnimationFrame(r.r));let a={$:t,status:eV[t],isEnter:t<3,isMounted:6!==t,isResolved:2===t||t>4},o=new Map(s.m);o.set(e,a),i(o),s.m=o,n?.({key:e,current:a})},eY=(e,t)=>!0===e||!!(e&&e[t]),eX="szh-accordion",eq="szh-adn",eU=`data-${eq}`,eJ=`data-${eq}-btn`,eQ=(0,u.createContext)({}),eK=(e,t,i)=>(s,r)=>{let n=t?`${e}__${t}`:e,a=n;
3i&&Object.keys(i).forEach(e=>{let t=i[e];t&&(a+=` ${n}--${!0===t?e:`${e}-${t}`}`)});let o="function"==typeof s?s(r):s;return"string"==typeof o&&(o=o.trim())&&(a+=` ${o}`),a},eZ=(e,t)=>{if(!t)return e;let i={...e};return Object.keys(t).forEach(s=>{let r=e[s],n=t[s];"function"==typeof n&&r?i[s]=(...e)=>{r(...e),n(...e)}:i[s]=n}),i},e0=e=>(0,n.jsx)(eQ.Provider,{...e}),e1=e=>{do e=e.parentElement;while(e&&!e.hasAttribute(eU))return e},e2=(e,t,i)=>e?t>0?t-1:i-1:(t+1)%i,e5=(e,t)=>{let{activeElement:i}=document;if(!i||!i.hasAttribute(eJ)||e1(i)!==t.currentTarget)return;let s=t.currentTarget.querySelectorAll(`[${eJ}]`),{length:r}=s;for(let n=0;n<r;n++)if(s[n]===i){let i=e2(e,n,r);for(;e1(s[n])!==e1(s[i]);)i=e2(e,i,r);n!==i&&(t.preventDefault(),s[i].focus());break}},e3=(0,u.forwardRef)(({providerValue:e,className:t,...i},s)=>{let{accordionProps:r}={accordionProps:{[eU]:"",onKeyDown:e=>"ArrowUp"===e.key?e5(!0,e):"ArrowDown"===e.key&&e5(!1,e)}};return(0,n.jsx)(e0,{value:e,children:(0,n.jsx)("div",{...eZ(r,i),ref:s,className:eK(eX)(t)})})});e3.displayName="ControlledAccordion";let e4=(0,u.forwardRef)(({allowMultiple:e,initialEntered:t,mountOnEnter:i,unmountOnExit:s,transition:r,transitionTimeout:a,onStateChange:o,...l},d)=>{let c=(({transition:e,transitionTimeout:t,...i}={})=>{let s=(({allowMultiple:e,enter:t=!0,exit:i=!0,preEnter:s,preExit:r,timeout:n,initialEntered:a,mountOnEnter:o,unmountOnExit:l,onStateChange:d}={})=>{let[c,h]=(0,u.useState)(new Map),[p]=(0,u.useState)({m:c,c:new Map}),[m,f]="object"==typeof n?[n.enter,n.exit]:[n,n],g=(0,u.useCallback)((e,t)=>{let{initialEntered:i=a}=t||{};eW(e,i?2:eH(o),h,p),p.c.set(e,{r:0})},[a,o,p]),v=(0,u.useCallback)(e=>{let t=new Map(p.m);return!!t.delete(e)&&(h(t),p.m=t,p.c.delete(e),!0)},[p]),x=(0,u.useCallback)(e=>{let t=p.m.get(e);if(!t)return;let i=((e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return eH(t)}})(t.$,l);i&&eW(e,i,h,p,p.c.get(e),d)},[d,l,p]),b=(0,u.useCallback)((n,a)=>{let o=p.m.get(n);if(!o)return;let c=p.c.get(n),u=e=>{switch(eW(n,e,h,p,c,d),e){case 1:m>=0&&(c.t=setTimeout(()=>x(n),m));break;case 4:f>=0&&(c.t=setTimeout(()=>x(n),f));break;case 0:case 3:var t;t=()=>u(e+1),c.r=requestAnimationFrame(()=>{c.r=requestAnimationFrame(t)})}},g=o.isEnter;"boolean"!=typeof a&&(a=!g),a?!g&&(u(t?+!s:2),e||p.m.forEach((e,t)=>t!==n&&b(t,!1))):g&&u(i?r?3:4:eH(l))},[p,d,x,e,t,i,s,r,m,f,l]);return{stateMap:c,toggle:b,toggleAll:(0,u.useCallback)(t=>{if(e||!1===t)for(let e of p.m.keys())b(e,t)},[e,b,p]),endTransition:x,setItem:g,deleteItem:v}})({timeout:t,enter:eY(e,"enter"),exit:eY(e,"exit"),preEnter:eY(e,"preEnter"),preExit:eY(e,"preExit"),...i});return{mountOnEnter:!!i.mountOnEnter,initialEntered:!!i.initialEntered,...s}})({allowMultiple:e,initialEntered:t,mountOnEnter:i,unmountOnExit:s,transition:r,transitionTimeout:a,onStateChange:o});return(0,n.jsx)(e3,{...l,ref:d,providerValue:c})});e4.displayName="Accordion";let e8=0,e9=u.default.useId||(()=>{let[e,t]=(0,u.useState)();return(0,u.useEffect)(()=>t(++e8),[]),e&&`szh-adn-${e}`}),e6="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u.useLayoutEffect:u.useEffect;function e7(e,t){"function"==typeof e?e(t):e.current=t}function te(e,t){return(0,u.useMemo)(()=>e?t?i=>{e7(e,i),e7(t,i)}:e:t,[e,t])}let tt=(e,t)=>"function"==typeof e?e(t):e,ti=(0,u.memo)(({forwardedRef:e,itemRef:t,state:i,toggle:s,className:r,disabled:a,header:o,headingTag:l="h3",headingProps:d,buttonProps:c,contentProps:h,panelProps:p,children:m,...f})=>{let g={state:i,toggle:s,disabled:a},{buttonProps:v,panelProps:x}=(({state:e,toggle:t,disabled:i})=>{let s=e9(),r=s&&s+"-",n={id:s,"aria-controls":r,"aria-expanded":e.isEnter,onClick:t};return i?n.disabled=!0:n[eJ]="",{buttonProps:n,panelProps:{id:r,"aria-labelledby":s,role:"region"}}})(g),[b,y]=(({status:e,isResolved:t})=>{let[i,s]=(0,u.useState)(),r=(0,u.useRef)(null);return e6(()=>{("preEnter"===e||"preExit"===e)&&s(r.current.getBoundingClientRect().height)},[e]),[{height:"preEnter"===e||"exiting"===e?0:"entering"===e||"preExit"===e?i:void 0,overflow:t?void 0:"hidden"},r]})(i),w=te(p?.ref,y),{status:S,isMounted:j,isEnter:T}=i;return(0,n.jsxs)("div",{...f,ref:te(e,t),className:eK(eX,"item",{status:S,exp
3anded:T})(r,i),children:[(0,n.jsx)(l,{...d,style:{margin:0,...d?.style},className:eK(eX,"item-heading")(d?.className,i),children:(0,n.jsx)("button",{...eZ(v,c),type:"button",className:eK(eX,"item-btn")(c?.className,i),children:tt(o,g)})}),j&&(0,n.jsx)("div",{...h,style:{display:"exited"===S?"none":void 0,...b,...h?.style},className:eK("szh-accordion","item-content")(h?.className,i),children:(0,n.jsx)("div",{...eZ(x,p),ref:w,className:eK("szh-accordion","item-panel")(p?.className,i),children:tt(m,g)})})]})});ti.displayName="AccordionItem";let ts=((r=(0,u.forwardRef)(({itemKey:e,initialEntered:t,...i},s)=>(0,n.jsx)(ti,{forwardedRef:s,...i,...(({itemKey:e,initialEntered:t,disabled:i}={})=>{let s=(0,u.useRef)(null),r=(0,u.useContext)(eQ),n=e??s.current,a=((e,t,i)=>{let{stateMap:s,mountOnEnter:r,initialEntered:n}=e,a=i??n;return s.get(t)||{status:a?"entered":r?"unmounted":"exited",isMounted:!r,isEnter:a,isResolved:!0}})(r,n,t),{setItem:o,deleteItem:l,toggle:d}=r;return(0,u.useEffect)(()=>{if(i)return;let r=e??s.current;return o(r,{initialEntered:t}),()=>void l(r)},[o,l,e,t,i]),{itemRef:s,state:a,toggle:(0,u.useCallback)(e=>d(n,e),[d,n])}})({itemKey:e,initialEntered:t,disabled:i.disabled})}))).displayName="WithAccordionItem",r),tr=({header:e,icon:t,secondaryIcon:i,...s})=>(0,n.jsx)(ts,{...s,header:({state:{isEnter:s}})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsxs)("span",{className:"fa-layers fa-fw fa-lg me-1",children:[(0,n.jsx)(l.FontAwesomeIcon,{icon:d.faCircle,className:"text-gray-500/10"}),i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.FontAwesomeIcon,{icon:t,transform:"shrink-8 left-3",className:"opacity-50"}),(0,n.jsx)(l.FontAwesomeIcon,{icon:i,transform:"shrink-8 right-3",className:"opacity-50"})]}):(0,n.jsx)(l.FontAwesomeIcon,{icon:t,transform:"shrink-8",className:"opacity-50"})]}),e]}),(0,n.jsx)(l.FontAwesomeIcon,{icon:d.faChevronDown,className:`ml-auto transition-transform duration-200 ease-out text-main-500 ${s&&"rotate-180"}`})]}),className:"join-item border-base-300 border border-b-0 last:border-b-2 bg-white/40 z-10",buttonProps:{className:({isEnter:e})=>`flex w-full p-4 text-left hover:bg-gray-50/50 ${e&&"bg-transparent bg-gray-50"}`},contentProps:{className:"transition-height duration-200 ease-out text-gray-500"},panelProps:{className:"p-4 *:mb-2 last:*:mb-0"}}),tn=()=>(0,n.jsx)("section",{id:"faq",children:(0,n.jsx)("div",{className:"container mx-auto max-w-4xl mb-10 px-4 sm:px-0",children:(0,n.jsxs)("div",{className:"flex flex-col lg:flex-row",children:[(0,n.jsx)("div",{className:"hidden lg:block lg:w-4/12",children:(0,n.jsx)(g,{rotate:15,radius:15,borderWidth:0,className:"w-96 h-96 mt-[5.3rem] pt-1 icon-zoom z-10",children:(0,n.jsx)(l.FontAwesomeIcon,{className:"text-main-500 text-9xl mt-22 ml-4",icon:d.faQuestion})})}),(0,n.jsxs)("div",{className:"w-full lg:w-8/12 justify-center",children:[(0,n.jsx)("h2",{className:"text-3xl mb-4 text-center",children:"FAQs"}),(0,n.jsx)("div",{className:"bg-white z-0",children:(0,n.jsxs)(e4,{className:"join join-vertical w-full",children:[(0,n.jsxs)(tr,{icon:d.fa1,header:"Can I try your service for free?",children:[(0,n.jsx)("p",{children:"Yes, absolutely! You can use our free plan (up to 150 conversions per month) for as long as you want. There is no credit card required to sign up, and you can upgrade to a paid plan as you grow."}),(0,n.jsx)("p",{children:"Additionally, we support sandbox conversions (see 8th question below for more information)."})]}),(0,n.jsxs)(tr,{icon:d.fa2,header:"What can I do with your service?",children:[(0,n.jsx)("p",{children:"Our API service allows you to automate the conversion of HTML content into high-quality PDFs or screenshots."}),(0,n.jsxs)("p",{children:["Practical use cases include generating"," ",(0,n.jsx)("strong",{children:"invoices"}),", ",(0,n.jsx)("strong",{children:"reports"}),","," ",(0,n.jsx)("strong",{children:"tickets"}),", ",(0,n.jsx)("strong",{children:"certificates"}),","," ",(0,n.jsx)("strong",{children:"marketing materials"}),","," ",(0,n.jsx)("strong",{children:"QR code"})," documents, and more."]}),(0,n.jsx)("p",{children:"This service can be integrated into larger workflows, supporting many automation tools to streamline your processes."})]}),(0,n.jsxs)(tr,{icon:d.fa3,header:"How do you handle data privacy?",children:[(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Privacy comes first."})," Our conversion API is built around a strict ",(0,n.jsx)("strong",{children:"encryption policy"}),","," ",(0,n.jsx)("strong",{children:"isolated rendering"}),", and a"," ",(0,n.jsx)("strong",{children:"stateless"})," design so your content is not kept around after the job finishes."]}),(0,n.jsxs)("ul",{className:"list-disc ms-6",children:[(0,n.jsxs)("li",{children:["Your data is"," ",(0,n.jsx)("strong",{children:"encrypted in-transit and at-rest"}),", and each conversion runs in an isolated environment."]}),(0,n.jsxs)("li",{children:["All processing runs on"," ",(0,n.jsx)("strong",{children:"EU-based infrastru
3cture"})," (servers in Germany), and every infrastructure sub-processor is in the EU/EEA. Your content never leaves the EU/EEA."]}),(0,n.jsx)("li",{children:"Conversion data is removed from our systems when the job completes."}),(0,n.jsxs)("li",{children:["Optional ",(0,n.jsx)("strong",{children:"your cloud (presigned URL)"}),": we can upload the result directly into storage you control — see our docs for setup. We do not offer PolyDoc-hosted file storage as a product."]})]}),(0,n.jsx)("p",{children:"Together, this keeps the process predictable and limits exposure of your data after conversion."})]}),(0,n.jsxs)(tr,{icon:d.fa4,header:"Does the source page need to be public?",children:[(0,n.jsx)("p",{children:"No, absolutely not. Instead of sending a URL, you can provide the raw HTML content in order to convert private or local content."}),(0,n.jsxs)("p",{children:["For URL sources, we also support"," ",(0,n.jsx)("strong",{children:"basic authentication"})," and"," ",(0,n.jsx)("strong",{children:"web-based login"}),", as well as custom cookies and HTTP headers."]}),(0,n.jsxs)("p",{children:["Additionally, you can make use of our"," ",(0,n.jsx)("strong",{children:"template"})," feature for your conversions."]})]}),(0,n.jsxs)(tr,{icon:d.fa5,header:"What about the conversion timeout?",children:[(0,n.jsx)("p",{children:"The default maximum timeout for a conversion is 10 minutes (for a paid plan) respectively 30 seconds (for the free plan). The conversion process needs to be completed within this time frame."}),(0,n.jsx)("p",{children:"An usual conversion takes only a few seconds, so this gives plenty of time for the conversion to complete. If you have specific needs, you can always reach out to us."})]}),(0,n.jsxs)(tr,{icon:d.fa6,header:"How are conversions counted?",children:[(0,n.jsx)("p",{children:"Each PDF or screenshot conversion counts usually as one."}),(0,n.jsx)("p",{children:"For larger files, each 5MB chunk of the resulting file counts as one conversion. For example, a resulting 14MB file would count as 3 conversions."})]}),(0,n.jsxs)(tr,{icon:d.fa7,header:"What happens if my conversion limit is exceeded?",children:[(0,n.jsx)("p",{children:"No problem if you exceed your monthly limit from time to time. We have a friendly overage policy to have your back."}),(0,n.jsx)("p",{children:"You can use up to 30% of your monthly limit as overage, for up to 4 months in any 12-month period."}),(0,n.jsx)("p",{children:"Further, we will send you email notifications when you approach your limit."}),(0,n.jsx)("p",{children:"Feel free to reach out if you have individual needs or other questions."})]}),(0,n.jsxs)(tr,{icon:d.fa8,header:"Do you support sandbox conversions?",children:[(0,n.jsx)("p",{children:"Yes, we do. Sandbox conversions are free and do not count towards your monthly limit. Sandbox mode is useful for integration testing and development purposes. PDFs or screenshots created in sandbox mode contain a watermark."}),(0,n.jsx)("p",{children:"The monthly limit for sandbox conversions is 10 times your monthly limit for production conversions."})]}),(0,n.jsxs)(tr,{icon:d.fa9,header:"What paper sizes and formats are supported?",children:[(0,n.jsxs)("p",{children:["We support all standard paper sizes including"," ",(0,n.jsx)("strong",{children:"A0 through A6"}),", ",(0,n.jsx)("strong",{children:"Letter"}),","," ",(0,n.jsx)("strong",{children:"Legal"}),", ",(0,n.jsx)("strong",{children:"Tabloid"}),", and"," ",(0,n.jsx)("strong",{children:"Ledger"}),"."]}),(0,n.jsxs)("p",{children:["You can also specify ",(0,n.jsx)("strong",{children:"custom dimensions"})," ","(width and height) for any page size you need. Landscape orientation, custom margins, and scale factors are all supported."]})]}),(0,n.jsxs)(tr,{icon:d.fa1,secondaryIcon:d.fa0,header:"Do you support PDF/A, PDF/UA, and e-invoicing?",children:[(0,n.jsxs)("p",{children:["Yes. We generate ",(0,n.jsx)("strong",{children:"PDF/A-1b, 2b, and 3b"})," output for long-term document archival. Turn on the optional"," ",(0,n.jsx)("strong",{children:"veraPDF check"})," and a document that does not pass comes back as a 422 error instead of a PDF, so a bad file never reaches your archive."]}),(0,n.jsxs)("p",{children:["For accessibility we generate tagged PDFs targeting"," ",(0,n.jsx)("strong",{children:"PDF/UA-1"})," (ISO 14289-1), with optional VeraPDF validation of the machine-checkable rules. Passing validation covers the machine-checkable part; content-dependent accessibility (alt-text quality, reading order, heading structure) depends on your source HTML and stays your responsibility."]}),(0,n.jsxs)("p",{children:["Both can be requested in the same call. The archival conversion runs first and the accessibility pass preserves it, so one file comes back as"," ",(0,n.jsx)("strong",{children:"PDF/A and PDF/UA-1"})," at once, at any of the three PDF/A levels. Turn on both veraPDF checks and each profile is validated against the bytes you receive."]}),(0,n.jsxs)("p",{children:["We also support ",(0,n.jsx)("strong",{children:"Factur-X"})," and"," ",(0,n.jsx)("strong",{children:"ZUGFeRD"})," e-invoicing standards, allowing you to create hybrid PDF invoices with embedded structured XML data following ",(0,n.jsx)("strong",{children:"EN 16931"})," profiles. Those are PDF/A-3b, so the accessibility pass applies to them too."]})]}),(0,n.jsxs)(tr,{icon:d.fa1,secondaryIcon:d.fa1,header:"What programming languages can I use?",children:[(0,n.jsxs)("p",{children:["Our service is a standard REST API, so you can use"," ",(0,n.jsx)("strong",{children:"any programming language"})," that supports HTTP requests."]}),(0,n.jsxs)("p",{children:["We provide documentation and examples for"," ",(0,n.jsx)("strong",{children:"Node.js"}),", ",(0,n.jsx)("strong",{children:"Python"}),","," ",(0,n.jsx)("strong",{children:"Ruby"}),", ",(0,n.jsx)("strong",{children:"Go"}),","," ",(0,n.jsx)("strong",{children:"PHP"}),", and ",(0,n.jsx)("strong",{children:"Rust"}),", but you can integrate with any language or platform."]})]}),(0,n.jsxs)(tr,{icon:d.fa1,secondaryIcon:d.fa2,header:"How do templates work?",children:[(0,n.jsxs)("p",{children:["You can create and manage HTML templates directly in the dashboard using a built-in"," ",(0,n.jsx)("strong",{children:"Monaco code editor"}),". Templates use the"," ",(0,n.jsx)("strong",{children:"Liquid"})," templating language, supporting variables, loops, and conditionals."]}),(0,n.jsxs)("p",{children:["At conversion time, pass your dynamic data as JSON via the"," ",(0,n.jsx)("strong",{children:"templateData"})," parameter, and the template will be rendered with your data before conversion."]})]}),(0,n.jsxs)(tr,{icon:d.fa1,secondaryIcon:d.fa3,header:"Is there a dashboard?",children:[(0,n.jsx)("p",{children:"Yes! The dashboard provides a full-featured management interface, including:"}),(0,n.jsxs)("ul",{className:"list-disc ms-6",children:[(0,n.jsxs)("li",{children:[(0,n.jsx)("strong",{children:"API key management"})," for creating and managing your access tokens"]}),(0,n.jsxs)("li",{children:[(0,n.jsx)("strong",{children:"Template editor"})," with syntax highlighting and live preview"]}),(0,n.jsxs)("li",{children:[(0,n.jsx)("strong",{children:"Playground"})," for testing conversions with real-time PDF and screenshot preview"]}),(0,n.jsxs)("li",{children:[(0,n.jsx)("strong",{children:"Conversion analytics"})," with charts, filtering, and CSV export"]}),(0,n.jsxs)("li",{children:[(0,n.jsx)("strong",{children:"Usage monitoring"})," with quota tracking and overage visibility"]})]})]}),(0,n.jsxs)(tr,{icon:d.fa1,secondaryIcon:d.fa4,header:"How does webhook delivery work?",children:[(0,n.jsxs)("p",{children:["Instead of receiving the conversion result synchronously, you can provide a ",(0,n.jsx)("strong",{children:"webhook URL"})," and we will deliver the result to your endpoint asynchronously."]}),(0,n.jsxs)("p",{children:["Webhook payloads are signed with"," ",(0,n.jsx)("strong",{children:"HMAC-SHA256"})," using your unique signature secret, so you can verify the authenticity of every delivery. You can configure the HTTP method, custom headers, timeout, and retries."]})]}),(0,n.jsxs)(tr,{icon:d.fa1,secondaryIcon:d.fa5,header:"What cloud storage providers are supported?",children:[(0,n.jsxs)("p",{children:["Use ",(0,n.jsx)("strong",{children:"your cloud (presigned URL)"}),": you create a ",(0,n.jsx)("strong",{children:"presigned PUT URL"})," from your provider, pass it in the API request, and we upload the generated file there after conversion. PolyDoc does not run a hosted storage product for your outputs — this option is for teams who want files to land directly in buckets or accounts they already use, in line with our privacy-first design."]}),(0,n.jsx)("p",{children:"Guides are available for common S3-compatible providers, for example:"}),(0,n.jsxs)("ul",{className:"list-disc ms-6",children:[(0,n.jsx)("li",{children:(0,n.jsx)("strong",{children:"AWS S3"})}),(0,n.jsx)("li",{children:(0,n.jsx)("strong",{children:"Google Cloud Storage"})}),(0,n.jsx)("li",{children:(0,n.jsx)("strong",{children:"Microsoft Azure Blob Storage"})}),(0,n.jsx)("li",{children:(0,n.jsx)("strong",{children:"Backblaze B2"})}),(0,n.jsx)("li",{children:(0,n.jsx)("strong",{children:"Wasabi"})}),(0,n.jsx)("li",{children:(0,n.jsx)("strong",{children:"Rabata.io"})})]})]})]})}),(0,n.jsx)("div",{className:"text-center text-gray-500 text-sm mt-3 mb-1",children:"Any other questions?"}),(0,n.jsx)("div",{className:"text-center",children:(0,n.jsx)(eI,{onClick:()=>(0,c.openChatwootChat)(),children:"Contact Us"})})]})]})})});e.i(39327).config.autoAddCss=!1;let ta="PolyDoc - HTML to PDF & Screenshot API",to="Convert HTML to PDF and screenshots with a reliable REST API. Build automated document workflows with templates, webhooks, and cloud storage.",tl="https://polydoc.tech/",td="https://polydoc.tech/og.png",tc="https://polydoc.tech/#organization",tu={"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":tc,name:"PolyDoc",alternateName:"PolyDoc API",url:tl,logo:"https://polydoc.tech/logo.png",description:"HTML to PDF and screenshot REST API with PDF/A, PDF/UA and e-invoice output, hosted in the EU.",sameAs:["https://github.com/polydoc-tech","https://peerlist.io/to21as/project/polydoc--html-to-pdf--screenshot-api"]},{"@type":"SoftwareApplication",name:"PolyDoc",applicationCategory:"DeveloperApplication",description:to,url:tl,publisher:{"@id":tc}}]};e.s(["default",0,function(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.default,{children:[(0,n.jsx)("title",{children:ta}),(0,n.jsx)("meta",{name:"description",content:to}),(0,n.jsx)("link",{rel:"canonical",href:tl}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:site_name",content:"PolyDoc"}),(0,n.jsx)("meta",{property:"og:title",content:ta}),(0,n.jsx)("meta",{property:"og:description",content:to}),(0,n.jsx)("meta",{property:"og:url",content:tl}),(0,n.jsx)("meta",{property:"og:image",content:td}),(0,n.jsx)("meta",{property:"og:image:alt",content:"PolyDoc - HTML to PDF & Screenshot API"}
3),(0,n.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,n.jsx)("meta",{property:"og:image:height",content:"630"}),(0,n.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,n.jsx)("meta",{name:"twitter:title",content:ta}),(0,n.jsx)("meta",{name:"twitter:description",content:to}),(0,n.jsx)("meta",{name:"twitter:image",content:td}),(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(tu).replace(/</g,"\\u003c")}})]}),(0,n.jsx)(o.default,{children:(0,n.jsxs)("main",{className:"flex-grow container mx-auto p-4",children:[(0,n.jsx)(w,{}),(0,n.jsx)(P,{}),(0,n.jsx)(eR,{}),(0,n.jsx)(eG,{}),(0,n.jsx)(tn,{})]})})]})}],74459)},3439,(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",()=>e.r(74459)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push(["/"])})}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.