repo_id
stringlengths
22
103
file_path
stringlengths
41
147
content
stringlengths
181
193k
__index_level_0__
int64
0
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/device_orientation_events/index.md
--- title: Device orientation events slug: Web/API/Device_orientation_events page-type: web-api-overview browser-compat: - api.Window.deviceorientation_event - api.Window.devicemotion_event - api.Window.deviceorientationabsolute_event - api.DeviceOrientationEvent - api.DeviceMotionEvent - api.DeviceMotionEventAcceleration - api.DeviceMotionEventRotationRate spec-urls: https://w3c.github.io/deviceorientation/ --- {{DefaultAPISidebar("Device Orientation Events")}}{{securecontext_header}} Device orientation events are events that allow you to [detect a device's physical orientation](/en-US/docs/Web/API/Device_orientation_events/Detecting_device_orientation#processing_orientation_events), as well as allowing you to [detect the device's motion](/en-US/docs/Web/API/Device_orientation_events/Detecting_device_orientation#processing_motion_events). ## Concepts and usage Mobile devices commonly have sensors such as gyroscopes, compasses, and accelerometers that can enable applications running on the device to detect the device's orientation and motion. The device orientation events enable you to write web applications that can change their behavior based on the orientation of the user's device, and that can react when the user moves their device. Some typical features for which you might want to use the device orientation events include: - in web-based games, to enable the user to control the motion of characters or objects in the game by tilting and moving the device - in mapping applications, to re-orient a map based on the device's position, or to provide turn-by-turn directions that update with the user's movements - for gesture recognition — for example, recognizing a "shake" gesture and using it to perform some action such as clearing an input area when the user shakes the device > **Note:** This API is widely supported on mobile browsers. While some desktop-only browsers may have limitations due to hardware differences, these constraints are rarely significant given the API's primary usage on sensor-equipped devices. ## Interfaces - {{domxref("DeviceMotionEvent")}} - : Represents changes in the acceleration of a device, as well as the rotation rate. - {{domxref("DeviceMotionEventAcceleration")}} - : Represents the amount of acceleration the device is experiencing along all three axes - {{domxref("DeviceMotionEventRotationRate")}} - : Represents the rate at which the device is rotating around all three axes. - {{domxref("DeviceOrientationEvent")}} - : Represents changes in the physical orientation of a device. ### Extensions to other interfaces - {{domxref("Window.devicemotion_event", "devicemotion")}} event - : Fired at a regular interval to indicate the amount of physical force of acceleration the device is receiving at that time, and the rate of rotation of the device. - {{domxref("Window.deviceorientation_event", "deviceorientation")}} event - : Fired when fresh data is available from the device about the current orientation of the device as compared to the Earth coordinate frame. - {{domxref("Window.deviceorientationabsolute_event", "deviceorientationabsolute")}} event - : Fired when absolute device orientation changes. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [Device Orientation & Motion](https://web.dev/articles/device-orientation) at web.dev
0
data/mdn-content/files/en-us/web/api/device_orientation_events
data/mdn-content/files/en-us/web/api/device_orientation_events/orientation_and_motion_data_explained/index.md
--- title: Orientation and motion data explained slug: Web/API/Device_orientation_events/Orientation_and_motion_data_explained page-type: guide --- {{DefaultAPISidebar("Device Orientation Events")}}{{securecontext_header}} When using orientation and motion events, it's important to understand what the values you're given by the browser mean. This article provides details about the coordinate systems at play and how you use them. ## About coordinate frames A **coordinate frame** is a system whereby the orientation of the three axes (X, Y, and Z) are defined in reference to an object. There are two coordinate frames to consider when using orientation and motion events: ### Earth coordinate frame The Earth coordinate frame is the coordinate frame fixed on the center of the Earth; that is, the axes are aligned based on the pull of gravity and the standard magnetic north orientation. We use upper-case letters ("X", "Y", and "Z") to describe the axes of the Earth coordinate frame. - The **X** axis follows along the ground plane, perpendicular to the Y axis and positive toward the east (and therefore negative toward the west). - The **Y** axis follows along the ground plane, and is positive toward true north (that is, the North Pole, not magnetic north) and negative toward true south. - The **Z** axis is perpendicular to the ground plane; think of it as a line drawn between the device and the center of the Earth. The value of the Z coordinate is positive upward (away from the center of the Earth) and negative downward (toward the center of the Earth). ### Device coordinate frame The device coordinate frame is the coordination frame fixed on the center of the device. We use lower-case letters ("x", "y", and "z") to describe the axes of the device coordinate frame. ![Drawing representing three axes of a mobile device](axes.png) - The **x** axis is in the plane of the screen and is positive toward the right and negative toward the left. - The **y** axis is in the plane of the screen and is positive toward the top and negative toward the bottom. - The **z** axis is perpendicular to the screen or keyboard, and is positive extending outward from the screen. > **Note:** On a phone or tablet, the orientation of the device is always considered in relation to the standard orientation of the screen; this is the "portrait" orientation on most devices. On a laptop computer, the orientation is considered in relation to the keyboard. If you want to detect changes in device orientation in order to compensate, you can use the [`change`](/en-US/docs/Web/API/ScreenOrientation/change_event) event. ## About rotation Rotation is described about any given axis in terms of the number of degrees of difference between the device's coordinate frame and the Earth coordinate frame, and is measured in degrees. ### Alpha Rotation around the z axis — that is, twisting the device — causes the **alpha** rotation angle to change: ![Positive alpha rotates the device counter-clockwise.](alpha.png) The alpha angle is 0° when top of the device is pointed directly toward the Earth's north pole, and increases as the device is rotated counterclockwise. As such, 90° corresponds with pointing west, 180° with south, and 270° with east. ### Beta Rotation around the x axis — that is, tipping the device away from or toward the user — causes the **beta** rotation angle to change: ![Positive beta pitches the device forward toward the user.](beta2.png) The beta angle is 0° when the device's top and bottom are the same distance from the Earth's surface; it increases toward 180° as the device is tipped forward toward the user, and it decreases toward -180° as the device is tipped backward away from the user. ### Gamma Rotation around the y axis — that is, tilting the device toward the left or right — causes the **gamma** rotation angle to change: ![Positive gamma tilts the devices toward the right.](gamma.png) The gamma angle is 0° when the device's left and right sides are the same distance from the surface of the Earth, and increases toward 90° as the device is tipped toward the right, and toward -90° as the device is tipped toward the left.
0
data/mdn-content/files/en-us/web/api/device_orientation_events
data/mdn-content/files/en-us/web/api/device_orientation_events/detecting_device_orientation/index.md
--- title: Detecting device orientation slug: Web/API/Device_orientation_events/Detecting_device_orientation page-type: guide browser-compat: - api.DeviceMotionEvent - api.DeviceOrientationEvent --- {{DefaultAPISidebar("Device Orientation Events")}}{{securecontext_header}} Increasingly, web-enabled devices are capable of determining their **orientation**; that is, they can report data indicating changes to their orientation with relation to the pull of gravity. In particular, hand-held devices such as mobile phones can use this information to automatically rotate the display to remain upright, presenting a wide-screen view of the web content when the device is rotated so that its width is greater than its height. There are two JavaScript events that handle orientation information. The first one is the {{domxref("DeviceOrientationEvent")}}, which is sent when the accelerometer detects a change to the orientation of the device. By receiving and processing the data reported by these orientation events, it's possible to interactively respond to rotation and elevation changes caused by the user moving the device. The second event is the {{domxref("DeviceMotionEvent")}}, which is sent when a change in acceleration was added. It is different from the {{domxref("DeviceOrientationEvent")}} because it is listening for changes in acceleration as opposed to orientation. Sensors that are commonly capable of detecting {{domxref("DeviceMotionEvent")}} include sensors in laptops to protect moving storage devices. {{domxref("DeviceOrientationEvent")}} is more commonly found in mobile devices. ## Processing orientation events All you need to do in order to begin receiving orientation change is to listen to the {{domxref("Window.deviceorientation_event", "deviceorientation")}} event: ```js window.addEventListener("deviceorientation", handleOrientation, true); ``` After registering your event listener (in this case, a JavaScript function called `handleOrientation()`), your listener function periodically gets called with updated orientation data. The orientation event contains four values: - {{domxref("DeviceOrientationEvent.absolute")}} - {{domxref("DeviceOrientationEvent.alpha")}} - {{domxref("DeviceOrientationEvent.beta")}} - {{domxref("DeviceOrientationEvent.gamma")}} The event handler function can look something like this: ```js function handleOrientation(event) { const absolute = event.absolute; const alpha = event.alpha; const beta = event.beta; const gamma = event.gamma; // Do stuff with the new orientation data } ``` > **Note:** [parallax](https://github.com/wagerfield/parallax) is a polyfill for normalizing the accelerometer and gyroscope data on mobile devices. This is useful for overcoming some of the differences in device support for device orientation. ### Orientation values explained The value reported for each axis indicates the amount of rotation around a given axis in reference to a standard coordinate frame. These are described in greater detail in the [Orientation and motion data explained](/en-US/docs/Web/API/Device_orientation_events/Orientation_and_motion_data_explained) article which is summarized below. - The {{domxref("DeviceOrientationEvent.alpha")}} value represents the motion of the device around the z axis, represented in degrees with values ranging from 0 (inclusive) to 360 (exclusive). - The {{domxref("DeviceOrientationEvent.beta")}} value represents the motion of the device around the x axis, represented in degrees with values ranging from -180 (inclusive) to 180 (exclusive). This represents a front to back motion of the device. - The {{domxref("DeviceOrientationEvent.gamma")}} value represents the motion of the device around the y axis, represented in degrees with values ranging from -90 (inclusive) to 90 (exclusive). This represents a left to right motion of the device. ### Orientation example This example will work on any browser supporting the {{domxref("Window.deviceorientation_event", "deviceorientation")}} event and running on a device able to detect its orientation. So let's imagine a ball in a garden: ```html <div class="garden"> <div class="ball"></div> </div> Hold the device parallel to the ground. Rotate along its x and y axes to see the ball move up/down and left/right respectively. <pre class="output"></pre> ``` This garden is 200 pixel wide (yes, it's a tiny one), and the ball is in the center: ```css .garden { position: relative; width: 200px; height: 200px; border: 5px solid #ccc; border-radius: 10px; } .ball { position: absolute; top: 90px; left: 90px; width: 20px; height: 20px; background: green; border-radius: 100%; } ``` Now, if we move our device, the ball will move accordingly: ```js const ball = document.querySelector(".ball"); const garden = document.querySelector(".garden"); const output = document.querySelector(".output"); const maxX = garden.clientWidth - ball.clientWidth; const maxY = garden.clientHeight - ball.clientHeight; function handleOrientation(event) { let x = event.beta; // In degree in the range [-180,180) let y = event.gamma; // In degree in the range [-90,90) output.textContent = `beta: ${x}\n`; output.textContent += `gamma: ${y}\n`; // Because we don't want to have the device upside down // We constrain the x value to the range [-90,90] if (x > 90) { x = 90; } if (x < -90) { x = -90; } // To make computation easier we shift the range of // x and y to [0,180] x += 90; y += 90; // 10 is half the size of the ball // It centers the positioning point to the center of the ball ball.style.left = `${(maxY * y) / 180 - 10}px`; // rotating device around the y axis moves the ball horizontally ball.style.top = `${(maxX * x) / 180 - 10}px`; // rotating device around the x axis moves the ball vertically } window.addEventListener("deviceorientation", handleOrientation); ``` {{LiveSampleLink("Orientation_example", "Click here")}} to open this example in a new window; because {{domxref("Window.deviceorientation_event", "deviceorientation")}} doesn't work in a cross-origin {{HTMLElement("iframe")}} in all browsers. {{EmbedLiveSample('Orientation_example', '230', '260')}} ## Processing motion events Motion events are handled the same way as the orientation events except that they have their own event's name: {{domxref("Window.devicemotion_event", "devicemotion")}} ```js window.addEventListener("devicemotion", handleMotion, true); ``` What's really changed are the information provided within the {{domxref("DeviceMotionEvent")}} object passed as a parameter of the event listener (`handleMotion()` in our example). The motion event contains four properties: - {{domxref("DeviceMotionEvent.acceleration")}} - {{domxref("DeviceMotionEvent.accelerationIncludingGravity")}} - {{domxref("DeviceMotionEvent.rotationRate")}} - {{domxref("DeviceMotionEvent.interval")}} ### Motion values explained The {{domxref("DeviceMotionEvent")}} objects provide web developers with information about the speed of changes for the device's position and orientation. The changes are provided along three axis (see [Orientation and motion data explained](/en-US/docs/Web/API/Device_orientation_events/Orientation_and_motion_data_explained) for details). For {{domxref("DeviceMotionEvent.acceleration","acceleration")}} and {{domxref("DeviceMotionEvent.accelerationIncludingGravity","accelerationIncludingGravity")}}, those axes correspond to the following: - `x` - : Represents the axis from West to East - `y` - : Represents the axis from South to North - `z` - : Represents the axis perpendicular to the ground For {{domxref("DeviceMotionEvent.rotationRate","rotationRate")}}, the situation is a bit different; the information corresponds to the following in each case: - `alpha` - : Represents a rotation rate along the axis perpendicular to the screen (or keyboard for desktop). - `beta` - : Represents a rotation rate along the axis going from left to right of the plane of the screen (or keyboard for desktop). - `gamma` - : Represents a rotation rate along the axis going from bottom to top of the plane of the screen (or keyboard for desktop). Finally, {{domxref("DeviceMotionEvent.interval","interval")}} represents the interval of time, in milliseconds, at which data are obtained from the device. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{domxref("DeviceOrientationEvent")}} - {{domxref("DeviceMotionEvent")}} - [Orientation and motion data explained](/en-US/docs/Web/API/Device_orientation_events/Orientation_and_motion_data_explained) - [Using deviceorientation in 3D Transforms](/en-US/docs/Web/API/Device_orientation_events/Using_device_orientation_with_3D_transforms) - [Cyber Orb: 2D maze game with device orientation](/en-US/docs/Games/Tutorials/HTML5_Gamedev_Phaser_Device_Orientation)
0
data/mdn-content/files/en-us/web/api/device_orientation_events
data/mdn-content/files/en-us/web/api/device_orientation_events/using_device_orientation_with_3d_transforms/index.md
--- title: Using device orientation with 3D transforms slug: Web/API/Device_orientation_events/Using_device_orientation_with_3D_transforms page-type: guide --- {{DefaultAPISidebar("Device Orientation Events")}}{{securecontext_header}} This article provides tips on how to use device orientation information in tandem with CSS 3D transforms. ## Using orientation to rotate an element The easiest way to convert [orientation data](/en-US/docs/Web/API/Window/deviceorientation_event) to a [3D transform](/en-US/docs/Web/CSS/transform) is basically to use the `alpha`, `gamma`, and `beta` values as `rotateZ`, `rotateX` and `rotateY` values. It is important to keep in mind, however, that the [Device Orientation coordinate system](/en-US/docs/Web/API/Device_orientation_events/Orientation_and_motion_data_explained) is different from the [CSS coordinate system](/en-US/docs/Web/CSS/CSSOM_view/Coordinate_systems). Namely, the former is [right-handed](https://en.wikipedia.org/wiki/Right-hand_rule) and its Y axis is positive upwards, while the latter is a left-handed coordinate system whose Y axis is positive to the bottom. Furthermore, the Device Orientation angle rotations should always be done in a Z - X' - Y'' order that does not match the order of some [CSS Transforms](/en-US/docs/Web/CSS/CSS_transforms). These are some of the practical consequences of these differences: - The order of angle rotations matters, so make sure the alpha, beta and gamma rotations are applied in this order. - The [`rotate3d()`](/en-US/docs/Web/CSS/transform-function/rotate3d) CSS transformation, and the [`DOMMatrixReadOnly.rotate()`](/en-US/docs/Web/API/DOMMatrixReadOnly/rotate) and [`DOMMatrix.rotateSelf()`](/en-US/docs/Web/API/DOMMatrix/rotateSelf) functions apply angle rotations in a Z - Y' - X'' order, so it is not possible to apply the alpha, beta and gamma rotations in the right order with a single call to any of them. Instead, you should rotate each axis individually in the correct order. - Due to the differences in coordinate systems outlined above, when looking towards the origin rotations are applied clockwise around in CSS and counter-clockwise in the Device Orientation spec. This means alpha and beta need to be inverted (the rotations around Z and X), because they point to different directions in the two coordinate systems. However, gamma (the rotation around Y) should be kept as is. Here is a code snippet to sum it up: ```js const elem = document.getElementById("view3d"); window.addEventListener("deviceorientation", (e) => { elem.style.transform = `rotateZ(${-e.alpha}deg) rotateX(${-e.beta}deg) rotateY(${ e.gamma }deg)`; }); ``` ## Convert from `rotate3d()` angles to `deviceorientation` angles Should you ever need to convert a rotate3d axis-angle to orientation [Euler angles](https://en.wikipedia.org/wiki/Euler_angles), used by `deviceorientation`, you can use the following algorithm: ```js // convert a rotate3d axis-angle to deviceorientation angles function orient(aa) { const x = aa.x, y = aa.y, z = aa.z, a = aa.a, c = Math.cos(aa.a), s = Math.sin(aa.a), t = 1 - c, // axis-angle to rotation matrix rm00 = c + x * x * t, rm10 = z * s + y * x * t, rm20 = -y * s + z * x * t, rm01 = -z * s + x * y * t, rm11 = c + y * y * t, rm21 = x * s + z * y * t, rm02 = y * s + x * z * t, rm12 = -x * s + y * z * t, rm22 = c + z * z * t, TO_DEG = 180 / Math.PI, ea = [], n = Math.hypot(rm22, rm20); // rotation matrix to Euler angles ea[1] = Math.atan2(-rm21, n); if (n > 0.001) { ea[0] = Math.atan2(rm01, rm11); ea[2] = Math.atan2(rm20, rm22); } else { ea[0] = 0; ea[2] = (rm21 > 0 ? 1 : -1) * Math.atan2(-rm10, rm00); } return { alpha: -ea[0] * TO_DEG - 180, beta: -ea[1] * TO_DEG, gamma: ea[2] * TO_DEG, }; } ``` ## See also - [Using CSS transforms](/en-US/docs/Web/CSS/CSS_transforms/Using_CSS_transforms) - [Detecting device orientation](/en-US/docs/Web/API/Device_orientation_events/Detecting_device_orientation)
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/aescbcparams/index.md
--- title: AesCbcParams slug: Web/API/AesCbcParams page-type: web-api-interface spec-urls: https://w3c.github.io/webcrypto/#dfn-AesCbcParams --- {{ APIRef("Web Crypto API") }} The **`AesCbcParams`** dictionary of the [Web Crypto API](/en-US/docs/Web/API/Web_Crypto_API) represents the object that should be passed as the `algorithm` parameter into {{domxref("SubtleCrypto.encrypt()")}}, {{domxref("SubtleCrypto.decrypt()")}}, {{domxref("SubtleCrypto.wrapKey()")}}, or {{domxref("SubtleCrypto.unwrapKey()")}}, when using the [AES-CBC](/en-US/docs/Web/API/SubtleCrypto/encrypt#aes-cbc) algorithm. ## Instance properties - `name` - : A string. This should be set to `AES-CBC`. - `iv` - : An {{jsxref("ArrayBuffer")}}, a {{jsxref("TypedArray")}}, or a {{jsxref("DataView")}}. The initialization vector. Must be 16 bytes, unpredictable, and preferably cryptographically random. However, it need not be secret (for example, it may be transmitted unencrypted along with the ciphertext). ## Examples See the examples for {{domxref("SubtleCrypto.encrypt()")}} and {{domxref("SubtleCrypto.decrypt()")}}. ## Specifications {{Specifications}} ## Browser compatibility Browsers that support the "AES-CBC" algorithm for the {{domxref("SubtleCrypto.encrypt()")}}, {{domxref("SubtleCrypto.decrypt()")}}, {{domxref("SubtleCrypto.wrapKey()")}}, or {{domxref("SubtleCrypto.unwrapKey()")}} methods will support this type. ## See also - CBC mode is defined in section 6.2 of the [NIST SP800-38A standard](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38a.pdf#%5B%7B%22num%22%3A70%2C%22gen%22%3A0%7D%2C%7B%22name%22%3A%22Fit%22%7D%5D). - {{domxref("SubtleCrypto.encrypt()")}}. - {{domxref("SubtleCrypto.decrypt()")}}. - {{domxref("SubtleCrypto.wrapKey()")}}. - {{domxref("SubtleCrypto.unwrapKey()")}}.
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/xrcubelayer/index.md
--- title: XRCubeLayer slug: Web/API/XRCubeLayer page-type: web-api-interface status: - experimental browser-compat: api.XRCubeLayer --- {{securecontext_header}}{{APIRef("WebXR Device API")}}{{SeeCompatTable}} The **`XRCubeLayer`** interface of the [WebXR Device API](/en-US/docs/Web/API/WebXR_Device_API) is a layer that renders directly from a [cubemap](https://en.wikipedia.org/wiki/Cube_mapping) and projects it onto the inside faces of a cube. `XRCubeLayer` requires the `layers` feature to be enabled for the {{domxref("XRSession")}}. You can request it in {{domxref("XRSystem.requestSession()")}}. To create a new `XRCubeLayer`, call {{domxref("XRWebGLBinding.createCubeLayer()")}}. To present layers to the XR device, add them to the `layers` render state using {{domxref("XRSession.updateRenderState()")}}. {{InheritanceDiagram}} ## Instance properties _Inherits properties from its parent, {{domxref("XRCompositionLayer")}}._ - {{domxref("XRCubeLayer.space")}} {{Experimental_Inline}} - : An {{domxref("XRSpace")}} representing the layer's spatial relationship with the user's physical environment. - {{domxref("XRCubeLayer.orientation")}} {{Experimental_Inline}} - : A {{domxref("DOMPointReadOnly")}} representing the orientation relative to the `space` property. ## Instance methods _Inherits methods from its parents, {{domxref("XRCompositionLayer")}} and {{domxref("EventTarget")}}_. ## Events - {{domxref("XRCubeLayer.redraw_event", "redraw")}} {{Experimental_Inline}} - : Sent to the `XRCubeLayer` object when the underlying resources of the layer are lost or when the XR Compositor can no longer reproject the layer. If this event is sent, authors should redraw the content of the layer in the next XR animation frame. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{domxref("XRLayer")}} - {{domxref("EventTarget")}} - {{domxref("XRCompositionLayer")}} - {{domxref("XREquirectLayer")}} - {{domxref("XRQuadLayer")}} - {{domxref("XRCylinderLayer")}} - {{domxref("XRProjectionLayer")}}
0
data/mdn-content/files/en-us/web/api/xrcubelayer
data/mdn-content/files/en-us/web/api/xrcubelayer/orientation/index.md
--- title: "XRCubeLayer: orientation property" short-title: orientation slug: Web/API/XRCubeLayer/orientation page-type: web-api-instance-property status: - experimental browser-compat: api.XRCubeLayer.orientation --- {{APIRef("WebXR Device API")}}{{SeeCompatTable}} The **`orientation`** property of the {{domxref("XRCubeLayer")}} interface represents the orientation relative to the `space` property. ## Value A {{domxref("DOMPointReadOnly")}}. ## Examples ### Updating the cube layer's orientation The {{domxref("XRWebGLBinding.createCubeLayer()")}} method creates a cube layer and allows specifying an `orientation`. The `XRCubeLayer.orientation` property can be used after layer creation to get the current orientation or to set it to a new one. ```js const cubeLayer = xrGlBinding.createCubeLayer({ space: xrReferenceSpace, viewPixelWidth: 512, viewPixelHeight: 512, orientation: DOMPointReadOnly.fromPoint({ x: 0.0, y: 0.0, z: 0.0, w: 1.0 }), }); cubeLayer.orientation = someOtherPoint; ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{domxref("DOMPointReadOnly")}} - {{domxref("XRSpace")}} - {{domxref("XRWebGLBinding.createCubeLayer()")}}
0
data/mdn-content/files/en-us/web/api/xrcubelayer
data/mdn-content/files/en-us/web/api/xrcubelayer/space/index.md
--- title: "XRCubeLayer: space property" short-title: space slug: Web/API/XRCubeLayer/space page-type: web-api-instance-property status: - experimental browser-compat: api.XRCubeLayer.space --- {{APIRef("WebXR Device API")}}{{SeeCompatTable}} The **`space`** property of the {{domxref("XRCubeLayer")}} interface represents the layer's spatial relationship with the user's physical environment. ## Value An {{domxref("XRSpace")}}. ## Examples ### Updating the cube layer's space The {{domxref("XRWebGLBinding.createCubeLayer()")}} method creates a cube layer and requires a `space` property to be provided. The `XRCubeLayer.space` property can be used after layer creation to get the space used or to set it to a new one. ```js const cubeLayer = xrGlBinding.createCubeLayer({ space: xrReferenceSpace, viewPixelWidth: 512, viewPixelHeight: 512, }); cubeLayer.space = someOtherSpace; ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{domxref("XRSpace")}} - {{domxref("XRWebGLBinding.createCubeLayer()")}}
0
data/mdn-content/files/en-us/web/api/xrcubelayer
data/mdn-content/files/en-us/web/api/xrcubelayer/redraw_event/index.md
--- title: "XRCubeLayer: redraw event" short-title: redraw slug: Web/API/XRCubeLayer/redraw_event page-type: web-api-event status: - experimental browser-compat: api.XRCubeLayer.redraw_event --- {{APIRef("WebXR Device API")}}{{SeeCompatTable}} The `redraw` event is sent to the `XRCubeLayer` object when the underlying resources of the layer are lost or when the XR Compositor can no longer reproject the layer. If this event is sent, authors should redraw the content of the layer in the next XR animation frame. See also the {{domxref("XRCompositionLayer.needsRedraw")}} property which is also available to `XRCubeLayer` objects through inheritance from {{domxref("XRCompositionLayer")}}. ## Syntax Use the event name in methods like {{domxref("EventTarget.addEventListener", "addEventListener()")}}, or set an event handler property. ```js addEventListener("redraw", (event) => {}); onredraw = (event) => {}; ``` ## Event type An {{domxref("XRLayerEvent")}}. Inherits from {{domxref("Event")}}. ## Event properties _In addition to the properties listed below, properties from the parent interface, {{domxref("Event")}}, are available._ - {{domxref("XRLayerEvent.layer", "layer")}} {{ReadOnlyInline}} - : The {{domxref("XRLayer")}} which generated the event. ## Examples ### Using the `redraw` event You can pass `redraw` to {{domxref("EventTarget.addEventListener()", "addEventListener()")}}: ```js cubeLayer.addEventListener("redraw", (event) => { // redraw the layer }); ``` Alternatively, you can use the `onredraw` event handler property to establish a handler for the `redraw` event: ```js cubeLayer.onredraw = (event) => { // redraw the layer }; ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{domxref("XRCompositionLayer.needsRedraw")}}
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/htmlcanvaselement/index.md
--- title: HTMLCanvasElement slug: Web/API/HTMLCanvasElement page-type: web-api-interface browser-compat: api.HTMLCanvasElement --- {{APIRef("Canvas API")}} The **`HTMLCanvasElement`** interface provides properties and methods for manipulating the layout and presentation of {{HtmlElement("canvas")}} elements. The `HTMLCanvasElement` interface also inherits the properties and methods of the {{domxref("HTMLElement")}} interface. {{InheritanceDiagram}} ## Instance properties _Inherits properties from its parent, {{domxref("HTMLElement")}}._ - {{domxref("HTMLCanvasElement.height")}} - : The [`height`](/en-US/docs/Web/HTML/Element/canvas#height) HTML attribute of the {{HTMLElement("canvas")}} element is a non-negative `integer` reflecting the number of logical pixels (or RGBA values) going down one column of the canvas. When the attribute is not specified, or if it is set to an invalid value, like a negative, the default value of `150` is used. If no \[separate] CSS height is assigned to the {{HTMLElement("canvas")}}, then this value will also be used as the height of the canvas in the length-unit CSS Pixel. - {{domxref("HTMLCanvasElement.width")}} - : The [`width`](/en-US/docs/Web/HTML/Element/canvas#width) HTML attribute of the {{HTMLElement("canvas")}} element is a non-negative `integer` reflecting the number of logical pixels (or RGBA values) going across one row of the canvas. When the attribute is not specified, or if it is set to an invalid value, like a negative, the default value of `300` is used. If no \[separate] CSS width is assigned to the {{HTMLElement("canvas")}}, then this value will also be used as the width of the canvas in the length-unit CSS Pixel. - {{domxref("HTMLCanvasElement.mozOpaque")}} {{non-standard_inline}} {{deprecated_inline}} - : A boolean value reflecting the [`moz-opaque`](/en-US/docs/Web/HTML/Element/canvas#moz-opaque) HTML attribute of the {{HTMLElement("canvas")}} element. It lets the canvas know whether or not translucency will be a factor. If the canvas knows there's no translucency, painting performance can be optimized. This is only supported in Mozilla-based browsers; use the standardized {{domxref("HTMLCanvasElement.getContext()", "canvas.getContext('2d', { alpha: false })")}} instead. - {{domxref("HTMLCanvasElement.mozPrintCallback")}} {{non-standard_inline}} - : A `function` that is Initially null. Web content can set this to a JavaScript function that will be called when the canvas is to be redrawn while the page is being printed. When called, the callback is passed a "printState" object that implements the [MozCanvasPrintState](https://searchfox.org/mozilla-central/search?q=interface%20MozCanvasPrintState&path=HTMLCanvasElement.webidl) interface. The callback can get the context to draw to from the printState object and must then call done() on it when finished. The purpose of `mozPrintCallback` is to obtain a higher resolution rendering of the canvas at the resolution of the printer being used. [See this blog post.](https://blog.mozilla.org/labs/2012/09/a-new-way-to-control-printing-output/) ## Instance methods _Inherits methods from its parent, {{domxref("HTMLElement")}}._ - {{domxref("HTMLCanvasElement.captureStream()")}} - : Returns a {{domxref("CanvasCaptureMediaStreamTrack")}} that is a real-time video capture of the surface of the canvas. - {{domxref("HTMLCanvasElement.getContext()")}} - : Returns a drawing context on the canvas, or null if the context ID is not supported. A drawing context lets you draw on the canvas. Calling getContext with `"2d"` returns a {{domxref("CanvasRenderingContext2D")}} object, whereas calling it with `"webgl"` (or `"experimental-webgl"`) returns a {{domxref("WebGLRenderingContext")}} object. This context is only available on browsers that implement [WebGL](/en-US/docs/Web/API/WebGL_API). - {{domxref("HTMLCanvasElement.toDataURL()")}} - : Returns a data-URL containing a representation of the image in the format specified by the `type` parameter (defaults to `png`). The returned image is in a resolution of 96dpi. - {{domxref("HTMLCanvasElement.toBlob()")}} - : Creates a {{domxref("Blob")}} object representing the image contained in the canvas; this file may be cached on the disk or stored in memory at the discretion of the user agent. - {{domxref("HTMLCanvasElement.transferControlToOffscreen()")}} - : Transfers control to an {{domxref("OffscreenCanvas")}} object, either on the main thread or on a worker. ## Events _Inherits events from its parent, {{domxref("HTMLElement")}}._ Listen to these events using {{DOMxRef("EventTarget.addEventListener", "addEventListener()")}} or by assigning an event listener to the `oneventname` property of this interface. - [`contextlost`](/en-US/docs/Web/API/HTMLCanvasElement/contextlost_event) {{Experimental_Inline}} - : Fired if the user agent detects that the backing storage associated with a `CanvasRenderingContext2D` or an `OffscreenCanvasRenderingContext2D` context has been lost. - [`contextrestored`](/en-US/docs/Web/API/HTMLCanvasElement/contextrestored_event) {{Experimental_Inline}} - : Fired if the user agent successfully restores a `CanvasRenderingContext2D` or an `OffscreenCanvasRenderingContext2D` context. - [`webglcontextcreationerror`](/en-US/docs/Web/API/HTMLCanvasElement/webglcontextcreationerror_event) - : Fired if the user agent is unable to create a `WebGLRenderingContext` or `WebGL2RenderingContext` context. - [`webglcontextlost`](/en-US/docs/Web/API/HTMLCanvasElement/webglcontextlost_event) - : Fired if the user agent detects that the drawing buffer associated with a `WebGLRenderingContext` or `WebGL2RenderingContext` object has been lost. - [`webglcontextrestored`](/en-US/docs/Web/API/HTMLCanvasElement/webglcontextrestored_event) - : Fired if the user agent restores the drawing buffer for a `WebGLRenderingContext` or `WebGL2RenderingContext` object. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - HTML element implementing this interface: {{HTMLElement("canvas")}}
0
data/mdn-content/files/en-us/web/api/htmlcanvaselement
data/mdn-content/files/en-us/web/api/htmlcanvaselement/todataurl/index.md
--- title: "HTMLCanvasElement: toDataURL() method" short-title: toDataURL() slug: Web/API/HTMLCanvasElement/toDataURL page-type: web-api-instance-method browser-compat: api.HTMLCanvasElement.toDataURL --- {{APIRef("Canvas API")}} The **`HTMLCanvasElement.toDataURL()`** method returns a [data URL](/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs) containing a representation of the image in the format specified by the `type` parameter. The desired file format and image quality may be specified. If the file format is not specified, or if the given format is not supported, then the data will be exported as `image/png`. In other words, if the returned value starts with `data:image/png` for any other requested `type`, then that format is not supported. Browsers are required to support `image/png`; many will support additional formats including `image/jpeg` and `image/webp`. The created image data will have a resolution of 96dpi for file formats that support encoding resolution metadata. ## Syntax ```js-nolint toDataURL() toDataURL(type) toDataURL(type, encoderOptions) ``` ### Parameters - `type` {{optional_inline}} - : A string indicating the image format. The default type is `image/png`; this image format will be also used if the specified type is not supported. - `encoderOptions` {{optional_inline}} - : A {{jsxref("Number")}} between `0` and `1` indicating the image quality to be used when creating images using file formats that support lossy compression (such as `image/jpeg` or `image/webp`). A user agent will use its default quality value if this option is not specified, or if the number is outside the allowed range. ### Return value A string containing the requested [data URL](/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs). If the height or width of the canvas is `0` or larger than the [maximum canvas size](/en-US/docs/Web/HTML/Element/canvas#maximum_canvas_size), the string `"data:,"` is returned. ### Exceptions - `SecurityError` - : The canvas's bitmap is not origin clean; at least some of its contents have or may have been loaded from a site other than the one from which the document itself was loaded. ## Examples Given this {{HTMLElement("canvas")}} element: ```html <canvas id="canvas" width="5" height="5"></canvas> ``` You can get a data-URL of the canvas with the following lines: ```js const canvas = document.getElementById("canvas"); const dataURL = canvas.toDataURL(); console.log(dataURL); // "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNby // blAAAADElEQVQImWNgoBMAAABpAAFEI8ARAAAAAElFTkSuQmCC" ``` ### Setting image quality with jpegs ```js const fullQuality = canvas.toDataURL("image/jpeg", 1.0); // data:image/jpeg;base64,/9j/4AAQSkZJRgABAQ…9oADAMBAAIRAxEAPwD/AD/6AP/Z" const mediumQuality = canvas.toDataURL("image/jpeg", 0.5); const lowQuality = canvas.toDataURL("image/jpeg", 0.1); ``` ### Example: Dynamically change images You can use this technique in coordination with mouse events in order to dynamically change images (gray-scale vs. color in this example): #### HTML ```html <img class="grayscale" src="myPicture.png" alt="Description of my picture" /> ``` #### JavaScript ```js window.addEventListener("load", removeColors); function showColorImg() { this.style.display = "none"; this.nextSibling.style.display = "inline"; } function showGrayImg() { this.previousSibling.style.display = "inline"; this.style.display = "none"; } function removeColors() { const images = document.getElementsByClassName("grayscale"); const canvas = document.createElement("canvas"); const ctx = canvas.getContext("2d"); for (const colorImg of images) { const width = colorImg.offsetWidth; const height = colorImg.offsetHeight; canvas.width = width; canvas.height = height; ctx.drawImage(colorImg, 0, 0); const imgData = ctx.getImageData(0, 0, width, height); const pix = imgData.data; const pixLen = pix.length; for (let pixel = 0; pixel < pixLen; pixel += 4) { pix[pixel + 2] = pix[pixel + 1] = pix[pixel] = (pix[pixel] + pix[pixel + 1] + pix[pixel + 2]) / 3; } ctx.putImageData(imgData, 0, 0); const grayImg = new Image(); grayImg.src = canvas.toDataURL(); grayImg.onmouseover = showColorImg; colorImg.onmouseout = showGrayImg; ctx.clearRect(0, 0, width, height); colorImg.style.display = "none"; colorImg.parentNode.insertBefore(grayImg, colorImg); } } ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [Data URLs](/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs) in the [HTTP](/en-US/docs/Web/HTTP) reference.
0
data/mdn-content/files/en-us/web/api/htmlcanvaselement
data/mdn-content/files/en-us/web/api/htmlcanvaselement/mozopaque/index.md
--- title: "HTMLCanvasElement: mozOpaque property" short-title: mozOpaque slug: Web/API/HTMLCanvasElement/mozOpaque page-type: web-api-instance-property status: - deprecated - non-standard browser-compat: api.HTMLCanvasElement.mozOpaque --- {{APIRef("Canvas API")}}{{deprecated_header}}{{non-standard_header}} The non-standard **`HTMLCanvasElement.mozOpaque`** property is a boolean value reflecting the [`moz-opaque`](/en-US/docs/Web/HTML/Element/canvas#moz-opaque) HTML attribute of the {{HTMLElement("canvas")}} element. It lets the canvas know whether or not translucency will be a factor. If the canvas knows there's no translucency, painting performance can be optimized. > **Note:** This has been standardized as setting the `alpha` option to > `false` when creating a drawing context with > {{domxref("HTMLCanvasElement.getContext()")}}. Use of `mozOpaque` should be > avoided. Firefox will stop supporting it in the future. ## Value A boolean value. ## Examples Given this {{HTMLElement("canvas")}} element: ```html <canvas id="canvas" width="300" height="300" moz-opaque></canvas> ``` You can get or set the `mozOpaque` property. For example, you could conditionally set it to `true` if `mimeType === 'image/jpeg'`, or similar, to gain performance in your application when translucency is not needed. ```js const canvas = document.getElementById("canvas"); console.log(canvas.mozOpaque); // true // deactivate it canvas.mozOpaque = false; ``` ## Specifications Not part of any standard. ## Browser compatibility {{Compat}} ## See also - {{domxref("HTMLCanvasElement")}}: Interface used to define the `HTMLCanvasElement.mozOpaque` property - [`moz-opaque`](/en-US/docs/Web/HTML/Element/canvas#moz-opaque): HTML attribute of the {{HTMLElement("canvas")}} element - [Optimizing your JavaScript game for Firefox OS](https://hacks.mozilla.org/2013/05/optimizing-your-javascript-game-for-firefox-os/)
0
data/mdn-content/files/en-us/web/api/htmlcanvaselement
data/mdn-content/files/en-us/web/api/htmlcanvaselement/capturestream/index.md
--- title: "HTMLCanvasElement: captureStream() method" short-title: captureStream() slug: Web/API/HTMLCanvasElement/captureStream page-type: web-api-instance-method browser-compat: api.HTMLCanvasElement.captureStream --- {{APIRef("Media Capture and Streams")}} The **`captureStream()`** method of the {{domxref("HTMLCanvasElement")}} interface returns a {{domxref("MediaStream")}} which includes a {{domxref("CanvasCaptureMediaStreamTrack")}} containing a real-time video capture of the canvas's contents. ## Syntax ```js-nolint captureStream() captureStream(frameRate) ``` ### Parameters - `frameRate` {{optional_inline}} - : A double-precision floating-point value that indicates the rate of capture of each frame. If not set, a new frame will be captured each time the canvas changes; if set to `0`, frames will not be captured automatically; instead, they will only be captured when the returned track's {{domxref("CanvasCaptureMediaStreamTrack.requestFrame", "requestFrame()")}} method is called. ### Return value A reference to a {{domxref("MediaStream")}} object, which has a single {{domxref("CanvasCaptureMediaStreamTrack")}} in it. ### Exceptions - `NotSupportedError` {{domxref("DOMException")}} - : Thrown if the value of `frameRate` is negative. - `SecurityError` {{domxref("DOMException")}} - : The canvas's bitmap is not origin clean; at least some of its contents have or may have been loaded from a site other than the one from which the document itself was loaded. ## Example ```js // Find the canvas element to capture const canvasElt = document.querySelector("canvas"); // Get the stream const stream = canvasElt.captureStream(25); // 25 FPS // Do things to the stream // E.g. Send it to another computer using an RTCPeerConnection // pc is an RTCPeerConnection created elsewhere stream.getTracks().forEach((track) => pc.addTrack(track, stream)); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{domxref("HTMLMediaElement.captureStream()")}}, which allows capturing a stream from a media element. - {{domxref("MediaStream")}} - {{domxref("Media Capture and Streams API")}}
0
data/mdn-content/files/en-us/web/api/htmlcanvaselement
data/mdn-content/files/en-us/web/api/htmlcanvaselement/getcontext/index.md
--- title: "HTMLCanvasElement: getContext() method" short-title: getContext() slug: Web/API/HTMLCanvasElement/getContext page-type: web-api-instance-method browser-compat: api.HTMLCanvasElement.getContext --- {{APIRef("Canvas API")}} The **`HTMLCanvasElement.getContext()`** method returns a drawing context on the canvas, or [`null`](/en-US/docs/Web/JavaScript/Reference/Operators/null) if the context identifier is not supported, or the canvas has already been set to a different context mode. Later calls to this method on the same canvas element, with the same `contextType` argument, will always return the same drawing context instance as was returned the first time the method was invoked. It is not possible to get a different drawing context object on a given canvas element. ## Syntax ```js-nolint getContext(contextType) getContext(contextType, contextAttributes) ``` ### Parameters - `contextType` - : A string containing the context identifier defining the drawing context associated to the canvas. Possible values are: - `"2d"`, leading to the creation of a {{domxref("CanvasRenderingContext2D")}} object representing a two-dimensional rendering context. - `"webgl"` (or `"experimental-webgl"`) which will create a {{domxref("WebGLRenderingContext")}} object representing a three-dimensional rendering context. This context is only available on browsers that implement [WebGL](/en-US/docs/Web/API/WebGL_API) version 1 (OpenGL ES 2.0). - `"webgl2"` which will create a {{domxref("WebGL2RenderingContext")}} object representing a three-dimensional rendering context. This context is only available on browsers that implement [WebGL](/en-US/docs/Web/API/WebGL_API) version 2 (OpenGL ES 3.0). {{experimental_inline}} - `"webgpu"`, which will create a {{domxref("GPUCanvasContext")}} object representing a three-dimensional rendering context for WebGPU render pipelines. This context is only available on browsers that implement [The WebGPU API](/en-US/docs/Web/API/WebGPU_API). - `"bitmaprenderer"` which will create an {{domxref("ImageBitmapRenderingContext")}} which only provides functionality to replace the content of the canvas with a given {{domxref("ImageBitmap")}}. > **Note:** The identifier `"experimental-webgl"` is used > in new implementations of WebGL. These implementations have either not reached > test suite conformance, or the graphics drivers on the platform are not yet > stable. The [Khronos Group](https://www.khronos.org/) certifies WebGL > implementations under certain [conformance rules](https://www.khronos.org/registry/webgl/sdk/tests/CONFORMANCE_RULES.txt). - `contextAttributes` {{optional_inline}} - : You can use several context attributes when creating your rendering context, for example: ```js const gl = canvas.getContext("webgl", { antialias: false, depth: false, }); ``` 2d context attributes: - `alpha` - : A boolean value that indicates if the canvas contains an alpha channel. If set to `false`, the browser now knows that the backdrop is always opaque, which can speed up drawing of transparent content and images. - `colorSpace` {{optional_inline}} - : Specifies the color space of the rendering context. Possible values are: - `"srgb"` selects the [sRGB color space](https://en.wikipedia.org/wiki/SRGB). This is the default value. - `"display-p3"` selects the [display-p3 color space](https://en.wikipedia.org/wiki/DCI-P3). - `desynchronized` - : A boolean value that hints the user agent to reduce the latency by desynchronizing the canvas paint cycle from the event loop - `willReadFrequently` - : A boolean value that indicates whether or not a lot of read-back operations are planned. This will force the use of a software (instead of hardware accelerated) 2D canvas and can save memory when calling {{domxref("CanvasRenderingContext2D.getImageData", "getImageData()")}} frequently. WebGL context attributes: - `alpha` - : A boolean value that indicates if the canvas contains an alpha buffer. - `depth` - : A boolean value that indicates that the drawing buffer is requested to have a depth buffer of at least 16 bits. - `stencil` - : A boolean value that indicates that the drawing buffer is requested to have a stencil buffer of at least 8 bits. - `desynchronized` - : A boolean value that hints the user agent to reduce the latency by desynchronizing the canvas paint cycle from the event loop - `antialias` - : A boolean value that indicates whether or not to perform anti-aliasing if possible. - `failIfMajorPerformanceCaveat` - : A boolean value that indicates if a context will be created if the system performance is low or if no hardware GPU is available. - `powerPreference` - : A hint to the user agent indicating what configuration of GPU is suitable for the WebGL context. Possible values are: - `"default"` - : Let the user agent decide which GPU configuration is most suitable. This is the default value. - `"high-performance"` - : Prioritizes rendering performance over power consumption. - `"low-power"` - : Prioritizes power saving over rendering performance. - `premultipliedAlpha` - : A boolean value that indicates that the page compositor will assume the drawing buffer contains colors with pre-multiplied alpha. - `preserveDrawingBuffer` - : If the value is true the buffers will not be cleared and will preserve their values until cleared or overwritten by the author. - `xrCompatible` - : A boolean value that hints to the user agent to use a compatible graphics adapter for an [immersive XR device](/en-US/docs/Web/API/WebXR_Device_API). Setting this synchronous flag at context creation is discouraged; rather call the asynchronous {{domxref("WebGLRenderingContext.makeXRCompatible()")}} method the moment you intend to start an XR session. > **Note:** The WebGPU specification does not define any specific context attributes for `getContext()`. Instead, it provides configuration options via the {{domxref("GPUCanvasContext.configure()")}} method. ### Return value A rendering context which is either a - {{domxref("CanvasRenderingContext2D")}} for `"2d"`, - {{domxref("WebGLRenderingContext")}} for `"webgl"` and `"experimental-webgl"`, - {{domxref("WebGL2RenderingContext")}} for `"webgl2"` - {{domxref("GPUCanvasContext")}} for `"webgpu"` or - {{domxref("ImageBitmapRenderingContext")}} for `"bitmaprenderer"`. If the `contextType` doesn't match a possible drawing context, or differs from the first `contextType` requested, `null` is returned. ## Examples Given this {{HTMLElement("canvas")}} element: ```html <canvas id="canvas" width="300" height="300"></canvas> ``` You can get a `2d` context of the canvas with the following code: ```js const canvas = document.getElementById("canvas"); const ctx = canvas.getContext("2d"); console.log(ctx); // CanvasRenderingContext2D { /* … */ } ``` Now you have the [2D rendering context](/en-US/docs/Web/API/CanvasRenderingContext2D) for a canvas and you can draw within it. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{domxref("HTMLCanvasElement")}}: Interface used to define the `HTMLCanvasElement.getContext()` method - {{domxref("OffscreenCanvas.getContext()")}} - {{domxref("CanvasRenderingContext2D.getContextAttributes()")}}, {{domxref("WebGLRenderingContext.getContextAttributes()")}} - {{domxref("CanvasRenderingContext2D")}}, {{domxref("ImageBitmapRenderingContext")}}, {{domxref("WebGLRenderingContext")}}, {{domxref("WebGL2RenderingContext")}}, {{domxref("GPUCanvasContext")}}: Available rendering contexts - [DCI-P3 color space](https://en.wikipedia.org/wiki/DCI-P3) on Wikipedia - [sRGB color space](https://en.wikipedia.org/wiki/SRGB) on Wikipedia
0
data/mdn-content/files/en-us/web/api/htmlcanvaselement
data/mdn-content/files/en-us/web/api/htmlcanvaselement/webglcontextlost_event/index.md
--- title: "HTMLCanvasElement: webglcontextlost event" short-title: webglcontextlost slug: Web/API/HTMLCanvasElement/webglcontextlost_event page-type: web-api-event browser-compat: api.HTMLCanvasElement.webglcontextlost_event --- {{APIRef}} The **`webglcontextlost`** event of the [WebGL API](/en-US/docs/Web/API/WebGL_API) is fired if the user agent detects that the drawing buffer associated with a {{domxref("WebGLRenderingContext")}} object has been lost. This event does not bubble. ## Syntax Use the event name in methods like {{domxref("EventTarget.addEventListener", "addEventListener()")}}, or set an event handler property. ```js addEventListener("webglcontextlost", (event) => {}); onwebglcontextlost = (event) => {}; ``` ## Event type A {{domxref("WebGLContextEvent")}}. Inherits from {{domxref("Event")}}. {{InheritanceDiagram("WebGLContextEvent")}} ## Event properties _This interface inherits properties from its parent interface, {{domxref("Event")}}._ - {{domxref("WebGLContextEvent.statusMessage")}} - : A read-only property containing additional information about the event. ## Example With the help of the {{domxref("WEBGL_lose_context")}} extension, you can simulate the `webglcontextlost` event: ```js const canvas = document.getElementById("canvas"); const gl = canvas.getContext("webgl"); canvas.addEventListener("webglcontextlost", (event) => { console.log(event); }); gl.getExtension("WEBGL_lose_context").loseContext(); // "webglcontextlost" event is logged. ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{domxref("WebGLContextEvent")}} - {{domxref("WebGLRenderingContext.isContextLost()")}} - {{domxref("WEBGL_lose_context")}}, {{domxref("WEBGL_lose_context.loseContext()")}}, {{domxref("WEBGL_lose_context.restoreContext()")}}
0
data/mdn-content/files/en-us/web/api/htmlcanvaselement
data/mdn-content/files/en-us/web/api/htmlcanvaselement/webglcontextrestored_event/index.md
--- title: "HTMLCanvasElement: webglcontextrestored event" short-title: webglcontextrestored slug: Web/API/HTMLCanvasElement/webglcontextrestored_event page-type: web-api-event browser-compat: api.HTMLCanvasElement.webglcontextrestored_event --- {{APIRef}} The **`webglcontextrestored`** event of the [WebGL API](/en-US/docs/Web/API/WebGL_API) is fired if the user agent restores the drawing buffer for a {{domxref("WebGLRenderingContext")}} object. Once the context is restored, WebGL resources such as textures and buffers that were created before the context was lost are no longer valid. You need to reinitialize the state of your WebGL application and recreate resources. This event does not bubble. ## Syntax Use the event name in methods like {{domxref("EventTarget.addEventListener", "addEventListener()")}}, or set an event handler property. ```js addEventListener("webglcontextrestored", (event) => {}); onwebglcontextrestored = (event) => {}; ``` ## Event type A {{domxref("WebGLContextEvent")}}. Inherits from {{domxref("Event")}}. {{InheritanceDiagram("WebGLContextEvent")}} ## Event properties _This interface inherits properties from its parent interface, {{domxref("Event")}}._ - {{domxref("WebGLContextEvent.statusMessage")}} - : A read-only property containing additional information about the event. ## Example With the help of the {{domxref("WEBGL_lose_context")}} extension, you can simulate the `webglcontextrestored` event: ```js const canvas = document.getElementById("canvas"); const gl = canvas.getContext("webgl"); canvas.addEventListener( "webglcontextrestored", (e) => { console.log(e); }, false, ); gl.getExtension("WEBGL_lose_context").restoreContext(); // "webglcontextrestored" event is logged. ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{domxref("WebGLContextEvent")}} - {{domxref("WebGLRenderingContext.isContextLost()")}} - {{domxref("WEBGL_lose_context")}}, {{domxref("WEBGL_lose_context.loseContext()")}}, {{domxref("WEBGL_lose_context.restoreContext()")}}
0
data/mdn-content/files/en-us/web/api/htmlcanvaselement
data/mdn-content/files/en-us/web/api/htmlcanvaselement/toblob/index.md
--- title: "HTMLCanvasElement: toBlob() method" short-title: toBlob() slug: Web/API/HTMLCanvasElement/toBlob page-type: web-api-instance-method browser-compat: api.HTMLCanvasElement.toBlob --- {{APIRef("Canvas API")}} The **`HTMLCanvasElement.toBlob()`** method creates a {{domxref("Blob")}} object representing the image contained in the canvas. This file may be cached on the disk or stored in memory at the discretion of the user agent. The desired file format and image quality may be specified. If the file format is not specified, or if the given format is not supported, then the data will be exported as `image/png`. Browsers are required to support `image/png`; many will support additional formats including `image/jpeg` and `image/webp`. The created image will have a resolution of 96dpi for file formats that support encoding resolution metadata. ## Syntax ```js-nolint toBlob(callback) toBlob(callback, type) toBlob(callback, type, quality) ``` ### Parameters - `callback` - : A callback function with the resulting {{domxref("Blob")}} object as a single argument. `null` may be passed if the image cannot be created for any reason. - `type` {{optional_inline}} - : A string indicating the image format. The default type is `image/png`; that type is also used if the given type isn't supported. - `quality` {{optional_inline}} - : A {{jsxref("Number")}} between `0` and `1` indicating the image quality to be used when creating images using file formats that support lossy compression (such as `image/jpeg` or `image/webp`). A user agent will use its default quality value if this option is not specified, or if the number is outside the allowed range. ### Return value None ({{jsxref("undefined")}}). ### Exceptions - `SecurityError` - : The canvas's bitmap is not origin-clean; at least some of its contents have or may have been loaded from a site other than the one from which the document itself was loaded. ## Examples ### Getting a file representing the canvas Once you have drawn content into a canvas, you can convert it into a file of any supported image format. The code snippet below, for example, takes the image in the {{HTMLElement("canvas")}} element whose ID is "canvas", obtains a copy of it as a PNG image, then appends a new {{HTMLElement("img")}} element to the document, whose source image is the one created using the canvas. ```js const canvas = document.getElementById("canvas"); canvas.toBlob((blob) => { const newImg = document.createElement("img"); const url = URL.createObjectURL(blob); newImg.onload = () => { // no longer need to read the blob so it's revoked URL.revokeObjectURL(url); }; newImg.src = url; document.body.appendChild(newImg); }); ``` Note that here we're creating a PNG image; if you add a second parameter to the `toBlob()` call, you can specify another image type supported by the user agent. For example, to get the image in JPEG format: ```js canvas.toBlob( (blob) => { /* … */ }, "image/jpeg", 0.95, ); // JPEG at 95% quality ``` ### Convert a canvas to an ico (Mozilla only) This uses `-moz-parse` to convert the canvas to ico, and hence only works on Firefox. Windows XP doesn't support converting from PNG to ico, so it uses bmp instead. A download link is created by setting the download attribute. The value of the download attribute is the name it will use as the file name. ```js const canvas = document.getElementById("canvas"); const d = canvas.width; const ctx = canvas.getContext("2d"); ctx.beginPath(); ctx.moveTo(d / 2, 0); ctx.lineTo(d, d); ctx.lineTo(0, d); ctx.closePath(); ctx.fillStyle = "yellow"; ctx.fill(); function blobCallback(iconName) { return (b) => { const a = document.createElement("a"); a.textContent = "Download"; document.body.appendChild(a); a.style.display = "block"; a.download = `${iconName}.ico`; a.href = window.URL.createObjectURL(b); }; } canvas.toBlob( blobCallback("passThisString"), "image/vnd.microsoft.icon", "-moz-parse-options:format=bmp;bpp=32", ); ``` ### Save toBlob to disk with OS.File (Chrome/add-on context only) > **Note:** This technique saves it to the desktop and is only useful in Firefox chrome context or add-on code, as OS APIs are not present on websites. ```js const canvas = document.getElementById("canvas"); const d = canvas.width; ctx = canvas.getContext("2d"); ctx.beginPath(); ctx.moveTo(d / 2, 0); ctx.lineTo(d, d); ctx.lineTo(0, d); ctx.closePath(); ctx.fillStyle = "yellow"; ctx.fill(); function blobCallback(iconName) { return (b) => { const r = new FileReader(); r.onloadend = () => { // r.result contains the ArrayBuffer. Cu.import("resource://gre/modules/osfile.jsm"); const writePath = OS.Path.join( OS.Constants.Path.desktopDir, `${iconName}.ico`, ); const promise = OS.File.writeAtomic(writePath, new Uint8Array(r.result), { tmpPath: `${writePath}.tmp`, }); promise.then( () => { console.log("successfully wrote file"); }, () => { console.log("failure writing file"); }, ); }; r.readAsArrayBuffer(b); }; } canvas.toBlob( blobCallback("passThisString"), "image/vnd.microsoft.icon", "-moz-parse-options:format=bmp;bpp=32", ); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{domxref("Blob")}}
0
data/mdn-content/files/en-us/web/api/htmlcanvaselement
data/mdn-content/files/en-us/web/api/htmlcanvaselement/transfercontroltooffscreen/index.md
--- title: "HTMLCanvasElement: transferControlToOffscreen() method" short-title: transferControlToOffscreen() slug: Web/API/HTMLCanvasElement/transferControlToOffscreen page-type: web-api-instance-method browser-compat: api.HTMLCanvasElement.transferControlToOffscreen --- {{APIRef("Canvas API")}} The **`HTMLCanvasElement.transferControlToOffscreen()`** method transfers control to an {{domxref("OffscreenCanvas")}} object, either on the main thread or on a worker. ## Syntax ```js-nolint transferControlToOffscreen() ``` ### Parameters None. ### Return value An {{domxref("OffscreenCanvas")}} object. ## Examples The following example shows how to transfer control to an {{domxref("OffscreenCanvas")}} object on the main thread. ```js const htmlCanvas = document.createElement("canvas"); const offscreen = htmlCanvas.transferControlToOffscreen(); const gl = offscreen.getContext("webgl"); // Some drawing using the gl context… ``` The following example shows how to transfer control to an {{domxref("OffscreenCanvas")}} object on a worker. ```js const offscreen = document.querySelector("canvas").transferControlToOffscreen(); const worker = new Worker("myworkerurl.js"); worker.postMessage({ canvas: offscreen }, [offscreen]); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - The interface defining this method, {{domxref("HTMLCanvasElement")}} - {{domxref("OffscreenCanvas")}}
0
data/mdn-content/files/en-us/web/api/htmlcanvaselement
data/mdn-content/files/en-us/web/api/htmlcanvaselement/width/index.md
--- title: "HTMLCanvasElement: width property" short-title: width slug: Web/API/HTMLCanvasElement/width page-type: web-api-instance-property browser-compat: api.HTMLCanvasElement.width --- {{APIRef("Canvas API")}} The **`HTMLCanvasElement.width`** property is a positive `integer` reflecting the [`width`](/en-US/docs/Web/HTML/Element/canvas#width) HTML attribute of the {{HTMLElement("canvas")}} element interpreted in CSS pixels. When the attribute is not specified, or if it is set to an invalid value, like a negative, the default value of `300` is used. This is one of the two properties, the other being {{domxref("HTMLCanvasElement.height")}}, that controls the size of the canvas. ## Value A number. ## Examples Given this {{HTMLElement("canvas")}} element: ```html <canvas id="canvas" width="300" height="300"></canvas> ``` You can get the width of the canvas with the following code: ```js const canvas = document.getElementById("canvas"); console.log(canvas.width); // 300 ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{domxref("HTMLCanvasElement")}}: Interface used to define the `HTMLCanvasElement.width` property - {{domxref("HTMLCanvasElement.height")}}: Other property used to control the size of the canvas - {{domxref("HTMLEmbedElement.width")}} - {{domxref("HTMLIFrameElement.width")}} - {{domxref("HTMLImageElement.width")}} - {{domxref("HTMLObjectElement.width")}} - {{domxref("HTMLSourceElement.width")}} - {{domxref("HTMLVideoElement.width")}}
0
data/mdn-content/files/en-us/web/api/htmlcanvaselement
data/mdn-content/files/en-us/web/api/htmlcanvaselement/height/index.md
--- title: "HTMLCanvasElement: height property" short-title: height slug: Web/API/HTMLCanvasElement/height page-type: web-api-instance-property browser-compat: api.HTMLCanvasElement.height --- {{APIRef("Canvas API")}} The **`HTMLCanvasElement.height`** property is a positive `integer` reflecting the [`height`](/en-US/docs/Web/HTML/Element/canvas#height) HTML attribute of the {{HTMLElement("canvas")}} element interpreted in CSS pixels. When the attribute is not specified, or if it is set to an invalid value, like a negative, the default value of `150` is used. This is one of the two properties, the other being {{domxref("HTMLCanvasElement.width")}}, that controls the size of the canvas. ## Value A number. ## Examples Given this {{HTMLElement("canvas")}} element: ```html <canvas id="canvas" width="300" height="300"></canvas> ``` You can get the height of the canvas with the following code: ```js const canvas = document.getElementById("canvas"); console.log(canvas.height); // 300 ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{domxref("HTMLCanvasElement")}}: Interface used to define the `HTMLCanvasElement.height` property - {{domxref("HTMLCanvasElement.width")}}: Other property used to control the size of the canvas - {{domxref("HTMLEmbedElement.width")}} - {{domxref("HTMLIFrameElement.width")}} - {{domxref("HTMLImageElement.width")}} - {{domxref("HTMLObjectElement.width")}} - {{domxref("HTMLSourceElement.width")}} - {{domxref("HTMLVideoElement.width")}}
0
data/mdn-content/files/en-us/web/api/htmlcanvaselement
data/mdn-content/files/en-us/web/api/htmlcanvaselement/contextlost_event/index.md
--- title: "HTMLCanvasElement: contextlost event" short-title: contextlost slug: Web/API/HTMLCanvasElement/contextlost_event page-type: web-api-event status: - experimental browser-compat: api.HTMLCanvasElement.contextlost_event --- {{APIRef}}{{SeeCompatTable}} The **`contextlost`** event of the [Canvas API](/en-US/docs/Web/API/Canvas_API) is fired if the user agent detects that the backing storage associated with a [`CanvasRenderingContext2D`](/en-US/docs/Web/API/CanvasRenderingContext2D) context is lost. Contexts can be lost for several reasons like driver crashes or the application runs out of memory, etc. By default the user agent will attempt to restore the context and then fire the [`contextrestored` event](/en-US/docs/Web/API/HTMLCanvasElement/contextrestored_event). User code can prevent the context from being restored by calling [`Event.preventDefault()`](/en-US/docs/Web/API/Event/preventDefault) during event handling. ## Syntax Use the event name in methods like {{domxref("EventTarget.addEventListener", "addEventListener()")}}, or set an event handler property. ```js addEventListener("contextlost", (event) => {}); oncontextlost = (event) => {}; ``` ## Event type A generic {{domxref("Event")}}. ## Example The code fragment below detects the `contextlost` event. ```js const canvas = document.getElementById("canvas"); canvas.addEventListener("contextlost", (event) => { console.log(event); }); ``` To prevent the context from being restored the code might instead look like this: ```js const canvas = document.getElementById("canvas"); canvas.addEventListener("contextlost", (event) => { event.preventDefault(); }); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [`HTMLCanvasElement: contextrestored` event](/en-US/docs/Web/API/HTMLCanvasElement/contextrestored_event) - [`CanvasRenderingContext2D.isContextLost()`](/en-US/docs/Web/API/CanvasRenderingContext2D/isContextLost)
0
data/mdn-content/files/en-us/web/api/htmlcanvaselement
data/mdn-content/files/en-us/web/api/htmlcanvaselement/webglcontextcreationerror_event/index.md
--- title: "HTMLCanvasElement: webglcontextcreationerror event" short-title: webglcontextcreationerror slug: Web/API/HTMLCanvasElement/webglcontextcreationerror_event page-type: web-api-event browser-compat: api.HTMLCanvasElement.webglcontextcreationerror_event --- {{APIRef}} The **`webglcontextcreationerror`** event of the [WebGL API](/en-US/docs/Web/API/WebGL_API) is fired if the user agent is unable to create a {{domxref("WebGLRenderingContext")}} context. This event has a {{domxref("WebGLContextEvent.statusMessage")}} property, which can contain a platform dependent string with more information about the failure. This event does not bubble. ## Syntax Use the event name in methods like {{domxref("EventTarget.addEventListener", "addEventListener()")}}, or set an event handler property. ```js addEventListener("webglcontextcreationerror", (event) => {}); onwebglcontextcreationerror = (event) => {}; ``` ## Event type A {{domxref("WebGLContextEvent")}}. Inherits from {{domxref("Event")}}. {{InheritanceDiagram("WebGLContextEvent")}} ## Event properties _This interface inherits properties from its parent interface, {{domxref("Event")}}._ - {{domxref("WebGLContextEvent.statusMessage")}} - : A read-only property containing additional information about the event. ## Example ```js const canvas = document.getElementById("canvas"); canvas.addEventListener( "webglcontextcreationerror", (e) => { console.log(e.statusMessage || "Unknown error"); }, false, ); const gl = canvas.getContext("webgl"); // logs statusMessage or "Unknown error" if unable to create WebGL context ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{domxref("WebGLContextEvent")}} - {{domxref("WebGLRenderingContext.isContextLost()")}} - {{domxref("WEBGL_lose_context")}}, {{domxref("WEBGL_lose_context.loseContext()")}}, {{domxref("WEBGL_lose_context.restoreContext()")}}
0
data/mdn-content/files/en-us/web/api/htmlcanvaselement
data/mdn-content/files/en-us/web/api/htmlcanvaselement/contextrestored_event/index.md
--- title: "HTMLCanvasElement: contextrestored event" short-title: contextrestored slug: Web/API/HTMLCanvasElement/contextrestored_event page-type: web-api-event status: - experimental browser-compat: api.HTMLCanvasElement.contextrestored_event --- {{APIRef}}{{SeeCompatTable}} The **`contextrestored`** event of the [Canvas API](/en-US/docs/Web/API/Canvas_API) is fired if the user agent restores the backing storage for a [`CanvasRenderingContext2D`](/en-US/docs/Web/API/CanvasRenderingContext2D). You can redraw, re-retrieve resources, and reinitialize the state of your context after receiving this event. ## Syntax Use the event name in methods like {{domxref("EventTarget.addEventListener", "addEventListener()")}}, or set an event handler property. ```js addEventListener("contextrestored", (event) => {}); oncontextrestored = (event) => {}; ``` ## Event type A generic {{domxref("Event")}}. ## Example The code fragment below detects the context restored event. ```js const canvas = document.getElementById("canvas"); canvas.addEventListener( "contextrestored", (e) => { console.log(e); // call to redrawCanvas() or similar }, false, ); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [`HTMLCanvasElement: contextlost` event](/en-US/docs/Web/API/HTMLCanvasElement/contextlost_event) - [`CanvasRenderingContext2D.isContextLost()`](/en-US/docs/Web/API/CanvasRenderingContext2D/isContextLost)
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/text/index.md
--- title: Text slug: Web/API/Text page-type: web-api-interface browser-compat: api.Text --- {{ApiRef("DOM")}} The **`Text`** interface represents a text {{domxref("Node", "node")}} in a DOM tree. {{InheritanceDiagram}} To understand what a text node is, consider the following document: ```html <html lang="en" class="e"> <head> <title>Aliens?</title> </head> <body> Why yes. </body> </html> ``` In that document, there are five text nodes, with the following contents: - `"\n "` (after the `<head>` start tag, a newline followed by four spaces) - `"Aliens?"` (the contents of the `title` element) - `"\n "` (after the `</head>` end tag, a newline followed by two spaces) - `"\n "` (after the `<body>` start tag, a newline followed by two spaces) - `"\n Why yes.\n \n\n"` (the contents of the `body` element) Each of those text nodes is an object that has the properties and methods documented in this article. ## Constructor - {{domxref("Text.Text", "Text()")}} - : Returns a new `Text` node with the parameter as its textual content. ## Instance properties _Inherits properties from its parents, {{domxref("CharacterData")}}, {{domxref("Node")}}, and {{domxref("EventTarget")}}._ - {{domxref("Text.assignedSlot")}} {{ReadOnlyInline}} - : Returns a {{domxref("HTMLSlotElement")}} representing the {{htmlelement("slot")}} the node is inserted in. - {{domxref("Text.wholeText")}} {{ReadOnlyInline}} - : Returns a string containing the text of all `Text` nodes logically adjacent to this {{domxref("Node")}}, concatenated in document order. ## Instance methods _Inherits methods from its parent, {{domxref("CharacterData")}}, {{domxref("Node")}}, and {{domxref("EventTarget")}}._ - {{domxref("Text.splitText")}} - : Breaks the node into two nodes at a specified offset. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [The DOM API](/en-US/docs/Web/API/Document_Object_Model)
0
data/mdn-content/files/en-us/web/api/text
data/mdn-content/files/en-us/web/api/text/text/index.md
--- title: "Text: Text() constructor" short-title: Text() slug: Web/API/Text/Text page-type: web-api-constructor browser-compat: api.Text.Text --- {{ APIRef("DOM")}} The **`Text()`** constructor returns a new {{domxref("Text")}} object with the optional string given in parameter as its textual content. ## Syntax ```js-nolint new Text() new Text(string) ``` ### Parameters - `string` {{optional_inline}} ### Return value A new {{domxref("Text")}} object with the content of the `string` parameter, or the empty string if no parameter was given. ## Example ```js let text = new Text("Test"); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - The [DOM API](/en-US/docs/Web/API/Document_Object_Model)
0
data/mdn-content/files/en-us/web/api/text
data/mdn-content/files/en-us/web/api/text/wholetext/index.md
--- title: "Text: wholeText property" short-title: wholeText slug: Web/API/Text/wholeText page-type: web-api-instance-property browser-compat: api.Text.wholeText --- {{ apiref("DOM") }} The read-only **`wholeText`** property of the {{domxref("Text")}} interface returns the full text of all {{domxref("Text")}} nodes logically adjacent to the node. The text is concatenated in document order. This allows specifying any text node and obtaining all adjacent text as a single string. > **Note:** This is similar to call {{domxref("Node.normalize()")}} followed by reading the text value, > but without modifying the tree. ## Value A string with the concatenated text. ## Example Suppose you have the following simple paragraph within your webpage: ```html <p> Through-hiking is great! <strong>No insipid election coverage!</strong> However, <a href="https://en.wikipedia.org/wiki/Absentee_ballot">casting a ballot</a> is tricky. </p> ``` You decide you don't like the middle sentence, so you remove it: ```js const paragraph = document.querySelector("p"); // Reads the paragraph paragraph.removeChild(para.childNodes[1]); // Delete the strong element ``` Now you end up with _"Through-hiking is great! However, casting a ballot is tricky."_, with two nodes before the hyperlink: 1. A {{domxref("Text")}} containing the string `"Through-hiking is great!"` 2. A second `Text` node containing the string `" However, "` To get those two nodes at once, you would call `para.childNodes[0].wholeText`: ```js console.log(`'${paragraph.childNodes[0].wholeText}'`); // 'Through-hiking is great! However, ' ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - The {{domxref("Text")}} interface it belongs to.
0
data/mdn-content/files/en-us/web/api/text
data/mdn-content/files/en-us/web/api/text/splittext/index.md
--- title: "Text: splitText() method" short-title: splitText() slug: Web/API/Text/splitText page-type: web-api-instance-method browser-compat: api.Text.splitText --- {{APIRef("DOM")}} The **`splitText()`** method of the {{domxref("Text")}} interface breaks the {{domxref("Text")}} node into two nodes at the specified offset, keeping both nodes in the tree as siblings. After the split, the current node contains all the content up to the specified offset point, and a newly created node of the same type contains the remaining text. The newly created node is returned to the caller. If the original node had a parent, the new node is inserted as the next sibling of the original node. If the offset is equal to the length of the original node, the newly created node has no data. Separated text nodes can be concatenated using the {{domxref("Node.normalize()")}} method. ## Syntax ```js-nolint newNode = textNode.splitText(offset) ``` ### Parameters - `offset` - : The index immediately before which to break the text node. ### Return value Returns the newly created {{domxref("Text")}} node that contains the text after the specified offset point. ### Exceptions - `IndexSizeError` {{domxref("DOMException")}} - : Thrown if the specified offset is negative or is greater than the number of 16-bit units in the node's text. - `NoModificationAllowedError` {{domxref("DOMException")}} - : Thrown if the node is read-only. ## Example In this example, the text of a {{HTMLElement("p")}} is split into two text nodes, and a {{HTMLElement("u")}} is inserted between them. ```html <p>foobar</p> ``` ```js const p = document.querySelector("p"); // Get contents of <p> as a text node const foobar = p.firstChild; // Split 'foobar' into two text nodes, 'foo' and 'bar', // and save 'bar' as a const const bar = foobar.splitText(3); // Create a <u> element containing ' new content ' const u = document.createElement("u"); u.appendChild(document.createTextNode(" new content ")); // Add <u> before 'bar' p.insertBefore(u, bar); // The result is: <p>foo<u> new content </u>bar</p> ``` {{EmbedLiveSample("Example", 700, 70)}} ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - The {{domxref("Text")}} interface it belongs to. - The opposite method: {{domxref("Node.normalize")}}.
0
data/mdn-content/files/en-us/web/api/text
data/mdn-content/files/en-us/web/api/text/assignedslot/index.md
--- title: "Text: assignedSlot property" short-title: assignedSlot slug: Web/API/Text/assignedSlot page-type: web-api-instance-property browser-compat: api.Text.assignedSlot --- {{APIRef("DOM")}} The read-only **`assignedSlot`** property of the {{domxref("Text")}} interface returns the {{domxref("HTMLSlotElement")}} object associated with the element. ## Value An {{domxref("HTMLSlotElement")}}, or `null` if no {{HTMLElement("slot")}} element is associated with the text node. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}}
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/bluetooth/index.md
--- title: Bluetooth slug: Web/API/Bluetooth page-type: web-api-interface status: - experimental browser-compat: api.Bluetooth --- {{APIRef("Bluetooth API")}}{{securecontext_header}}{{SeeCompatTable}} The **`Bluetooth`** interface of the [Web Bluetooth API](/en-US/docs/Web/API/Web_Bluetooth_API) returns a {{jsxref("Promise")}} to a {{domxref("BluetoothDevice")}} object with the specified options. {{InheritanceDiagram}} ## Instance properties _Inherits properties from its parent {{domxref("EventTarget")}}._ ## Instance methods - {{domxref("Bluetooth.getAvailability","Bluetooth.getAvailability()")}} {{Experimental_Inline}} - : Returns a {{jsxref("Promise")}} that resolved to a boolean value indicating whether the user-agent has the ability to support Bluetooth. Some user-agents let the user configure an option that affects what is returned by this value. If this option is set, that is the value returned by this method. - {{domxref("Bluetooth.getDevices","Bluetooth.getDevices()")}} {{Experimental_Inline}} - : Returns a {{jsxref("Promise")}} that resolved to an array of {{domxref("BluetoothDevice")}}s which the origin already obtained permission for via a call to {{domxref("Bluetooth.requestDevice","Bluetooth.requestDevice()")}}. - {{domxref("Bluetooth.requestDevice","Bluetooth.requestDevice()")}} {{Experimental_Inline}} - : Returns a {{jsxref("Promise")}} to a {{domxref("BluetoothDevice")}} object with the specified options. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}}
0
data/mdn-content/files/en-us/web/api/bluetooth
data/mdn-content/files/en-us/web/api/bluetooth/requestdevice/index.md
--- title: "Bluetooth: requestDevice() method" short-title: requestDevice() slug: Web/API/Bluetooth/requestDevice page-type: web-api-instance-method status: - experimental browser-compat: api.Bluetooth.requestDevice --- {{APIRef("Bluetooth API")}} {{securecontext_header}}{{SeeCompatTable}} The **`Bluetooth.requestDevice()`** method of the {{domxref("Bluetooth")}} interface returns a {{jsxref("Promise")}} to a {{domxref("BluetoothDevice")}} object with the specified options. If there is no chooser UI, this method returns the first device matching the criteria. ## Syntax ```js-nolint requestDevice() requestDevice(options) ``` ### Parameters - `options` {{optional_inline}} - : An object that sets options for the device request. The available options are: - `filters[]` - : An array of `BluetoothScanFilters`. This filter consists of an array of `BluetoothServiceUUID`s, a `name` parameter, and a `namePrefix` parameter. - `optionalServices[]` - : An array of `BluetoothServiceUUID`s. - `acceptAllDevices` - : A boolean value indicating that the requesting script can accept all Bluetooth devices. The default is `false`. ### Return value A {{jsxref("Promise")}} to a {{domxref("BluetoothDevice")}} object. ### Exceptions - {{jsxref("TypeError")}} - : Thrown if the provided `options` do not make sense. For example, `options.filters` is present and `options.acceptAllDevices` is `true`, or if `options.filters` is not present and `options.acceptAllDevices` is `false`. Or `options.filters` is `[]`. - `NotFoundError` {{domxref("DOMException")}} - : Thrown if there is no Bluetooth device that matches the specified options. - `SecurityError` {{domxref("DOMException")}} - : Thrown if this operation is not permitted in this context due to security concerns. For example, it is called from insecure origin. ## Examples ```js // Discovery options match any devices advertising: // . The standard heart rate service. // . Both 16-bit service IDs 0x1802 and 0x1803. // . A proprietary 128-bit UUID service c48e6067-5295-48d3-8d5c-0395f61792b1. // . Devices with name "ExampleName". // . Devices with name starting with "Prefix". // // And enables access to the battery service if devices // include it, even if devices do not advertise that service. let options = { filters: [ { services: ["heart_rate"] }, { services: [0x1802, 0x1803] }, { services: ["c48e6067-5295-48d3-8d5c-0395f61792b1"] }, { name: "ExampleName" }, { namePrefix: "Prefix" }, ], optionalServices: ["battery_service"], }; navigator.bluetooth .requestDevice(options) .then((device) => { console.log(`Name: ${device.name}`); // Do something with the device. }) .catch((error) => console.error(`Something went wrong. ${error}`)); ``` [Detailed examples](https://webbluetoothcg.github.io/web-bluetooth/#example-filter-by-services) are in the specification. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}}
0
data/mdn-content/files/en-us/web/api/bluetooth
data/mdn-content/files/en-us/web/api/bluetooth/getavailability/index.md
--- title: "Bluetooth: getAvailability() method" short-title: getAvailability() slug: Web/API/Bluetooth/getAvailability page-type: web-api-instance-method status: - experimental browser-compat: api.Bluetooth.getAvailability --- {{securecontext_header}}{{SeeCompatTable}}{{APIRef("Bluetooth API")}} The **`getAvailability()`** method of the {{DOMxRef("Bluetooth")}} interface returns `true` if the device has a Bluetooth adapter, and false otherwise (unless the user has configured the browser to not expose a real value). > **Note:** A user might not allow use of Web Bluetooth API, even if > `getAvailability()` returns `true` > ({{DOMxRef("Bluetooth.requestDevice","navigator.bluetooth.requestDevice()")}} might > not resolve with a {{DOMxRef("BluetoothDevice")}}). Also, a user can configure their browser to return a fixed value instead of a real one. ## Syntax ```js-nolint getAvailability() ``` ### Parameters None. ### Return value A {{JSxRef("Promise")}} that resolves with {{JSxRef("Boolean")}}. ## Exceptions This method doesn't throw any exceptions. ## Examples The following snippet prints out a message in the console specifying whether or not Bluetooth is supported: ```js navigator.bluetooth.getAvailability().then((available) => { if (available) { console.log("This device supports Bluetooth!"); } else { console.log("Doh! Bluetooth is not supported"); } }); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}}
0
data/mdn-content/files/en-us/web/api/bluetooth
data/mdn-content/files/en-us/web/api/bluetooth/getdevices/index.md
--- title: "Bluetooth: getDevices() method" short-title: getDevices() slug: Web/API/Bluetooth/getDevices page-type: web-api-instance-method status: - experimental browser-compat: api.Bluetooth.getDevices --- {{securecontext_header}}{{SeeCompatTable}}{{APIRef("Bluetooth API")}} The **`getDevices()`** method of {{DOMxRef("Bluetooth")}} interface of [Web Bluetooth API](/en-US/docs/Web/API/Web_Bluetooth_API) exposes the Bluetooth devices this origin is allowed to access. This method does not display any permission prompts. > **Note:** This method returns a {{DOMxRef("BluetoothDevice")}} for each > device the origin is currently allowed to access, even the ones that are out of range > or powered off. ## Syntax ```js-nolint getDevices() ``` ### Parameters None. ### Return value A {{JSxRef("Promise")}} that resolves with an array of {{DOMxRef("BluetoothDevice")}}s. ## Exceptions This method doesn't throw any exceptions. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}}
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/filesystemwritablefilestream/index.md
--- title: FileSystemWritableFileStream slug: Web/API/FileSystemWritableFileStream page-type: web-api-interface browser-compat: api.FileSystemWritableFileStream --- {{securecontext_header}}{{APIRef("File System API")}} The **`FileSystemWritableFileStream`** interface of the {{domxref("File System API", "File System API", "", "nocode")}} is a {{domxref('WritableStream')}} object with additional convenience methods, which operates on a single file on disk. The interface is accessed through the {{domxref('FileSystemFileHandle.createWritable()')}} method. {{InheritanceDiagram}} ## Instance properties _Inherits properties from its parent, {{DOMxRef("WritableStream")}}._ ## Instance methods _Inherits methods from its parent, {{DOMxRef("WritableStream")}}._ - {{domxref('FileSystemWritableFileStream.write()')}} - : Writes content into the file the method is called on, at the current file cursor offset. - {{domxref('FileSystemWritableFileStream.seek()')}} - : Updates the current file cursor offset to the position (in bytes) specified. - {{domxref('FileSystemWritableFileStream.truncate()')}} - : Resizes the file associated with the stream to be the specified size in bytes. ## Examples The following asynchronous function opens the 'Save File' picker, which returns a {{domxref('FileSystemFileHandle')}} once a file is selected. From this, a writable stream is created using the {{domxref('FileSystemFileHandle.createWritable()')}} method. A text string is then written to the stream, which is subsequently closed. ```js async function saveFile() { // create a new handle const newHandle = await window.showSaveFilePicker(); // create a FileSystemWritableFileStream to write to const writableStream = await newHandle.createWritable(); // write our file await writableStream.write("This is my file content"); // close the file and write the contents to disk. await writableStream.close(); } ``` The following examples show different options that can be passed into the `write()` method. ```js // just pass in the data (no options) writableStream.write(data); // writes the data to the stream from the determined position writableStream.write({ type: "write", position, data }); // updates the current file cursor offset to the position specified writableStream.write({ type: "seek", position }); // resizes the file to be size bytes long writableStream.write({ type: "truncate", size }); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [File System API](/en-US/docs/Web/API/File_System_API) - [The File System Access API: simplifying access to local files](https://developer.chrome.com/docs/capabilities/web-apis/file-system-access)
0
data/mdn-content/files/en-us/web/api/filesystemwritablefilestream
data/mdn-content/files/en-us/web/api/filesystemwritablefilestream/truncate/index.md
--- title: "FileSystemWritableFileStream: truncate() method" short-title: truncate() slug: Web/API/FileSystemWritableFileStream/truncate page-type: web-api-instance-method browser-compat: api.FileSystemWritableFileStream.truncate --- {{securecontext_header}}{{APIRef("File System API")}} The **`truncate()`** method of the {{domxref("FileSystemWritableFileStream")}} interface resizes the file associated with the stream to the specified size in bytes. If the size specified is larger than the current file size the file is padded with `0x00` bytes. The file cursor is also updated when `truncate()` is called. If the offset is smaller than the size, it remains unchanged. If the offset is larger than size, the offset is set to that size. This ensures that subsequent writes do not error. No changes are written to the actual file on disk until the stream has been closed. Changes are typically written to a temporary file instead. ## Syntax ```js-nolint truncate(size) ``` ### Parameters - `size` - : A number specifying the number of bytes to resize the stream to. ### Return value A {{jsxref('Promise')}} that returns `undefined`. ### Exceptions - `NotAllowedError` {{domxref("DOMException")}} - : Thrown if {{domxref('PermissionStatus.state')}} is not `granted`. - `QuotaExceededError` {{domxref("DOMException")}} - : Thrown if the new size of the file is larger than the original size of the file, and exceeds the browser's [storage quota](/en-US/docs/Web/API/Storage_API/Storage_quotas_and_eviction_criteria). - {{jsxref("TypeError")}} - : Thrown if `size` is not a number or not defined. ## Examples The following asynchronous function opens the 'Save File' picker, which returns a {{domxref('FileSystemFileHandle')}} once a file is selected. From this, a writable stream is created using the {{domxref('FileSystemFileHandle.createWritable()')}} method. Next, we write to the stream: 1. A text string is written to the stream. 2. The `truncate()` method is used to resize the file to 8 bytes. 3. A second text string is written to the start of the stream, overwriting the first write. The stream is then closed. ```js async function saveFile() { try { // create a new handle const newHandle = await window.showSaveFilePicker(); // create a FileSystemWritableFileStream to write to const writableStream = await newHandle.createWritable(); // write our file await writableStream.write("This is my first file content"); await writableStream.truncate(8); await writableStream.write("my second file content"); // close the file and write the contents to disk. await writableStream.close(); } catch (err) { console.error(err.name, err.message); } } ``` If you run the above function and then open the resulting file created on disk, you should see the text "This is my second file content". ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [File System API](/en-US/docs/Web/API/File_System_API) - [The File System Access API: simplifying access to local files](https://developer.chrome.com/docs/capabilities/web-apis/file-system-access)
0
data/mdn-content/files/en-us/web/api/filesystemwritablefilestream
data/mdn-content/files/en-us/web/api/filesystemwritablefilestream/seek/index.md
--- title: "FileSystemWritableFileStream: seek() method" short-title: seek() slug: Web/API/FileSystemWritableFileStream/seek page-type: web-api-instance-method browser-compat: api.FileSystemWritableFileStream.seek --- {{securecontext_header}}{{APIRef("File System API")}} The **`seek()`** method of the {{domxref("FileSystemWritableFileStream")}} interface updates the current file cursor offset to the position (in bytes) specified when calling the method. ## Syntax ```js-nolint seek(position) ``` ### Parameters - `position` - : A number specifying the byte position from the beginning of the file. ### Return value A {{jsxref('Promise')}} that returns `undefined`. ### Exceptions - `NotAllowedError` {{domxref("DOMException")}} - : Thrown if {{domxref('PermissionStatus.state')}} is not `granted`. - {{jsxref("TypeError")}} - : Thrown if `position` is not a number or not defined. ## Examples The following asynchronous function opens the 'Save File' picker, which returns a {{domxref('FileSystemFileHandle')}} once a file is selected. From this, a writable stream is created using the {{domxref('FileSystemFileHandle.createWritable()')}} method. Next, we write to the stream: 1. A text string is written to the stream. 2. The `seek()` method is used to put the cursor at the start of the stream. 3. A second text string is written to the start of the stream, overwriting the first write. The stream is then closed. ```js async function saveFile() { try { // create a new handle const newHandle = await window.showSaveFilePicker(); // create a FileSystemWritableFileStream to write to const writableStream = await newHandle.createWritable(); // write our file await writableStream.write("My first file content"); await writableStream.seek(0); await writableStream.write("My second file content"); // close the file and write the contents to disk. await writableStream.close(); } catch (err) { console.error(err.name, err.message); } } ``` If you run the above function and then open the resulting file created on disk, you should see the text "My second file content". ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [File System API](/en-US/docs/Web/API/File_System_API) - [The File System Access API: simplifying access to local files](https://developer.chrome.com/docs/capabilities/web-apis/file-system-access)
0
data/mdn-content/files/en-us/web/api/filesystemwritablefilestream
data/mdn-content/files/en-us/web/api/filesystemwritablefilestream/write/index.md
--- title: "FileSystemWritableFileStream: write() method" short-title: write() slug: Web/API/FileSystemWritableFileStream/write page-type: web-api-instance-method browser-compat: api.FileSystemWritableFileStream.write --- {{securecontext_header}}{{APIRef("File System API")}} The **`write()`** method of the {{domxref("FileSystemWritableFileStream")}} interface writes content into the file the method is called on, at the current file cursor offset. No changes are written to the actual file on disk until the stream has been closed. Changes are typically written to a temporary file instead. This method can also be used to seek to a byte point within the stream and truncate to modify the total bytes the file contains. ## Syntax ```js-nolint write(data) ``` ### Parameters - `data` - : Can be one of the following: - The file data to write, in the form of an {{jsxref("ArrayBuffer")}}, {{jsxref("TypedArray")}}, {{jsxref("DataView")}}, {{domxref('Blob')}}, or string. - An object containing the following properties: - `type` - : A string that is one of `"write"`, `"seek"`, or `"truncate"`. - `data` - : The file data to write. Can be an {{jsxref("ArrayBuffer")}}, {{jsxref("TypedArray")}}, {{jsxref("DataView")}}, {{domxref('Blob')}}, or string. This property is required if `type` is set to `"write"`. - `position` - : The byte position the current file cursor should move to if type `"seek"` is used. Can also be set if `type` is `"write"`, in which case the write will start at the specified position. - `size` - : A number representing the number of bytes the stream should contain. This property is required if `type` is set to `"truncate"`. ### Return value A {{jsxref('Promise')}} that returns `undefined`. ### Exceptions - `NotAllowedError` {{domxref("DOMException")}} - : Thrown if {{domxref('PermissionStatus.state')}} is not `granted`. - `QuotaExceededError` {{domxref("DOMException")}} - : Thrown if the new size of the file is larger than the original size of the file, and exceeds the browser's [storage quota](/en-US/docs/Web/API/Storage_API/Storage_quotas_and_eviction_criteria). - {{jsxref("TypeError")}} - : Thrown if `data` is undefined, or if `position` or `size` aren't valid. ## Examples The following asynchronous function opens the 'Save File' picker, which returns a {{domxref('FileSystemFileHandle')}} once a file is selected. From this, a writable stream is created using the {{domxref('FileSystemFileHandle.createWritable()')}} method. A text string is then written to the stream, which is subsequently closed. ```js async function saveFile() { try { // create a new handle const newHandle = await window.showSaveFilePicker(); // create a FileSystemWritableFileStream to write to const writableStream = await newHandle.createWritable(); // write our file await writableStream.write("This is my file content"); // close the file and write the contents to disk. await writableStream.close(); } catch (err) { console.error(err.name, err.message); } } ``` The following examples show different options that can be passed into the `write()` method. ```js // just pass in the data (no options) writableStream.write(data); // writes the data to the stream from the determined position writableStream.write({ type: "write", position, data }); // updates the current file cursor offset to the position specified writableStream.write({ type: "seek", position }); // resizes the file to be size bytes long writableStream.write({ type: "truncate", size }); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [File System API](/en-US/docs/Web/API/File_System_API) - [The File System Access API: simplifying access to local files](https://developer.chrome.com/docs/capabilities/web-apis/file-system-access)
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/htmlheadingelement/index.md
--- title: HTMLHeadingElement slug: Web/API/HTMLHeadingElement page-type: web-api-interface browser-compat: api.HTMLHeadingElement --- {{ APIRef("HTML DOM") }} The **`HTMLHeadingElement`** interface represents the different heading elements, [`<h1>` through `<h6>`](/en-US/docs/Web/HTML/Element/Heading_Elements). It inherits methods and properties from the {{domxref("HTMLElement")}} interface. {{InheritanceDiagram}} ## Instance properties _Inherits properties from its parent, {{domxref("HTMLElement")}}._ - {{domxref("HTMLHeadingElement.align")}} {{deprecated_inline}} - : A string representing an enumerated attribute indicating alignment of the heading with respect to the surrounding context. The possible values are `"left"`, `"right"`, `"justify"`, and `"center"`. ## Instance methods _No specific method; inherits methods from its parent, {{domxref("HTMLElement")}}._ ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - The HTML element implementing this interface: {{ HTMLElement("Heading_Elements", "h1")}}, {{ HTMLElement("Heading_Elements", "h2")}}, {{ HTMLElement("Heading_Elements", "h3")}}, {{ HTMLElement("Heading_Elements", "h4")}}, {{ HTMLElement("Heading_Elements", "h5")}}, and {{ HTMLElement("Heading_Elements", "h6")}}.
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/audioparammap/index.md
--- title: AudioParamMap slug: Web/API/AudioParamMap page-type: web-api-interface browser-compat: api.AudioParamMap --- {{APIRef("Web Audio API")}} The **`AudioParamMap`** interface of the [Web Audio API](/en-US/docs/Web/API/Web_Audio_API) represents an iterable and read-only set of multiple audio parameters. An `AudioParamMap` instance is a read-only [`Map`-like object](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map#map-like_browser_apis), in which each key is the name string for a parameter, and the corresponding value is an {{domxref("AudioParam")}} containing the value of that parameter. ## Instance properties - {{domxref("AudioParamMap.size", "size")}} - : ? ## Instance methods - {{domxref("AudioParamMap.entries", "entries()")}} - : ? - {{domxref("AudioParamMap.forEach", "forEach()")}} - : ? - {{domxref("AudioParamMap.has", "has()")}} - : ? - {{domxref("AudioParamMap.keys", "keys()")}} - : ? - {{domxref("AudioParamMap.values", "values()")}} - : ? ## Specifications {{Specifications}} ## Browser compatibility {{Compat}}
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/animationplaybackevent/index.md
--- title: AnimationPlaybackEvent slug: Web/API/AnimationPlaybackEvent page-type: web-api-interface browser-compat: api.AnimationPlaybackEvent --- {{ APIRef("Web Animations") }} The AnimationPlaybackEvent interface of the [Web Animations API](/en-US/docs/Web/API/Web_Animations_API) represents animation events. As animations play, they report changes to their {{domxref("Animation.playState", "playState")}} through animation events. {{InheritanceDiagram}} ## Constructor - {{domxref("AnimationPlaybackEvent.AnimationPlaybackEvent", "AnimationPlaybackEvent()")}} - : Constructs a new `AnimationPlaybackEvent` object instance. ## Instance properties - {{domxref("AnimationPlaybackEvent.currentTime")}} {{ReadOnlyInline}} - : The current time of the animation that generated the event. - {{domxref("AnimationPlaybackEvent.timelineTime")}} {{ReadOnlyInline}} - : The time value of the timeline of the animation that generated the event. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [Web Animations API](/en-US/docs/Web/API/Web_Animations_API) - {{domxref("Animation.playState")}}
0
data/mdn-content/files/en-us/web/api/animationplaybackevent
data/mdn-content/files/en-us/web/api/animationplaybackevent/currenttime/index.md
--- title: "AnimationPlaybackEvent: currentTime property" short-title: currentTime slug: Web/API/AnimationPlaybackEvent/currentTime page-type: web-api-instance-property browser-compat: api.AnimationPlaybackEvent.currentTime --- {{ APIRef("Web Animations") }} The **`currentTime`** read-only property of the {{domxref("AnimationPlaybackEvent")}} interface represents the current time of the animation that generated the event at the moment the event is queued. This will be unresolved if the animation was `idle` at the time the event was generated. ## Value A number representing the current time in milliseconds, or `null`. ## Reduced time precision To offer protection against timing attacks and [fingerprinting](/en-US/docs/Glossary/Fingerprinting), the precision of `playbackEvent.currentTime` might get rounded depending on browser settings. In Firefox, the `privacy.reduceTimerPrecision` preference is enabled by default and defaults to 20 µs in Firefox 59; in 60, it will be 2 ms. ```js // reduced time precision (2ms) in Firefox 60 playbackEvent.currentTime; // 23.404 // 24.192 // 25.514 // … // reduced time precision with `privacy.resistFingerprinting` enabled playbackEvent.currentTime; // 49.8 // 50.6 // 51.7 // … ``` In Firefox, you can also enabled `privacy.resistFingerprinting`, the precision will be 100ms or the value of `privacy.resistFingerprinting.reduceTimerPrecision.microseconds`, whichever is larger. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [Web Animations API](/en-US/docs/Web/API/Web_Animations_API) - {{domxref("AnimationPlayBackEvent")}}
0
data/mdn-content/files/en-us/web/api/animationplaybackevent
data/mdn-content/files/en-us/web/api/animationplaybackevent/timelinetime/index.md
--- title: "AnimationPlaybackEvent: timelineTime property" short-title: timelineTime slug: Web/API/AnimationPlaybackEvent/timelineTime page-type: web-api-instance-property browser-compat: api.AnimationPlaybackEvent.timelineTime --- {{ APIRef("Web Animations") }} The **`timelineTime`** read-only property of the {{domxref("AnimationPlaybackEvent")}} interface represents the time value of the animation's {{domxref("AnimationTimeline", "timeline")}} at the moment the event is queued. This will be unresolved if the animation was not associated with a timeline at the time the event was generated or if the associated timeline was inactive. ## Value A number representing the current time in milliseconds, or `null`. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [Web Animations API](/en-US/docs/Web/API/Web_Animations_API) - {{domxref("AnimationPlayBackEvent")}} - {{domxref("AnimationTimeline")}}
0
data/mdn-content/files/en-us/web/api/animationplaybackevent
data/mdn-content/files/en-us/web/api/animationplaybackevent/animationplaybackevent/index.md
--- title: "AnimationPlaybackEvent: AnimationPlaybackEvent() constructor" short-title: AnimationPlaybackEvent() slug: Web/API/AnimationPlaybackEvent/AnimationPlaybackEvent page-type: web-api-constructor browser-compat: api.AnimationPlaybackEvent.AnimationPlaybackEvent --- {{ APIRef("Web Animations") }} The **`AnimationPlaybackEvent()`** constructor of the [Web Animations API](/en-US/docs/Web/API/Web_Animations_API) returns a new {{domxref("AnimationPlaybackEvent")}} object instance. ## Syntax ```js-nolint new AnimationPlaybackEvent(type) new AnimationPlaybackEvent(type, options) ``` ### Parameters - `type` - : A string with the name of the event. It is case-sensitive and browsers set it to `cancel`, `finish`, or `remove`. - `options` {{optional_inline}} - : An object that, _in addition of the properties defined in {{domxref("Event/Event", "Event()")}}_, has the following properties: - `detail` {{optional_inline}} - : An event-dependent value associated with the event. Defaults to `null`. ### Return value A new {{domxref("AnimationPlaybackEvent")}} object. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [Web Animations API](/en-US/docs/Web/API/Web_Animations_API) - {{domxref("AnimationPlayBackEvent")}} - {{domxref("Animation.playState")}} - {{domxref("CustomEvent.CustomEvent", "CustomEvent()")}} - {{domxref("Event.Event", "Event()")}}
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/htmlolistelement/index.md
--- title: HTMLOListElement slug: Web/API/HTMLOListElement page-type: web-api-interface browser-compat: api.HTMLOListElement --- {{ APIRef("HTML DOM") }} The **`HTMLOListElement`** interface provides special properties (beyond those defined on the regular {{domxref("HTMLElement")}} interface it also has available to it by inheritance) for manipulating ordered list elements. {{InheritanceDiagram}} ## Instance properties _Inherits properties from its parent, {{domxref("HTMLElement")}}._ - {{domxref("HTMLOListElement.reversed")}} - : A boolean value reflecting the [`reversed`](/en-US/docs/Web/HTML/Element/ol#reversed) and defining if the numbering is descending, that is its value is `true`, or ascending (`false`). - {{domxref("HTMLOListElement.start")}} - : A `long` value reflecting the [`start`](/en-US/docs/Web/HTML/Element/ol#start) and defining the value of the first number of the first element of the list. - {{domxref("HTMLOListElement.type")}} - : A string value reflecting the [`type`](/en-US/docs/Web/HTML/Element/ol#type) and defining the kind of marker to be used to display. It can have the following values: - `'1'` meaning that decimal numbers are used: `1`, `2`, `3`, `4`, `5`, … - `'a'` meaning that the lowercase latin alphabet is used: `a`, `b`, `c`, `d`, `e`, … - `'A'` meaning that the uppercase latin alphabet is used: `A`, `B`, `C`, `D`, `E`, … - `'i'` meaning that the lowercase latin numerals are used: `i`, `ii`, `iii`, `iv`, `v`, … - `'I'` meaning that the uppercase latin numerals are used: `I`, `II`, `III`, `IV`, `V`, … - {{domxref("HTMLOListElement.compact")}} {{deprecated_inline}} - : A boolean value indicating that spacing between list items should be reduced. This property reflects the [`compact`](/en-US/docs/Web/HTML/Element/ol#compact) attribute only, it doesn't consider the {{cssxref("line-height")}} CSS property used for that behavior in modern pages. ## Instance methods _No specific method; inherits methods from its parent, {{domxref("HTMLElement")}}._ ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - The HTML element implementing this interface: {{ HTMLElement("ol") }}.
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/navigation_api/index.md
--- title: Navigation API slug: Web/API/Navigation_API page-type: web-api-overview status: - experimental browser-compat: - api.Navigation - api.NavigationDestination - api.NavigationHistoryEntry - api.NavigationTransition spec-urls: https://html.spec.whatwg.org/multipage/nav-history-apis.html#navigation-api --- {{SeeCompatTable}}{{DefaultAPISidebar("Navigation API")}} The **Navigation API** provides the ability to initiate, intercept, and manage browser navigation actions. It can also examine an application's history entries. This is a successor to previous web platform features such as the {{domxref("History API", "", "", "nocode")}} and {{domxref("window.location")}}, which solves their shortcomings and is specifically aimed at the needs of {{glossary("SPA", "single-page applications (SPAs)")}}. ## Concepts and usage In SPAs, the page template tends to stay the same during usage, and the content is dynamically rewritten as the user visits different pages or features. As a result, only one distinct page is loaded in the browser, which breaks the expected user experience of navigating back and forth between different locations in the viewing history. This problem can be solved to a degree via the {{domxref("History API", "", "", "nocode")}}, but it is not designed for the needs of SPAs. The Navigation API aims to bridge that gap. The API is accessed via the {{domxref("Window.navigation")}} property, which returns a reference to a global {{domxref("Navigation")}} object. Each `window` object has its own corresponding `navigation` instance. ### Handling navigations The `navigation` interface has several associated events, the most notable being the {{domxref("Navigation/navigate_event", "navigate")}} event. This is fired when [any type of navigation](https://github.com/WICG/navigation-api#appendix-types-of-navigations) is initiated, meaning that you can control all page navigations from one central place, ideal for routing functionality in SPA frameworks. (This is not the case with the {{domxref("History API", "", "", "nocode")}}, where it is sometimes hard to figure out responding to all navigations.) The `navigate` event handler is passed a {{domxref("NavigateEvent")}} object, which contains detailed information including details around the navigation's destination, type, whether it contains `POST` form data or a download request, and more. The `NavigationEvent` object also provides two methods: - {{domxref("NavigateEvent.intercept", "intercept()")}} takes as an argument a callback handler function returning a promise. It allows you to control what happens when the navigation is initiated. For example, in the case of an SPA, it can be used to load relevant new content into the UI based on the path of the URL navigated to. - {{domxref("NavigateEvent.scroll", "scroll()")}} allows you to manually initiate the browser's scroll behavior (e.g. to a fragment identifier in the URL), if it makes sense for your code, rather than waiting for the browser to handle it automatically. Once a navigation is initiated, and your `intercept()` handler is called, a {{domxref("NavigationTransition")}} object instance is created (accessible via {{domxref("Navigation.transition")}}), which can be used to track the process of the ongoing navigation. > **Note:** In this context "transition" refers to the transition between one history entry and another. It isn't related to CSS transitions. > **Note:** You can also call {{domxref("Event.preventDefault", "preventDefault()")}} to stop the navigation entirely for most [navigation types](/en-US/docs/Web/API/NavigateEvent/navigationType#value); cancellation of traverse navigations is not yet implemented. When the `intercept()` handler function's promise fulfills, the `Navigation` object's {{domxref("Navigation/navigatesuccess_event", "navigatesuccess")}} event fires, allowing you to run cleanup code after a successful navigation has completed. If it rejects, meaning the navigation has failed, {{domxref("Navigation/navigateerror_event", "navigateerror")}} fires instead, allowing you to gracefully handle the failure case. There is also a {{domxref("NavigationTransition.finished", "finished")}} property on the `NavigationTransition` object, which fulfills or rejects at the same time as the aforementioned events are fired, providing another path for handling the success and failure cases. > **Note:** Before the Navigation API was available, to do something similar you'd have to listen for all click events on links, run `e.preventDefault()`, perform the appropriate {{domxref("History.pushState()")}} call, then set up the page view based on the new URL. And this wouldn't handle all navigations — only user-initiated link clicks. ### Programmatically updating and traversing the navigation history As the user navigates through your application, each new location navigated to results in the creation of a navigation history entry. Each history entry is represented by a distinct {{domxref("NavigationHistoryEntry")}} object instance. These contain several properties such as the entry's key, URL, and state information. You can get the entry that the user is currently on right now using {{domxref("Navigation.currentEntry")}}, and an array of all existing history entries using {{domxref("Navigation.entries()")}}. Each `NavigationHistoryEntry` object has a {{domxref("NavigationHistoryEntry/dispose_event", "dispose")}} event, which fires when the entry is no longer part of the browser history. For example, if the user navigates back three times, then navigates forward to somewhere else, those three history entries will be disposed of. > **Note:** The Navigation API only exposes history entries created in the current browsing context that have the same origin as the current page (e.g. not navigations inside embedded {{htmlelement("iframe")}}s, or cross-origin navigations), providing an accurate list of all previous history entries just for your app. This makes traversing the history a much less fragile proposition than with the older {{domxref("History API", "", "", "nocode")}}. The `Navigation` object contains all the methods you'll need to update and traverse through the navigation history: - {{domxref("Navigation.navigate", "navigate()")}} {{Experimental_Inline}} - : Navigates to a new URL, creating a new navigation history entry. - {{domxref("Navigation.reload", "reload()")}} {{Experimental_Inline}} - : Reloads the current navigation history entry. - {{domxref("Navigation.back", "back()")}} {{Experimental_Inline}} - : Navigates to the previous navigation history entry, if that is possible. - {{domxref("Navigation.forward", "forward()")}} {{Experimental_Inline}} - : Navigates to the next navigation history entry, if that is possible. - {{domxref("Navigation.traverseTo", "traverseTo()")}} {{Experimental_Inline}} - : Navigates to a specific navigation history entry identified by its key value, which is obtained via the relevant entry's {{domxref("NavigationHistoryEntry.key")}} property. Each one of the above methods returns an object containing two promises — `{ committed, finished }`. This allows the invoking function to wait on taking further action until: - `committed` fulfills, meaning that the visible URL has changed and a new {{domxref("NavigationHistoryEntry")}} has been created. - `finished` fulfills, meaning that all promises returned by your `intercept()` handler are fulfilled. This is equivalent to the {{domxref("NavigationTransition.finished")}} promise fulfilling, when the {{domxref("Navigation/navigatesuccess_event", "navigatesuccess")}} event fires, as mentioned earlier. - either one of the above promises rejects, meaning that the navigation has failed for some reason. ### State The Navigation API allows you to store state on each history entry. This is developer-defined information — it can be whatever you like. For example, you might want to store a `visitCount` property that records the number of times a view has been visited, or an object containing multiple properties related to UI state, so that state can be restored when a user returns to that view. To get a {{domxref("NavigationHistoryEntry")}}'s state, you call its {{domxref("NavigationHistoryEntry.getState", "getState()")}} method. It is initially `undefined`, but when state information is set on the entry, it will return the previously-set state information. Setting state is a bit more nuanced. You can't retrieve the state value and then update it directly — the copy stored on the entry will not change. Instead, you update it while performing a {{domxref("Navigation.navigate", "navigate()")}} or {{domxref("Navigation.reload", "reload()")}} — each one of these optionally takes an options object parameter, which includes a `state` property containing the new state to set on the history entry. When these navigations commit, the state change will be automatically applied. In some cases however, a state change will be independent from a navigation or reload — for example when a page contains an expandable/collapsible {{htmlelement("details")}} element. In this case, you might want to store the expanded/collapsed state in your history entry, so you can restore it when the user returns to the page or restarts their browser. Cases like this are handled using {{domxref("Navigation.updateCurrentEntry()")}}. The {{domxref("Navigation/currententrychange_event", "currententrychange")}} will fire when the current entry change is complete. ### Limitations There are a few perceived limitations with the Navigation API: 1. The current specification doesn't trigger a {{domxref("Navigation.navigate_event", "navigate")}} event on a page's first load. This might be fine for sites that use Server Side Rendering (SSR)—your server could return the correct initial state, which is the fastest way to get content to your users. But sites that leverage client-side code to create their pages may need an additional function to initialize the page. 2. The Navigation API operates only within a single frame—the top-level page, or a single specific {{htmlelement("iframe")}}. This has some interesting implications that are [further documented in the spec](https://github.com/WICG/navigation-api#warning-backforward-are-not-always-opposites), but in practice, will reduce developer confusion. The previous {{domxref("History API", "", "", "nocode")}} has several confusing edge cases, like support for frames, which the Navigation API handles up-front. 3. You can't currently use the Navigation API to programmatically modify or rearrange the history list. It might be useful to have a temporary state, for example navigating the user to a temporary modal that asks them for some information, then going back to the previous URL. In this case, you'd want to delete the temporary modal navigation entry so the user cannot mess up the application flow by hitting the forward button and opening it again. ## Interfaces - {{domxref("NavigateEvent")}} {{Experimental_Inline}} - : Event object for the {{domxref("Navigation/navigate_event", "navigate")}} event, which fires when [any type of navigation](https://github.com/WICG/navigation-api#appendix-types-of-navigations) is initiated. It provides access to information about that navigation, and most notably the {{domxref("NavigateEvent.intercept", "intercept()")}}, which allows you to control what happens when the navigation is initiated. - {{domxref("Navigation")}} {{Experimental_Inline}} - : Allows control over all navigation actions for the current `window` in one central place, including initiating navigations programmatically, examining navigation history entries, and managing navigations as they happen. - {{domxref("NavigationCurrentEntryChangeEvent")}} {{Experimental_Inline}} - : Event object for the {{domxref("Navigation/currententrychange_event", "currententrychange")}} event, which fires when the {{domxref("Navigation.currentEntry")}} has changed. It provides access to the navigation type, and the previous history entry that was navigated from. - {{domxref("NavigationDestination")}} {{Experimental_Inline}} - : Represents the destination being navigated to in the current navigation. - {{domxref("NavigationHistoryEntry")}} {{Experimental_Inline}} - : Represents a single navigation history entry. - {{domxref("NavigationTransition")}} {{Experimental_Inline}} - : Represents an ongoing navigation. ## Extensions to other interfaces - {{domxref("Window.navigation")}} {{ReadOnlyInline}} {{Experimental_Inline}} - : Returns the current `window`'s associated {{domxref("Navigation")}} object. This is the entry point for the Navigation API. ## Examples > **Note:** Check out Domenic Denicola's [Navigation API live demo](https://gigantic-honored-octagon.glitch.me/). ### Handling a navigation using `intercept()` ```js navigation.addEventListener("navigate", (event) => { // Exit early if this navigation shouldn't be intercepted, // e.g. if the navigation is cross-origin, or a download request if (shouldNotIntercept(event)) { return; } const url = new URL(event.destination.url); if (url.pathname.startsWith("/articles/")) { event.intercept({ async handler() { // The URL has already changed, so show a placeholder while // fetching the new content, such as a spinner or loading page renderArticlePagePlaceholder(); // Fetch the new content and display when ready const articleContent = await getArticleContent(url.pathname); renderArticlePage(articleContent); }, }); } }); ``` ### Handling scrolling using `scroll()` In this example of intercepting a navigation, the `handler()` function starts by fetching and rendering some article content, but then fetches and renders some secondary content afterwards. It makes sense to scroll the page to the main article content as soon as it is available so the user can interact with it, rather than waiting until the secondary content is also rendered. To achieve this, we have added a {{domxref("NavigateEvent.scroll", "scroll()")}} call between the two. ```js navigation.addEventListener("navigate", (event) => { if (shouldNotIntercept(event)) { return; } const url = new URL(event.destination.url); if (url.pathname.startsWith("/articles/")) { event.intercept({ async handler() { const articleContent = await getArticleContent(url.pathname); renderArticlePage(articleContent); event.scroll(); const secondaryContent = await getSecondaryContent(url.pathname); addSecondaryContent(secondaryContent); }, }); } }); ``` ### Traversing to a specific history entry ```js // On JS startup, get the key of the first loaded page // so the user can always go back there. const { key } = navigation.currentEntry; backToHomeButton.onclick = () => navigation.traverseTo(key); // Navigate away, but the button will always work. await navigation.navigate("/another_url").finished; ``` ### Updating state ```js navigation.navigate(url, { state: newState }); ``` Or ```js navigation.reload({ state: newState }); ``` Or if the state is independent from a navigation or reload: ```js navigation.updateCurrentEntry({ state: newState }); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [Modern client-side routing: the Navigation API](https://developer.chrome.com/docs/web-platform/navigation-api/) - [Navigation API explainer](https://github.com/WICG/navigation-api/blob/main/README.md)
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/html_sanitizer_api/index.md
--- title: HTML Sanitizer API slug: Web/API/HTML_Sanitizer_API page-type: web-api-overview status: - experimental browser-compat: api.Sanitizer --- {{DefaultAPISidebar("HTML Sanitizer API")}}{{SeeCompatTable}} {{securecontext_header}} > **Warning:** This documentation reflects stale browser implementations. > The specification has changed significantly since the docs were written, and they will need to be updated once browser implementations catch up. The **HTML Sanitizer API** allow developers to take untrusted strings of HTML and {{domxref('Document')}} or {{domxref('DocumentFragment')}} objects, and sanitize them for safe insertion into a document's DOM. ## Concepts and usage Web applications often need to work with untrusted HTML on the client side, for example, as part of a client-side templating solution or for rendering user generated content, or when including data in a frame from another site. The Sanitizer API allows for rendering of this potentially untrusted HTML in a safe manner. To access the API you would use the {{domxref('Sanitizer.Sanitizer()','Sanitizer()')}} constructor to create and configure a {{domxref('Sanitizer')}} instance. The configuration options parameter allows you to specify the allowed and dis-allowed elements and attributes, and to enable custom elements and comments. The most common use-case - preventing XSS - is handled by the default configuration. Creating a {{domxref("Sanitizer.Sanitizer", "Sanitizer()")}} with a custom configuration is necessary only to handle additional, application-specific use cases. The API has two main methods for sanitizing data: 1. {{domxref('Element.setHTML()')}} parses and sanitizes a string of HTML and immediately inserts it into the DOM as a child of the current element. This is essentially a "safe" version of {{domxref('Element.innerHTML')}}, and should be used instead of `innerHTML` when inserting untrusted data. 2. {{domxref('Sanitizer.sanitize()')}} sanitizes data that is in a {{domxref('Document')}} or {{domxref('DocumentFragment')}}. It might be used, for example, to sanitize a {{domxref('Document')}} instance in a frame. ### Parsing and sanitizing strings The result of parsing a string of HTML depends on the context/the element into which it is inserted. For example, an HTML string containing {{HTMLElement("td")}} elements is valid if inserted under a {{HTMLElement("table")}} elements, but will be dropped if inserted in a {{HTMLElement("div")}} element. Similarly, an {{HTMLElement("em")}} element is a valid node in a {{HTMLElement("div")}} but the tag will be escaped if used in a {{HTMLElement("textarea")}}: ```html <!-- "<em>bla</em>" inserted into <div> --> <div><em>bla</em></div> <!-- "<em>bla</em>" inserted into <textarea> --> <textarea>&lt;em&gt;bla</textarea> ``` The target element must therefore be known when the parser is run and the resulting subtree must be inserted into that same type of element in the DOM, or the result will be incorrect. This consideration does not matter for {{domxref('Element.setHTML()')}} as it is called on a particular element and the context is therefore implicit. The parser may also perform normalization operations on the input string. As a result, even if the HTML is valid and the sanitizer method does nothing, the sanitized output may not precisely match the unsanitized input. This applies to both methods. ## Interfaces - {{domxref('Sanitizer')}} {{Experimental_Inline}} - : Provides the functionality to define a sanitizer configuration, to sanitize untrusted strings of HTML for later insertion into the DOM, and to sanitize {{domxref('Document')}} and {{domxref('DocumentFragment')}} objects. - {{domxref('Element/setHTML','Element.setHTML()')}} - : Parses a string of HTML into a subtree of nodes, sanitizes it using a `Sanitizer` object, then sets it as a child of the current element. ## Examples The following examples show how to use the sanitizer API using the _default_ sanitizer (at time of writing configuration operations are not yet supported). ### Sanitize a string immediately The code below demonstrates how {{domxref('Element/setHTML','Element.setHTML()')}} is used to sanitize a string of HTML and insert it into the `Element` with an id of `target`. The `script` element is disallowed by the default sanitizer so the alert is removed. ```js const unsanitized_string = "abc <script>alert(1)<" + "/script> def"; // Unsanitized string of HTML const sanitizer = new Sanitizer(); // Default sanitizer; // Get the Element with id "target" and set it with the sanitized string. const target = document.getElementById("target"); target.setHTML(unsanitized_string, { sanitizer }); console.log(target.innerHTML); // "abc def" ``` ### Sanitize a frame To sanitize data from an {{HTMLElement("iframe")}} with id `userFrame`: ```js const sanitizer = new Sanitizer(); // Default sanitizer; // Get the frame and its Document object const frame_element = document.getElementById("userFrame"); const unsanitized_frame_tree = frame_element.contentWindow.document; // Sanitize the document tree and update the frame. const sanitized_frame_tree = sanitizer.sanitize(unsanitized_frame_tree); frame_element.replaceChildren(sanitized_frame_tree); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}}
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/web_animations_api/index.md
--- title: Web Animations API slug: Web/API/Web_Animations_API page-type: web-api-overview spec-urls: https://drafts.csswg.org/web-animations/ --- {{DefaultAPISidebar("Web Animations")}} The **Web Animations API** allows for synchronizing and timing changes to the presentation of a Web page, i.e. animation of DOM elements. It does so by combining two models: the Timing Model and the Animation Model. ## Concepts and usage The Web Animations API provides a common language for browsers and developers to describe animations on DOM elements. To get more information on the concepts behind the API and how to use it, read [Using the Web Animations API](/en-US/docs/Web/API/Web_Animations_API/Using_the_Web_Animations_API). ## Web Animations interfaces - {{domxref("Animation")}} - : Provides playback controls and a timeline for an animation node or source. Can take an object created with the {{domxref("KeyframeEffect.KeyframeEffect", "KeyframeEffect()")}} constructor. - {{domxref("KeyframeEffect")}} - : Describes sets of animatable properties and values, called **keyframes** and their timing options. These can then be played using the {{domxref("Animation.Animation", "Animation()")}} constructor. - {{domxref("AnimationTimeline")}} - : Represents the timeline of animation. This interface exists to define timeline features (inherited by {{domxref("DocumentTimeline")}} and future timeline objects) and is not itself accessed by developers. - {{domxref("AnimationEvent")}} - : Actually part of CSS Animations. - {{domxref("DocumentTimeline")}} - : Represents animation timelines, including the default document timeline (accessed using the {{domxref("Document.timeline")}} property). ## Extensions to other interfaces The Web Animations API adds some new features to {{domxref("document")}} and {{domxref("element")}}. ### Extensions to the `Document` interface - {{domxref("document.timeline")}} - : The `DocumentTimeline` object representing the default document timeline. - {{domxref("document.getAnimations()")}} - : Returns an Array of {{domxref("Animation")}} objects currently in effect on elements in the `document`. ### Extensions to the `Element` interface - {{domxref("Element.animate()")}} - : A shortcut method for creating and playing an animation on an element. It returns the created {{domxref("Animation")}} object instance. - {{domxref("Element.getAnimations()")}} - : Returns an Array of {{domxref("Animation")}} objects currently affecting an element or which are scheduled to do so in future. ## Specifications {{Specifications}} ## See also - [Using the Web Animations API](/en-US/docs/Web/API/Web_Animations_API/Using_the_Web_Animations_API) - [Web Animations demos](https://mozdevs.github.io/Animation-examples/) - [Polyfill](https://github.com/web-animations/web-animations-js) - Firefox's current implementation: [AreWeAnimatedYet](https://birtles.github.io/areweanimatedyet/) - [Browser support test](https://codepen.io/danwilson/pen/xGBKVq)
0
data/mdn-content/files/en-us/web/api/web_animations_api
data/mdn-content/files/en-us/web/api/web_animations_api/web_animations_api_concepts/index.md
--- title: Web Animations API Concepts slug: Web/API/Web_Animations_API/Web_Animations_API_Concepts page-type: guide --- {{DefaultAPISidebar("Web Animations")}} The Web Animations API (WAAPI) provides JavaScript developers access to the browser's animation engine and describes how animations should be implemented across browsers. This article will introduce you to the important concepts behind the WAAPI, providing you with a theoretical understanding of how it works so you can use it effectively. To learn how to put the API to use, check out its sister article, [Using the Web Animations API](/en-US/docs/Web/API/Web_Animations_API/Using_the_Web_Animations_API). The Web Animations API fills the gap between declarative CSS animations and transitions, and dynamic JavaScript animations. This means we can use it to create and manipulate CSS-like animations that go from one pre-defined state to another, or we can use variables, loops, and callbacks to create interactive animations that adapt and react to changing inputs. ## History Over a decade ago, [Synchronized Multimedia Integration Language, or SMIL](/en-US/docs/Web/SVG/SVG_animation_with_SMIL) (pronounced "smile"), brought animation to SVG. Back then it was the only animation engine browsers had to worry about. While four out of five browsers supported SMIL, it only animated SVG elements, could not be used from CSS, and was very complex — often leading to inconsistent implementations. Ten years later, the Safari team introduced the [CSS Animations](https://drafts.csswg.org/css-animations/) and [CSS Transitions](https://drafts.csswg.org/css-transitions/) specs. The Internet Explorer team requested an animations API to consolidate and normalize animation functionality across all browsers, and thus efforts began in earnest among Mozilla Firefox and Google Chrome developers to create the one animation spec to rule them all: the Web Animations API. Now we've got the WAAPI for future animation specifications to piggyback on, allowing them to remain consistent and play well together. It also provides a point of reference all browsers can adhere to with the currently available specs. ![An illustration showing the Web Animations API ruling over CSS Transitions and Animations as well as a third category representing future animation specs with a question mark.](waapi_diagram_white.png) ## The Two Models: Timing and Animation The Web Animations API runs on top of two models, one that handles time—Timing—and one that handles visual change over time—Animation. The Timing Model keeps track of how far along a set timeline we've come. The Animation Model determines what the animated object should look like at any given time. ### Timing The Timing Model is the backbone of working with the WAAPI. Each document has a master timeline, [`Document.timeline`](/en-US/docs/Web/API/Document/timeline), which stretches from the moment the page is loaded to infinity — or until the window is closed. Spread along that timeline according to their durations are our animations. Each animation is anchored to a point in the timeline by its [`startTime`](/en-US/docs/Web/API/Animation/startTime), representing the moment along the document's timeline when the animation starts playing. All the animation's playback relies on this timeline: seeking the animation moves the animation's position along the timeline; slowing down or speeding up the playback rate condenses or expands its spread across the timeline; repeating the animation lines up additional iterations of it along the timeline. In the future, we might have timelines based on gestures or scroll position or even parent and child timelines. The Web Animations API opens up so many possibilities! ### Animation The animation model can be thought of as an array of snapshots of what the animation could look like at any given time, lined up along the duration of the animation. ![An illustration showing how the animation model can be visualized as a series of snapshots arranged along a timeline. In this case, pictures of the cheshire cat going from 0 (there) to 8 seconds (not all there—only his smile is left).](waapi_timing_diagram_white.png) ## Core Concepts Web animations consist of Timeline Objects, Animation Objects, and Animation Effect Objects working together. By assembling these disparate objects, we can create animations of our own. ### Timeline Timeline objects provide the useful property [`currentTime`](/en-US/docs/Web/API/AnimationTimeline/currentTime), which lets us see how long the page has been opened for: it's the "current time" of the document's timeline, which started when the page was opened. As of this writing, there's only one kind of timeline object: the one based on the active document's [`timeline`](/en-US/docs/Web/API/Document/timeline). In the future we may see timeline objects that correspond to the length of the page, perhaps a `ScrollTimeline`, or other things entirely. ### Animation [Animation objects](/en-US/docs/Web/API/Animation) can be imagined as DVD players: they're used for controlling media playback, but without media to play, they don't do anything. Animation objects accept media in the form of Animation Effects, specifically Keyframe Effects (we'll get to those in a moment). Like a DVD player, we can use the Animation Object's methods to [play](/en-US/docs/Web/API/Animation/play), [pause](/en-US/docs/Web/API/Animation/pause), [seek](/en-US/docs/Web/API/Animation/currentTime), and [control the animation's playback direction](/en-US/docs/Web/API/Animation/reverse) and [speed](/en-US/docs/Web/API/Animation/playbackRate). ![An illustration likening how an Animation plays a KeyframeEffect like a DVD player plays a DVD.](waapi_player_diagram_white.png) ### Animation Effect If Animation objects are DVD players, we can think of Animation Effects, or Keyframe Effects, as DVDs. Keyframe Effects are a bundle of information including at the bare minimum a set of keys and the duration they need to be animated over. The Animation Object takes this information and, using the Timeline Object, assembles a playable animation we can view and reference. We currently have only one animation effect type available: [`KeyframeEffect`](/en-US/docs/Web/API/KeyframeEffect). Potentially we could have all kinds of Animation Effects in the future—e.g. effects for grouping and sequencing, not unlike features we had in Flash. In fact, Group Effects and Sequence Effects have already been outlined in the currently-in-progress level 2 spec of the Web Animations API. ### Assembling the Animation from disparate pieces We can assemble all these pieces together to create a working animation with the [`Animation()` Constructor](/en-US/docs/Web/API/Animation/Animation) or we can use the [`Element.animate()`](/en-US/docs/Web/API/Element/animate) shortcut function. (Read more about how to use `Element.animate()` in [Using the Web Animations API](/en-US/docs/Web/API/Web_Animations_API/Using_the_Web_Animations_API).) ## Uses The API allows for the creation of dynamic animations that can be updated on the fly as well as more straightforward, declarative animations like those CSS creates. It can be used in automated tests to ensure that your UI animations are running correctly. It opens up the browser's rendering engine for building animation development tools like timelines. It is also a performant base on which to build a custom or commercial animation library. (See [Animating like you just don't care with Element.animate](https://hacks.mozilla.org/2016/08/animating-like-you-just-dont-care-with-element-animate/).) In some instances, it may negate the need for a fully fledged library entirely in the same way Vanilla JavaScript can be used without jQuery for many purposes. ## See also - [Web Animations API](/en-US/docs/Web/API/Web_Animations_API) — main page - [Using the Web Animations API](/en-US/docs/Web/API/Web_Animations_API/Using_the_Web_Animations_API) — guide - The [full suite of Alice in Wonderland demos](https://codepen.io/collection/nqNJvD) on CodePen for you to play with, fork, and share - [web-animations-js](https://github.com/web-animations/web-animations-js) — the Web Animations API polyfill
0
data/mdn-content/files/en-us/web/api/web_animations_api
data/mdn-content/files/en-us/web/api/web_animations_api/using_the_web_animations_api/index.md
--- title: Using the Web Animations API slug: Web/API/Web_Animations_API/Using_the_Web_Animations_API page-type: guide --- {{DefaultAPISidebar("Web Animations")}} The Web Animations API lets us construct animations and control their playback with JavaScript. This article will start you off in the right direction with fun demos and tutorials featuring Alice in Wonderland. ## Meet the Web Animations API The [Web Animations API](/en-US/docs/Web/API/Web_Animations_API) opens the browser's animation engine to developers and manipulation by JavaScript. This API was designed to underlie implementations of both [CSS Animations](/en-US/docs/Web/CSS/CSS_animations) and [CSS Transitions](/en-US/docs/Web/CSS/CSS_transitions), and leaves the door open to future animation effects. It is one of the most performant ways to animate on the Web, letting the browser make its own internal optimizations without hacks, coercion, or {{domxref("Window.requestAnimationFrame()")}}. With the Web Animations API, we can move interactive animations from stylesheets to JavaScript, separating presentation from behavior. We no longer need to rely on DOM-heavy techniques such as writing CSS properties and scoping classes onto elements to control playback direction. And unlike pure, declarative CSS, JavaScript also lets us dynamically set values from properties to durations. For building custom animation libraries and creating interactive animations, the Web Animations API might be the perfect tool for the job. Let's see what it can do! ## Writing CSS Animations with the Web Animations API One of the more familiar ways to approach learning the Web Animations API is to start with something most web developers have played with before: CSS Animations. CSS Animations have a familiar syntax that breaks down nicely for demonstration purposes. ### The CSS version Here's a tumbling animation written in CSS showing Alice falling down the rabbit hole that leads to Wonderland (see the full [code on Codepen](https://codepen.io/rachelnabors/pen/QyOqqW)): [![Alice Tumbling down the rabbit's hole.](tumbling-alice_optimized.gif)](https://codepen.io/rachelnabors/pen/rxpmJL) Notice that the background moves, Alice spins, and her color changes at an offset from her spinning. We're going to focus on just Alice for this tutorial. Here's the simplified CSS that controls Alice's animation: ```css #alice { animation: aliceTumbling infinite 3s linear; } @keyframes aliceTumbling { 0% { color: #000; transform: rotate(0) translate3D(-50%, -50%, 0); } 30% { color: #431236; } 100% { color: #000; transform: rotate(360deg) translate3D(-50%, -50%, 0); } } ``` This changes Alice's color and her transform's rotation over 3 seconds at a constant (linear) rate and loops infinitely. In the [@keyframes](/en-US/docs/Web/CSS/@keyframes) block we can see that 30% of the way through each loop (about .9 seconds in), Alice's color changes from black to a deep burgundy then back again by the end of the loop. ### Moving it to JavaScript Now let's try creating the same animation with the Web Animations API. #### Representing keyframes The first thing we need is to create a [Keyframe Object](/en-US/docs/Web/API/Web_Animations_API/Keyframe_Formats) corresponding to our CSS [@keyframes](/en-US/docs/Web/CSS/@keyframes) block: ```js const aliceTumbling = [ { transform: "rotate(0) translate3D(-50%, -50%, 0)", color: "#000" }, { color: "#431236", offset: 0.3 }, { transform: "rotate(360deg) translate3D(-50%, -50%, 0)", color: "#000" }, ]; ``` Here we're using an array containing multiple objects. Each object represents a key from the original CSS. However, unlike CSS, the Web Animations API doesn't need to explicitly be told the percentages along the animation for each key to appear at. It will automatically divide the animation into equal parts based on the number of keys you give it. This means that a Keyframe object with three keys will play the middle key 50% of the way through each loop of the animation unless told otherwise. When we want to explicitly set a key's offset from the other keys, we can specify an offset directly in the object, separated from the declaration with a comma. In the above example, to make sure that Alice's color changes at 30% (not 50%) for the color change, we are giving it `offset: 0.3`. Currently, there should be at least two keyframes specified (representing the starting and ending states of the animation sequence). If your keyframe list has only one entry, {{domxref("Element.animate()")}} may throw a `NotSupportedError` {{domxref("DOMException")}} in some browsers until they are updated. So to recap, the keys are equally spaced by default unless you specify an offset on a key. Handy, no? #### Representing timing properties We'll also need to create an object of timing properties corresponding to the values in Alice's animation: ```js const aliceTiming = { duration: 3000, iterations: Infinity, }; ``` You'll notice a few differences here from how equivalent values are represented in CSS: - For one, the duration is in milliseconds as opposed to seconds — 3000 not 3s. Like {{domxref("setTimeout()")}} and {{domxref("Window.requestAnimationFrame()")}}, the Web Animations API only takes milliseconds. - The other thing you'll notice is that it's `iterations`, not `iteration-count`. > **Note:** There are a number of small differences between the terminology used in CSS Animations and the terminology used in Web Animations. For instance, Web Animations doesn't use the string `"infinite"`, but instead uses the JavaScript keyword `Infinity`. And instead of `timing-function` we use `easing`. We aren't listing an `easing` value here because, unlike CSS Animations where the default [animation-timing-function](/en-US/docs/Web/CSS/animation-timing-function) is `ease`, in the Web Animations API the default easing is `linear` — which is what we want here. #### Bring the pieces together Now it's time to bring them both together with the {{domxref("Element.animate()")}} method: ```js document.getElementById("alice").animate(aliceTumbling, aliceTiming); ``` And boom: the animation starts playing (see the finished [version on Codepen](https://codepen.io/rachelnabors/pen/rxpmJL)). The `animate()` method can be called on any DOM element that could be animated with CSS. And it can be written in several ways. Instead of making objects for keyframes and timing properties, we could just pass their values in directly, like so: ```js document.getElementById("alice").animate( [ { transform: "rotate(0) translate3D(-50%, -50%, 0)", color: "#000" }, { color: "#431236", offset: 0.3 }, { transform: "rotate(360deg) translate3D(-50%, -50%, 0)", color: "#000" }, ], { duration: 3000, iterations: Infinity, }, ); ``` What's more, if we only wanted to specify the duration of the animation and not its iterations (by default, animations iterate once), we could pass in the milliseconds alone: ```js document.getElementById("alice").animate( [ { transform: "rotate(0) translate3D(-50%, -50%, 0)", color: "#000" }, { color: "#431236", offset: 0.3 }, { transform: "rotate(360deg) translate3D(-50%, -50%, 0)", color: "#000" }, ], 3000, ); ``` ## Controlling playback with play(), pause(), reverse(), and updatePlaybackRate() While we can write CSS Animations with the Web Animations API, where the API really comes in handy is manipulating the animation's playback. The Web Animations API provides several useful methods for controlling playback. Let's take a look at pausing and playing animations in the Growing/Shrinking Alice game (check out the [full code on Codepen](https://codepen.io/rachelnabors/pen/PNYGZQ)): [![Playing the growing and shrinking game with Alice.](growing-shrinking_article_optimized.gif)](https://codepen.io/rachelnabors/pen/PNYGZQ?editors=0010) In this game, Alice has an animation that causes her to go from small to big which we control via a bottle and a cupcake. Both of these have their own animations. ### Pausing and playing animations We'll talk more about Alice's animation later, but for now, let's look closer at the cupcake's animation: ```js const nommingCake = document .getElementById("eat-me_sprite") .animate( [{ transform: "translateY(0)" }, { transform: "translateY(-80%)" }], { fill: "forwards", easing: "steps(4, end)", duration: aliceChange.effect.getComputedTiming().duration / 2, }, ); ``` The {{domxref("Element.animate()")}} method will immediately run after it is called. To prevent the cake from eating itself up before the user has had the chance to click on it, we call {{domxref("Animation.pause()")}} on it immediately after it is defined, like so: ```js nommingCake.pause(); ``` We can now use the {{domxref("Animation.play()")}} method to run it whenever we're ready: ```js nommingCake.play(); ``` Specifically, we want to link it to Alice's animation, so she gets bigger as the cupcake gets eaten. We can achieve this via the following function: ```js const growAlice = () => { // Play Alice's animation. aliceChange.play(); // Play the cake's animation. nommingCake.play(); }; ``` When a user holds their mouse down or presses their finger on the cake on a touch screen, we can now call `growAlice` to make all the animations play: ```js cake.addEventListener("mousedown", growAlice, false); cake.addEventListener("touchstart", growAlice, false); ``` ### Other useful methods In addition to pausing and playing, we can use the following Animation methods: - {{domxref("Animation.finish()")}} skips to the end of the animation. - {{domxref("Animation.cancel()")}} aborts the animation and removes its effects. - {{domxref("Animation.reverse()")}} sets the animation's playback rate ({{domxref("Animation.playbackRate")}}) to a negative value so it runs backward. Let's take a look at `playbackRate` first — a negative playbackRate will cause an animation to run in reverse. When Alice drinks from the bottle, she grows smaller. This is because the bottle changes her animation's playbackRate from 1 to -1: ```js const shrinkAlice = () => { aliceChange.playbackRate = -1; aliceChange.play(); }; bottle.addEventListener("mousedown", shrinkAlice, false); bottle.addEventListener("touchstart", shrinkAlice, false); ``` In [Through the Looking-Glass](https://en.wikipedia.org/wiki/Through_the_Looking-Glass), Alice travels to a world where she must run to stay in place — and run twice as fast to move forward! In the Red Queen's Race example, Alice and the Red Queen are running to stay in place (check out the [full code on Codepen](https://codepen.io/rachelnabors/pen/PNGGaV)): [![Alice and the Red Queen race to get to the next square in this game.](red-queen-race_optimized.gif)](https://codepen.io/rachelnabors/pen/PNGGaV) Because small children tire out easily, unlike automaton chess pieces, Alice is constantly slowing down. We can do this by setting a decay on her animation's `playbackRate`. We use `updatePlaybackRate()` instead of setting the playbackRate directly since that produces a smooth update: ```js setInterval(() => { // Make sure the playback rate never falls below .4 if (redQueen_alice.playbackRate > 0.4) { redQueen_alice.updatePlaybackRate(redQueen_alice.playbackRate * 0.9); } }, 3000); ``` But urging them on by clicking or tapping causes them to speed up by multiplying their playbackRate: ```js const goFaster = () => { redQueen_alice.updatePlaybackRate(redQueen_alice.playbackRate * 1.1); }; document.addEventListener("click", goFaster); document.addEventListener("touchstart", goFaster); ``` The background elements also have `playbackRate`s that are impacted when you click or tap. What happens when you make Alice and the Red Queen run twice as fast? What happens when you let them slow down? ## Persisting animation styles When animating elements, a common use case is to persist the final state of the animation, after the animation has finished. One method sometimes used for this is to set the animation's [fill mode](/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect#fill) to `forwards`. However, it is not recommended to use fill modes to persist the effect of an animation indefinitely, for two reasons: - The browser has to maintain the state of the animation while it is still active, so the animation continues to consume resources even though it is no longer animating. Note that this is somewhat alleviated by the browser [automatically removing filling animations](#automatically_removing_filling_animations). - Styles applied by animations have a [higher precedence in the cascade](/en-US/docs/Web/CSS/Cascade#cascading_order) than specified styles, so it can be difficult to override them when needed. A better approach is to use the {{domxref("Animation.commitStyles()")}} method. This writes the computed values of the animation's current styles into its target element's [`style`](/en-US/docs/Web/HTML/Global_attributes#style) attribute, after which the element can be restyled normally. ## Automatically removing filling animations It is possible to trigger a large number of animations on the same element. If they are indefinite (i.e., forwards-filling), this can result in a huge animations list, which could create a memory leak. For this reason, browsers automatically remove filling animations after they are replaced by newer animations, unless the developer explicitly specifies to keep them. Animations are removed when all of the following are true: - The animation is filling (its `fill` is `forwards` if it is playing forwards, `backwards` if it is playing backwards, or `both`). - The animation is finished. (Note that because of the `fill` it will still be in effect.) - The animation's timeline is monotonically increasing. (This is always true for {{domxref("DocumentTimeline")}}; other timelines such as {{cssxref("scroll-timeline")}} can run backwards.) - The animation is not being controlled by declarative markup such as CSS. - Every styling effect of the animation's {{domxref("AnimationEffect")}} is being overridden by another animation that also satisfies all the conditions above. (Typically, when two animations would set the same style property of the same element, the one created last overrides the other.) The first four conditions ensure that, without intervention by JavaScript code, the animation's effect will never change or end. The last condition ensures that the animation will never actually affect the style of any element: it has been entirely replaced. When the animation is automatically removed, the animation's {{domxref("animation/remove_event", "remove")}} event fires. To prevent the browser from automatically removing animations, call the animation's {{domxref("Animation.persist", "persist()")}} method. The animation's {{domxref("animation.replaceState")}} property will be `removed` if the animation has been removed, `persisted` if you have called {{domxref("Animation.persist", "persist()")}} on the animation, or `active` otherwise. ## Getting information out of animations Imagine other ways we could use playbackRate, such as improving accessibility for users with vestibular disorders by letting them slow down animations across an entire site. That's impossible to do with CSS without recalculating durations in every CSS rule, but with the Web Animations API, we could use the {{domxref("Document.getAnimations")}} method to loop over each animation on the page and halve their `playbackRate`s, like so: ```js document.getAnimations().forEach((animation) => { animation.updatePlaybackRate(animation.playbackRate * 0.5); }); ``` With the Web Animations API, all you need to change is just one little property! Another thing that's tough to do with CSS Animations alone is creating dependencies on values provided by other animations. For instance, in the Growing and Shrinking Alice game example, you might have noticed something odd about the cake's duration: ```js document.getElementById("eat-me_sprite").animate([], { duration: aliceChange.effect.timing.duration / 2, }); ``` To understand what's happening here, let's take a look at Alice's animation: ```js const aliceChange = document .getElementById("alice") .animate( [ { transform: "translate(-50%, -50%) scale(.5)" }, { transform: "translate(-50%, -50%) scale(2)" }, ], { duration: 8000, easing: "ease-in-out", fill: "both", }, ); ``` Alice's animation has her going from half her size to twice her size over 8 seconds. Then we pause her: ```js aliceChange.pause(); ``` If we had left her paused at the beginning of her animation, she'd start at half her full size, as if she'd drunk the entire bottle already! We want to set her animation's "playhead" in the middle, so she's already halfway done. We could do that by setting her {{domxref("Animation.currentTime")}} to 4 seconds, like so: ```js aliceChange.currentTime = 4000; ``` But while working on this animation, we might change Alice's duration a lot. Wouldn't it be better if we set her `currentTime` dynamically, so we don't have to make two updates at a time? We can, in fact, do so by referencing aliceChange's {{domxref("Animation.effect")}} property, which returns an object containing all the details of the effect(s) active on Alice: ```js aliceChange.currentTime = aliceChange.effect.getComputedTiming().duration / 2; ``` `effect` lets us access the animation's keyframes and timing properties — `aliceChange.effect.getComputedTiming()` points to Alice's timing object — this contains her [`duration`](/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect). We can divide her duration in half to get the midpoint for her animation's timeline, setting her to be normal height. Now we can reverse and play her animation in either direction to make her grow smaller or larger! And we can do the same thing when setting the cake and bottle durations: ```js const drinking = document .getElementById("liquid") .animate([{ height: "100%" }, { height: "0" }], { fill: "forwards", duration: aliceChange.effect.getComputedTiming().duration / 2, }); drinking.pause(); ``` Now all three animations are linked to just one duration, which we can change easily from one place. We can also use the Web Animations API to figure out the animation's current time. The game ends when you run out of cake to eat or empty the bottle. Which vignette players are presented with depends on how far along Alice was in her animation, whether she grew too big and can't get in the tiny door anymore or too small and cannot reach the key to open the door. We can figure out whether she's on the large end or small end of her animation by getting her animation's [`currentTime`](/en-US/docs/Web/API/Animation/currentTime) and dividing it by her `activeDuration`: ```js const endGame = () => { // get Alice's timeline's playhead location const alicePlayhead = aliceChange.currentTime; const aliceTimeline = aliceChange.effect.getComputedTiming().activeDuration; // stops Alice's and other animations stopPlayingAlice(); // depending on which third it falls into const aliceHeight = alicePlayhead / aliceTimeline; if (aliceHeight <= 0.333) { // Alice got smaller! // … } else if (aliceHeight >= 0.666) { // Alice got bigger! // … } else { // Alice didn't change significantly // … } }; ``` > **Note:** `getAnimations()` and `effect` are not shipping in all browsers as of this writing, but the polyfill does support them today. ## Callbacks and promises CSS Animations and Transitions have their own event listeners, and these are also possible with the Web Animations API: - [`onfinish`](/en-US/docs/Web/API/Animation/finish_event) is the event handler for the `finish` event and can be triggered manually with [`finish()`](/en-US/docs/Web/API/Animation/finish). - [`oncancel`](/en-US/docs/Web/API/Animation/cancel_event) is the event handler for the `cancel` event and can be triggers with [`cancel()`](/en-US/docs/Web/API/Animation/cancel). Here we set the callbacks for the cake, bottle, and Alice to fire the `endGame` function: ```js // When the cake or bottle runs out nommingCake.onfinish = endGame; drinking.onfinish = endGame; // Alice reaches the end of her animation aliceChange.onfinish = endGame; ``` Better still, the Web Animations API also provides a [`finished`](/en-US/docs/Web/API/Animation/finished) promise that will resolve when the animation finishes, or reject if it is canceled. ## Conclusion These are the basic features of the Web Animations API. By now you should be ready to "jump down the rabbit hole" of animating in the browser and ready to write your own animation experiments! ## See also - The [full suite of Alice in Wonderland demos](https://codepen.io/collection/nqNJvD) on CodePen for you to play with, fork, and share. - [Animating like you just don't care with Element.animate](https://hacks.mozilla.org/2016/08/animating-like-you-just-dont-care-with-element-animate/) (2016) Explains the background of the Web Animations API and why it is more performant than other web animation methods.
0
data/mdn-content/files/en-us/web/api/web_animations_api
data/mdn-content/files/en-us/web/api/web_animations_api/keyframe_formats/index.md
--- title: Keyframe Formats slug: Web/API/Web_Animations_API/Keyframe_Formats page-type: guide --- {{DefaultAPISidebar("Web Animations")}} {{domxref("Element.animate()")}}, {{domxref("KeyframeEffect.KeyframeEffect", "KeyframeEffect()")}}, and {{domxref("KeyframeEffect.setKeyframes()")}} all accept objects formatted to represent a set of keyframes. There are several options to this format, which are explained below. ## Syntax There are two different ways to format keyframes: 1. An `array` of objects (keyframes) consisting of properties and values to iterate over. This is the canonical format returned by the {{domxref("KeyframeEffect.getKeyframes()", "getKeyframes()")}} method. ```js element.animate( [ { // from opacity: 0, color: "#fff", }, { // to opacity: 1, color: "#000", }, ], 2000, ); ``` Offsets for each keyframe can be specified by providing an `offset` value. ```js element.animate( [{ opacity: 1 }, { opacity: 0.1, offset: 0.7 }, { opacity: 0 }], 2000, ); ``` > **Note:** `offset` values, if provided, must be between 0.0 and 1.0 (inclusive) and arranged in ascending order. It is not necessary to specify an offset for every keyframe. Keyframes without a specified offset will be evenly spaced between adjacent keyframes. The easing to apply between keyframes can be specified by providing an `easing` value as illustrated below. ```js element.animate( [ { opacity: 1, easing: "ease-out" }, { opacity: 0.1, easing: "ease-in" }, { opacity: 0 }, ], 2000, ); ``` In this example, the specified easing only applies from the keyframe where it is specified until the next keyframe. Any `easing` value specified on the `options` argument, however, applies across a single iteration of the animation — for the entire duration. 2. An `object` containing key-value pairs consisting of the property to animate and an `array` of values to iterate over. ```js element.animate( { opacity: [0, 1], // [ from, to ] color: ["#fff", "#000"], // [ from, to ] }, 2000, ); ``` Using this format, the number of elements in each array does not need to be equal. The provided values will be spaced out independently. ```js element.animate( { opacity: [0, 1], // offset: 0, 1 backgroundColor: ["red", "yellow", "green"], // offset: 0, 0.5, 1 }, 2000, ); ``` The special keys `offset`, `easing`, and `composite` (described below) may be specified alongside the property values. ```js element.animate( { opacity: [0, 0.9, 1], offset: [0, 0.8], // Shorthand for [ 0, 0.8, 1 ] easing: ["ease-in", "ease-out"], }, 2000, ); ``` After generating a suitable set of keyframes from the property value lists, each supplied offset is applied to the corresponding keyframe. If there are insufficient values, or if the list contains `null` values, the keyframes without specified offsets will be evenly spaced as with the array format described above. If there are too few `easing` or `composite` values, the corresponding list will be repeated as needed. ### Implicit to/from keyframes In newer browser versions, you are able to set a beginning or end state for an animation only (i.e. a single keyframe), and the browser will infer the other end of the animation if it is able to. For example, consider [this simple animation](https://mdn.github.io/dom-examples/web-animations-api/implicit-keyframes.html) — the Keyframe object looks like so: ```js let rotate360 = [{ transform: "rotate(360deg)" }]; ``` We have only specified the end state of the animation, and the beginning state is implied. ## Attributes Keyframes may specify property-value pairs for any of the {{cssxref("CSS_animated_properties", "animatable CSS properties")}}. The property names are specified using {{Glossary("camel_case", "camel case")}} so for example {{cssxref("background-color")}} becomes `backgroundColor` and {{cssxref("background-position-x")}} becomes `backgroundPositionX`. Shorthand values such as {{cssxref("margin")}} are also permitted. Two exceptional CSS properties are: - {{cssxref("float")}}, which must be written as `cssFloat` since "float" is a reserved word in JavaScript. It's just for reference here, this will have no effect on animation since "float" is not an animatable CSS property. - {{cssxref("offset")}}, which must be written as `cssOffset` since "offset" represents the keyframe offset as described below. The following special attributes may also be specified: - offset - : The offset of the keyframe specified as a number between `0.0` and `1.0` inclusive or `null`. This is equivalent to specifying start and end states in percentages in CSS stylesheets using `@keyframes`. If this value is `null` or missing, the keyframe will be evenly spaced between adjacent keyframes. - easing - : The [easing function](/en-US/docs/Web/CSS/easing-function) used from this keyframe until the next keyframe in the series. - composite - : The {{domxref("KeyframeEffect.composite")}} operation used to combine the values specified in this keyframe with the underlying value. This will be `auto` if the composite operation specified on the effect is being used. ## See also - [Web Animations API](/en-US/docs/Web/API/Web_Animations_API) - {{domxref("Element.animate()")}} - {{domxref("KeyframeEffect.KeyframeEffect", "KeyframeEffect()")}} - {{domxref("KeyframeEffect.setKeyframes()")}}
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/svganimatedlengthlist/index.md
--- title: SVGAnimatedLengthList slug: Web/API/SVGAnimatedLengthList page-type: web-api-interface browser-compat: api.SVGAnimatedLengthList --- {{APIRef("SVG")}} ## SVG animated length list interface The `SVGAnimatedLengthList` interface is used for attributes of type {{ domxref("SVGLengthList") }} which can be animated. ### Interface overview <table class="no-markdown"> <tbody> <tr> <th scope="row">Also implement</th> <td><em>None</em></td> </tr> <tr> <th scope="row">Methods</th> <td><em>None</em></td> </tr> <tr> <th scope="row">Properties</th> <td> <ul> <li> readonly {{ domxref("SVGLengthList") }} <code>baseVal</code> </li> <li> readonly {{ domxref("SVGLengthList") }} <code>animVal</code> </li> </ul> </td> </tr> <tr> <th scope="row">Normative document</th> <td> <a href="https://www.w3.org/TR/SVG11/types.html#InterfaceSVGAnimatedLengthList" >SVG 1.1 (2nd Edition)</a > </td> </tr> </tbody> </table> ## Instance properties <table class="no-markdown"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>baseVal</code></td> <td>{{ domxref("SVGLengthList") }}</td> <td> The base value of the given attribute before applying any animations. </td> </tr> <tr> <td><code>animVal</code></td> <td>{{ domxref("SVGLengthList") }}</td> <td> A read only {{ domxref("SVGLengthList") }} representing the current animated value of the given attribute. If the given attribute is not currently being animated, then the {{ domxref("SVGLengthList") }} will have the same contents as <code>baseVal</code>. The object referenced by <code>animVal</code> will always be distinct from the one referenced by <code>baseVal</code>, even when the attribute is not animated. </td> </tr> </tbody> </table> ## Instance methods The `SVGAnimatedLengthList` interface do not provide any specific methods. ## Browser compatibility {{Compat}}
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/cssskewy/index.md
--- title: CSSSkewY slug: Web/API/CSSSkewY page-type: web-api-interface browser-compat: api.CSSSkewY --- {{APIRef("CSS Typed OM")}} The **`CSSSkewY`** interface of the {{domxref('CSS_Object_Model#css_typed_object_model','','',' ')}} represents the [`skewY()`](/en-US/docs/Web/CSS/transform-function/skewY) value of the individual {{CSSXRef('transform')}} property in CSS. It inherits properties and methods from its parent {{domxref("CSSTransformValue")}}. {{InheritanceDiagram}} ## Constructor - {{domxref("CSSSkewY.CSSSkewY", "CSSSkewY()")}} - : Creates a new `CSSSkewY` object. ## Instance properties _Inherits properties from its ancestor_ {{domxref("CSSTransformValue")}}. - {{domxref('CSSSkewY.ay','ay')}} - : Returns or sets the y-axis value. ## Instance methods _Inherits methods from its ancestor_ {{domxref("CSSTransformValue")}}. ## Examples To Do ## Specifications {{Specifications}} ## Browser compatibility {{Compat}}
0
data/mdn-content/files/en-us/web/api/cssskewy
data/mdn-content/files/en-us/web/api/cssskewy/ay/index.md
--- title: "CSSSkewY: ay property" short-title: ay slug: Web/API/CSSSkewY/ay page-type: web-api-instance-property browser-compat: api.CSSSkewY.ay --- {{APIRef("CSS Typed OM")}} The **`ay`** property of the {{domxref("CSSSkewY")}} interface gets and sets the angle used to distort the element along the y-axis (or ordinate). ## Value A {{domxref("CSSNumericValue")}}. ## Examples To do ## Specifications {{Specifications}} ## Browser compatibility {{Compat}}
0
data/mdn-content/files/en-us/web/api/cssskewy
data/mdn-content/files/en-us/web/api/cssskewy/cssskewy/index.md
--- title: "CSSSkewY: CSSSkewY() constructor" short-title: CSSSkewY() slug: Web/API/CSSSkewY/CSSSkewY page-type: web-api-constructor browser-compat: api.CSSSkewY.CSSSkewY --- {{APIRef("CSS Typed OM")}} The **`CSSSkewY()`** constructor creates a new {{domxref("CSSSkewY")}} object which represents the [`skewY()`](/en-US/docs/Web/CSS/transform-function/skewY) value of the individual {{CSSXRef('transform')}} property in CSS. ## Syntax ```js-nolint new CSSSkewY(ay) ``` ### Parameters - {{domxref('CSSSkewY.ay','ay')}} - : A value for the `ay` angle of the {{domxref('CSSSkewY')}} object to be constructed. This must be a {{domxref('CSSNumericValue')}}. ## Examples To do ## Specifications {{Specifications}} ## Browser compatibility {{Compat}}
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/svgtextelement/index.md
--- title: SVGTextElement slug: Web/API/SVGTextElement page-type: web-api-interface browser-compat: api.SVGTextElement --- {{APIRef("SVG")}} The **`SVGTextElement`** interface corresponds to the {{SVGElement("text")}} elements. {{InheritanceDiagram}} ## Instance properties _This interface doesn't implement any specific properties, but inherits properties from its parent interface, {{domxref("SVGTextPositioningElement")}}._ ## Instance methods _This interface doesn't implement any specific methods, but inherits methods from its parent interface, {{domxref("SVGTextPositioningElement")}}._ ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{SVGElement("text")}}
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/audioparamdescriptor/index.md
--- title: AudioParamDescriptor slug: Web/API/AudioParamDescriptor page-type: web-api-interface browser-compat: api.AudioParamDescriptor --- {{APIRef("Web Audio API")}} The **`AudioParamDescriptor`** dictionary of the [Web Audio API](/en-US/docs/Web/API/Web_Audio_API) specifies properties for {{domxref("AudioParam")}} objects. It is used to create custom `AudioParam`s on an {{domxref("AudioWorkletNode")}}. If the underlying {{domxref("AudioWorkletProcessor")}} has a {{domxref("AudioWorkletProcessor.parameterDescriptors", "parameterDescriptors")}} static getter, then the returned array of objects based on this dictionary is used internally by `AudioWorkletNode` constructor to populate its {{domxref("AudioWorkletNode.parameters", "parameters")}} property accordingly. ## Instance properties - `name` - : The string which represents the name of the `AudioParam`. Under this name the `AudioParam` will be available in the {{domxref("AudioWorkletNode.parameters", "parameters")}} property of the node, and under this name the {{domxref("AudioWorkletProcessor.process")}} method will acquire the calculated values of this `AudioParam`. - `automationRate` {{optional_inline}} - : Either [`"a-rate"`](/en-US/docs/Web/API/AudioParam#a-rate), or [`"k-rate"`](/en-US/docs/Web/API/AudioParam#k-rate) string which represents an automation rate of this `AudioParam`. Defaults to `"a-rate"`. - `minValue` {{optional_inline}} - : A `float` which represents minimum value of the `AudioParam`. Defaults to `-3.4028235e38`. - `maxValue` {{optional_inline}} - : A `float` which represents maximum value of the `AudioParam`. Defaults to `3.4028235e38`. - `defaultValue` {{optional_inline}} - : A `float` which represents initial value of the `AudioParam`. Defaults to `0`. ## Examples The code fragment below shows a descriptor of this type being returned by a static {{domxref("AudioWorkletProcessor.parameterDescriptors", "parameterDescriptors")}} method defined in a custom `AudioWorkletProcessor` (this is part of the more complete example in [AudioWorkletNode.parameters](/en-US/docs/Web/API/AudioWorkletNode/parameters#examples)). ```js // white-noise-processor.js class WhiteNoiseProcessor extends AudioWorkletProcessor { static get parameterDescriptors() { return [ { name: "customGain", defaultValue: 1, minValue: 0, maxValue: 1, automationRate: "a-rate", }, ]; } // … } ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [Web Audio API](/en-US/docs/Web/API/Web_Audio_API) - [Using the Web Audio API](/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API)
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/gpuoutofmemoryerror/index.md
--- title: GPUOutOfMemoryError slug: Web/API/GPUOutOfMemoryError page-type: web-api-interface status: - experimental browser-compat: api.GPUOutOfMemoryError --- {{APIRef("WebGPU API")}}{{SeeCompatTable}}{{SecureContext_Header}} The **`GPUOutOfMemoryError`** interface of the {{domxref("WebGPU API", "WebGPU API", "", "nocode")}} describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation. It represents one of the types of errors surfaced by {{domxref("GPUDevice.popErrorScope")}} and the {{domxref("GPUDevice.uncapturederror_event", "uncapturederror")}} event. Out-of-memory errors should be relatively rare in a well-behaved app but are less predictable than {{domxref("GPUValidationError")}}s. This is because they are dependent on the device your app is running on as well as other apps that are using GPU resources at the time. {{InheritanceDiagram}} ## Constructor - {{domxref("GPUOutOfMemoryError.GPUOutOfMemoryError", "GPUOutOfMemoryError()")}} {{Experimental_Inline}} - : Creates a new `GPUOutOfMemoryError` object instance. ## Instance properties The `message` property is inherited from its parent, {{domxref("GPUError")}}: - {{domxref("GPUError.message", "message")}} {{Experimental_Inline}} {{ReadOnlyInline}} - : A string providing a human-readable message that explains why the error occurred. ## Examples The following example uses an error scope to capture an out-of-memory error, logging it to the console. ```js device.pushErrorScope("out-of-memory"); let buffer = device.createBuffer({ size: 100_000_000_000, // 100GB; far too big usage: GPUBufferUsage.COPY_SRC | GPUBufferUsage.MAP_WRITE, }); device.popErrorScope().then((error) => { if (error) { // error is a GPUOutOfMemoryError object instance buffer = null; console.error(`Out of memory, buffer too large. Error: ${error.message}`); } }); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - The [WebGPU API](/en-US/docs/Web/API/WebGPU_API) - [WebGPU Error Handling best practices](https://toji.dev/webgpu-best-practices/error-handling)
0
data/mdn-content/files/en-us/web/api/gpuoutofmemoryerror
data/mdn-content/files/en-us/web/api/gpuoutofmemoryerror/gpuoutofmemoryerror/index.md
--- title: "GPUOutOfMemoryError: GPUOutOfMemoryError() constructor" short-title: GPUOutOfMemoryError() slug: Web/API/GPUOutOfMemoryError/GPUOutOfMemoryError page-type: web-api-constructor status: - experimental browser-compat: api.GPUOutOfMemoryError.GPUOutOfMemoryError --- {{APIRef("WebGPU API")}}{{SeeCompatTable}}{{SecureContext_Header}} The **`GPUOutOfMemoryError()`** constructor creates a new {{domxref("GPUOutOfMemoryError")}} object instance. ## Syntax ```js-nolint new GPUOutOfMemoryError(message) ``` ### Parameters - `message` - : A string providing a human-readable message that explains why the error occurred. ## Examples A developer would not manually use the constructor to create a `GPUOutOfMemoryError` object. The user agent uses this constructor to create an appropriate object when an out-of-memory error is surfaced by {{domxref("GPUDevice.popErrorScope")}} or the {{domxref("GPUDevice.uncapturederror_event", "uncapturederror")}} event. See the main [`GPUOutOfMemoryError`](/en-US/docs/Web/API/GPUOutOfMemoryError#examples) page for a specific example involving a `GPUOutOfMemoryError` object instance. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - The [WebGPU API](/en-US/docs/Web/API/WebGPU_API) - [WebGPU Error Handling best practices](https://toji.dev/webgpu-best-practices/error-handling)
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/svgswitchelement/index.md
--- title: SVGSwitchElement slug: Web/API/SVGSwitchElement page-type: web-api-interface browser-compat: api.SVGSwitchElement --- {{APIRef("SVG")}} The **`SVGSwitchElement`** interface corresponds to the {{SVGElement("switch")}} element. {{InheritanceDiagram}} ## Instance properties _This interface doesn't implement any specific properties, but inherits properties from its parent interface, {{domxref("SVGGraphicsElement")}}._ ## Instance methods _This interface doesn't implement any specific methods, but inherits methods from its parent interface, {{domxref("SVGGraphicsElement")}}._ ## Specifications {{Specifications}} ## Browser compatibility {{Compat}}
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/performancenavigationtiming/timestamp-diagram.svg
<svg viewBox="0 0 1152 420" fill="none" stroke-linecap="square" stroke-miterlimit="10" xmlns="http://www.w3.org/2000/svg"><clipPath id="a"><path d="M0 0h1152v864H0V0z"/></clipPath><g clip-path="url(#a)"><path d="M0 0h1152v864H0z"/><path d="M88 174V21h229.423"/><path stroke="#b45f06" stroke-linejoin="round" stroke-linecap="butt" stroke-dasharray="4.0,3.0" d="M88 174V21h229.423"/><path d="M447.56 41h171.495v29.89H447.56z"/><path fill="#b45f06" d="m461.622 60.745-.032-.969q-.218.25-.437.453t-.485.36q-.25.14-.546.218-.282.094-.625.094-.594 0-1.047-.234-.453-.235-.766-.672-.312-.438-.469-1.047-.156-.625-.156-1.39 0-.907.25-1.563.266-.672.719-1.11.453-.453 1.078-.656.625-.218 1.36-.218.25 0 .5.03.25.032.437.095v-2.594h1.594v9.203h-1.375zm-2.907-3.25q0 .547.078.937.079.375.22.625.155.25.359.375.218.11.5.11.39 0 .75-.328.375-.328.78-.891v-2.89q-.187-.079-.468-.126-.266-.046-.547-.046-.39 0-.703.156-.297.156-.516.453-.218.281-.343.703-.11.406-.11.922zm12.031-.11q0 .782-.218 1.438-.22.64-.641 1.11-.422.453-1.031.718-.594.25-1.375.25-.735 0-1.313-.219-.578-.218-.984-.64-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.781.218-1.422.235-.656.641-1.109.422-.453 1.031-.703.61-.25 1.375-.25.735 0 1.313.219.578.218.984.656.406.422.61 1.062.218.625.218 1.454zm-1.656.047q0-1.03-.39-1.546-.376-.516-1.141-.516-.406 0-.703.156-.297.156-.485.453-.187.282-.28.657-.079.375-.079.796 0 1.047.406 1.579.422.515 1.14.515.407 0 .688-.156.297-.172.485-.453.187-.281.265-.656.094-.391.094-.829zm7.703 3.313v-4.5q0-.25-.016-.438-.015-.187-.062-.312-.031-.125-.11-.188-.078-.062-.203-.062-.203 0-.406.281-.187.266-.437.938v4.28h-1.36v-4.5q0-.25-.015-.437 0-.187-.047-.312-.032-.125-.11-.188-.078-.062-.218-.062-.172 0-.375.281-.204.266-.47.938v4.28h-1.359v-6.608h1.172l.032.953q.14-.282.28-.485.141-.218.298-.343.172-.141.36-.188.187-.062.421-.062.547 0 .828.296.297.282.344.782.156-.282.297-.485.156-.218.312-.343.172-.141.36-.188.203-.062.437-.062.719 0 1.063.5.343.5.343 1.484v4.75h-1.359zm6.797 0-.032-.86q-.218.22-.453.407-.219.187-.5.328-.265.125-.594.203-.312.078-.703.078-.5 0-.89-.156-.375-.156-.64-.422-.267-.266-.407-.64-.125-.376-.125-.829 0-.468.203-.86.203-.405.61-.687.406-.296 1.015-.453.61-.156 1.422-.156h.875v-.406q0-.25-.078-.453t-.235-.344q-.156-.156-.406-.234-.25-.079-.625-.079-.594 0-1.172.141-.562.125-1.094.375v-1.266q.485-.203 1.094-.312.625-.125 1.297-.125.734 0 1.266.14.53.141.86.422.343.266.5.688.17.422.17.984v4.516h-1.358zm-.22-2.922h-.968q-.406 0-.687.078-.282.078-.47.219-.171.125-.25.312-.077.172-.077.375 0 .407.25.625.265.204.718.204.329 0 .688-.235.36-.25.797-.687v-.891zm7.297-5.5q0 .219-.078.406-.078.188-.218.328-.141.141-.329.22-.187.077-.406.077-.219 0-.422-.078-.187-.078-.328-.219-.14-.14-.219-.328-.078-.187-.078-.406 0-.219.078-.406.079-.188.22-.328.14-.141.327-.22.203-.093.422-.093.219 0 .406.094.188.078.329.219.14.14.218.328.078.187.078.406zm-1.75 3.047h-1.875v-1.234h3.5v5.375h1.907v1.234h-5.64V59.51h2.108v-4.14zm9.125 5.375v-4.313q0-1.078-.797-1.078-.406 0-.781.328-.36.313-.766.875v4.188h-1.593v-6.61h1.375l.03.97q.204-.25.423-.454.219-.219.469-.36.265-.14.546-.218.297-.078.657-.078.515 0 .89.172.375.156.625.469.266.296.39.718.126.422.126.953v4.438h-1.594zm3.766 0v-8.5h1.625v7.125h3.593v1.375h-5.218zm12.906-3.36q0 .782-.22 1.438-.218.64-.64 1.11-.422.453-1.031.718-.594.25-1.375.25-.734 0-1.313-.219-.578-.218-.984-.64-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.781.219-1.422.234-.656.64-1.109.422-.453 1.032-.703.609-.25 1.375-.25.734 0 1.312.219.578.218.984.656.407.422.61 1.062.219.625.219 1.454zm-1.657.047q0-1.03-.39-1.546-.375-.516-1.141-.516-.406 0-.703.156-.297.156-.484.453-.188.282-.282.657-.078.375-.078.796 0 1.047.406 1.579.422.515 1.141.515.406 0 .688-.156.296-.172.484-.453.187-.281.266-.656.093-.391.093-.829zm8.984-.046q0 .78-.218 1.437-.22.64-.641 1.11-.422.453-1.031.718-.594.25-1.375.25-.735 0-1.313-.219-.578-.218-.984-.64-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.781.218-1.422.235-.656.641-1.109.422-.453 1.031-.703.61-.25 1.375-.25.735 0 1.313.219.578.218.984.656.406.422.61 1.062.218.625.218 1.454zm-1.656.046q0-1.03-.39-1.546-.376-.516-1.141-.516-.406 0-.703.156-.297.156-.485.453-.187.282-.28.657-.079.375-.079.796 0 1.047.406 1.579.422.515 1.14.515.407 0 .688-.156.297-.172.485-.453.187-.281.265-.656.094-.391.094-.829zm7.125 3.313-2.438-3.313v3.313h-1.593v-9.203h1.593v5.39l2.313-2.796h1.984l-2.687 3.015 2.906 3.594h-2.078zm4.812-6.61v4.313q0 .531.203.813.203.28.61.28.39 0 .75-.327.375-.344.78-.891v-4.187h1.595v6.609h-1.375l-.032-.969q-.218.25-.437.453-.203.203-.453.36-.25.14-.547.218-.297.094-.656.094-.5 0-.891-.172-.375-.172-.64-.468-.25-.313-.376-.735-.125-.422-.125-.953v-4.437h1.594zm11.703 3.188q0 .906-.266 1.578-.25.656-.718 1.094-.453.437-1.078.656-.625.203-1.36.203-.25 0-.5-.031t-.437-.078v2.578h-1.594v-9.187h1.375l.031.968q.203-.25.422-.453.219-.219.469-.36.265-.14.547-.218.297-.078.656-.078.594 0 1.047.234.453.235.765.672.313.422.47 1.047.171.61.171 1.375zm-1.672.063q0-.547-.078-.922-.078-.391-.234-.641-.141-.25-.36-.36-.203-.109-.468-.109-.407 0-.782.328-.36.313-.765.875v2.891q.187.078.453.125.281.047.562.047.375 0 .688-.156.312-.157.531-.438.219-.297.328-.703.125-.422.125-.937zm8.781.78q0 .704-.266 1.22-.25.515-.718.859-.453.328-1.094.5-.64.156-1.39.156-.673 0-1.298-.078t-1.234-.266V58.98q.297.094.625.188t.656.172q.328.062.641.109.328.031.64.031.454 0 .766-.078.328-.078.531-.219.204-.14.282-.328.093-.187.093-.406 0-.312-.187-.531-.172-.219-.469-.375-.281-.156-.656-.281-.375-.141-.766-.282-.375-.156-.75-.343-.375-.188-.672-.47-.296-.28-.484-.671-.172-.39-.172-.938 0-.5.188-.937.187-.453.578-.781.39-.344 1-.547.61-.203 1.469-.203.25 0 .53.03.282.017.548.063.265.032.515.079.266.046.47.109v1.453q-.204-.078-.454-.14-.25-.063-.516-.11-.265-.047-.53-.078-.267-.031-.5-.031-.438 0-.735.078-.282.062-.469.187-.188.125-.281.297-.078.172-.078.39 0 .266.171.454.188.187.485.344.297.156.672.297.375.125.765.28.391.157.766.36.375.188.672.469.297.266.469.656.187.375.187.89zm7.047 2.516q-.438.094-.875.157-.422.062-.813.062-.656 0-1.125-.14-.469-.141-.781-.422-.313-.282-.469-.703-.14-.438-.14-1.032V55.37h-1.766v-1.234h1.766v-1.688l1.625-.437v2.125h2.578v1.234h-2.578v3.11q0 .562.265.859.266.28.875.28.39 0 .75-.062.375-.062.688-.14v1.265zm6.015.063-.031-.86q-.219.22-.453.407-.219.187-.5.328-.266.125-.594.203-.313.078-.703.078-.5 0-.89-.156-.376-.156-.641-.422-.266-.266-.407-.64-.125-.376-.125-.829 0-.468.203-.86.204-.405.61-.687.406-.296 1.015-.453.61-.156 1.422-.156h.875v-.406q0-.25-.078-.453t-.234-.344q-.156-.156-.406-.234-.25-.079-.625-.079-.594 0-1.172.141-.563.125-1.094.375v-1.266q.484-.203 1.094-.312.625-.125 1.297-.125.734 0 1.265.14.531.141.86.422.343.266.5.688.171.422.171.984v4.516h-1.359zm-.219-2.922h-.968q-.407 0-.688.078-.281.078-.469.219-.172.125-.25.312-.078.172-.078.375 0 .407.25.625.266.204.719.204.328 0 .687-.235.36-.25.797-.687v-.891zm7.656-1.125q.016-.36-.03-.625-.048-.266-.157-.422-.11-.172-.266-.25-.156-.078-.36-.078-.343 0-.718.297-.375.281-.828.937v4.188h-1.625v-6.61h1.437l.063.954q.156-.25.36-.453.202-.204.452-.344.25-.14.563-.219.312-.078.672-.078.5 0 .89.172.391.172.641.515.266.329.39.844.141.5.11 1.172h-1.594zm8.531 3.984q-.437.094-.875.157-.422.062-.812.062-.656 0-1.125-.14-.469-.141-.781-.422-.313-.282-.47-.703-.14-.438-.14-1.032V55.37h-1.765v-1.234h1.765v-1.688l1.625-.437v2.125h2.578v1.234h-2.578v3.11q0 .562.266.859.265.28.875.28.39 0 .75-.062.375-.062.687-.14v1.265z"/><path fill="#cfe2f3" d="M86.517 266.916h72.661v74.992h-72.66z" fill-rule="evenodd"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M86.517 266.916h72.661v74.992h-72.66z"/><path fill="#000" d="M103.81 287.306q0 .531-.204 1.047-.187.5-.593.906-.407.406-1.047.656-.64.25-1.531.25h-1.047v3.047H98.23v-8.5h2.391q.625 0 1.203.14.594.141 1.031.454.438.312.688.812.266.485.266 1.188zm-1.204.062q0-.828-.546-1.265-.532-.438-1.485-.438h-1.187v3.5h1.078q1.031 0 1.578-.437.562-.453.562-1.36zm3.235-.687h1.03l.032 1.203q.578-.703 1.14-1.016.563-.312 1.141-.312 1.016 0 1.532.656.53.656.484 1.953h-1.14q.015-.86-.25-1.234-.266-.39-.798-.39-.218 0-.453.077-.234.078-.484.266-.234.172-.516.453-.265.281-.578.672v4.203h-1.14v-6.531zm12.75 3.219q0 .75-.22 1.39-.218.64-.624 1.094-.391.437-.985.687-.578.25-1.312.25-.703 0-1.266-.203-.547-.218-.937-.64-.375-.438-.594-1.063-.203-.625-.203-1.437 0-.75.218-1.375.22-.64.61-1.094.406-.453.984-.703.594-.25 1.328-.25.703 0 1.25.219.563.218.938.64.39.422.594 1.047.218.625.218 1.438zm-1.157.046q0-.609-.14-1.062-.141-.453-.391-.75-.235-.297-.594-.453-.36-.156-.797-.156-.5 0-.86.203-.359.187-.593.53-.234.33-.344.767-.109.437-.109.921 0 .61.14 1.063.141.453.376.766.25.296.593.453.36.14.797.14.516 0 .875-.187.36-.203.594-.531.234-.344.344-.782.11-.437.11-.922zm7.875 3.032q-.453.156-.922.234-.453.094-.953.094-1.547 0-2.39-.844-.829-.844-.829-2.453 0-.766.234-1.39.25-.641.672-1.094.438-.454 1.047-.688.61-.25 1.344-.25.5 0 .937.078.454.063.86.235v1.078q-.438-.22-.875-.313-.438-.11-.906-.11-.438 0-.829.173-.375.156-.671.468-.297.313-.47.766-.155.438-.155 1.016 0 1.172.562 1.765.578.594 1.61.594.453 0 .89-.11.438-.109.844-.312v1.063zm7.765-3.375q0 .234-.015.406 0 .156-.016.297h-4.578q0 1 .547 1.547.562.53 1.625.53.281 0 .562-.015.297-.03.563-.062.265-.047.5-.094.25-.047.453-.11v.938q-.453.125-1.047.203-.578.078-1.203.078-.828 0-1.438-.218-.609-.235-1-.657-.39-.437-.578-1.062-.172-.625-.172-1.422 0-.687.188-1.297.203-.625.578-1.094.39-.468.937-.734.563-.281 1.266-.281.672 0 1.203.219.531.218.89.609.36.39.548.953.187.563.187 1.266zm-1.187-.172q.031-.422-.078-.781-.11-.375-.329-.625-.218-.266-.546-.407-.313-.156-.75-.156-.36 0-.672.156-.313.14-.532.407-.218.25-.359.625-.125.359-.156.78h3.422zm8.171 2q0 .344-.125.625-.11.265-.312.484-.203.203-.469.36-.266.14-.578.25-.297.093-.625.125-.313.046-.61.046-.671 0-1.234-.062-.547-.047-1.078-.172v-1.047q.563.156 1.125.25.578.078 1.14.078.813 0 1.204-.218.39-.22.39-.625 0-.188-.062-.313-.063-.14-.234-.266-.157-.14-.5-.265-.344-.14-.938-.313-.437-.14-.812-.297-.375-.171-.657-.39-.265-.235-.422-.531-.156-.313-.156-.735 0-.265.125-.594.125-.328.438-.609.312-.281.828-.469.515-.187 1.297-.187.39 0 .86.047.468.047.968.14v1.016q-.531-.125-1.016-.188-.469-.062-.828-.062-.422 0-.719.062-.28.063-.468.188-.172.11-.25.266-.079.14-.079.312 0 .188.063.328.078.14.266.281.187.125.515.266.328.125.86.281.593.172.984.36.39.187.64.422.25.218.36.515.11.281.11.64zm7.328 0q0 .344-.125.625-.11.265-.312.484-.203.203-.47.36-.265.14-.577.25-.297.093-.625.125-.313.046-.61.046-.671 0-1.234-.062-.547-.047-1.078-.172v-1.047q.562.156 1.125.25.578.078 1.14.078.813 0 1.204-.218.39-.22.39-.625 0-.188-.062-.313-.063-.14-.235-.266-.156-.14-.5-.265-.343-.14-.937-.313-.438-.14-.813-.297-.375-.171-.656-.39-.265-.235-.422-.531-.156-.313-.156-.735 0-.265.125-.594.125-.328.438-.609.312-.281.828-.469.515-.187 1.297-.187.39 0 .859.047t.969.14v1.016q-.532-.125-1.016-.188-.469-.062-.828-.062-.422 0-.719.062-.281.063-.469.188-.171.11-.25.266-.078.14-.078.312 0 .188.063.328.078.14.265.281.188.125.516.266.328.125.86.281.593.172.984.36.39.187.64.422.25.218.36.515.11.281.11.64zm-39.896 14.812q0 .703-.204 1.282-.187.562-.578.968-.39.407-.953.625-.547.203-1.266.203-.797 0-1.36-.203-.546-.203-.89-.578-.344-.39-.515-.922-.157-.53-.157-1.187v-5.719h1.172v5.625q0 .5.094.875t.297.64q.219.25.562.376.344.125.828.125.938 0 1.375-.532.438-.53.438-1.5v-5.609h1.156v5.531zm1.749-3.562h1l.047 1.047q.281-.328.547-.547.28-.235.53-.375t.517-.188q.28-.062.562-.062 1.016 0 1.531.61.516.593.516 1.78v4.266h-1.14v-4.172q0-.765-.282-1.125-.281-.375-.86-.375-.202 0-.406.063-.187.062-.406.218-.219.141-.469.407-.25.265-.562.656v4.328h-1.125v-6.531zm9.547-1.735h-1.938v-.937h3.078v8.266h1.953v.937h-5.234v-.937h2.14v-7.329zm10.796 4.954q0 .75-.219 1.39-.218.64-.625 1.094-.39.437-.984.687-.578.25-1.312.25-.704 0-1.266-.203-.547-.218-.938-.64-.375-.438-.593-1.063-.203-.625-.203-1.437 0-.75.218-1.375.219-.64.61-1.094.406-.453.984-.703.594-.25 1.328-.25.703 0 1.25.219.563.218.938.64.39.422.593 1.047.22.625.22 1.438zm-1.156.046q0-.609-.14-1.062-.141-.453-.391-.75-.235-.297-.594-.453-.36-.156-.797-.156-.5 0-.86.203-.359.187-.593.53-.234.33-.344.767-.11.437-.11.921 0 .61.141 1.063.141.453.375.766.25.296.594.453.36.14.797.14.516 0 .875-.187.36-.203.594-.531.234-.344.344-.782.109-.437.109-.922zm6.984 3.266-.016-.875q-.546.531-1.093.766-.547.218-1.157.218-.546 0-.953-.14-.39-.14-.656-.39-.25-.25-.375-.579-.125-.344-.125-.75 0-.984.734-1.531.735-.563 2.172-.563h1.344v-.562q0-.578-.375-.922-.36-.36-1.125-.36-.547 0-1.094.126-.531.125-1.11.343v-1.015q.22-.078.485-.157.266-.078.547-.125.297-.062.61-.093.328-.047.656-.047.594 0 1.062.14.485.125.813.391.328.266.5.672t.172.953v4.5h-1.016zm-.125-2.969h-1.437q-.422 0-.735.078-.297.079-.5.235-.187.156-.281.375-.094.219-.094.5 0 .187.063.36.062.171.187.312.125.125.328.203.219.078.516.078.39 0 .89-.234.516-.235 1.063-.75v-1.157zm2.922-.156q0-.844.234-1.484.234-.657.64-1.094.423-.453 1.016-.672.594-.234 1.313-.234.312 0 .61.047.312.03.593.109v-2.75h1.14v9.203h-1.015l-.031-1.234q-.485.687-1.032 1.015-.546.328-1.203.328-.547 0-.984-.218-.422-.235-.703-.657-.281-.437-.438-1.03-.14-.61-.14-1.329zm1.172-.078q0 1.187.343 1.766.344.578.985.578.422 0 .906-.375.484-.39 1-1.14v-3.032q-.281-.125-.625-.188-.328-.078-.656-.078-.922 0-1.438.594-.515.594-.515 1.875zm-28.71 19.203h-4.828v-8.5h4.828v.969h-3.672v2.64h3.531v.97h-3.531v2.937h3.672v.984zm1.609-6.531h1.297l1.593 4.312.344 1.063.36-1.078 1.593-4.297h1.25l-2.578 6.531h-1.297l-2.562-6.531zm13.468 2.922q0 .234-.015.406 0 .156-.016.297h-4.578q0 1 .547 1.547.562.53 1.625.53.281 0 .562-.015.297-.03.563-.062.265-.047.5-.094.25-.047.453-.11v.938q-.453.125-1.047.203-.578.078-1.203.078-.828 0-1.438-.218-.609-.235-1-.657-.39-.437-.578-1.062-.172-.625-.172-1.422 0-.687.188-1.297.203-.625.578-1.094.39-.468.938-.734.562-.281 1.265-.281.672 0 1.203.219.532.218.891.609.36.39.547.953.187.563.187 1.266zm-1.187-.172q.031-.422-.078-.781-.11-.375-.328-.625-.22-.266-.547-.407-.313-.156-.75-.156-.36 0-.672.156-.313.14-.531.407-.22.25-.36.625-.125.359-.156.78h3.422zm3-2.75h1l.046 1.047q.282-.328.547-.547.282-.235.532-.375.25-.14.515-.188.281-.062.563-.062 1.015 0 1.531.61.516.593.516 1.78v4.266h-1.141v-4.172q0-.765-.281-1.125-.282-.375-.86-.375-.203 0-.406.063-.187.062-.406.218-.219.141-.469.407-.25.265-.562.656v4.328h-1.125v-6.531zm12.593 6.437q-.39.094-.797.14-.406.048-.844.048-1.218 0-1.828-.547-.61-.563-.61-1.719v-3.406h-1.827v-.953h1.828v-1.797l1.14-.297v2.094h2.938v.953h-2.937v3.312q0 .704.375 1.063.375.344 1.093.344.313 0 .688-.047.375-.063.781-.156v.968z"/><path d="M-12.005 139.874h87.968v19.685h-87.968z"/><path fill="#000" d="M7.372 152.563q0 .579-.25.985-.25.39-.672.64-.406.25-.938.36-.515.125-1.062.125-.734 0-1.328-.078-.578-.063-1.094-.188v-1.437q.61.25 1.219.375.61.109 1.156.109.625 0 .922-.203.312-.203.312-.516 0-.156-.062-.281-.063-.125-.25-.234-.172-.11-.5-.235-.328-.125-.844-.265-.5-.141-.875-.313-.36-.172-.61-.406-.234-.234-.359-.531-.109-.313-.109-.735 0-.406.172-.765.187-.36.547-.625.375-.266.906-.422.547-.156 1.266-.156.625 0 1.11.062.483.063.843.14v1.298q-.563-.188-1.063-.25-.5-.079-.984-.079t-.781.172q-.297.172-.297.485 0 .156.047.28.062.11.234.22.188.109.484.234.313.11.829.25.562.172.953.36.39.187.625.421.25.235.343.532.11.296.11.671zm7.328 1.891q-.438.094-.875.156-.422.063-.813.063-.656 0-1.125-.14-.469-.141-.781-.423-.313-.281-.469-.703-.14-.437-.14-1.031v-3.234H8.73v-1.235h1.766v-1.687l1.625-.438v2.125H14.7v1.235h-2.578v3.109q0 .562.265.86.266.28.875.28.39 0 .75-.062.375-.062.688-.14v1.265zm6.015.063-.031-.86q-.219.219-.453.406-.22.188-.5.329-.266.125-.594.203-.313.078-.703.078-.5 0-.89-.156-.376-.157-.641-.422-.266-.266-.407-.641-.125-.375-.125-.828 0-.469.203-.86.204-.406.61-.687.406-.297 1.015-.453.61-.156 1.422-.156h.875v-.407q0-.25-.078-.453t-.234-.343q-.156-.157-.406-.235-.25-.078-.625-.078-.594 0-1.172.14-.563.126-1.094.376v-1.266q.484-.203 1.094-.312.625-.125 1.297-.125.734 0 1.265.14.531.14.86.422.343.266.5.688.171.421.171.984v4.516h-1.359zm-.219-2.922h-.968q-.407 0-.688.078-.281.078-.469.219-.172.125-.25.312-.078.172-.078.375 0 .406.25.625.266.203.719.203.328 0 .687-.234.36-.25.797-.688v-.89zm7.656-1.125q.016-.36-.03-.625-.048-.266-.157-.422-.11-.172-.266-.25-.156-.078-.36-.078-.343 0-.718.297-.375.28-.828.937v4.188h-1.625v-6.61h1.437l.063.953q.156-.25.36-.453.202-.203.452-.344.25-.14.563-.218.312-.078.672-.078.5 0 .89.171.391.172.641.516.266.328.39.844.141.5.11 1.172h-1.594zm8.531 3.984q-.437.094-.875.156-.422.063-.812.063-.656 0-1.125-.14-.469-.141-.781-.423-.313-.281-.47-.703-.14-.437-.14-1.031v-3.234h-1.765v-1.235h1.765v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.109q0 .562.266.86.265.28.875.28.39 0 .75-.062.375-.062.687-.14v1.265zm5.453-7.11v7.173h-1.64v-7.172h-2.329v-1.328h6.297v1.328h-2.328zm7.64-1.25q0 .22-.078.407-.078.187-.218.328-.141.14-.328.219-.188.078-.407.078-.218 0-.422-.078-.187-.078-.328-.219-.14-.14-.218-.328-.079-.188-.079-.406 0-.22.079-.407.078-.187.218-.328.14-.14.328-.218.204-.094.422-.094.219 0 .407.094.187.078.328.218.14.14.218.328.079.188.079.407zm-1.75 3.048h-1.874v-1.235h3.5v5.375h1.906v1.235h-5.64v-1.235h2.109v-4.14zm9.86 5.375v-4.5q0-.25-.016-.438-.016-.187-.062-.312-.032-.125-.11-.188-.078-.062-.203-.062-.203 0-.406.28-.188.266-.438.938v4.282h-1.36v-4.5q0-.25-.015-.438 0-.187-.047-.312-.03-.125-.109-.188-.078-.062-.219-.062-.172 0-.375.28-.203.266-.468.938v4.282h-1.36v-6.61h1.172l.031.953q.14-.281.282-.484.14-.219.296-.344.172-.14.36-.187.187-.063.422-.063.547 0 .828.297.297.281.344.781.156-.281.296-.484.157-.219.313-.344.172-.14.36-.187.202-.063.437-.063.719 0 1.062.5.344.5.344 1.485v4.75h-1.36zm8.421-3.813q0 .156-.015.422-.016.266-.032.484h-4.343q0 .438.125.782.14.328.375.546.25.22.593.344.344.11.75.11.485 0 1.032-.063.562-.078 1.156-.25v1.266q-.266.062-.563.125-.296.062-.609.109-.312.047-.64.063-.313.03-.61.03-.75 0-1.36-.218-.593-.219-1.015-.64-.406-.422-.64-1.032-.22-.625-.22-1.437 0-.797.22-1.453.234-.672.624-1.141.407-.469.985-.719.578-.265 1.297-.265.703 0 1.234.218.547.219.906.61.36.39.547.937.203.531.203 1.172zm-1.625-.234q.016-.391-.093-.672-.11-.297-.297-.485-.172-.187-.407-.28-.234-.095-.515-.095-.594 0-.985.407-.375.406-.453 1.125h2.75z"/><path d="M72.973 149.792h3.763l4.57 28.84"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M72.973 149.792h3.763l3.631 22.915"/><path fill="#000" stroke="#000" stroke-linecap="butt" d="m78.736 172.965 2.341 4.224.921-4.74z" fill-rule="evenodd"/><path fill="#cfe2f3" d="M811.013 181H914.51v74.992H811.013z" fill-rule="evenodd"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M811.013 181H914.51v74.992H811.013z"/><path fill="#000" d="M832.731 217.39q0 .531-.203 1.047-.187.5-.594.906-.406.406-1.047.656-.64.25-1.53.25h-1.048v3.047h-1.156v-8.5h2.39q.626 0 1.204.14.594.141 1.031.454.438.312.688.812.265.485.265 1.188zm-1.203.062q0-.828-.547-1.265-.531-.438-1.484-.438h-1.188v3.5h1.078q1.032 0 1.579-.437.562-.453.562-1.36zm3.234-.687h1.031l.032 1.203q.578-.703 1.14-1.016.563-.312 1.141-.312 1.016 0 1.531.656.531.656.485 1.953h-1.141q.016-.86-.25-1.234-.266-.39-.797-.39-.219 0-.453.077-.234.078-.484.266-.235.172-.516.453-.266.281-.578.672v4.203h-1.14v-6.531zm12.75 3.219q0 .75-.219 1.39-.219.64-.625 1.094-.39.437-.984.687-.578.25-1.313.25-.703 0-1.265-.203-.547-.218-.938-.64-.375-.438-.594-1.063-.203-.625-.203-1.437 0-.75.22-1.375.218-.64.608-1.094.407-.453.985-.703.594-.25 1.328-.25.703 0 1.25.219.562.218.937.64.391.422.594 1.047.219.625.219 1.438zm-1.156.046q0-.609-.14-1.062-.142-.453-.392-.75-.234-.297-.593-.453-.36-.156-.797-.156-.5 0-.86.203-.359.187-.593.53-.235.33-.344.767-.11.437-.11.921 0 .61.141 1.063.14.453.375.766.25.296.594.453.36.14.797.14.515 0 .875-.187.36-.203.594-.531.234-.344.343-.782.11-.437.11-.922zm7.874 3.032q-.453.156-.921.234-.454.094-.954.094-1.546 0-2.39-.844-.828-.844-.828-2.453 0-.766.234-1.39.25-.641.672-1.094.437-.454 1.047-.688.61-.25 1.344-.25.5 0 .937.078.453.063.86.235v1.078q-.438-.22-.876-.313-.437-.11-.906-.11-.437 0-.828.173-.375.156-.672.468-.297.313-.469.766-.156.438-.156 1.016 0 1.172.563 1.765.578.594 1.609.594.453 0 .89-.11.438-.109.844-.312v1.063zm7.766-3.375q0 .234-.016.406 0 .156-.015.297h-4.579q0 1 .547 1.547.563.53 1.625.53.282 0 .563-.015.297-.03.562-.062.266-.047.5-.094.25-.047.453-.11v.938q-.453.125-1.046.203-.579.078-1.204.078-.828 0-1.437-.218-.61-.235-1-.657-.39-.437-.578-1.062-.172-.625-.172-1.422 0-.687.187-1.297.204-.625.579-1.094.39-.468.937-.734.563-.281 1.266-.281.672 0 1.203.219.531.218.89.609.36.39.547.953.188.563.188 1.266zm-1.188-.172q.032-.422-.078-.781-.11-.375-.328-.625-.219-.266-.547-.407-.312-.156-.75-.156-.36 0-.672.156-.312.14-.531.407-.219.25-.36.625-.124.359-.156.78h3.422zm8.172 2q0 .344-.125.625-.11.265-.313.484-.203.203-.468.36-.266.14-.578.25-.297.093-.625.125-.313.046-.61.046-.672 0-1.234-.062-.547-.047-1.078-.172v-1.047q.562.156 1.125.25.578.078 1.14.078.813 0 1.203-.218.391-.22.391-.625 0-.188-.062-.313-.063-.14-.235-.266-.156-.14-.5-.265-.344-.14-.937-.313-.438-.14-.813-.297-.375-.171-.656-.39-.266-.235-.422-.531-.156-.313-.156-.735 0-.265.125-.594.125-.328.437-.609.313-.281.828-.469.516-.187 1.297-.187.39 0 .86.047.468.047.968.14v1.016q-.53-.125-1.015-.188-.469-.062-.828-.062-.422 0-.72.062-.28.063-.468.188-.172.11-.25.266-.078.14-.078.312 0 .188.063.328.078.14.265.281.188.125.516.266.328.125.86.281.593.172.984.36.39.187.64.422.25.218.36.515.109.281.109.64zm7.328 0q0 .344-.125.625-.11.265-.313.484-.203.203-.468.36-.266.14-.579.25-.296.093-.625.125-.312.046-.609.046-.672 0-1.234-.062-.547-.047-1.078-.172v-1.047q.562.156 1.125.25.578.078 1.14.078.813 0 1.203-.218.39-.22.39-.625 0-.188-.062-.313-.062-.14-.234-.266-.156-.14-.5-.265-.344-.14-.937-.313-.438-.14-.813-.297-.375-.171-.656-.39-.266-.235-.422-.531-.156-.313-.156-.735 0-.265.125-.594.125-.328.437-.609.313-.281.828-.469.516-.187 1.297-.187.39 0 .86.047.468.047.968.14v1.016q-.531-.125-1.015-.188-.47-.062-.828-.062-.422 0-.72.062-.28.063-.468.188-.172.11-.25.266-.078.14-.078.312 0 .188.062.328.079.14.266.281.188.125.516.266.328.125.859.281.594.172.984.36.391.187.641.422.25.218.36.515.109.281.109.64zm4.374-3.813h-1.937v-.937h3.078v5.594h1.953v.937h-5.234v-.937h2.14v-4.657zm.391-3.687q.203 0 .36.078.156.062.28.187.126.125.188.282.078.156.078.36 0 .17-.078.343-.062.156-.187.281-.125.125-.282.203-.156.063-.359.063-.187 0-.344-.063-.156-.078-.28-.203-.126-.125-.204-.281-.063-.172-.063-.344 0-.203.063-.36.078-.156.203-.28.125-.126.281-.188.157-.078.344-.078zm4.719 2.75h1l.047 1.047q.28-.328.546-.547.282-.235.532-.375.25-.14.515-.188.282-.062.563-.062 1.015 0 1.531.61.516.593.516 1.78v4.266H889.9v-4.172q0-.765-.281-1.125-.281-.375-.86-.375-.203 0-.406.063-.187.062-.406.218-.219.141-.469.407-.25.265-.562.656v4.328h-1.125v-6.531zm12.03.922q.173.234.266.53.11.298.11.657 0 .5-.188.922-.172.422-.515.719-.344.297-.813.469-.469.171-1.031.171-.422 0-.781-.093-.344-.094-.563-.22-.125.188-.203.345-.078.156-.078.36 0 .25.234.42.235.157.625.173l1.719.062q.484.016.89.125.422.11.72.328.296.204.452.516.172.297.172.703 0 .438-.187.828-.188.39-.578.672-.391.297-1 .469-.61.187-1.438.187-.797 0-1.36-.125-.546-.125-.905-.359-.36-.219-.532-.531-.156-.313-.156-.672 0-.484.219-.844t.687-.687q-.172-.078-.297-.188-.125-.125-.203-.265-.078-.141-.125-.297-.031-.157-.031-.297 0-.422.203-.766.203-.36.469-.672-.125-.156-.219-.297-.094-.14-.156-.296-.063-.172-.11-.36-.03-.203-.03-.453 0-.5.187-.922.187-.422.515-.719.344-.296.813-.468.469-.172 1.047-.172.234 0 .453.031t.39.094h2.376v.922h-1.047zm-3.937 6.547q0 .468.485.671.484.22 1.343.22.532 0 .89-.095.376-.093.595-.265.234-.156.328-.36.11-.203.11-.421 0-.391-.329-.579-.328-.187-1-.218l-1.703-.063q-.219.14-.36.266-.14.14-.218.281-.078.14-.11.281-.03.14-.03.282zm.344-5.344q0 .312.11.578.109.266.296.453.188.172.438.281.265.094.578.094.328 0 .594-.11.265-.124.437-.312.188-.203.281-.453.094-.25.094-.531 0-.313-.11-.563-.093-.265-.28-.437-.188-.188-.454-.281-.25-.11-.562-.11-.344 0-.61.125-.265.11-.453.297-.172.188-.265.453-.094.25-.094.516z"/><path d="M824.5 66h-3.476l-10.01 102.995"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M824.5 66h-3.476l-9.43 97.023"/><path fill="#000" stroke="#000" stroke-linecap="butt" d="m809.95 162.863 1.205 4.677 2.083-4.357z" fill-rule="evenodd"/><path d="M819.517 52h171.496v26.016H819.517z"/><path fill="#000" d="m833.58 69.808-.032-.969q-.218.25-.437.453t-.485.36q-.25.14-.546.218-.282.094-.625.094-.594 0-1.047-.234-.453-.235-.766-.672-.312-.438-.469-1.047-.156-.625-.156-1.39 0-.907.25-1.563.266-.672.719-1.11.453-.453 1.078-.656.625-.218 1.36-.218.25 0 .5.03.25.032.437.095v-2.594h1.594v9.203h-1.375zm-2.907-3.25q0 .547.078.937.079.375.22.625.155.25.359.375.218.11.5.11.39 0 .75-.328.375-.328.78-.891v-2.89q-.187-.079-.468-.126-.266-.046-.547-.046-.39 0-.703.156-.297.156-.516.453-.218.281-.343.703-.11.406-.11.922zm12.031-.11q0 .782-.218 1.438-.22.64-.641 1.11-.422.453-1.031.718-.594.25-1.375.25-.735 0-1.313-.219-.578-.218-.984-.64-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.781.218-1.422.235-.656.641-1.109.422-.453 1.031-.703.61-.25 1.375-.25.735 0 1.313.219.578.218.984.656.406.422.61 1.062.218.625.218 1.454zm-1.656.047q0-1.03-.39-1.546-.376-.516-1.141-.516-.406 0-.703.156-.297.156-.485.453-.187.282-.281.657-.078.375-.078.796 0 1.047.406 1.579.422.515 1.14.515.407 0 .688-.156.297-.172.485-.453.187-.281.265-.656.094-.391.094-.829zm7.703 3.313v-4.5q0-.25-.016-.438-.015-.187-.062-.312-.031-.125-.11-.188-.078-.062-.203-.062-.203 0-.406.281-.187.266-.437.938v4.28h-1.36v-4.5q0-.25-.015-.437 0-.187-.047-.312-.032-.125-.11-.188-.078-.062-.218-.062-.172 0-.375.281-.204.266-.47.938v4.28h-1.359V63.2h1.172l.032.953q.14-.282.28-.485.141-.218.298-.343.172-.141.36-.188.187-.062.42-.062.548 0 .83.296.296.282.343.782.156-.282.297-.485.156-.218.312-.343.172-.141.36-.188.203-.062.437-.062.719 0 1.063.5.343.5.343 1.484v4.75h-1.36zm2.718-7.203v-1.297h5.391v1.297h-1.875v5.875h1.875v1.328h-5.39V68.48h1.874v-5.875h-1.875zm11.203 7.203v-4.313q0-1.078-.797-1.078-.406 0-.78.328-.36.313-.766.875v4.188h-1.594v-6.61h1.375l.031.97q.203-.25.422-.454.219-.219.469-.36.265-.14.547-.218.296-.078.656-.078.515 0 .89.172.375.156.625.469.266.296.391.718t.125.953v4.438h-1.594zm8.844-.063q-.438.094-.875.157-.422.062-.813.062-.656 0-1.125-.14-.468-.141-.781-.422-.312-.282-.469-.703-.14-.438-.14-1.032v-3.234h-1.766v-1.234h1.766V61.51l1.625-.437v2.125h2.578v1.234h-2.578v3.11q0 .562.265.859.266.28.875.28.39 0 .75-.062.375-.062.688-.14v1.265zm7.64-3.75q0 .157-.015.422-.016.266-.032.485h-4.343q0 .437.125.78.14.329.375.548.25.219.593.344.344.109.75.109.485 0 1.032-.063.562-.078 1.156-.25v1.266q-.266.063-.563.125-.297.063-.61.11-.312.046-.64.062-.312.031-.61.031-.75 0-1.358-.219-.594-.218-1.016-.64-.406-.422-.64-1.031-.22-.625-.22-1.438 0-.797.22-1.453.234-.672.624-1.14.407-.47.985-.72.578-.265 1.297-.265.703 0 1.234.219.547.218.906.609.36.39.547.938.203.53.203 1.171zm-1.625-.234q.016-.39-.094-.672-.109-.297-.296-.484-.172-.188-.407-.281-.234-.094-.515-.094-.594 0-.985.406-.375.406-.453 1.125h2.75zm7.437 0q.016-.36-.03-.625-.048-.266-.157-.422-.11-.172-.266-.25-.156-.078-.36-.078-.343 0-.718.297-.375.281-.828.937v4.188h-1.625v-6.61h1.438l.062.954q.156-.25.36-.453.203-.204.453-.344.25-.14.562-.219.313-.078.672-.078.5 0 .89.172.391.172.641.515.266.329.39.844.141.5.11 1.172h-1.594zm7.219 4.047-.031-.86q-.22.22-.453.407-.22.187-.5.328-.266.125-.594.203-.313.078-.703.078-.5 0-.891-.156-.375-.156-.64-.422-.266-.266-.407-.64-.125-.376-.125-.829 0-.468.203-.86.203-.405.61-.687.406-.296 1.015-.453.61-.156 1.422-.156h.875v-.406q0-.25-.078-.453t-.234-.344q-.157-.156-.407-.234-.25-.079-.625-.079-.593 0-1.171.141-.563.125-1.094.375v-1.266q.484-.203 1.094-.312.625-.125 1.296-.125.735 0 1.266.14.531.141.86.422.343.266.5.688.171.422.171.984v4.516h-1.36zm-.219-2.922H891q-.406 0-.687.078t-.469.219q-.172.125-.25.312-.078.172-.078.375 0 .407.25.625.266.204.719.204.328 0 .687-.235.36-.25.797-.687v-.891zm8.75 2.672q-.469.187-.969.266-.5.093-1.047.093-.781 0-1.406-.203-.625-.219-1.063-.64-.437-.422-.671-1.047-.235-.625-.235-1.453 0-.782.25-1.422.25-.657.703-1.11.47-.453 1.11-.703.64-.25 1.422-.25.64 0 1.078.078.453.063.797.172v1.531q-.407-.203-.875-.312-.47-.11-.891-.11-.438 0-.797.157-.344.14-.594.422-.234.265-.359.64-.125.375-.125.828 0 .485.125.86.14.375.39.64.25.266.594.407.36.14.797.14.203 0 .422-.031.234-.031.469-.078.234-.063.453-.125.234-.078.422-.172v1.422zm7.437.187q-.437.094-.875.157-.422.062-.812.062-.657 0-1.125-.14-.47-.141-.782-.422-.312-.282-.468-.703-.141-.438-.141-1.032v-3.234h-1.766v-1.234h1.766V61.51l1.625-.437v2.125h2.578v1.234h-2.578v3.11q0 .562.266.859.265.28.875.28.39 0 .75-.062.375-.062.687-.14v1.265zm5.765-8.359q0 .219-.078.406-.078.188-.218.328-.141.141-.329.22-.187.077-.406.077-.219 0-.422-.078-.187-.078-.328-.219-.14-.14-.219-.328-.078-.187-.078-.406 0-.219.078-.406.079-.188.22-.328.14-.141.327-.22.203-.093.422-.093.219 0 .406.094.188.078.329.219.14.14.218.328.078.187.078.406zm-1.75 3.047h-1.875v-1.234h3.5v5.375h1.907v1.234h-5.64v-1.234h2.108v-4.141zm8.875 5.375h-1.828l-2.61-6.61h1.766l1.375 3.75.407 1.204.406-1.157 1.39-3.796h1.704l-2.61 6.609zm9.406-3.813q0 .157-.015.422-.016.266-.032.485h-4.343q0 .437.125.78.14.329.375.548.25.219.593.344.344.109.75.109.485 0 1.032-.063.562-.078 1.156-.25v1.266q-.266.063-.563.125-.297.063-.61.11-.312.046-.64.062-.312.031-.61.031-.75 0-1.358-.219-.594-.218-1.016-.64-.406-.422-.64-1.031-.22-.625-.22-1.438 0-.797.22-1.453.234-.672.624-1.14.407-.47.985-.72.578-.265 1.297-.265.703 0 1.234.219.547.218.906.609.36.39.547.938.203.53.203 1.171zm-1.625-.234q.016-.39-.094-.672-.109-.297-.296-.484-.172-.188-.407-.281-.234-.094-.515-.094-.594 0-.985.406-.375.406-.453 1.125h2.75z"/><path d="M838.514 72.247h223.496v26.015H838.514z"/><path fill="#000" d="m852.577 90.055-.031-.97q-.219.25-.438.454-.219.203-.484.36-.25.14-.547.218-.281.094-.625.094-.594 0-1.047-.235-.453-.234-.766-.671-.312-.438-.468-1.047-.157-.625-.157-1.39 0-.907.25-1.563.266-.672.72-1.11.452-.453 1.077-.656.625-.219 1.36-.219.25 0 .5.031.25.032.437.094v-2.594h1.594v9.204h-1.375zm-2.906-3.25q0 .546.078.937.078.375.219.625.156.25.359.375.219.11.5.11.39 0 .75-.329.375-.328.781-.89v-2.89q-.187-.079-.469-.126-.265-.047-.546-.047-.391 0-.704.156-.296.157-.515.454-.219.28-.344.703-.11.406-.11.922zm12.03-.11q0 .781-.218 1.438-.219.64-.64 1.11-.423.452-1.032.718-.594.25-1.375.25-.734 0-1.312-.219-.579-.219-.985-.64-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.781.219-1.422.234-.656.64-1.11.422-.452 1.032-.702.609-.25 1.375-.25.734 0 1.312.218.578.22.985.657.406.421.609 1.062.219.625.219 1.453zm-1.656.047q0-1.031-.39-1.547-.375-.515-1.14-.515-.407 0-.704.156t-.484.453q-.188.281-.282.656-.078.375-.078.797 0 1.047.407 1.578.421.516 1.14.516.406 0 .688-.156.297-.172.484-.454.188-.28.266-.656.093-.39.093-.828zm7.703 3.313v-4.5q0-.25-.015-.438-.016-.187-.063-.312-.031-.125-.11-.188-.077-.062-.202-.062-.203 0-.407.28-.187.266-.437.938v4.282h-1.36v-4.5q0-.25-.015-.438 0-.187-.047-.312-.031-.125-.11-.188-.077-.062-.218-.062-.172 0-.375.28-.203.266-.469.938v4.282h-1.36v-6.61h1.173l.03.953q.142-.28.282-.484.14-.219.297-.344.172-.14.36-.187.187-.063.421-.063.547 0 .828.297.297.281.344.781.156-.28.297-.484.156-.219.313-.344.171-.14.359-.187.203-.063.437-.063.72 0 1.063.5.344.5.344 1.485v4.75h-1.36zm8.281-.329q-.562.22-1.093.329-.532.109-1.11.109-.906 0-1.625-.266-.703-.265-1.187-.797-.485-.53-.735-1.328-.25-.797-.25-1.843 0-1.063.266-1.891.281-.844.781-1.422.516-.578 1.235-.875.734-.312 1.64-.312.297 0 .547.015.266.016.5.047.25.031.5.094.266.062.531.156v1.578q-.547-.25-1.047-.36-.5-.109-.921-.109-.594 0-1.032.22-.422.202-.703.609-.281.39-.406.937-.125.531-.125 1.188 0 .687.125 1.234.14.547.422.922.281.375.703.578.437.187 1.047.187.203 0 .453-.03.25-.048.5-.11.266-.078.516-.172.25-.094.468-.188v1.5zm7.656-3.03q0 .78-.218 1.437-.22.64-.641 1.11-.422.452-1.031.718-.594.25-1.375.25-.735 0-1.313-.219t-.984-.64q-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.781.218-1.422.235-.656.641-1.11.422-.452 1.031-.702.61-.25 1.375-.25.735 0 1.313.218.578.22.984.657.406.421.61 1.062.218.625.218 1.453zm-1.656.046q0-1.031-.39-1.547-.376-.515-1.141-.515-.406 0-.703.156-.297.156-.485.453-.187.281-.28.656-.08.375-.08.797 0 1.047.407 1.578.422.516 1.14.516.407 0 .688-.156.297-.172.485-.454.187-.28.265-.656.094-.39.094-.828zm6.969 3.313v-4.313q0-1.078-.797-1.078-.407 0-.782.328-.359.313-.765.875v4.188h-1.594v-6.61h1.375l.031.969q.203-.25.422-.453.219-.219.469-.36.266-.14.547-.218.297-.078.656-.078.516 0 .89.171.376.157.626.47.265.296.39.718t.125.953v4.438h-1.593zm8.843-.063q-.437.094-.875.156-.422.063-.812.063-.657 0-1.125-.14-.47-.141-.782-.423-.312-.28-.468-.703-.141-.437-.141-1.031V84.68h-1.766v-1.235h1.766v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.109q0 .562.266.86.265.28.875.28.39 0 .75-.062.375-.062.687-.14v1.265zm7.64-3.75q0 .156-.015.422-.016.266-.031.484h-4.344q0 .438.125.782.14.328.375.546.25.22.594.344.343.11.75.11.484 0 1.03-.063.563-.078 1.157-.25v1.266q-.266.062-.562.125-.297.062-.61.11-.312.046-.64.062-.313.03-.61.03-.75 0-1.36-.218-.593-.219-1.015-.64-.406-.422-.64-1.032-.22-.625-.22-1.437 0-.797.22-1.453.234-.672.625-1.141.406-.469.984-.719.578-.265 1.297-.265.703 0 1.234.218.547.22.906.61.36.39.547.937.203.531.203 1.172zm-1.625-.234q.016-.39-.093-.672-.11-.297-.297-.485-.172-.187-.406-.28-.235-.095-.516-.095-.594 0-.984.407-.375.406-.454 1.125h2.75zm7.125 4.047v-4.313q0-1.078-.797-1.078-.406 0-.781.328-.36.313-.766.875v4.188h-1.593v-6.61h1.375l.03.969q.204-.25.423-.453.219-.219.469-.36.265-.14.546-.218.297-.078.657-.078.515 0 .89.171.375.157.625.47.266.296.39.718.126.422.126.953v4.438h-1.594zm8.844-.063q-.438.094-.875.156-.422.063-.813.063-.656 0-1.125-.14-.469-.141-.781-.423-.313-.28-.469-.703-.14-.437-.14-1.031V84.68h-1.766v-1.235h1.765v-1.687l1.625-.438v2.125h2.579v1.235h-2.579v3.109q0 .562.266.86.266.28.875.28.39 0 .75-.062.375-.062.688-.14v1.265zm2.25.063v-8.5h1.624v7.125h3.594v1.375h-5.219zm12.905-3.36q0 .781-.218 1.438-.22.64-.641 1.11-.422.452-1.031.718-.594.25-1.375.25-.735 0-1.313-.219t-.984-.64q-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.781.218-1.422.235-.656.641-1.11.422-.452 1.031-.702.61-.25 1.375-.25.735 0 1.313.218.578.22.984.657.406.421.61 1.062.218.625.218 1.453zm-1.656.047q0-1.031-.39-1.547-.376-.515-1.141-.515-.406 0-.703.156-.297.156-.485.453-.187.281-.28.656-.079.375-.079.797 0 1.047.406 1.578.422.516 1.14.516.407 0 .688-.156.297-.172.485-.454.187-.28.265-.656.094-.39.094-.828zm7.172 3.313-.032-.86q-.218.219-.453.406-.218.188-.5.329-.265.125-.593.203-.313.078-.704.078-.5 0-.89-.156-.375-.157-.64-.422-.266-.266-.407-.64-.125-.376-.125-.829 0-.469.203-.86.203-.406.61-.687.406-.297 1.015-.453.61-.156 1.422-.156h.875V85.6q0-.25-.078-.453t-.235-.343q-.156-.157-.406-.235-.25-.078-.625-.078-.594 0-1.172.14-.562.126-1.093.376v-1.266q.484-.203 1.093-.312.625-.125 1.297-.125.735 0 1.266.14t.86.422q.343.266.5.688.171.421.171.984v4.516h-1.36zm-.219-2.922h-.969q-.406 0-.687.078-.282.078-.469.219-.172.125-.25.312-.078.172-.078.375 0 .406.25.625.265.203.719.203.328 0 .687-.234.36-.25.797-.688v-.89zm7.562 2.922-.031-.97q-.219.25-.438.454-.218.203-.484.36-.25.14-.547.218-.281.094-.625.094-.594 0-1.047-.235-.453-.234-.765-.671-.313-.438-.47-1.047-.155-.625-.155-1.39 0-.907.25-1.563.265-.672.718-1.11.454-.453 1.079-.656.625-.219 1.359-.219.25 0 .5.031.25.032.437.094v-2.594h1.594v9.204h-1.375zm-2.906-3.25q0 .546.078.937.078.375.219.625.156.25.36.375.218.11.5.11.39 0 .75-.329.374-.328.78-.89v-2.89q-.187-.079-.468-.126-.266-.047-.547-.047-.39 0-.703.156-.297.157-.516.454-.219.28-.344.703-.11.406-.11.922zm11.843-.563q0 .156-.015.422-.016.266-.031.484h-4.344q0 .438.125.782.14.328.375.546.25.22.594.344.343.11.75.11.484 0 1.03-.063.563-.078 1.157-.25v1.266q-.266.062-.562.125-.297.062-.61.11-.312.046-.64.062-.313.03-.61.03-.75 0-1.36-.218-.593-.219-1.015-.64-.406-.422-.64-1.032-.22-.625-.22-1.437 0-.797.22-1.453.234-.672.625-1.141.406-.469.984-.719.578-.265 1.297-.265.703 0 1.234.218.547.22.906.61.36.39.547.937.203.531.203 1.172zm-1.625-.234q.016-.39-.093-.672-.11-.297-.297-.485-.172-.187-.406-.28-.235-.095-.516-.095-.594 0-.984.407-.375.406-.454 1.125h2.75zm7.344 4.047-.031-.97q-.22.25-.438.454-.219.203-.484.36-.25.14-.547.218-.281.094-.625.094-.594 0-1.047-.235-.453-.234-.766-.671-.312-.438-.468-1.047-.157-.625-.157-1.39 0-.907.25-1.563.266-.672.72-1.11.452-.453 1.077-.656.625-.219 1.36-.219.25 0 .5.031.25.032.437.094v-2.594h1.594v9.204h-1.375zm-2.906-3.25q0 .546.078.937.078.375.219.625.156.25.359.375.219.11.5.11.39 0 .75-.329.375-.328.781-.89v-2.89q-.187-.079-.469-.126-.265-.047-.546-.047-.391 0-.704.156-.296.157-.515.454-.219.28-.344.703-.11.406-.11.922zm6.374 3.25v-8.5h5.11v1.343h-3.485v2.125h3.329v1.313h-3.329v2.36h3.485v1.359h-5.11zm10.719 0h-1.828l-2.61-6.61h1.766l1.375 3.75.406 1.203.407-1.156 1.39-3.797h1.703l-2.61 6.61zm9.406-3.813q0 .156-.016.422-.015.266-.031.484h-4.344q0 .438.125.782.14.328.375.546.25.22.594.344.344.11.75.11.484 0 1.031-.063.563-.078 1.157-.25v1.266q-.266.062-.563.125-.297.062-.61.11-.312.046-.64.062-.312.03-.61.03-.75 0-1.359-.218-.593-.219-1.015-.64-.407-.422-.641-1.032-.219-.625-.219-1.437 0-.797.219-1.453.234-.672.625-1.141.406-.469.984-.719.579-.265 1.297-.265.703 0 1.235.218.547.22.906.61.36.39.547.937.203.531.203 1.172zm-1.625-.234q.016-.39-.094-.672-.11-.297-.297-.485-.172-.187-.406-.28-.234-.095-.516-.095-.593 0-.984.407-.375.406-.453 1.125h2.75zm7.125 4.047v-4.313q0-1.078-.797-1.078-.406 0-.781.328-.36.313-.766.875v4.188h-1.594v-6.61h1.375l.031.969q.204-.25.422-.453.219-.219.469-.36.266-.14.547-.218.297-.078.656-.078.516 0 .89.171.376.157.626.47.265.296.39.718t.125.953v4.438h-1.593zm8.843-.063q-.437.094-.875.156-.422.063-.812.063-.657 0-1.125-.14-.47-.141-.782-.423-.312-.28-.468-.703-.141-.437-.141-1.031V84.68h-1.766v-1.235h1.766v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.109q0 .562.266.86.265.28.875.28.39 0 .75-.062.375-.062.687-.14v1.265zm7.61-2.516q0 .704-.266 1.22-.25.515-.72.859-.452.328-1.093.5-.64.156-1.39.156-.672 0-1.297-.078-.625-.078-1.235-.266V88.29q.297.094.625.187.328.094.656.172.329.063.641.11.328.031.64.031.454 0 .766-.078.328-.078.532-.219.203-.14.28-.328.095-.188.095-.406 0-.313-.188-.532-.172-.218-.469-.375-.28-.156-.656-.28-.375-.141-.766-.282-.375-.156-.75-.344-.375-.187-.671-.469-.297-.28-.485-.671-.172-.391-.172-.938 0-.5.188-.937.187-.454.578-.782.39-.343 1-.547.61-.203 1.469-.203.25 0 .531.032.281.015.547.062.265.031.515.078.266.047.47.11v1.453q-.204-.078-.454-.14-.25-.063-.516-.11-.265-.047-.53-.078-.266-.032-.5-.032-.438 0-.735.078-.281.063-.469.188-.187.125-.281.297-.078.172-.078.39 0 .266.172.454.187.187.484.343.297.157.672.297.375.125.765.281.391.157.766.36.375.187.672.469.297.265.469.656.187.375.187.89zm7.046 2.516q-.438.094-.875.156-.422.063-.813.063-.656 0-1.125-.14-.468-.141-.78-.423-.313-.28-.47-.703-.14-.437-.14-1.031V84.68h-1.766v-1.235h1.766v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.109q0 .562.265.86.266.28.875.28.391 0 .75-.062.375-.062.688-.14v1.265zm6.015.063-.031-.86q-.219.219-.453.406-.219.188-.5.329-.266.125-.594.203-.312.078-.703.078-.5 0-.89-.156-.376-.157-.641-.422-.266-.266-.407-.64-.125-.376-.125-.829 0-.469.204-.86.203-.406.609-.687.406-.297 1.016-.453.609-.156 1.421-.156h.875V85.6q0-.25-.078-.453t-.234-.343q-.156-.157-.406-.235-.25-.078-.625-.078-.594 0-1.172.14-.563.126-1.094.376v-1.266q.484-.203 1.094-.312.625-.125 1.297-.125.734 0 1.265.14.532.14.86.422.343.266.5.688.172.421.172.984v4.516h-1.36zm-.219-2.922h-.968q-.407 0-.688.078-.281.078-.469.219-.171.125-.25.312-.078.172-.078.375 0 .406.25.625.266.203.72.203.327 0 .687-.234.359-.25.796-.688v-.89zm7.656-1.125q.016-.36-.03-.625-.048-.266-.157-.422-.11-.172-.266-.25-.156-.078-.36-.078-.343 0-.718.297-.375.28-.828.937v4.188h-1.625v-6.61h1.438l.062.953q.156-.25.36-.453.203-.203.453-.344.25-.14.562-.218.313-.078.672-.078.5 0 .89.171.391.172.641.516.266.328.39.844.141.5.11 1.172h-1.594zm8.531 3.984q-.437.094-.875.156-.421.063-.812.063-.656 0-1.125-.14-.469-.141-.781-.423-.313-.28-.47-.703-.14-.437-.14-1.031V84.68h-1.765v-1.235h1.765v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.109q0 .562.266.86.266.28.875.28.39 0 .75-.062.375-.062.687-.14v1.265z"/><path d="M844.515 85.51h-3.475l-10.011 83.488"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M844.515 85.51h-3.475l-9.297 77.53"/><path fill="#000" stroke="#000" stroke-linecap="butt" d="m830.103 162.844 1.1 4.703 2.18-4.31z" fill-rule="evenodd"/><path d="M899.016 96.247H1101v26.015H899.016z"/><path fill="#000" d="m913.078 114.055-.031-.97q-.219.25-.438.454-.218.203-.484.36-.25.14-.547.218-.281.094-.625.094-.594 0-1.047-.235-.453-.234-.765-.671-.313-.438-.47-1.047-.155-.625-.155-1.39 0-.907.25-1.563.265-.672.718-1.11.453-.453 1.078-.656.625-.219 1.36-.219.25 0 .5.031.25.032.437.094v-2.594h1.594v9.204h-1.375zm-2.906-3.25q0 .546.078.937.078.375.219.625.156.25.36.375.218.11.5.11.39 0 .75-.329.374-.328.78-.89v-2.89q-.187-.079-.468-.126-.266-.047-.547-.047-.39 0-.703.156-.297.157-.516.454-.219.28-.344.703-.11.406-.11.922zm12.03-.11q0 .781-.218 1.438-.219.64-.64 1.11-.422.452-1.032.718-.594.25-1.375.25-.734 0-1.312-.219-.578-.219-.985-.64-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.781.219-1.422.234-.656.64-1.11.422-.452 1.032-.702.61-.25 1.375-.25.734 0 1.312.218.578.22.985.657.406.421.61 1.062.218.625.218 1.453zm-1.655.047q0-1.031-.391-1.547-.375-.515-1.14-.515-.407 0-.704.156t-.484.453q-.188.281-.281.656-.079.375-.079.797 0 1.047.407 1.578.422.516 1.14.516.407 0 .688-.156.297-.172.484-.454.188-.28.266-.656.094-.39.094-.828zm7.702 3.313v-4.5q0-.25-.015-.438-.016-.187-.063-.312-.03-.125-.11-.188-.077-.062-.202-.062-.203 0-.406.28-.188.266-.438.938v4.282h-1.36v-4.5q0-.25-.015-.438 0-.187-.047-.312-.031-.125-.11-.188-.077-.062-.218-.062-.172 0-.375.28-.203.266-.469.938v4.282h-1.36v-6.61h1.173l.031.953q.14-.28.281-.484.14-.219.297-.344.172-.14.36-.187.187-.063.421-.063.547 0 .829.297.296.281.343.781.157-.28.297-.484.156-.219.313-.344.172-.14.36-.187.202-.063.437-.063.718 0 1.062.5.344.5.344 1.485v4.75h-1.36zm8.281-.329q-.562.22-1.093.329-.532.109-1.11.109-.906 0-1.625-.266-.703-.265-1.187-.797-.485-.53-.735-1.328-.25-.797-.25-1.843 0-1.063.266-1.891.281-.844.781-1.422.516-.578 1.235-.875.734-.312 1.64-.312.297 0 .547.015.266.016.5.047.25.031.5.094.266.062.531.156v1.578q-.546-.25-1.046-.36-.5-.109-.922-.109-.594 0-1.032.22-.421.202-.703.609-.28.39-.406.937-.125.531-.125 1.188 0 .687.125 1.234.14.547.422.922.281.375.703.578.438.187 1.047.187.203 0 .453-.03.25-.048.5-.11.266-.078.516-.172.25-.094.468-.188v1.5zm7.656-3.03q0 .78-.218 1.437-.22.64-.64 1.11-.423.452-1.032.718-.594.25-1.375.25-.735 0-1.313-.219t-.984-.64q-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.781.219-1.422.234-.656.64-1.11.422-.452 1.031-.702.61-.25 1.375-.25.735 0 1.313.218.578.22.984.657.407.421.61 1.062.218.625.218 1.453zm-1.656.046q0-1.031-.39-1.547-.375-.515-1.141-.515-.406 0-.703.156-.297.156-.485.453-.187.281-.28.656-.079.375-.079.797 0 1.047.406 1.578.422.516 1.14.516.407 0 .688-.156.297-.172.485-.454.187-.28.265-.656.094-.39.094-.828zm6.969 3.313v-4.313q0-1.078-.797-1.078-.406 0-.781.328-.36.313-.766.875v4.188h-1.594v-6.61h1.375l.031.969q.204-.25.422-.453.22-.219.47-.36.265-.14.546-.218.297-.078.656-.078.516 0 .89.171.376.157.626.47.265.296.39.718t.125.953v4.438H949.5zm8.843-.063q-.437.094-.875.156-.422.063-.812.063-.657 0-1.125-.14-.47-.141-.782-.423-.312-.28-.468-.703-.141-.437-.141-1.031v-3.234h-1.766v-1.235h1.766v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.109q0 .562.266.86.265.28.875.28.39 0 .75-.062.375-.062.687-.14v1.265zm7.64-3.75q0 .156-.015.422-.016.266-.031.484h-4.344q0 .438.125.782.14.328.375.546.25.22.594.344.343.11.75.11.484 0 1.03-.063.563-.078 1.157-.25v1.266q-.265.062-.562.125-.297.062-.61.11-.312.046-.64.062-.313.03-.61.03-.75 0-1.36-.218-.593-.219-1.015-.64-.406-.422-.64-1.032-.22-.625-.22-1.437 0-.797.22-1.453.234-.672.625-1.141.406-.469.984-.719.578-.265 1.297-.265.703 0 1.234.218.547.22.907.61.359.39.546.937.204.531.204 1.172zm-1.624-.234q.015-.39-.094-.672-.11-.297-.297-.485-.172-.187-.406-.28-.235-.095-.516-.095-.594 0-.984.407-.375.406-.453 1.125h2.75zm7.124 4.047v-4.313q0-1.078-.797-1.078-.406 0-.78.328-.36.313-.766.875v4.188h-1.594v-6.61h1.375l.031.969q.203-.25.422-.453.219-.219.469-.36.265-.14.547-.218.296-.078.656-.078.515 0 .89.171.375.157.625.47.266.296.391.718t.125.953v4.438h-1.594zm8.844-.063q-.438.094-.875.156-.422.063-.813.063-.656 0-1.125-.14-.468-.141-.781-.423-.312-.28-.469-.703-.14-.437-.14-1.031v-3.234h-1.766v-1.235h1.766v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.109q0 .562.265.86.266.28.875.28.39 0 .75-.062.375-.062.688-.14v1.265zm2.25.063v-8.5h1.624v7.125h3.594v1.375h-5.219zm12.905-3.36q0 .781-.218 1.438-.219.64-.64 1.11-.423.452-1.032.718-.594.25-1.375.25-.735 0-1.313-.219t-.984-.64q-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.781.219-1.422.234-.656.64-1.11.422-.452 1.031-.702.61-.25 1.375-.25.735 0 1.313.218.578.22.984.657.407.421.61 1.062.218.625.218 1.453zm-1.656.047q0-1.031-.39-1.547-.375-.515-1.141-.515-.406 0-.703.156-.297.156-.485.453-.187.281-.28.656-.079.375-.079.797 0 1.047.406 1.578.422.516 1.141.516.406 0 .687-.156.297-.172.485-.454.187-.28.265-.656.094-.39.094-.828zm7.172 3.313-.031-.86q-.22.219-.454.406-.218.188-.5.329-.265.125-.593.203-.313.078-.703.078-.5 0-.891-.156-.375-.157-.64-.422-.266-.266-.407-.64-.125-.376-.125-.829 0-.469.203-.86.203-.406.61-.687.406-.297 1.015-.453.61-.156 1.422-.156h.875v-.407q0-.25-.078-.453t-.234-.343q-.157-.157-.407-.235-.25-.078-.625-.078-.593 0-1.172.14-.562.126-1.093.376v-1.266q.484-.203 1.093-.312.625-.125 1.297-.125.735 0 1.266.14t.86.422q.343.266.5.688.171.421.171.984v4.516h-1.36zm-.219-2.922h-.969q-.406 0-.687.078t-.469.219q-.172.125-.25.312-.078.172-.078.375 0 .406.25.625.266.203.719.203.328 0 .687-.234.36-.25.797-.688v-.89zm7.562 2.922-.03-.97q-.22.25-.438.454-.22.203-.485.36-.25.14-.547.218-.28.094-.625.094-.593 0-1.047-.235-.453-.234-.765-.671-.313-.438-.469-1.047-.156-.625-.156-1.39 0-.907.25-1.563.265-.672.719-1.11.453-.453 1.078-.656.625-.219 1.36-.219.25 0 .5.031.25.032.437.094v-2.594h1.593v9.204h-1.375zm-2.906-3.25q0 .546.078.937.078.375.219.625.156.25.36.375.218.11.5.11.39 0 .75-.329.374-.328.78-.89v-2.89q-.187-.079-.468-.126-.266-.047-.547-.047-.39 0-.703.156-.297.157-.516.454-.219.28-.344.703-.109.406-.109.922zm11.844-.563q0 .156-.016.422t-.031.484h-4.344q0 .438.125.782.14.328.375.546.25.22.594.344.343.11.75.11.484 0 1.03-.063.563-.078 1.157-.25v1.266q-.265.062-.562.125-.297.062-.61.11-.312.046-.64.062-.313.03-.61.03-.75 0-1.36-.218-.593-.219-1.015-.64-.406-.422-.64-1.032-.22-.625-.22-1.437 0-.797.22-1.453.234-.672.625-1.141.406-.469.984-.719.578-.265 1.297-.265.703 0 1.234.218.547.22.907.61.359.39.546.937.204.531.204 1.172zm-1.625-.234q.015-.39-.094-.672-.11-.297-.297-.485-.172-.187-.406-.28-.235-.095-.516-.095-.594 0-.984.407-.375.406-.453 1.125h2.75zm7.343 4.047-.031-.97q-.219.25-.438.454-.218.203-.484.36-.25.14-.547.218-.281.094-.625.094-.594 0-1.047-.235-.453-.234-.765-.671-.313-.438-.47-1.047-.155-.625-.155-1.39 0-.907.25-1.563.265-.672.718-1.11.453-.453 1.078-.656.625-.219 1.36-.219.25 0 .5.031.25.032.437.094v-2.594h1.594v9.204h-1.375zm-2.906-3.25q0 .546.078.937.078.375.219.625.156.25.36.375.218.11.5.11.39 0 .75-.329.374-.328.78-.89v-2.89q-.187-.079-.468-.126-.266-.047-.547-.047-.39 0-.703.156-.297.157-.516.454-.219.28-.344.703-.11.406-.11.922zm6.375 3.25v-8.5h5.109v1.343h-3.484v2.125h3.328v1.313h-3.328v2.36h3.484v1.359h-5.11zm10.718 0h-1.828l-2.61-6.61h1.766l1.375 3.75.406 1.203.407-1.156 1.39-3.797h1.703l-2.609 6.61zm9.406-3.813q0 .156-.016.422-.015.266-.03.484h-4.345q0 .438.125.782.141.328.375.546.25.22.594.344.344.11.75.11.485 0 1.031-.063.563-.078 1.157-.25v1.266q-.266.062-.563.125-.297.062-.61.11-.312.046-.64.062-.312.03-.61.03-.75 0-1.359-.218-.593-.219-1.015-.64-.406-.422-.64-1.032-.22-.625-.22-1.437 0-.797.22-1.453.234-.672.624-1.141.406-.469.985-.719.578-.265 1.296-.265.704 0 1.235.218.547.22.906.61.36.39.547.937.203.531.203 1.172zm-1.625-.234q.016-.39-.094-.672-.109-.297-.297-.485-.171-.187-.406-.28-.234-.095-.515-.095-.594 0-.985.407-.375.406-.453 1.125h2.75zm7.125 4.047v-4.313q0-1.078-.797-1.078-.406 0-.781.328-.36.313-.766.875v4.188h-1.594v-6.61h1.375l.032.969q.203-.25.421-.453.22-.219.47-.36.265-.14.546-.218.297-.078.656-.078.516 0 .891.171.375.157.625.47.266.296.39.718.126.422.126.953v4.438h-1.594zm8.843-.063q-.437.094-.875.156-.422.063-.812.063-.657 0-1.125-.14-.469-.141-.782-.423-.312-.28-.468-.703-.14-.437-.14-1.031v-3.234h-1.767v-1.235h1.766v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.109q0 .562.266.86.265.28.875.28.39 0 .75-.062.375-.062.687-.14v1.265zm2.172.063v-8.5h5.11v1.343h-3.485v2.125h3.328v1.313h-3.328v2.36h3.484v1.359h-5.11zm10.968 0v-4.313q0-1.078-.797-1.078-.406 0-.78.328-.36.313-.766.875v4.188h-1.594v-6.61h1.375l.031.969q.203-.25.422-.453.219-.219.469-.36.265-.14.547-.218.296-.078.656-.078.515 0 .89.171.375.157.625.47.266.296.391.718t.125.953v4.438h-1.594zm7.547 0-.031-.97q-.219.25-.438.454-.219.203-.484.36-.25.14-.547.218-.281.094-.625.094-.594 0-1.047-.235-.453-.234-.766-.671-.312-.438-.468-1.047-.157-.625-.157-1.39 0-.907.25-1.563.266-.672.72-1.11.452-.453 1.077-.656.625-.219 1.36-.219.25 0 .5.031.25.032.437.094v-2.594h1.594v9.204h-1.375zm-2.906-3.25q0 .546.078.937.078.375.219.625.156.25.359.375.219.11.5.11.39 0 .75-.329.375-.328.781-.89v-2.89q-.187-.079-.469-.126-.265-.047-.546-.047-.391 0-.704.156-.296.157-.515.454-.219.28-.344.703-.11.406-.11.922z"/><path d="M905.018 109.512h-2.442l-7.031 59.48"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M905.018 109.512h-2.442l-6.327 53.52"/><path fill="#000" stroke="#000" stroke-linecap="butt" d="m894.609 162.839 1.108 4.7 2.173-4.312z" fill-rule="evenodd"/><path d="M913.514 120.247h171.496v26.015H913.514z"/><path fill="#000" d="m927.577 138.055-.031-.97q-.219.25-.438.454-.219.203-.484.36-.25.14-.547.218-.281.094-.625.094-.594 0-1.047-.235-.453-.234-.766-.671-.312-.438-.468-1.047-.157-.625-.157-1.39 0-.907.25-1.563.266-.672.72-1.11.452-.453 1.077-.656.625-.219 1.36-.219.25 0 .5.031.25.032.437.094v-2.594h1.594v9.204h-1.375zm-2.906-3.25q0 .546.078.937.078.375.219.625.156.25.359.375.219.11.5.11.39 0 .75-.329.375-.328.781-.89v-2.89q-.187-.079-.469-.126-.265-.047-.546-.047-.391 0-.704.156-.296.157-.515.454-.219.28-.344.703-.11.406-.11.922zm12.03-.11q0 .781-.218 1.438-.219.64-.64 1.11-.423.452-1.032.718-.594.25-1.375.25-.734 0-1.312-.219-.579-.219-.985-.64-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.781.219-1.422.234-.656.64-1.11.422-.452 1.032-.702.609-.25 1.375-.25.734 0 1.312.218.578.22.985.657.406.421.609 1.062.219.625.219 1.453zm-1.656.047q0-1.031-.39-1.547-.375-.515-1.14-.515-.407 0-.704.156t-.484.453q-.188.281-.282.656-.078.375-.078.797 0 1.047.407 1.578.421.516 1.14.516.406 0 .688-.156.297-.172.484-.454.188-.28.266-.656.093-.39.093-.828zm7.703 3.313v-4.5q0-.25-.015-.438-.016-.187-.063-.312-.031-.125-.11-.188-.077-.062-.202-.062-.203 0-.407.28-.187.266-.437.938v4.282h-1.36v-4.5q0-.25-.015-.438 0-.187-.047-.312-.031-.125-.11-.188-.077-.062-.218-.062-.172 0-.375.28-.203.266-.469.938v4.282h-1.36v-6.61h1.173l.03.953q.142-.28.282-.484.14-.219.297-.344.172-.14.36-.187.187-.063.421-.063.547 0 .828.297.297.281.344.781.156-.28.297-.484.156-.219.313-.344.171-.14.359-.187.203-.063.437-.063.72 0 1.063.5.344.5.344 1.485v4.75h-1.36zm8.281-.329q-.562.22-1.093.329-.532.109-1.11.109-.906 0-1.625-.266-.703-.265-1.187-.797-.485-.53-.735-1.328-.25-.797-.25-1.843 0-1.063.266-1.891.281-.844.781-1.422.516-.578 1.235-.875.734-.312 1.64-.312.297 0 .547.015.266.016.5.047.25.031.5.094.266.062.531.156v1.578q-.547-.25-1.047-.36-.5-.109-.921-.109-.594 0-1.032.22-.422.202-.703.609-.281.39-.406.937-.125.531-.125 1.188 0 .687.125 1.234.14.547.422.922.281.375.703.578.437.187 1.047.187.203 0 .453-.03.25-.048.5-.11.266-.078.516-.172.25-.094.468-.188v1.5zm7.656-3.03q0 .78-.218 1.437-.22.64-.641 1.11-.422.452-1.031.718-.594.25-1.375.25-.735 0-1.313-.219t-.984-.64q-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.781.218-1.422.235-.656.641-1.11.422-.452 1.031-.702.61-.25 1.375-.25.735 0 1.313.218.578.22.984.657.406.421.61 1.062.218.625.218 1.453zm-1.656.046q0-1.031-.39-1.547-.376-.515-1.141-.515-.406 0-.703.156-.297.156-.485.453-.187.281-.28.656-.08.375-.08.797 0 1.047.407 1.578.422.516 1.14.516.407 0 .688-.156.297-.172.485-.454.187-.28.265-.656.094-.39.094-.828zm7.703 3.313v-4.5q0-.25-.016-.438-.015-.187-.062-.312-.031-.125-.11-.188-.078-.062-.203-.062-.203 0-.406.28-.187.266-.437.938v4.282h-1.36v-4.5q0-.25-.015-.438 0-.187-.047-.312-.032-.125-.11-.188-.078-.062-.218-.062-.172 0-.375.28-.204.266-.47.938v4.282h-1.359v-6.61h1.172l.032.953q.14-.28.28-.484.141-.219.298-.344.172-.14.359-.187.188-.063.422-.063.547 0 .828.297.297.281.344.781.156-.28.297-.484.156-.219.312-.344.172-.14.36-.187.203-.063.437-.063.719 0 1.063.5.343.5.343 1.485v4.75h-1.36zm8.609-3.422q0 .906-.266 1.578-.25.656-.718 1.094-.453.437-1.078.656-.625.203-1.36.203-.25 0-.5-.031-.25-.032-.437-.078v2.578h-1.594v-9.188h1.375l.031.969q.203-.25.422-.453.219-.219.469-.36.265-.14.547-.218.297-.078.656-.078.594 0 1.047.234.453.234.765.672.313.422.47 1.047.171.61.171 1.375zm-1.672.062q0-.547-.078-.922-.078-.39-.234-.64-.141-.25-.36-.36-.203-.109-.468-.109-.407 0-.782.328-.36.313-.765.875v2.89q.187.079.453.126.281.047.562.047.375 0 .688-.157.312-.156.531-.437.219-.297.328-.703.125-.422.125-.938zm5.187-4.594h-1.875v-1.25h3.5v7.97h1.907v1.234h-5.641v-1.235h2.11v-6.719zm10.953 4.141q0 .156-.015.422-.016.266-.032.484h-4.343q0 .438.125.782.14.328.375.546.25.22.593.344.344.11.75.11.485 0 1.032-.063.562-.078 1.156-.25v1.266q-.266.062-.563.125-.296.062-.609.11-.312.046-.64.062-.313.03-.61.03-.75 0-1.36-.218-.593-.219-1.015-.64-.406-.422-.64-1.032-.22-.625-.22-1.437 0-.797.22-1.453.234-.672.624-1.141.407-.469.985-.719.578-.265 1.297-.265.703 0 1.234.218.547.22.906.61.36.39.547.937.203.531.203 1.172zm-1.625-.234q.016-.39-.093-.672-.11-.297-.297-.485-.172-.187-.407-.28-.234-.095-.515-.095-.594 0-.985.407-.375.406-.453 1.125h2.75zm8.64 3.984q-.437.094-.874.156-.422.063-.813.063-.656 0-1.125-.14-.469-.141-.781-.423-.313-.28-.469-.703-.14-.437-.14-1.031v-3.234h-1.766v-1.235h1.765v-1.687l1.625-.438v2.125h2.579v1.235h-2.579v3.109q0 .562.266.86.266.28.875.28.39 0 .75-.062.375-.062.688-.14v1.265zm7.641-3.75q0 .156-.016.422-.015.266-.03.484h-4.345q0 .438.125.782.141.328.375.546.25.22.594.344.344.11.75.11.484 0 1.031-.063.563-.078 1.157-.25v1.266q-.266.062-.563.125-.297.062-.61.11-.312.046-.64.062-.312.03-.61.03-.75 0-1.359-.218-.593-.219-1.015-.64-.407-.422-.64-1.032-.22-.625-.22-1.437 0-.797.22-1.453.233-.672.624-1.141.406-.469.984-.719.579-.265 1.297-.265.703 0 1.235.218.547.22.906.61.36.39.547.937.203.531.203 1.172zm-1.625-.234q.016-.39-.094-.672-.11-.297-.297-.485-.172-.187-.406-.28-.234-.095-.516-.095-.593 0-.984.407-.375.406-.453 1.125h2.75z"/><path d="M919.016 133.512h-1.546l-4.454 35.481"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M919.016 133.512h-1.546l-3.707 29.528"/><path fill="#000" stroke="#000" stroke-linecap="butt" d="m912.124 162.834 1.074 4.709 2.204-4.297z" fill-rule="evenodd"/><path fill="#cfe2f3" d="M921.51 181h50.015v74.992h-50.016z" fill-rule="evenodd"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M921.51 181h50.015v74.992h-50.016z"/><path fill="#000" d="M938.268 223.296h-4.891v-8.5h1.172v7.516h3.719v.984zm7.656-3.312q0 .75-.22 1.39-.218.64-.624 1.094-.39.437-.985.687-.578.25-1.312.25-.703 0-1.266-.203-.547-.218-.937-.64-.375-.438-.594-1.063-.203-.625-.203-1.437 0-.75.219-1.375.218-.64.61-1.094.405-.453.983-.703.594-.25 1.329-.25.703 0 1.25.219.562.218.937.64.39.422.594 1.047.219.625.219 1.438zm-1.157.046q0-.609-.14-1.062-.14-.453-.39-.75-.235-.297-.595-.453-.359-.156-.797-.156-.5 0-.859.203-.36.187-.594.53-.234.33-.343.767-.11.437-.11.921 0 .61.14 1.063.141.453.376.766.25.296.594.453.359.14.796.14.516 0 .875-.187.36-.203.594-.531.235-.344.344-.782.11-.437.11-.922zm6.984 3.266-.015-.875q-.547.531-1.094.766-.547.218-1.156.218-.547 0-.953-.14-.39-.14-.657-.39-.25-.25-.375-.579-.125-.344-.125-.75 0-.984.735-1.531.734-.563 2.172-.563h1.343v-.562q0-.578-.375-.922-.359-.36-1.125-.36-.546 0-1.093.126-.532.125-1.11.343v-1.015q.22-.078.485-.157.265-.078.547-.125.296-.062.609-.093.328-.047.656-.047.594 0 1.063.14.484.125.812.391.328.266.5.672t.172.953v4.5h-1.016zm-.125-2.969h-1.437q-.422 0-.734.078-.297.079-.5.235-.188.156-.282.375-.093.219-.093.5 0 .187.062.36.063.171.188.312.125.125.328.203.218.078.515.078.391 0 .891-.234.516-.235 1.062-.75v-1.157zm2.922-.156q0-.844.234-1.484.235-.657.641-1.094.422-.453 1.016-.672.593-.234 1.312-.234.313 0 .61.047.312.03.593.109v-2.75h1.14v9.203h-1.015l-.03-1.234q-.485.687-1.032 1.015-.547.328-1.203.328-.547 0-.985-.218-.422-.235-.703-.657-.281-.437-.437-1.03-.14-.61-.14-1.329zm1.172-.078q0 1.187.344 1.766.343.578.984.578.422 0 .906-.375.485-.39 1-1.14v-3.032q-.28-.125-.625-.188-.328-.078-.656-.078-.922 0-1.437.594-.516.594-.516 1.875z"/><path d="M927.979 291.247h142.992v26.015H927.979z"/><path fill="#000" d="M940.025 301.101h-1.875v-1.25h3.5v7.97h1.907v1.234h-5.64v-1.235h2.108v-6.719zm11.14 4.594q0 .781-.218 1.438-.219.64-.64 1.11-.422.452-1.032.718-.594.25-1.375.25-.734 0-1.312-.219-.578-.219-.985-.64-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.781.219-1.422.234-.656.64-1.11.422-.452 1.032-.702.61-.25 1.375-.25.734 0 1.312.218.578.22.985.657.406.421.609 1.062.219.625.219 1.453zm-1.655.047q0-1.031-.391-1.547-.375-.515-1.14-.515-.407 0-.704.156t-.484.453q-.188.281-.281.656-.079.375-.079.797 0 1.047.407 1.578.422.516 1.14.516.407 0 .688-.156.297-.172.484-.454.188-.28.266-.656.094-.39.094-.828zm7.171 3.313-.031-.86q-.219.219-.453.406-.219.188-.5.329-.266.125-.594.203-.312.078-.703.078-.5 0-.89-.156-.376-.157-.641-.422-.266-.266-.407-.64-.125-.376-.125-.829 0-.469.204-.86.203-.406.609-.687.406-.297 1.016-.453.609-.156 1.421-.156h.875v-.407q0-.25-.078-.453t-.234-.343q-.156-.157-.406-.235-.25-.078-.625-.078-.594 0-1.172.14-.563.126-1.094.376v-1.266q.484-.203 1.094-.312.625-.125 1.297-.125.734 0 1.265.14.532.14.86.422.343.266.5.688.172.421.172.984v4.516h-1.36zm-.219-2.922h-.968q-.407 0-.688.078-.281.078-.469.219-.171.125-.25.312-.078.172-.078.375 0 .406.25.625.266.203.719.203.328 0 .688-.234.359-.25.796-.688v-.89zm7.563 2.922-.032-.97q-.218.25-.437.454-.219.203-.484.36-.25.14-.547.218-.282.094-.625.094-.594 0-1.047-.235-.453-.234-.766-.671-.312-.438-.469-1.047-.156-.625-.156-1.39 0-.907.25-1.563.266-.672.719-1.11.453-.453 1.078-.656.625-.219 1.36-.219.25 0 .5.031.25.032.437.094v-2.594h1.594v9.204h-1.375zm-2.907-3.25q0 .546.079.937.078.375.218.625.157.25.36.375.218.11.5.11.39 0 .75-.329.375-.328.78-.89v-2.89q-.187-.079-.468-.126-.265-.047-.547-.047-.39 0-.703.156-.297.157-.515.454-.22.28-.344.703-.11.406-.11.922zm6.375 3.25v-8.5h5.11v1.343h-3.485v2.125h3.328v1.313h-3.328v2.36h3.485v1.359h-5.11zm10.719 0h-1.829l-2.609-6.61h1.766l1.375 3.75.406 1.203.406-1.156 1.39-3.797h1.704l-2.61 6.61zm9.406-3.813q0 .156-.016.422t-.031.484h-4.344q0 .438.125.782.14.328.375.546.25.22.594.344.343.11.75.11.484 0 1.031-.063.562-.078 1.156-.25v1.266q-.265.062-.562.125-.297.062-.61.11-.312.046-.64.062-.313.03-.61.03-.75 0-1.359-.218-.594-.219-1.016-.64-.406-.422-.64-1.032-.219-.625-.219-1.437 0-.797.219-1.453.234-.672.625-1.141.406-.469.984-.719.578-.265 1.297-.265.703 0 1.234.218.547.22.907.61.359.39.546.937.204.531.204 1.172zm-1.625-.234q.015-.39-.094-.672-.11-.297-.297-.485-.172-.187-.406-.28-.235-.095-.516-.095-.594 0-.984.407-.375.406-.453 1.125h2.75zm7.124 4.047v-4.313q0-1.078-.797-1.078-.406 0-.78.328-.36.313-.766.875v4.188h-1.594v-6.61h1.375l.031.969q.203-.25.422-.453.219-.219.469-.36.265-.14.547-.218.296-.078.656-.078.515 0 .89.171.375.157.625.47.266.296.391.718t.125.953v4.438h-1.594zm8.844-.063q-.438.094-.875.156-.422.063-.813.063-.656 0-1.125-.14-.468-.141-.78-.423-.313-.28-.47-.703-.14-.437-.14-1.031v-3.234h-1.766v-1.235h1.766v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.109q0 .562.265.86.266.28.875.28.391 0 .75-.062.375-.062.688-.14v1.265zm7.609-2.516q0 .704-.266 1.22-.25.515-.718.859-.454.328-1.094.5-.64.156-1.39.156-.673 0-1.298-.078t-1.234-.266v-1.578q.297.094.625.187.328.094.656.172.328.063.64.11.329.031.641.031.454 0 .766-.078.328-.078.531-.219.203-.14.282-.328.093-.188.093-.406 0-.313-.187-.532-.172-.218-.469-.375-.281-.156-.656-.28-.375-.141-.766-.282-.375-.156-.75-.344-.375-.187-.672-.469-.297-.28-.484-.671-.172-.391-.172-.938 0-.5.188-.937.187-.454.578-.782.39-.343 1-.547.61-.203 1.468-.203.25 0 .532.032.28.015.547.062.265.031.515.078.266.047.469.11v1.453q-.203-.078-.453-.14-.25-.063-.516-.11-.265-.047-.531-.078-.266-.032-.5-.032-.438 0-.734.078-.282.063-.47.188-.187.125-.28.297-.079.172-.079.39 0 .266.172.454.188.187.485.343.297.157.672.297.375.125.765.281.39.157.766.36.375.187.672.469.297.265.468.656.188.375.188.89zm7.047 2.516q-.438.094-.875.156-.422.063-.813.063-.656 0-1.125-.14-.469-.141-.781-.423-.313-.28-.469-.703-.14-.437-.14-1.031v-3.234h-1.766v-1.235h1.765v-1.687l1.625-.438v2.125h2.579v1.235h-2.579v3.109q0 .562.266.86.266.28.875.28.39 0 .75-.062.375-.062.688-.14v1.265zm6.015.063-.031-.86q-.219.219-.453.406-.22.188-.5.329-.266.125-.594.203-.313.078-.703.078-.5 0-.89-.156-.376-.157-.642-.422-.265-.266-.406-.64-.125-.376-.125-.829 0-.469.203-.86.203-.406.61-.687.406-.297 1.015-.453.61-.156 1.422-.156h.875v-.407q0-.25-.078-.453t-.234-.343q-.157-.157-.407-.235-.25-.078-.625-.078-.593 0-1.171.14-.563.126-1.094.376v-1.266q.484-.203 1.094-.312.625-.125 1.296-.125.735 0 1.266.14t.86.422q.343.266.5.688.171.421.171.984v4.516h-1.359zm-.219-2.922h-.969q-.406 0-.687.078t-.469.219q-.172.125-.25.312-.078.172-.078.375 0 .406.25.625.266.203.719.203.328 0 .687-.234.36-.25.797-.688v-.89zm7.656-1.125q.016-.36-.031-.625-.047-.266-.156-.422-.11-.172-.266-.25-.156-.078-.36-.078-.343 0-.718.297-.375.28-.828.937v4.188h-1.625v-6.61h1.437l.063.953q.156-.25.36-.453.202-.203.452-.344.25-.14.563-.218.312-.078.672-.078.5 0 .89.171.391.172.641.516.266.328.39.844.141.5.11 1.172h-1.594zm8.531 3.984q-.437.094-.875.156-.422.063-.812.063-.657 0-1.125-.14-.469-.141-.782-.423-.312-.28-.468-.703-.14-.437-.14-1.031v-3.234h-1.767v-1.235h1.766v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.109q0 .562.266.86.265.28.875.28.39 0 .75-.062.375-.062.687-.14v1.265z"/><path d="M933.982 304.512h-2.441l-7.032-39.509"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M933.982 304.512h-2.441l-5.98-33.602"/><path fill="#000" stroke="#000" stroke-linecap="butt" d="m927.187 270.62-2.422-4.178-.83 4.758z" fill-rule="evenodd"/><path d="M972.527 274.916H1085v19.685H972.527z"/><path fill="#000" d="M984.574 281.605H982.7v-1.25h3.5v7.97h1.906v1.234h-5.64v-1.235h2.11v-6.719zm11.14 4.594q0 .781-.218 1.438-.22.64-.641 1.109-.422.453-1.031.719-.594.25-1.375.25-.735 0-1.313-.219t-.984-.64q-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.781.219-1.422.234-.656.64-1.11.422-.452 1.031-.702.61-.25 1.375-.25.735 0 1.313.218.578.219.984.657.407.421.61 1.062.218.625.218 1.453zm-1.656.047q0-1.031-.39-1.547-.375-.515-1.141-.515-.406 0-.703.156-.297.156-.485.453-.187.281-.28.656-.079.375-.079.797 0 1.047.406 1.578.422.516 1.14.516.407 0 .688-.156.297-.172.485-.454.187-.28.265-.656.094-.39.094-.828zm7.172 3.313-.031-.86q-.22.219-.454.406-.218.188-.5.329-.265.125-.593.203-.313.078-.703.078-.5 0-.891-.156-.375-.157-.64-.422-.266-.266-.407-.641-.125-.375-.125-.828 0-.469.203-.86.203-.406.61-.687.406-.297 1.015-.453.61-.156 1.422-.156h.875v-.407q0-.25-.078-.453t-.234-.343q-.157-.157-.407-.235-.25-.078-.625-.078-.593 0-1.172.14-.562.126-1.093.376v-1.266q.484-.203 1.093-.312.625-.125 1.297-.125.735 0 1.266.14t.86.422q.343.266.5.688.171.421.171.984v4.516h-1.36zm-.219-2.922h-.969q-.406 0-.687.078t-.469.219q-.172.125-.25.312-.078.172-.078.375 0 .406.25.625.266.203.719.203.328 0 .687-.234.36-.25.797-.688v-.89zm7.562 2.922-.03-.97q-.22.25-.438.454-.22.203-.485.36-.25.14-.547.218-.28.094-.625.094-.593 0-1.047-.235-.453-.234-.765-.671-.313-.438-.469-1.047-.156-.625-.156-1.391 0-.906.25-1.562.265-.672.719-1.11.453-.453 1.078-.656.625-.219 1.36-.219.25 0 .5.031.25.032.437.094v-2.594h1.593v9.204h-1.375zm-2.906-3.25q0 .546.078.937.078.375.219.625.156.25.36.375.218.11.5.11.39 0 .75-.329.374-.328.78-.89v-2.891q-.187-.078-.468-.125-.266-.047-.547-.047-.39 0-.703.156-.297.157-.516.454-.219.28-.344.703-.109.406-.109.922zm6.375 3.25v-8.5h5.11v1.343h-3.485v2.125h3.328v1.313h-3.328v2.36h3.484v1.359h-5.11zm10.718 0h-1.828l-2.61-6.61h1.766l1.375 3.75.407 1.203.406-1.156 1.39-3.797h1.704l-2.61 6.61zm9.406-3.813q0 .156-.015.422-.016.266-.032.484h-4.343q0 .438.125.782.14.328.375.546.25.22.593.344.344.11.75.11.485 0 1.032-.063.562-.078 1.156-.25v1.266q-.266.062-.563.125-.296.062-.609.109-.312.047-.64.063-.313.03-.61.03-.75 0-1.36-.218-.593-.219-1.015-.64-.406-.422-.64-1.032-.22-.625-.22-1.437 0-.797.22-1.453.234-.672.624-1.141.407-.469.985-.719.578-.265 1.297-.265.703 0 1.234.218.547.219.906.61.36.39.547.937.203.531.203 1.172zm-1.625-.234q.016-.391-.093-.672-.11-.297-.297-.485-.172-.187-.407-.28-.234-.095-.515-.095-.594 0-.985.407-.375.406-.453 1.125h2.75zm7.125 4.047v-4.313q0-1.078-.797-1.078-.406 0-.781.328-.36.313-.766.875v4.188h-1.593v-6.61h1.375l.03.969q.204-.25.423-.453.218-.219.468-.36.266-.14.547-.218.297-.078.657-.078.515 0 .89.171.375.157.625.47.266.296.39.718.126.422.126.953v4.438h-1.594zm8.844-.063q-.438.094-.875.156-.422.063-.813.063-.656 0-1.125-.14-.469-.141-.781-.423-.313-.281-.469-.703-.14-.437-.14-1.031v-3.234h-1.766v-1.235h1.765v-1.687l1.625-.438v2.125h2.579v1.235h-2.579v3.109q0 .562.266.86.266.28.875.28.39 0 .75-.062.375-.062.688-.14v1.265zm2.171.063v-8.5h5.11v1.343h-3.485v2.125h3.328v1.313h-3.328v2.36h3.485v1.359h-5.11zm10.969 0v-4.313q0-1.078-.797-1.078-.406 0-.781.328-.36.313-.766.875v4.188h-1.594v-6.61h1.375l.031.969q.204-.25.422-.453.219-.219.469-.36.266-.14.547-.218.297-.078.656-.078.516 0 .89.171.376.157.626.47.265.296.39.718t.125.953v4.438h-1.593zm7.546 0-.031-.97q-.219.25-.438.454-.218.203-.484.36-.25.14-.547.218-.281.094-.625.094-.594 0-1.047-.235-.453-.234-.765-.671-.313-.438-.47-1.047-.155-.625-.155-1.391 0-.906.25-1.562.265-.672.718-1.11.454-.453 1.079-.656.625-.219 1.359-.219.25 0 .5.031.25.032.437.094v-2.594h1.594v9.204h-1.375zm-2.906-3.25q0 .546.078.937.078.375.219.625.156.25.36.375.218.11.5.11.39 0 .75-.329.374-.328.78-.89v-2.891q-.187-.078-.468-.125-.266-.047-.547-.047-.39 0-.703.156-.297.157-.516.454-.219.28-.344.703-.11.406-.11.922z"/><path d="M977.027 284.675h-1.547l-4.454-19.672"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M977.027 284.675h-1.547l-3.13-13.82"/><path fill="#000" stroke="#000" stroke-linecap="butt" d="m973.962 270.49-2.613-4.062-.61 4.791z" fill-rule="evenodd"/><path fill="#fff2cc" d="M88.055 181.56h78.992v74.991H88.055z" fill-rule="evenodd"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M88.055 181.56h78.992v74.991H88.055z"/><path fill="#000" d="M105.083 223.855h-1.312l-1.266-2.719q-.14-.312-.297-.515-.156-.203-.328-.328-.172-.125-.375-.172-.203-.047-.453-.047h-.547v3.781H99.35v-8.5h2.281q.735 0 1.266.156.531.157.875.453.344.297.5.72.172.405.172.905 0 .391-.125.75-.11.36-.344.657-.234.281-.578.5-.344.203-.781.312.36.11.61.422.25.313.515.828l1.343 2.797zm-1.859-6.172q0-.687-.437-1.015-.422-.344-1.188-.344h-1.094v2.812h.938q.406 0 .734-.093.328-.094.563-.282.234-.187.36-.453.124-.265.124-.625zm8.906 2.563q0 .234-.016.406 0 .156-.015.297h-4.578q0 1 .547 1.547.562.531 1.625.531.28 0 .562-.016.297-.03.563-.062.265-.047.5-.094.25-.047.453-.11v.938q-.453.125-1.047.203-.578.078-1.203.078-.828 0-1.438-.218-.61-.235-1-.657-.39-.437-.578-1.062-.172-.625-.172-1.422 0-.687.188-1.297.203-.625.578-1.094.39-.468.937-.734.563-.281 1.266-.281.672 0 1.203.219.531.218.89.609.36.39.548.953.187.563.187 1.266zm-1.187-.172q.03-.422-.079-.781-.109-.375-.328-.625-.218-.266-.547-.407-.312-.156-.75-.156-.359 0-.671.156-.313.141-.532.407-.218.25-.359.625-.125.359-.156.78h3.422zm2.656.656q0-.844.234-1.484.234-.657.64-1.094.422-.453 1.016-.672.594-.234 1.313-.234.312 0 .61.047.312.03.593.109v-2.75h1.14v9.203h-1.015l-.031-1.234q-.485.687-1.032 1.015-.547.328-1.203.328-.547 0-.984-.218-.422-.235-.703-.657-.282-.437-.438-1.03-.14-.61-.14-1.329zm1.171-.078q0 1.187.344 1.766.344.578.985.578.421 0 .906-.375.484-.39 1-1.14v-3.032q-.281-.125-.625-.188-.328-.078-.656-.078-.922 0-1.438.594-.516.594-.516 1.875zm8.719-2.39h-1.938v-.938h3.079v5.594h1.953v.937h-5.235v-.937h2.14v-4.657zm.39-3.688q.204 0 .36.078.156.062.281.187.125.125.188.282.078.156.078.36 0 .171-.078.343-.063.156-.188.281-.125.125-.281.203-.156.063-.36.063-.187 0-.343-.063-.156-.078-.281-.203-.125-.125-.204-.281-.062-.172-.062-.344 0-.203.062-.36.079-.156.204-.28.125-.126.28-.188.157-.078.345-.078zm4.985 2.75h1.03l.032 1.203q.578-.703 1.14-1.016.563-.312 1.141-.312 1.016 0 1.532.656.53.656.484 1.953h-1.14q.015-.86-.25-1.234-.266-.39-.797-.39-.22 0-.454.077-.234.078-.484.266-.234.172-.516.453-.265.281-.578.672v4.203h-1.14v-6.531zm12.578 2.922q0 .234-.016.406 0 .156-.016.297h-4.578q0 1 .547 1.547.563.531 1.625.531.281 0 .563-.016.296-.03.562-.062.266-.047.5-.094.25-.047.453-.11v.938q-.453.125-1.047.203-.578.078-1.203.078-.828 0-1.437-.218-.61-.235-1-.657-.391-.437-.578-1.062-.172-.625-.172-1.422 0-.687.187-1.297.203-.625.578-1.094.39-.468.938-.734.562-.281 1.265-.281.672 0 1.204.219.53.218.89.609.36.39.547.953.188.563.188 1.266zm-1.188-.172q.031-.422-.078-.781-.11-.375-.328-.625-.219-.266-.547-.407-.313-.156-.75-.156-.36 0-.672.156-.312.141-.531.407-.219.25-.36.625-.125.359-.156.78h3.422zm8.078 3.547q-.453.156-.922.234-.453.094-.953.094-1.547 0-2.39-.844-.829-.844-.829-2.453 0-.766.235-1.39.25-.641.671-1.094.438-.454 1.047-.688.61-.25 1.344-.25.5 0 .938.078.453.063.859.235v1.078q-.438-.219-.875-.313-.438-.11-.906-.11-.438 0-.828.173-.375.156-.672.468-.297.313-.47.766-.155.438-.155 1.016 0 1.172.562 1.765.578.594 1.61.594.453 0 .89-.11.438-.109.844-.312v1.063zm7.515.14q-.39.094-.797.141-.406.047-.843.047-1.22 0-1.828-.547-.61-.563-.61-1.719v-3.406h-1.828v-.953h1.828v-1.797l1.14-.297v2.094h2.938v.953h-2.937v3.312q0 .704.375 1.063.375.344 1.094.344.312 0 .687-.047.375-.063.781-.156v.968z"/><path d="M107.542 72.559h-3.476l-10.01 102.995"/><path stroke="#b45f06" stroke-linejoin="round" stroke-linecap="butt" d="M107.542 72.559h-3.476l-9.43 97.023"/><path fill="#b45f06" stroke="#b45f06" stroke-linecap="butt" d="m92.992 169.422 1.205 4.677 2.083-4.357z" fill-rule="evenodd"/><path d="M102.559 58.56h171.496v26.015H102.56z"/><path fill="#b45f06" d="M116.497 79.101q-1.594-1.343-2.391-2.875-.781-1.531-.781-3.312 0-.985.234-1.86.234-.89.656-1.656.438-.781 1.016-1.453.594-.687 1.297-1.281l.906.906q-1.266 1.14-1.906 2.469-.64 1.312-.64 2.765 0 1.485.64 2.844.64 1.36 1.906 2.485l-.937.968zm7.546-6.781q.016-.36-.031-.625-.047-.266-.156-.422-.11-.172-.266-.25-.156-.078-.36-.078-.343 0-.718.297-.375.281-.828.937v4.188h-1.625v-6.61h1.437l.063.954q.156-.25.36-.453.202-.204.452-.344.25-.14.563-.219.312-.078.672-.078.5 0 .89.172t.64.515q.267.329.392.844.14.5.109 1.172h-1.594zm8.844.234q0 .157-.016.422-.016.266-.031.485h-4.344q0 .437.125.78.14.329.375.548.25.219.594.344.344.109.75.109.484 0 1.031-.063.563-.078 1.156-.25v1.266q-.265.063-.562.125-.297.063-.61.11-.312.046-.64.062-.313.031-.61.031-.75 0-1.359-.219-.594-.218-1.016-.64-.406-.422-.64-1.031-.219-.625-.219-1.438 0-.797.219-1.453.234-.672.625-1.14.406-.47.984-.72.578-.265 1.297-.265.703 0 1.234.219.547.218.907.609.359.39.547.938.203.53.203 1.171zm-1.625-.234q.015-.39-.094-.672-.11-.297-.297-.484-.172-.188-.406-.281-.235-.094-.516-.094-.594 0-.984.406-.375.406-.453 1.125h2.75zm7.343 4.047-.031-.969q-.219.25-.438.453-.218.203-.484.36-.25.14-.547.218-.281.094-.625.094-.594 0-1.047-.234-.453-.235-.765-.672-.313-.438-.47-1.047-.155-.625-.155-1.39 0-.907.25-1.563.265-.672.718-1.11.454-.453 1.079-.656.625-.218 1.359-.218.25 0 .5.03.25.032.437.095v-2.594h1.594v9.203h-1.375zm-2.906-3.25q0 .547.078.937.078.375.219.625.156.25.36.375.218.11.5.11.39 0 .75-.328.374-.328.78-.891v-2.89q-.187-.079-.468-.126-.266-.046-.547-.046-.39 0-.703.156-.297.156-.516.453-.219.281-.344.703-.11.406-.11.922zm9.968-5.172q0 .219-.078.406-.078.188-.218.328-.141.141-.329.22-.187.077-.406.077-.219 0-.422-.078-.187-.078-.328-.219-.14-.14-.219-.328-.078-.187-.078-.406 0-.219.078-.406.079-.188.22-.328.14-.141.327-.22.203-.093.422-.093.219 0 .406.094.188.078.329.219.14.14.218.328.078.187.078.406zm-1.75 3.047h-1.875v-1.234h3.5v5.375h1.907v1.234h-5.641v-1.234h2.11v-4.141zm9.438 1.328q.015-.36-.032-.625-.046-.266-.156-.422-.11-.172-.265-.25-.157-.078-.36-.078-.344 0-.719.297-.375.281-.828.937v4.188h-1.625v-6.61h1.438l.062.954q.157-.25.36-.453.203-.204.453-.344.25-.14.562-.219.313-.078.672-.078.5 0 .89.172.391.172.641.515.266.329.391.844.14.5.11 1.172h-1.594zm8.843.234q0 .157-.016.422-.015.266-.03.485h-4.345q0 .437.125.78.141.329.375.548.25.219.594.344.344.109.75.109.485 0 1.031-.063.563-.078 1.157-.25v1.266q-.266.063-.563.125-.297.063-.61.11-.312.046-.64.062-.312.031-.61.031-.75 0-1.359-.219-.593-.218-1.015-.64-.406-.422-.64-1.031-.22-.625-.22-1.438 0-.797.22-1.453.234-.672.624-1.14.406-.47.985-.72.578-.265 1.296-.265.704 0 1.235.219.547.218.906.609.36.39.547.938.203.53.203 1.171zm-1.625-.234q.016-.39-.094-.672-.109-.297-.297-.484-.171-.188-.406-.281-.234-.094-.515-.094-.594 0-.985.406-.375.406-.453 1.125h2.75zm8.531 3.797q-.469.187-.969.266-.5.093-1.047.093-.78 0-1.406-.203-.625-.219-1.062-.64-.438-.422-.672-1.047-.235-.625-.235-1.453 0-.782.25-1.422.25-.657.704-1.11.468-.453 1.109-.703.64-.25 1.422-.25.64 0 1.078.078.453.063.797.172v1.531q-.406-.203-.875-.312-.469-.11-.89-.11-.438 0-.798.157-.343.14-.593.422-.235.265-.36.64t-.125.828q0 .485.125.86.14.375.39.64.25.266.595.407.359.14.796.14.204 0 .422-.031.235-.031.47-.078.233-.063.452-.125.235-.078.422-.172v1.422zm7.437.187q-.437.094-.875.157-.422.062-.812.062-.656 0-1.125-.14-.469-.141-.781-.422-.313-.282-.47-.703-.14-.438-.14-1.032v-3.234h-1.765v-1.234h1.765V68.07l1.625-.437v2.125h2.578v1.234h-2.578v3.11q0 .562.266.859.265.28.875.28.39 0 .75-.062.375-.062.687-.14v1.265zm7.61-2.515q0 .703-.266 1.219-.25.515-.719.859-.453.328-1.094.5-.64.156-1.39.156-.672 0-1.297-.078-.625-.078-1.235-.266v-1.578q.297.094.625.188.329.094.657.172.328.062.64.109.328.031.641.031.453 0 .766-.078.328-.078.53-.219.204-.14.282-.328.094-.187.094-.406 0-.312-.188-.531-.172-.219-.468-.375-.282-.156-.657-.281-.375-.141-.765-.282-.375-.156-.75-.343-.375-.188-.672-.47-.297-.28-.485-.671-.171-.39-.171-.938 0-.5.187-.937.188-.453.578-.781.39-.344 1-.547.61-.203 1.469-.203.25 0 .531.03.281.017.547.063.266.032.516.079.265.046.468.109v1.453q-.203-.078-.453-.14-.25-.063-.515-.11-.266-.047-.532-.078-.265-.031-.5-.031-.437 0-.734.078-.281.062-.469.187-.187.125-.28.297-.079.172-.079.39 0 .266.172.454.187.187.484.344.297.156.672.297.375.125.766.28.39.157.765.36.375.188.672.469.297.266.469.656.187.375.187.89zm7.046 2.515q-.437.094-.875.157-.422.062-.812.062-.657 0-1.125-.14-.47-.141-.782-.422-.312-.282-.468-.703-.141-.438-.141-1.032v-3.234h-1.766v-1.234h1.766V68.07l1.625-.437v2.125h2.578v1.234h-2.578v3.11q0 .562.266.859.265.28.875.28.39 0 .75-.062.375-.062.687-.14v1.265zm6.015.063-.03-.86q-.22.22-.454.407-.219.187-.5.328-.266.125-.594.203-.312.078-.703.078-.5 0-.89-.156-.375-.156-.641-.422t-.406-.64q-.125-.376-.125-.829 0-.468.203-.86.203-.405.61-.687.405-.296 1.015-.453.61-.156 1.422-.156h.875v-.406q0-.25-.078-.453-.079-.203-.235-.344-.156-.156-.406-.234-.25-.079-.625-.079-.594 0-1.172.141-.562.125-1.094.375v-1.266q.485-.203 1.094-.312.625-.125 1.297-.125.734 0 1.266.14.53.141.859.422.344.266.5.688.172.422.172.984v4.516h-1.36zm-.218-2.922h-.97q-.405 0-.687.078-.28.078-.468.219-.172.125-.25.312-.078.172-.078.375 0 .407.25.625.265.204.718.204.328 0 .688-.235.36-.25.797-.687v-.891zm7.656-1.125q.015-.36-.032-.625-.046-.266-.156-.422-.11-.172-.265-.25-.157-.078-.36-.078-.344 0-.719.297-.375.281-.828.937v4.188h-1.625v-6.61h1.438l.062.954q.157-.25.36-.453.203-.204.453-.344.25-.14.562-.219.313-.078.672-.078.5 0 .89.172.391.172.641.515.266.329.391.844.14.5.11 1.172h-1.594zm8.53 3.984q-.437.094-.874.157-.422.062-.813.062-.656 0-1.125-.14-.469-.141-.781-.422-.313-.282-.469-.703-.14-.438-.14-1.032v-3.234h-1.766v-1.234h1.766V68.07l1.625-.437v2.125h2.578v1.234h-2.578v3.11q0 .562.265.859.266.28.875.28.39 0 .75-.062.375-.062.688-.14v1.265zm3.391-9.64q1.594 1.328 2.375 2.875.781 1.531.781 3.312 0 .985-.234 1.86-.234.875-.656 1.656-.407.781-1 1.453-.578.688-1.282 1.281l-.921-.906q1.28-1.14 1.921-2.469.641-1.328.641-2.781 0-1.469-.64-2.828-.641-1.375-1.922-2.516l.937-.937z"/><path d="M174.056 78.806H317.05v26.016H174.056z"/><path fill="#b45f06" d="M187.994 99.348q-1.594-1.344-2.39-2.875-.782-1.531-.782-3.312 0-.985.234-1.86.235-.89.657-1.656.437-.781 1.015-1.453.594-.688 1.297-1.281l.906.906q-1.265 1.14-1.906 2.469-.64 1.312-.64 2.765 0 1.485.64 2.844.64 1.36 1.906 2.484l-.937.969zm7.547-6.781q.015-.36-.032-.625-.047-.266-.156-.422-.11-.172-.266-.25-.156-.078-.359-.078-.344 0-.719.297-.375.28-.828.937v4.188h-1.625v-6.61h1.438l.062.953q.156-.25.36-.453.203-.203.453-.343.25-.141.562-.22.313-.077.672-.077.5 0 .89.172.391.171.641.515.266.328.39.844.142.5.11 1.172h-1.593zm8.843.234q0 .156-.016.422-.015.266-.03.484h-4.345q0 .438.125.782.141.328.375.547.25.218.594.343.344.11.75.11.485 0 1.031-.063.563-.078 1.157-.25v1.266q-.266.062-.563.125-.297.062-.61.11-.312.046-.64.062-.312.03-.61.03-.75 0-1.359-.218-.593-.219-1.015-.64-.406-.422-.64-1.032-.22-.625-.22-1.437 0-.797.22-1.453.234-.672.624-1.141.406-.469.985-.719.578-.265 1.296-.265.704 0 1.235.218.547.22.906.61.36.39.547.937.203.532.203 1.172zm-1.625-.234q.016-.39-.094-.672-.11-.297-.297-.484-.171-.188-.406-.282-.234-.093-.515-.093-.594 0-.985.406-.375.406-.453 1.125h2.75zm7.344 4.047-.032-.97q-.218.25-.437.454-.219.203-.485.36-.25.14-.546.218-.282.094-.625.094-.594 0-1.047-.234-.453-.235-.766-.672-.312-.438-.469-1.047-.156-.625-.156-1.39 0-.907.25-1.563.266-.672.719-1.11.453-.453 1.078-.656.625-.219 1.36-.219.25 0 .5.032.25.03.437.093v-2.593h1.594v9.203h-1.375zm-2.907-3.25q0 .547.078.937.079.375.22.625.155.25.359.375.218.11.5.11.39 0 .75-.329.375-.328.78-.89v-2.89q-.187-.079-.468-.126-.266-.047-.547-.047-.39 0-.703.157-.297.156-.516.453-.218.28-.343.703-.11.406-.11.922zm9.969-5.172q0 .219-.078.406-.078.188-.22.328-.14.14-.327.219-.188.078-.406.078-.22 0-.422-.078-.188-.078-.328-.219-.141-.14-.22-.328-.077-.187-.077-.406 0-.219.078-.406.078-.188.219-.329.14-.14.328-.218.203-.094.422-.094.218 0 .406.094.187.078.328.218.14.141.219.329.078.187.078.406zm-1.75 3.047h-1.875v-1.235h3.5v5.375h1.906v1.235h-5.64v-1.235h2.109v-4.14zm9.437 1.328q.016-.36-.031-.625-.047-.266-.156-.422-.11-.172-.266-.25-.156-.078-.36-.078-.343 0-.718.297-.375.28-.828.937v4.188h-1.625v-6.61h1.437l.063.953q.156-.25.359-.453.203-.203.453-.343.25-.141.563-.22.312-.077.672-.077.5 0 .89.172.39.171.64.515.266.328.391.844.141.5.11 1.172h-1.594zm8.844.234q0 .156-.016.422t-.031.484h-4.344q0 .438.125.782.14.328.375.547.25.218.594.343.343.11.75.11.484 0 1.03-.063.563-.078 1.157-.25v1.266q-.265.062-.562.125-.297.062-.61.11-.312.046-.64.062-.313.03-.61.03-.75 0-1.36-.218-.593-.219-1.015-.64-.406-.422-.64-1.032-.22-.625-.22-1.437 0-.797.22-1.453.234-.672.625-1.141.406-.469.984-.719.578-.265 1.297-.265.703 0 1.234.218.547.22.907.61.359.39.546.937.204.532.204 1.172zm-1.625-.234q.015-.39-.094-.672-.11-.297-.297-.484-.172-.188-.406-.282-.235-.093-.516-.093-.594 0-.984.406-.375.406-.453 1.125h2.75zm8.53 3.797q-.468.187-.968.265-.5.094-1.047.094-.781 0-1.406-.203-.625-.219-1.063-.64-.437-.423-.672-1.048-.234-.625-.234-1.453 0-.781.25-1.422.25-.656.703-1.109.469-.453 1.11-.703.64-.25 1.421-.25.64 0 1.078.078.453.063.797.172v1.531q-.406-.203-.875-.312-.469-.11-.89-.11-.438 0-.797.157-.344.14-.594.421-.234.266-.36.641-.124.375-.124.828 0 .485.125.86.14.375.39.64.25.266.594.406.36.141.797.141.203 0 .422-.031.234-.031.468-.078.235-.063.454-.125.234-.078.421-.172v1.422zm7.438.187q-.438.094-.875.156-.422.063-.813.063-.656 0-1.125-.14-.469-.141-.781-.423-.313-.28-.469-.703-.14-.437-.14-1.031v-3.234h-1.766v-1.235h1.766v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.109q0 .563.265.86.266.28.875.28.39 0 .75-.062.375-.062.688-.14v1.265zm2.171.063v-8.5h5.11v1.343h-3.485v2.125h3.328v1.313h-3.328v2.36h3.485v1.359h-5.11zm10.969 0V92.3q0-1.078-.797-1.078-.406 0-.781.328-.36.313-.766.875v4.188h-1.594v-6.61h1.375l.032.969q.203-.25.421-.453.22-.219.47-.36.265-.14.546-.218.297-.078.656-.078.516 0 .891.172.375.156.625.468.266.297.39.719.126.422.126.953v4.438h-1.594zm7.546 0-.03-.97q-.22.25-.438.454-.219.203-.485.36-.25.14-.547.218-.28.094-.625.094-.593 0-1.046-.234-.454-.235-.766-.672-.313-.438-.469-1.047-.156-.625-.156-1.39 0-.907.25-1.563.266-.672.719-1.11.453-.453 1.078-.656.625-.219 1.36-.219.25 0 .5.032.25.03.437.093v-2.593h1.593v9.203h-1.375zm-2.906-3.25q0 .547.078.937.078.375.22.625.155.25.358.375.22.11.5.11.391 0 .75-.329.375-.328.782-.89v-2.89q-.188-.079-.469-.126-.266-.047-.547-.047-.39 0-.703.157-.297.156-.516.453-.218.28-.343.703-.11.406-.11.922zm7.594-6.453q1.593 1.328 2.375 2.875.78 1.53.78 3.312 0 .984-.233 1.86-.235.874-.657 1.656-.406.78-1 1.453-.578.687-1.28 1.281l-.923-.906q1.281-1.14 1.922-2.469.64-1.328.64-2.781 0-1.469-.64-2.828-.64-1.375-1.922-2.516l.938-.937z"/><path d="M180.057 92.07h-3.475l-10.011 83.487"/><path stroke="#b45f06" stroke-linejoin="round" stroke-linecap="butt" d="M180.057 92.07h-3.475l-9.297 77.53"/><path fill="#b45f06" stroke="#b45f06" stroke-linecap="butt" d="m165.645 169.403 1.1 4.703 2.18-4.31z" fill-rule="evenodd"/><path d="M512.316 103.44h223.496v33.922H512.316z"/><path fill="#b45f06" d="M527.675 123.248q0 .578-.25.985-.25.39-.672.64-.406.25-.937.36-.516.125-1.063.125-.734 0-1.328-.078-.578-.063-1.094-.188v-1.437q.61.25 1.22.375.608.109 1.155.109.625 0 .922-.203.313-.203.313-.516 0-.156-.063-.281-.062-.125-.25-.234-.172-.11-.5-.235-.328-.125-.844-.265-.5-.141-.875-.313-.359-.172-.609-.406-.234-.235-.36-.531-.109-.313-.109-.735 0-.406.172-.765.188-.36.547-.625.375-.266.906-.422.547-.157 1.266-.157.625 0 1.11.063.484.063.843.14v1.297q-.562-.187-1.062-.25-.5-.078-.985-.078-.484 0-.781.172-.297.172-.297.485 0 .156.047.28.062.11.234.22.188.109.485.234.312.11.828.25.562.172.953.36.39.187.625.421.25.235.344.531.11.297.11.672zm7.64-1.859q0 .156-.015.422l-.031.484h-4.344q0 .438.125.781.14.329.375.547.25.22.594.344.343.11.75.11.484 0 1.03-.063.563-.078 1.157-.25v1.266q-.266.062-.562.125-.297.062-.61.109-.312.047-.64.063-.313.03-.61.03-.75 0-1.36-.218-.593-.219-1.015-.64-.406-.422-.64-1.032-.22-.625-.22-1.437 0-.797.22-1.454.234-.671.625-1.14.406-.469.984-.719.578-.266 1.297-.266.703 0 1.234.22.547.218.906.609.36.39.547.937.203.531.203 1.172zm-1.625-.234q.016-.391-.093-.672-.11-.297-.297-.485-.172-.187-.406-.28-.235-.095-.516-.095-.594 0-.984.407-.375.406-.454 1.125h2.75zm8.531 3.796q-.468.188-.968.266-.5.094-1.047.094-.781 0-1.406-.203-.625-.219-1.063-.64-.437-.423-.672-1.048-.234-.625-.234-1.453 0-.781.25-1.422.25-.656.703-1.11.469-.452 1.11-.702.64-.25 1.421-.25.64 0 1.078.078.453.062.797.172v1.531q-.406-.203-.875-.313-.469-.109-.89-.109-.438 0-.797.156-.344.141-.594.422-.234.266-.36.64-.124.376-.124.829 0 .484.125.86.14.374.39.64t.594.406q.36.14.797.14.203 0 .422-.03.234-.032.468-.079.235-.062.454-.124.234-.079.421-.172v1.421zm3.563-6.359v4.313q0 .53.203.812.203.281.61.281.39 0 .75-.328.374-.344.78-.89v-4.188h1.594v6.61h-1.375l-.031-.97q-.219.25-.438.454-.203.203-.453.36-.25.14-.547.218-.296.094-.656.094-.5 0-.89-.172-.375-.172-.641-.469-.25-.312-.375-.734t-.125-.953v-4.438h1.594zm10 2.563q.015-.36-.032-.625-.047-.266-.156-.422-.11-.172-.266-.25-.156-.078-.36-.078-.343 0-.718.296-.375.282-.828.938v4.188h-1.625v-6.61h1.438l.062.953q.156-.25.36-.453.203-.203.453-.344.25-.14.562-.218.313-.079.672-.079.5 0 .89.172.391.172.641.516.266.328.39.844.141.5.11 1.172h-1.594zm8.843.234q0 .156-.016.422-.015.265-.031.484h-4.344q0 .438.125.781.14.329.375.547.25.22.594.344.344.11.75.11.484 0 1.031-.063.563-.078 1.157-.25v1.266q-.266.062-.563.125-.297.062-.61.109-.312.047-.64.063-.312.03-.61.03-.75 0-1.359-.218-.593-.219-1.015-.64-.407-.422-.641-1.032-.219-.625-.219-1.437 0-.797.219-1.454.234-.671.625-1.14.406-.469.984-.719.579-.266 1.297-.266.703 0 1.235.22.547.218.906.609.36.39.547.937.203.531.203 1.172zm-1.625-.234q.016-.391-.094-.672-.11-.297-.297-.485-.172-.187-.406-.28-.234-.095-.516-.095-.593 0-.984.407-.375.406-.453 1.125h2.75zm8.812 3.718q-.562.22-1.094.328-.53.11-1.109.11-.906 0-1.625-.266-.703-.265-1.187-.797-.485-.53-.735-1.328-.25-.797-.25-1.844 0-1.062.266-1.89.281-.844.781-1.422.516-.578 1.234-.875.735-.313 1.641-.313.297 0 .547.016.266.016.5.047.25.031.5.094.266.062.531.156v1.578q-.547-.25-1.047-.36-.5-.109-.922-.109-.593 0-1.03.22-.423.202-.704.608-.281.391-.406.938-.125.531-.125 1.188 0 .687.125 1.234.14.547.422.922.28.375.703.578.437.187 1.047.187.203 0 .453-.03.25-.048.5-.11.265-.078.515-.172.25-.094.47-.188v1.5zm7.656-3.03q0 .78-.219 1.437-.218.64-.64 1.109-.422.453-1.032.719-.593.25-1.375.25-.734 0-1.312-.219-.578-.219-.984-.64-.407-.422-.625-1.063-.204-.656-.204-1.5 0-.781.22-1.422.234-.656.64-1.11.422-.453 1.031-.703.61-.25 1.375-.25.734 0 1.313.22.578.218.984.655.406.422.61 1.063.218.625.218 1.453zm-1.656.046q0-1.031-.39-1.547-.376-.516-1.141-.516-.407 0-.704.157-.296.156-.484.453-.187.281-.281.656-.078.375-.078.797 0 1.047.406 1.578.422.516 1.14.516.407 0 .688-.157.297-.171.484-.453.188-.28.266-.656.094-.39.094-.828zm6.968 3.313v-4.313q0-1.078-.797-1.078-.406 0-.78.328-.36.313-.766.875v4.188h-1.594v-6.61h1.375l.031.969q.203-.25.422-.453.219-.219.469-.36.265-.14.547-.218.296-.079.656-.079.515 0 .89.172.375.157.625.47.266.296.391.718t.125.953v4.438h-1.594zm7.328 0v-4.313q0-1.078-.797-1.078-.406 0-.78.328-.36.313-.767.875v4.188h-1.593v-6.61h1.375l.031.969q.203-.25.422-.453.219-.219.469-.36.265-.14.546-.218.297-.079.657-.079.515 0 .89.172.375.157.625.47.266.296.391.718t.125.953v4.438h-1.594zm9.156-3.813q0 .156-.015.422-.016.265-.032.484h-4.343q0 .438.125.781.14.329.375.547.25.22.593.344.344.11.75.11.485 0 1.032-.063.562-.078 1.156-.25v1.266q-.266.062-.563.125-.297.062-.609.109-.313.047-.64.063-.313.03-.61.03-.75 0-1.36-.218-.593-.219-1.015-.64-.406-.422-.64-1.032-.22-.625-.22-1.437 0-.797.22-1.454.234-.671.624-1.14.407-.469.985-.719.578-.266 1.297-.266.703 0 1.234.22.547.218.906.609.36.39.547.937.203.531.203 1.172zm-1.625-.234q.016-.391-.094-.672-.109-.297-.296-.485-.172-.187-.407-.28-.234-.095-.515-.095-.594 0-.985.407-.375.406-.453 1.125h2.75zm8.531 3.796q-.469.188-.969.266-.5.094-1.046.094-.782 0-1.407-.203-.625-.219-1.062-.64-.438-.423-.672-1.048-.234-.625-.234-1.453 0-.781.25-1.422.25-.656.703-1.11.468-.452 1.11-.702.64-.25 1.42-.25.642 0 1.08.078.452.062.796.172v1.531q-.406-.203-.875-.313-.469-.109-.89-.109-.438 0-.798.156-.343.141-.593.422-.235.266-.36.64-.125.376-.125.829 0 .484.125.86.14.374.39.64t.595.406q.36.14.797.14.203 0 .421-.03.235-.032.47-.079.234-.062.452-.124.235-.079.422-.172v1.421zm7.437.188q-.437.094-.875.156-.421.063-.812.063-.656 0-1.125-.14-.469-.142-.781-.423-.313-.281-.47-.703-.14-.437-.14-1.031v-3.235h-1.765v-1.234h1.765v-1.687l1.625-.438v2.125h2.578v1.234h-2.578v3.11q0 .562.266.86.266.28.875.28.39 0 .75-.062.375-.063.687-.14v1.265zm5.766-8.36q0 .22-.078.407-.078.187-.22.328-.14.14-.327.219-.188.078-.406.078-.22 0-.422-.078-.188-.078-.328-.219-.141-.14-.22-.328-.077-.188-.077-.406 0-.22.078-.407.078-.187.219-.328.14-.14.328-.219.203-.093.422-.093.218 0 .406.093.187.079.328.22.14.14.219.327.078.188.078.407zm-1.75 3.047h-1.875v-1.234h3.5v5.375h1.906v1.234h-5.64v-1.234h2.109v-4.14zm11.14 2.016q0 .781-.219 1.438-.218.64-.64 1.109-.422.453-1.031.719-.594.25-1.375.25-.735 0-1.313-.219t-.984-.64q-.407-.422-.625-1.063-.203-.656-.203-1.5 0-.781.218-1.422.235-.656.641-1.11.422-.453 1.031-.703.61-.25 1.375-.25.735 0 1.313.22.578.218.984.655.406.422.61 1.063.218.625.218 1.453zm-1.656.047q0-1.031-.39-1.547-.376-.516-1.141-.516-.407 0-.703.157-.297.156-.485.453-.187.281-.281.656-.078.375-.078.797 0 1.047.406 1.578.422.516 1.14.516.407 0 .688-.157.297-.171.485-.453.187-.28.265-.656.094-.39.094-.828zm6.968 3.313v-4.313q0-1.078-.796-1.078-.407 0-.782.328-.36.313-.765.875v4.188h-1.594v-6.61h1.375l.031.969q.203-.25.422-.453.219-.219.469-.36.265-.14.547-.218.297-.079.656-.079.516 0 .89.172.376.157.626.47.265.296.39.718t.125.953v4.438h-1.594zm9.125-2.579q0 .703-.265 1.22-.25.515-.72.858-.452.329-1.093.5-.64.157-1.39.157-.672 0-1.297-.078-.625-.079-1.235-.266v-1.578q.297.094.625.187.328.094.656.172.329.063.641.11.328.03.64.03.454 0 .766-.077.328-.078.532-.219.203-.14.28-.328.095-.188.095-.406 0-.313-.188-.532-.172-.218-.469-.375-.281-.156-.656-.28-.375-.142-.766-.282-.375-.156-.75-.344-.375-.187-.671-.469-.297-.28-.485-.672-.172-.39-.172-.937 0-.5.188-.938.187-.453.578-.78.39-.345 1-.548.61-.203 1.469-.203.25 0 .53.031.282.016.548.063.265.031.515.078.266.047.47.11v1.453q-.204-.079-.454-.141-.25-.063-.516-.11-.265-.046-.53-.078-.266-.03-.5-.03-.438 0-.735.077-.281.063-.469.188-.187.125-.281.297-.078.172-.078.39 0 .266.172.453.187.188.484.344.297.156.672.297.375.125.765.281.391.157.766.36.375.187.672.468.297.266.469.657.187.375.187.89zm7.047 2.516q-.438.094-.875.156-.422.063-.813.063-.656 0-1.125-.14-.468-.142-.781-.423-.312-.281-.469-.703-.14-.437-.14-1.031v-3.235h-1.766v-1.234h1.766v-1.687l1.625-.438v2.125h2.578v1.234h-2.578v3.11q0 .562.265.86.266.28.875.28.39 0 .75-.062.375-.063.688-.14v1.265zm6.015.063-.031-.86q-.219.219-.453.406-.219.188-.5.328-.266.126-.594.204-.312.078-.703.078-.5 0-.89-.157-.376-.156-.641-.421-.266-.266-.407-.641-.125-.375-.125-.828 0-.469.204-.86.203-.406.609-.687.406-.297 1.016-.453.609-.156 1.421-.156h.875v-.407q0-.25-.078-.453t-.234-.344q-.156-.156-.406-.234-.25-.078-.625-.078-.594 0-1.172.14-.563.126-1.094.376v-1.266q.484-.203 1.094-.313.625-.124 1.297-.124.734 0 1.265.14.532.14.86.422.343.266.5.688.172.421.172.984v4.515h-1.36zm-.219-2.922h-.968q-.407 0-.688.078-.281.078-.469.218-.171.126-.25.313-.078.172-.078.375 0 .406.25.625.266.203.719.203.328 0 .688-.234.359-.25.796-.688v-.89zm7.656-1.125q.016-.36-.03-.625-.048-.266-.157-.422-.11-.172-.266-.25-.156-.078-.36-.078-.343 0-.718.296-.375.282-.828.938v4.188h-1.625v-6.61h1.437l.063.953q.156-.25.36-.453.202-.203.452-.344.25-.14.563-.218.312-.079.672-.079.5 0 .89.172.391.172.641.516.266.328.39.844.141.5.11 1.172h-1.594zm8.531 3.984q-.437.094-.875.156-.422.063-.812.063-.656 0-1.125-.14-.469-.142-.781-.423-.313-.281-.47-.703-.14-.437-.14-1.031v-3.235h-1.765v-1.234h1.765v-1.687l1.625-.438v2.125h2.578v1.234h-2.578v3.11q0 .562.266.86.265.28.875.28.39 0 .75-.062.375-.063.687-.14v1.265z"/><path d="M515.806 120.77h-1.546l-4.454 55.195"/><path stroke="#b45f06" stroke-linejoin="round" stroke-linecap="butt" d="M515.806 120.77h-1.546l-3.972 49.214"/><path fill="#b45f06" stroke="#b45f06" stroke-linecap="butt" d="m508.642 169.851 1.281 4.656 2.012-4.39z" fill-rule="evenodd"/><path d="M556.59 289.535h223.497v26.016H556.59z"/><path fill="#b45f06" d="M570.747 303.296q.015-.359-.031-.625-.047-.265-.157-.421-.11-.172-.265-.25-.157-.079-.36-.079-.343 0-.718.297-.375.282-.829.938v4.187h-1.625v-6.61h1.438l.062.954q.157-.25.36-.453.203-.203.453-.344.25-.14.562-.219.313-.078.672-.078.5 0 .89.172.392.172.642.516.265.328.39.844.14.5.11 1.171h-1.594zm8.843.235q0 .156-.015.422-.016.265-.032.484H575.2q0 .438.125.781.14.328.375.547.25.219.593.344.344.11.75.11.485 0 1.032-.063.562-.078 1.156-.25v1.265q-.266.063-.563.125-.297.063-.609.11-.313.047-.64.062-.313.032-.61.032-.75 0-1.36-.22-.593-.218-1.015-.64-.406-.422-.64-1.031-.22-.625-.22-1.438 0-.796.22-1.453.234-.672.624-1.14.407-.47.985-.72.578-.265 1.297-.265.703 0 1.234.219.547.219.906.61.36.39.547.937.203.531.203 1.172zm-1.625-.235q.016-.39-.094-.671-.109-.297-.296-.485-.172-.187-.407-.281-.234-.094-.515-.094-.594 0-.985.406-.375.407-.453 1.125h2.75zm7.125 6.625v-2.171l.078-1.282q-.187.219-.39.422-.204.188-.454.328-.234.125-.53.203-.282.079-.61.079-.594 0-1.047-.235-.453-.234-.766-.672-.312-.437-.468-1.047-.157-.625-.157-1.39 0-.781.203-1.438.22-.656.641-1.125.438-.468 1.063-.718.64-.266 1.5-.266.156 0 .343.031.203.016.39.047.204.031.376.078.187.031.328.078l1.094-.234v9.312h-1.594zm-2.687-5.828q0 .547.078.938.078.375.218.625.157.25.36.375.219.11.5.11.39 0 .75-.329.375-.328.781-.89v-2.891q-.187-.078-.469-.125-.265-.047-.547-.047-.39 0-.703.156-.297.156-.515.453-.22.282-.344.703-.11.407-.11.922zm7.656-3.36v4.313q0 .532.203.813.203.281.609.281.39 0 .75-.328.375-.344.781-.89v-4.188h1.594v6.61h-1.375l-.031-.97q-.219.25-.438.454-.203.203-.453.359-.25.14-.547.219-.297.094-.656.094-.5 0-.89-.172-.376-.172-.641-.47-.25-.312-.375-.733-.125-.422-.125-.954v-4.437h1.594zm11.515 2.798q0 .156-.016.422-.015.265-.031.484h-4.344q0 .438.125.781.14.328.375.547.25.219.594.344.344.11.75.11.484 0 1.031-.063.563-.078 1.157-.25v1.265q-.266.063-.563.125-.297.063-.61.11-.312.047-.64.062-.312.032-.61.032-.75 0-1.359-.22-.593-.218-1.015-.64-.407-.422-.641-1.031-.219-.625-.219-1.438 0-.796.219-1.453.234-.672.625-1.14.406-.47.984-.72.579-.265 1.297-.265.703 0 1.235.219.547.219.906.61.36.39.547.937.203.531.203 1.172zm-1.625-.235q.016-.39-.094-.671-.11-.297-.297-.485-.172-.187-.406-.281-.234-.094-.516-.094-.593 0-.984.406-.375.407-.453 1.125h2.75zm8.64 2.094q0 .578-.25.985-.25.39-.672.64-.406.25-.937.36-.516.125-1.063.125-.734 0-1.328-.079-.578-.062-1.094-.187v-1.438q.61.25 1.22.375.609.11 1.155.11.625 0 .922-.203.313-.203.313-.516 0-.156-.063-.281-.062-.125-.25-.235-.172-.109-.5-.234t-.843-.266q-.5-.14-.875-.312-.36-.172-.61-.406-.234-.235-.36-.532-.109-.312-.109-.734 0-.406.172-.766.188-.359.547-.625.375-.265.906-.421.547-.157 1.266-.157.625 0 1.11.063.484.062.843.14v1.297q-.562-.187-1.062-.25-.5-.078-.985-.078-.484 0-.78.172-.298.172-.298.484 0 .157.047.282.063.109.234.218.188.11.485.235.312.11.828.25.562.172.953.36.39.187.625.421.25.234.344.531.11.297.11.672zm7.328 1.89q-.437.095-.875.157-.422.063-.812.063-.657 0-1.125-.141-.47-.14-.782-.422-.312-.281-.468-.703-.141-.438-.141-1.031v-3.235h-1.766v-1.234h1.766v-1.688l1.625-.437v2.125h2.578v1.234h-2.578v3.11q0 .562.266.859.265.281.875.281.39 0 .75-.062.375-.063.687-.14v1.265zm7.61-2.515q0 .703-.266 1.219-.25.516-.72.86-.452.327-1.093.5-.64.156-1.39.156-.672 0-1.297-.079-.625-.078-1.235-.265v-1.578q.297.093.625.187t.656.172q.329.063.641.11.328.03.64.03.454 0 .766-.077.328-.079.532-.22.203-.14.28-.327.095-.188.095-.407 0-.312-.188-.53-.172-.22-.469-.376-.28-.156-.656-.281-.375-.14-.766-.281-.375-.157-.75-.344-.375-.188-.671-.469-.297-.281-.485-.672-.172-.39-.172-.937 0-.5.188-.938.187-.453.578-.781.39-.344 1-.547.61-.203 1.469-.203.25 0 .531.031.281.016.547.063.265.031.515.078.266.047.47.11v1.452q-.204-.078-.454-.14-.25-.063-.516-.11-.265-.046-.53-.078-.266-.031-.5-.031-.438 0-.735.078-.281.063-.469.188-.187.125-.281.297-.078.171-.078.39 0 .266.172.453.187.188.484.344.297.156.672.297.375.125.765.281.391.156.766.36.375.187.672.468.297.266.469.657.187.375.187.89zm7.046 2.516q-.438.094-.875.156-.422.063-.813.063-.656 0-1.125-.141-.468-.14-.78-.422-.313-.281-.47-.703-.14-.438-.14-1.031v-3.235h-1.766v-1.234h1.766v-1.688l1.625-.437v2.125h2.578v1.234h-2.578v3.11q0 .562.265.859.266.281.875.281.391 0 .75-.062.375-.063.688-.14v1.265zm6.015.062-.031-.86q-.219.22-.453.407-.219.188-.5.328-.266.125-.594.203-.312.079-.703.079-.5 0-.89-.157-.376-.156-.641-.422-.266-.265-.407-.64-.125-.375-.125-.828 0-.47.204-.86.203-.406.609-.687.406-.297 1.016-.453.609-.157 1.421-.157h.875v-.406q0-.25-.078-.453t-.234-.344q-.156-.156-.406-.234-.25-.078-.625-.078-.594 0-1.172.14-.563.125-1.094.375v-1.265q.484-.203 1.094-.313.625-.125 1.297-.125.734 0 1.265.14.532.142.86.423.343.265.5.687.172.422.172.985v4.515h-1.36zm-.219-2.922h-.968q-.407 0-.688.079-.281.078-.469.218-.171.125-.25.313-.078.172-.078.375 0 .406.25.625.266.203.719.203.328 0 .688-.234.359-.25.796-.688v-.89zm7.656-1.125q.016-.359-.03-.625-.048-.265-.157-.421-.11-.172-.266-.25-.156-.079-.36-.079-.343 0-.718.297-.375.282-.828.938v4.187h-1.625v-6.61h1.438l.062.954q.156-.25.36-.453.203-.203.453-.344.25-.14.562-.219.313-.078.672-.078.5 0 .89.172.391.172.641.516.266.328.39.844.141.5.11 1.171h-1.594zm8.531 3.985q-.437.094-.875.156-.421.063-.812.063-.656 0-1.125-.141-.469-.14-.781-.422-.313-.281-.47-.703-.14-.438-.14-1.031v-3.235h-1.765v-1.234h1.765v-1.688l1.625-.437v2.125h2.578v1.234h-2.578v3.11q0 .562.266.859.266.281.875.281.39 0 .75-.062.375-.063.687-.14v1.265z"/><path d="M562.595 302.8h-2.441l-7.032-39.508"/><path stroke="#b45f06" stroke-linejoin="round" stroke-linecap="butt" d="M562.595 302.8h-2.441l-5.98-33.601"/><path fill="#b45f06" stroke="#b45f06" stroke-linecap="butt" d="m555.8 268.91-2.422-4.179-.83 4.757z" fill-rule="evenodd"/><path fill="#fff2cc" d="M351.063 181.56h78.992v74.991h-78.992z" fill-rule="evenodd"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M351.063 181.56h78.992v74.991h-78.992z"/><path fill="#000" d="M382.513 215.855h-1.157v-3.906h-3.578v3.906h-1.156v-8.5h1.156v3.594h3.578v-3.594h1.157v8.5zm7.484-7.516h-2.516v7.516h-1.172v-7.516h-2.515v-.984h6.203v.984zm7.328 0h-2.516v7.516h-1.172v-7.516h-2.515v-.984h6.203v.984zm7.171 1.61q0 .531-.203 1.047-.187.5-.594.906-.406.406-1.046.656-.641.25-1.532.25h-1.047v3.047h-1.156v-8.5h2.39q.626 0 1.204.14.594.141 1.031.454.438.312.688.812.265.485.265 1.188zm-1.203.062q0-.828-.547-1.265-.53-.438-1.484-.438h-1.188v3.5h1.079q1.03 0 1.578-.437.562-.453.562-1.36zm-24.585 21.532q-1.015.421-2.14.421-1.797 0-2.766-1.078-.969-1.078-.969-3.187 0-1.031.266-1.844.265-.828.765-1.406t1.204-.89q.703-.313 1.578-.313.578 0 1.078.11.515.093.984.296v1.14q-.453-.25-.953-.374-.484-.141-1.078-.141-.594 0-1.078.234-.485.22-.828.641-.344.422-.532 1.047-.171.61-.171 1.39 0 1.657.671 2.5.672.829 1.97.829.546 0 1.046-.125t.953-.344v1.094zm6.094.312-.016-.875q-.547.531-1.094.766-.547.218-1.156.218-.547 0-.953-.14-.39-.14-.656-.39-.25-.25-.375-.579-.125-.344-.125-.75 0-.984.734-1.531.734-.563 2.172-.563h1.344v-.562q0-.578-.375-.922-.36-.36-1.125-.36-.547 0-1.094.126-.531.125-1.11.343v-1.015q.22-.078.485-.157.266-.078.547-.125.297-.062.61-.093.327-.047.655-.047.594 0 1.063.14.484.125.812.391.329.266.5.672.172.406.172.953v4.5h-1.015zm-.125-2.969h-1.438q-.422 0-.734.078-.297.079-.5.235-.188.156-.281.375-.094.219-.094.5 0 .187.062.36.063.171.188.312.125.125.328.203.219.078.516.078.39 0 .89-.234.516-.235 1.063-.75v-1.157zm8.343 2.735q-.453.156-.922.234-.453.094-.953.094-1.547 0-2.39-.844-.829-.844-.829-2.453 0-.766.235-1.39.25-.641.672-1.094.437-.454 1.046-.688.61-.25 1.344-.25.5 0 .938.078.453.063.86.235v1.078q-.438-.219-.876-.313-.437-.11-.906-.11-.438 0-.828.173-.375.156-.672.468-.297.313-.469.766-.156.438-.156 1.016 0 1.172.562 1.765.578.594 1.61.594.453 0 .89-.11.438-.109.844-.312v1.063zm7.5.234h-1.14v-4.172q0-.75-.282-1.125-.281-.375-.813-.375-.218 0-.421.063-.204.062-.422.218-.203.141-.469.407-.25.265-.578.656v4.328h-1.125v-9.203h1.125v2.672l-.031 1.031q.265-.328.515-.547.266-.219.516-.344.25-.14.515-.203.282-.062.563-.062.969 0 1.5.61.547.593.547 1.78v4.266zm7.593-3.61q0 .235-.015.407 0 .156-.016.297h-4.578q0 1 .547 1.547.562.531 1.625.531.281 0 .562-.016.297-.03.563-.062.265-.047.5-.094.25-.047.453-.11v.938q-.453.125-1.047.203-.578.078-1.203.078-.828 0-1.438-.218-.609-.235-1-.657-.39-.437-.578-1.062-.172-.625-.172-1.422 0-.687.188-1.297.203-.625.578-1.094.39-.468.938-.734.562-.281 1.265-.281.672 0 1.203.219.532.218.891.609.36.39.547.953.187.563.187 1.266zm-1.187-.171q.031-.422-.078-.781-.11-.375-.328-.625-.22-.266-.547-.407-.313-.156-.75-.156-.36 0-.672.156-.313.141-.531.407-.22.25-.36.625-.125.359-.156.78h3.422z"/><path d="M266.066 129.903h103.496v26.016H266.066z"/><path fill="#b45f06" d="M281.91 139.867q-.297-.094-.688-.156-.39-.063-.796-.063-.282 0-.532.078-.234.078-.406.235-.172.156-.281.406-.094.25-.094.61v1.077h2.594v1.235h-2.594v4.422h-1.61v-4.422h-1.921v-1.234h1.922v-1.016q0-.688.203-1.188.203-.515.578-.828.375-.328.906-.469.532-.156 1.172-.156.438 0 .828.063.39.047.719.125v1.281zm-6.844 1.234zm14 2.797q0 .156-.016.422-.015.266-.03.484h-4.345q0 .438.125.782.141.328.375.547.25.218.594.343.344.11.75.11.484 0 1.031-.063.563-.078 1.157-.25v1.266q-.266.062-.563.125-.297.062-.61.11-.312.046-.64.062-.312.031-.61.031-.75 0-1.359-.219-.593-.219-1.015-.64-.407-.422-.64-1.032-.22-.625-.22-1.437 0-.797.22-1.453.233-.672.624-1.14.406-.47.984-.72.579-.265 1.297-.265.703 0 1.235.218.547.22.906.61.36.39.547.937.203.532.203 1.172zm-1.625-.234q.016-.39-.094-.672-.11-.297-.297-.484-.172-.188-.406-.282-.234-.093-.516-.093-.593 0-.984.406-.375.406-.453 1.125h2.75zm8.64 3.984q-.437.094-.875.156-.422.063-.812.063-.656 0-1.125-.14-.469-.141-.781-.423-.313-.28-.47-.703-.14-.437-.14-1.03v-3.235h-1.765V141.1h1.765v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.11q0 .562.266.858.265.282.875.282.39 0 .75-.063.375-.062.687-.14v1.265zm7.219-.187q-.469.187-.969.265-.5.094-1.047.094-.781 0-1.406-.203-.625-.219-1.063-.64-.437-.423-.671-1.048-.235-.625-.235-1.453 0-.78.25-1.422.25-.656.703-1.109.47-.453 1.11-.703.64-.25 1.422-.25.64 0 1.078.078.453.063.797.172v1.531q-.407-.203-.875-.312-.47-.11-.891-.11-.438 0-.797.157-.344.14-.594.421-.234.266-.359.641-.125.375-.125.828 0 .485.125.86.14.375.39.64.25.266.594.406.36.141.797.141.203 0 .422-.031.234-.031.469-.078.234-.063.453-.125.234-.078.422-.172v1.422zm5.921.25v-4.313q0-1.078-.796-1.078-.407 0-.782.328-.359.313-.765.875v4.188h-1.594v-9.203h1.594v2.265l-.078 1.203q.187-.234.39-.422.219-.203.453-.328.25-.14.532-.203.28-.062.609-.062.516 0 .89.172.376.156.626.468.265.297.39.72.125.421.125.952v4.438h-1.594zm9.125-2.578q0 .703-.265 1.218-.25.516-.72.86-.452.328-1.093.5-.64.156-1.39.156-.672 0-1.297-.078-.625-.078-1.235-.266v-1.578q.297.094.625.188.328.093.656.171.329.063.641.11.328.031.64.031.454 0 .766-.078.328-.078.532-.219.203-.14.28-.328.095-.187.095-.406 0-.313-.188-.531-.172-.22-.469-.375-.28-.157-.656-.282-.375-.14-.766-.28-.375-.157-.75-.345-.375-.187-.671-.468-.297-.282-.485-.672-.172-.39-.172-.938 0-.5.188-.937.187-.453.578-.782.39-.343 1-.546.61-.204 1.469-.204.25 0 .53.032.282.015.548.062.265.031.515.078.266.047.47.11v1.453q-.204-.078-.454-.14-.25-.063-.516-.11-.265-.047-.53-.078-.266-.032-.5-.032-.438 0-.735.079-.281.062-.469.187-.187.125-.281.297-.078.172-.078.39 0 .266.172.454.187.187.484.343.297.157.672.297.375.125.765.282.391.156.766.359.375.188.672.469.297.265.469.656.187.375.187.89zm7.047 2.515q-.438.094-.875.156-.422.063-.813.063-.656 0-1.125-.14-.468-.141-.78-.423-.313-.28-.47-.703-.14-.437-.14-1.03v-3.235h-1.766V141.1h1.766v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.11q0 .562.265.858.266.282.875.282.39 0 .75-.063.375-.062.688-.14v1.265zm6.015.063-.031-.86q-.219.22-.453.407-.219.187-.5.328-.266.125-.594.203-.312.078-.703.078-.5 0-.89-.156-.376-.157-.641-.422-.266-.266-.407-.64-.125-.376-.125-.829 0-.469.204-.86.203-.406.609-.687.406-.297 1.016-.453.609-.156 1.421-.156h.875v-.406q0-.25-.078-.454-.078-.203-.234-.343-.156-.157-.406-.235-.25-.078-.625-.078-.594 0-1.172.14-.563.126-1.094.376v-1.266q.484-.203 1.094-.312.625-.125 1.297-.125.734 0 1.265.14.532.141.86.422.343.266.5.688.172.422.172.984v4.516h-1.36zm-.219-2.922h-.968q-.407 0-.688.078-.281.078-.469.219-.171.125-.25.312-.078.172-.078.375 0 .406.25.625.266.203.719.203.328 0 .688-.234.359-.25.796-.688v-.89zm7.656-1.125q.016-.36-.03-.625-.048-.266-.157-.422-.11-.172-.266-.25-.156-.078-.36-.078-.343 0-.718.297-.375.281-.828.937v4.188h-1.625v-6.61h1.438l.062.953q.156-.25.36-.453.203-.203.453-.343.25-.141.562-.22.313-.077.672-.077.5 0 .89.172.391.171.641.515.266.328.39.844.141.5.11 1.172h-1.594zm8.531 3.984q-.437.094-.875.156-.421.063-.812.063-.656 0-1.125-.14-.469-.141-.781-.423-.313-.28-.47-.703-.14-.437-.14-1.03v-3.235h-1.765V141.1h1.765v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.11q0 .562.266.858.266.282.875.282.39 0 .75-.063.375-.062.687-.14v1.265z"/><path d="M271.323 143.428h-1.546l-4.455 32.752"/><path stroke="#b45f06" stroke-linejoin="round" stroke-linecap="butt" d="M271.323 143.428h-1.546l-3.646 26.807"/><path fill="#b45f06" stroke="#b45f06" stroke-linecap="butt" d="m264.494 170.013 1.025 4.719 2.249-4.274z" fill-rule="evenodd"/><path fill="#fff2cc" d="M437.567 181.56h50.016v74.991h-50.016z" fill-rule="evenodd"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M437.567 181.56h50.016v74.991h-50.016z"/><path fill="#000" d="M458.442 219.511q0 .61-.093 1.172-.094.563-.313 1.047-.203.469-.547.875-.328.39-.812.672-.469.266-1.11.422-.64.156-1.453.156h-1.828v-8.5h2.203q1.985 0 2.969 1.031.984 1.016.984 3.125zm-1.218.078q0-.906-.172-1.53-.172-.626-.516-1-.344-.391-.875-.563-.515-.172-1.219-.172h-.984v6.531h.86q2.906 0 2.906-3.266zm8.25 4.266h-1.516l-2.469-5.297-.719-1.719v7.017h-1.078v-8.5h1.484l2.36 5.015.86 1.953v-6.969h1.077v8.5zm7.25-2.297q0 .594-.25 1.063-.235.453-.688.75-.438.297-1.063.453-.625.14-1.36.14-.343 0-.687-.03-.328-.016-.64-.063-.313-.032-.594-.078-.266-.047-.485-.11v-1.125q.485.188 1.094.297.61.094 1.39.094.563 0 .954-.078.39-.094.64-.266.25-.172.36-.422.125-.25.125-.562 0-.344-.203-.594-.188-.25-.5-.438-.313-.187-.719-.343-.39-.172-.812-.328-.407-.172-.813-.375-.406-.204-.719-.47-.312-.265-.5-.624-.187-.375-.187-.875 0-.438.172-.86.187-.421.562-.75.39-.328.985-.53.609-.204 1.453-.204.203 0 .453.031.265.016.515.047t.5.078q.266.047.47.094v1.047q-.5-.14-1-.219-.5-.078-.97-.078-1 0-1.468.344-.469.328-.469.89 0 .344.187.594.204.235.516.438.313.187.703.36.406.155.813.327.422.156.828.36.406.203.719.484.312.281.5.656.187.36.187.875z"/><path d="M452.542 57.09h-3.476l-10.01 118.372"/><path stroke="#b45f06" stroke-linejoin="round" stroke-linecap="butt" d="M452.542 57.09h-3.476l-9.505 112.393"/><path fill="#b45f06" stroke="#b45f06" stroke-linecap="butt" d="m437.915 169.344 1.263 4.661 2.029-4.383z" fill-rule="evenodd"/><path d="M495.057 64.27h142.992v29.889H495.057z"/><path fill="#b45f06" d="m509.12 84.014-.032-.969q-.219.25-.437.453-.22.204-.485.36-.25.14-.547.219-.281.093-.625.093-.593 0-1.047-.234-.453-.234-.765-.672-.313-.437-.469-1.047-.156-.625-.156-1.39 0-.907.25-1.563.265-.672.719-1.11.453-.452 1.078-.656.625-.218 1.36-.218.25 0 .5.03.25.032.437.095V74.81h1.593v9.203h-1.375zm-2.907-3.25q0 .547.078.938.078.375.219.625.156.25.36.375.218.109.5.109.39 0 .75-.328.374-.328.78-.89v-2.891q-.187-.079-.468-.125-.266-.047-.547-.047-.39 0-.703.156-.297.156-.516.453-.219.281-.344.703-.109.406-.109.922zm12.031-.11q0 .782-.219 1.438-.218.64-.64 1.11-.422.453-1.032.718-.593.25-1.375.25-.734 0-1.312-.218-.578-.22-.984-.641-.407-.422-.625-1.063-.204-.656-.204-1.5 0-.78.22-1.421.234-.657.64-1.11.422-.453 1.031-.703.61-.25 1.375-.25.734 0 1.313.219.578.219.984.656.406.422.61 1.063.218.625.218 1.453zm-1.656.048q0-1.032-.39-1.547-.376-.516-1.141-.516-.407 0-.704.156-.296.157-.484.453-.187.282-.281.657-.078.375-.078.797 0 1.046.406 1.578.422.515 1.14.515.407 0 .688-.156.297-.172.484-.453.188-.281.266-.656.094-.391.094-.828zm7.703 3.312v-4.5q0-.25-.016-.437-.016-.188-.062-.313-.032-.125-.11-.187-.078-.063-.203-.063-.203 0-.406.281-.188.266-.438.938v4.281h-1.36v-4.5q0-.25-.015-.437 0-.188-.047-.313-.03-.125-.109-.187-.078-.063-.219-.063-.172 0-.375.281-.203.266-.468.938v4.281h-1.36v-6.61h1.172l.031.954q.14-.281.282-.485.14-.218.296-.343.172-.141.36-.188.187-.062.422-.062.547 0 .828.297.297.28.344.78.156-.28.296-.484.157-.218.313-.343.172-.141.36-.188.202-.062.437-.062.719 0 1.062.5.344.5.344 1.484v4.75h-1.36zm6.796 0-.031-.86q-.219.22-.453.407-.219.187-.5.328-.266.125-.594.203-.312.078-.703.078-.5 0-.89-.156-.376-.156-.641-.422-.266-.265-.406-.64-.125-.375-.125-.829 0-.468.203-.859.203-.406.609-.687.406-.297 1.016-.454.609-.156 1.422-.156h.875v-.406q0-.25-.079-.453-.078-.203-.234-.344-.156-.156-.406-.234-.25-.078-.625-.078-.594 0-1.172.14-.563.125-1.094.375v-1.265q.485-.204 1.094-.313.625-.125 1.297-.125.734 0 1.265.14.532.141.86.423.344.265.5.687.172.422.172.984v4.516h-1.36zm-.218-2.922h-.97q-.405 0-.687.078-.281.078-.468.219-.172.125-.25.313-.079.171-.079.375 0 .406.25.625.266.203.72.203.327 0 .687-.235.359-.25.797-.687v-.89zm7.296-5.5q0 .219-.078.406-.078.188-.219.329-.14.14-.328.218-.187.078-.406.078-.219 0-.422-.078-.187-.078-.328-.218-.14-.141-.219-.329-.078-.187-.078-.406 0-.219.078-.406.078-.188.219-.328.14-.14.328-.219.203-.094.422-.094.219 0 .406.094.188.078.328.219.14.14.219.328.078.187.078.406zm-1.75 3.047h-1.875v-1.234h3.5v5.375h1.906v1.234h-5.64V82.78h2.11v-4.141zm9.125 5.375v-4.312q0-1.079-.797-1.079-.406 0-.781.329-.36.312-.766.875v4.187h-1.594v-6.61h1.375l.032.97q.203-.25.421-.454.22-.218.47-.36.265-.14.546-.218.297-.078.656-.078.516 0 .891.172.375.156.625.469.266.297.39.718.126.422.126.954v4.437h-1.594zm3.765 0v-8.5h1.625v7.125h3.594v1.375h-5.219zm12.906-3.36q0 .782-.219 1.438-.218.64-.64 1.11-.422.453-1.031.718-.594.25-1.375.25-.735 0-1.313-.218-.578-.22-.984-.641-.407-.422-.625-1.063-.203-.656-.203-1.5 0-.78.218-1.421.235-.657.641-1.11.422-.453 1.031-.703.61-.25 1.375-.25.735 0 1.313.219t.984.656q.406.422.61 1.063.218.625.218 1.453zm-1.656.048q0-1.032-.39-1.547-.376-.516-1.141-.516-.407 0-.703.156-.297.157-.485.453-.187.282-.281.657-.078.375-.078.797 0 1.046.406 1.578.422.515 1.14.515.407 0 .688-.156.297-.172.485-.453.187-.281.265-.656.094-.391.094-.828zm8.984-.047q0 .78-.219 1.437-.218.64-.64 1.11-.422.453-1.031.718-.594.25-1.375.25-.735 0-1.313-.218-.578-.22-.984-.641-.407-.422-.625-1.063-.203-.656-.203-1.5 0-.78.218-1.421.235-.657.64-1.11.423-.453 1.032-.703.61-.25 1.375-.25.735 0 1.313.219t.984.656q.406.422.61 1.063.218.625.218 1.453zm-1.656.047q0-1.032-.39-1.547-.376-.516-1.141-.516-.407 0-.703.156-.297.157-.485.453-.187.282-.281.657-.078.375-.078.797 0 1.046.406 1.578.422.515 1.14.515.407 0 .688-.156.297-.172.485-.453.187-.281.265-.656.094-.391.094-.828zm7.125 3.312-2.438-3.312v3.312h-1.594v-9.203h1.594v5.39l2.313-2.796h1.984l-2.688 3.015 2.907 3.594h-2.078zm4.812-6.61v4.313q0 .531.203.813.203.28.61.28.39 0 .75-.327.374-.344.78-.89v-4.188h1.594v6.609h-1.375l-.03-.969q-.22.25-.438.453-.204.204-.454.36-.25.14-.546.219-.297.093-.657.093-.5 0-.89-.172-.375-.171-.64-.468-.25-.313-.376-.735-.125-.422-.125-.953v-4.437h1.594zm11.703 3.188q0 .906-.266 1.578-.25.657-.719 1.094-.453.438-1.078.656-.625.203-1.36.203-.25 0-.5-.03-.25-.032-.437-.079v2.578h-1.593v-9.187h1.375l.03.968q.204-.25.423-.453.218-.218.468-.36.266-.14.547-.218.297-.078.657-.078.593 0 1.046.234.454.235.766.672.313.422.469 1.047.172.61.172 1.375zm-1.672.063q0-.547-.078-.922-.078-.39-.235-.64-.14-.25-.359-.36-.203-.11-.469-.11-.406 0-.781.329-.36.312-.766.875v2.89q.188.078.453.125.282.047.563.047.375 0 .687-.156.313-.156.532-.438.218-.297.328-.703.125-.422.125-.937zm3.343 3.359v-8.5h5.11v1.344h-3.485v2.125h3.328v1.312h-3.328v2.36h3.485v1.359h-5.11zm10.969 0v-4.312q0-1.079-.797-1.079-.406 0-.781.329-.36.312-.766.875v4.187h-1.594v-6.61h1.375l.032.97q.203-.25.421-.454.22-.218.47-.36.265-.14.546-.218.297-.078.656-.078.516 0 .89.172.376.156.626.469.266.297.39.718.126.422.126.954v4.437h-1.594zm7.546 0-.03-.969q-.22.25-.438.453-.22.204-.485.36-.25.14-.547.219-.28.093-.625.093-.593 0-1.046-.234-.454-.234-.766-.672-.313-.437-.469-1.047-.156-.625-.156-1.39 0-.907.25-1.563.266-.672.719-1.11.453-.452 1.078-.656.625-.218 1.36-.218.25 0 .5.03.25.032.437.095V74.81h1.593v9.203h-1.375zm-2.906-3.25q0 .547.078.938.078.375.219.625.156.25.36.375.218.109.5.109.39 0 .75-.328.374-.328.78-.89v-2.891q-.187-.079-.468-.125-.266-.047-.547-.047-.39 0-.703.156-.297.156-.516.453-.218.281-.343.703-.11.406-.11.922z"/><path d="M501.058 79.513h-3.476l-10.01 95.95"/><path stroke="#b45f06" stroke-linejoin="round" stroke-linecap="butt" d="M501.058 79.513h-3.476l-9.388 89.982"/><path fill="#b45f06" stroke="#b45f06" stroke-linecap="butt" d="m486.551 169.324 1.172 4.685 2.114-4.342z" fill-rule="evenodd"/><path fill="#fff2cc" d="M495.094 182.052h50.016v74.993h-50.016z" fill-rule="evenodd"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M495.094 182.052h50.016v74.993h-50.016z"/><path fill="#000" d="M515.876 216.833h-2.515v7.516h-1.172v-7.516h-2.516v-.984h6.203v.984zm7.031 7.203q-1.015.422-2.14.422-1.797 0-2.766-1.078-.969-1.078-.969-3.188 0-1.03.266-1.843.265-.829.765-1.407.5-.578 1.204-.89.703-.313 1.578-.313.578 0 1.078.11.515.093.984.296v1.141q-.453-.25-.953-.375-.484-.14-1.078-.14-.594 0-1.078.234-.485.219-.828.64-.344.422-.532 1.047-.171.61-.171 1.39 0 1.657.671 2.5.672.83 1.97.83.546 0 1.046-.126.5-.125.953-.344v1.094zm7.469-5.594q0 .532-.203 1.047-.188.5-.594.906-.406.407-1.047.657-.64.25-1.531.25h-1.047v3.047h-1.156v-8.5h2.39q.625 0 1.203.14.594.14 1.032.453.437.313.687.813.266.484.266 1.187zm-1.203.063q0-.828-.547-1.266-.532-.437-1.485-.437h-1.187v3.5h1.078q1.031 0 1.578-.438.563-.453.563-1.36z"/><path d="M501.794 84.575H626.55v32.756H501.794z"/><path fill="#b45f06" d="M517.044 105.503q-.469.187-.969.265-.5.094-1.047.094-.781 0-1.406-.203-.625-.219-1.063-.64-.437-.423-.672-1.048-.234-.625-.234-1.453 0-.78.25-1.422.25-.656.703-1.109.469-.453 1.11-.703.64-.25 1.422-.25.64 0 1.078.078.453.063.797.172v1.531q-.407-.203-.875-.312-.47-.11-.891-.11-.438 0-.797.157-.344.14-.594.421-.234.266-.36.641-.124.375-.124.828 0 .485.125.86.14.375.39.64.25.266.594.406.36.141.797.141.203 0 .422-.031.234-.031.469-.078.234-.063.453-.125.234-.078.422-.172v1.422zm7.937-3.11q0 .782-.219 1.438-.219.64-.64 1.11-.422.452-1.032.718-.593.25-1.375.25-.734 0-1.312-.219-.578-.219-.985-.64-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.781.22-1.422.233-.656.64-1.11.422-.452 1.031-.702.61-.25 1.375-.25.734 0 1.312.218.579.22.985.657.406.422.61 1.062.218.625.218 1.453zm-1.656.047q0-1.031-.39-1.547-.376-.515-1.142-.515-.406 0-.703.156-.297.156-.484.453-.188.281-.281.656-.078.375-.078.797 0 1.047.406 1.578.422.516 1.14.516.407 0 .688-.156.297-.172.484-.453.188-.282.266-.657.094-.39.094-.828zm6.968 3.313v-4.313q0-1.078-.797-1.078-.406 0-.78.328-.36.313-.767.875v4.188h-1.593v-6.61h1.375l.031.97q.203-.25.422-.454.219-.219.469-.36.265-.14.546-.218.297-.078.657-.078.515 0 .89.172.375.156.625.468.266.297.391.72.125.421.125.952v4.438h-1.594zm7.328 0v-4.313q0-1.078-.797-1.078-.406 0-.781.328-.36.313-.766.875v4.188h-1.593v-6.61h1.375l.03.97q.204-.25.423-.454.218-.219.468-.36.266-.14.547-.218.297-.078.657-.078.515 0 .89.172.375.156.625.468.266.297.39.72.126.421.126.952v4.438h-1.594zm9.156-3.813q0 .156-.016.422-.015.266-.03.484h-4.345q0 .438.125.782.141.328.375.547.25.218.594.343.344.11.75.11.485 0 1.031-.063.563-.078 1.157-.25v1.266q-.266.062-.563.125-.297.062-.61.11-.312.046-.64.062-.312.031-.61.031-.75 0-1.359-.219-.593-.219-1.015-.64-.406-.422-.64-1.032-.22-.625-.22-1.437 0-.797.22-1.453.234-.672.624-1.14.406-.47.985-.72.578-.265 1.296-.265.704 0 1.235.218.547.22.906.61.36.39.547.937.203.532.203 1.172zm-1.625-.234q.016-.39-.094-.672-.109-.297-.297-.484-.171-.188-.406-.282-.234-.093-.515-.093-.594 0-.985.406-.375.406-.453 1.125h2.75zm8.531 3.797q-.469.187-.969.265-.5.094-1.047.094-.78 0-1.406-.203-.625-.219-1.062-.64-.438-.423-.672-1.048-.235-.625-.235-1.453 0-.78.25-1.422.25-.656.704-1.109.468-.453 1.109-.703.64-.25 1.422-.25.64 0 1.078.078.453.063.797.172v1.531q-.406-.203-.875-.312-.469-.11-.89-.11-.438 0-.798.157-.343.14-.593.421-.235.266-.36.641t-.125.828q0 .485.125.86.14.375.39.64.25.266.595.406.359.141.796.141.204 0 .422-.031.235-.031.469-.078.234-.063.453-.125.235-.078.422-.172v1.422zm7.437.187q-.437.094-.875.156-.422.063-.812.063-.656 0-1.125-.14-.469-.141-.781-.423-.313-.28-.47-.703-.14-.437-.14-1.03v-3.235h-1.765v-1.235h1.765v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.11q0 .562.266.858.265.282.875.282.39 0 .75-.063.375-.062.687-.14v1.265zm7.61-2.515q0 .703-.266 1.218-.25.516-.719.86-.453.328-1.094.5-.64.156-1.39.156-.672 0-1.297-.078-.625-.078-1.235-.266v-1.578q.297.094.625.188.329.093.657.171.328.063.64.11.328.031.64.031.454 0 .767-.078.328-.078.53-.219.204-.14.282-.328.094-.187.094-.406 0-.313-.188-.531-.172-.22-.468-.375-.282-.157-.657-.282-.375-.14-.765-.28-.375-.157-.75-.345-.375-.187-.672-.468-.297-.282-.485-.672-.171-.39-.171-.938 0-.5.187-.937.188-.453.578-.782.39-.343 1-.546.61-.204 1.469-.204.25 0 .531.032.281.015.547.062.266.031.516.078.265.047.468.11v1.453q-.203-.078-.453-.14-.25-.063-.515-.11-.266-.047-.532-.078-.265-.032-.5-.032-.437 0-.734.079-.281.062-.469.187-.187.125-.28.297-.08.172-.08.39 0 .266.173.454.187.187.484.343.297.157.672.297.375.125.766.282.39.156.765.359.375.187.672.469.297.265.469.656.187.375.187.89zm7.046 2.515q-.437.094-.875.156-.422.063-.812.063-.657 0-1.125-.14-.47-.141-.782-.423-.312-.28-.468-.703-.141-.437-.141-1.03v-3.235h-1.766v-1.235h1.766v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.11q0 .562.266.858.265.282.875.282.39 0 .75-.063.375-.062.687-.14v1.265zm6.015.063-.03-.86q-.22.22-.454.407-.219.187-.5.328-.266.125-.594.203-.312.078-.703.078-.5 0-.89-.156-.375-.157-.641-.422-.266-.266-.406-.64-.125-.376-.125-.829 0-.469.203-.86.203-.406.61-.687.405-.297 1.015-.453.61-.156 1.422-.156h.875v-.406q0-.25-.078-.454-.079-.203-.235-.343-.156-.157-.406-.235-.25-.078-.625-.078-.594 0-1.172.14-.562.126-1.094.376V99.44q.485-.203 1.094-.312.625-.125 1.297-.125.734 0 1.266.14.53.141.859.422.344.266.5.688.172.422.172.984v4.516h-1.36zm-.218-2.922h-.97q-.405 0-.687.078-.28.078-.468.219-.172.125-.25.312-.078.172-.078.375 0 .406.25.625.265.203.718.203.328 0 .688-.234.36-.25.797-.688v-.89zm7.656-1.125q.015-.36-.032-.625-.046-.266-.156-.422-.11-.172-.265-.25-.157-.078-.36-.078-.344 0-.719.297-.375.281-.828.937v4.188h-1.625v-6.61h1.438l.062.953q.157-.25.36-.453.203-.203.453-.343.25-.141.562-.22.313-.077.672-.077.5 0 .89.172.391.171.641.515.266.328.391.844.14.5.11 1.172h-1.594zm8.53 3.984q-.437.094-.874.156-.422.063-.813.063-.656 0-1.125-.14-.469-.141-.781-.423-.313-.28-.469-.703-.14-.437-.14-1.03v-3.235h-1.766v-1.235h1.766v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.11q0 .562.265.858.266.282.875.282.39 0 .75-.063.375-.062.688-.14v1.265z"/><path d="M507.796 101.279h-2.442l-7.031 74.908"/><path stroke="#b45f06" stroke-linejoin="round" stroke-linecap="butt" d="M507.796 101.279h-2.442l-6.47 68.934"/><path fill="#b45f06" stroke="#b45f06" stroke-linecap="butt" d="m497.24 170.059 1.22 4.672 2.068-4.364z" fill-rule="evenodd"/><path d="M545.556 127.362h223.496v26.016H545.556z"/><path fill="#b45f06" d="M560.806 144.92q-.468.188-.968.266-.5.093-1.047.093-.781 0-1.406-.203-.625-.218-1.063-.64-.437-.422-.672-1.047-.234-.625-.234-1.453 0-.782.25-1.422.25-.656.703-1.11.469-.453 1.11-.703.64-.25 1.421-.25.64 0 1.078.078.453.063.797.172v1.532q-.406-.204-.875-.313-.469-.11-.89-.11-.438 0-.797.157-.344.14-.594.422-.234.265-.36.64-.124.375-.124.829 0 .484.125.859.14.375.39.64.25.266.594.407.36.14.797.14.203 0 .422-.03.234-.032.468-.079.235-.062.454-.125.234-.078.421-.172v1.422zm7.938-3.11q0 .782-.22 1.438-.218.64-.64 1.11-.422.453-1.031.718-.594.25-1.375.25-.734 0-1.312-.218-.579-.22-.985-.641-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.78.219-1.421.234-.657.64-1.11.422-.453 1.032-.703.609-.25 1.375-.25.734 0 1.312.219.578.219.985.656.406.422.609 1.063.219.625.219 1.453zm-1.657.048q0-1.032-.39-1.547-.375-.516-1.14-.516-.407 0-.704.156-.297.157-.484.453-.188.282-.282.657-.078.375-.078.797 0 1.046.407 1.578.421.515 1.14.515.406 0 .688-.156.297-.172.484-.453.188-.281.266-.656.093-.39.093-.828zm6.969 3.312v-4.312q0-1.079-.797-1.079-.406 0-.781.329-.36.312-.766.875v4.187h-1.594v-6.61h1.375l.032.97q.203-.25.422-.454.218-.218.468-.36.266-.14.547-.218.297-.078.656-.078.516 0 .891.172.375.156.625.469.266.297.39.718.126.422.126.954v4.437h-1.594zm7.328 0v-4.312q0-1.079-.797-1.079-.406 0-.781.329-.36.312-.766.875v4.187h-1.594v-6.61h1.375l.032.97q.203-.25.421-.454.22-.218.47-.36.265-.14.546-.218.297-.078.656-.078.516 0 .89.172.376.156.626.469.266.297.39.718.126.422.126.954v4.437h-1.594zm9.156-3.812q0 .156-.016.421-.015.266-.031.485h-4.344q0 .437.125.781.14.328.375.547.25.219.594.344.344.11.75.11.484 0 1.031-.063.563-.079 1.156-.25v1.265q-.265.063-.562.125-.297.063-.61.11-.312.046-.64.062-.313.031-.61.031-.75 0-1.359-.218-.594-.22-1.015-.641-.407-.422-.641-1.031-.219-.625-.219-1.438 0-.797.219-1.453.234-.672.625-1.14.406-.47.984-.72.578-.265 1.297-.265.703 0 1.235.219.546.219.906.61.36.39.547.937.203.53.203 1.172zm-1.625-.235q.015-.39-.094-.672-.11-.297-.297-.484-.172-.188-.406-.281-.234-.094-.516-.094-.593 0-.984.406-.375.406-.453 1.125h2.75zm8.53 3.797q-.468.188-.968.266-.5.093-1.047.093-.781 0-1.406-.203-.625-.218-1.063-.64-.437-.422-.672-1.047-.234-.625-.234-1.453 0-.782.25-1.422.25-.656.703-1.11.469-.453 1.11-.703.64-.25 1.421-.25.641 0 1.079.078.453.063.796.172v1.532q-.406-.204-.875-.313-.468-.11-.89-.11-.438 0-.797.157-.344.14-.594.422-.234.265-.36.64-.124.375-.124.829 0 .484.125.859.14.375.39.64.25.266.594.407.36.14.797.14.203 0 .422-.03.234-.032.469-.079.234-.062.453-.125.234-.078.422-.172v1.422zm7.438.188q-.438.093-.875.156-.422.062-.813.062-.656 0-1.125-.14-.468-.14-.78-.422-.313-.281-.47-.703-.14-.438-.14-1.032v-3.234h-1.766v-1.234h1.766v-1.688l1.625-.437v2.125h2.578v1.234h-2.578v3.11q0 .562.265.859.266.281.875.281.391 0 .75-.062.375-.063.688-.141v1.266zm2.172.062v-8.5h5.109v1.344h-3.484v2.125h3.328v1.312h-3.328v2.36h3.484v1.36h-5.11zm10.968 0v-4.312q0-1.079-.797-1.079-.406 0-.781.329-.36.312-.766.875v4.187h-1.593v-6.61h1.375l.03.97q.204-.25.423-.454.219-.218.469-.36.265-.14.546-.218.297-.078.657-.078.515 0 .89.172.375.156.625.469.266.297.39.718.126.422.126.954v4.437h-1.594zm7.547 0-.032-.969q-.218.25-.437.453-.219.204-.484.36-.25.14-.547.219-.282.093-.625.093-.594 0-1.047-.234-.453-.234-.766-.672-.312-.437-.469-1.047-.156-.625-.156-1.39 0-.907.25-1.563.266-.672.719-1.11.453-.452 1.078-.656.625-.218 1.36-.218.25 0 .5.03.25.032.437.095v-2.594h1.594v9.203h-1.375zm-2.907-3.25q0 .547.079.938.078.375.218.625.157.25.36.375.218.109.5.109.39 0 .75-.328.375-.328.781-.89v-2.891q-.188-.079-.469-.125-.265-.047-.547-.047-.39 0-.703.156-.297.156-.515.453-.22.281-.344.703-.11.406-.11.922z"/><path d="m551.556 142.042-4 .018-2 33.898"/><path stroke="#b45f06" stroke-linejoin="round" stroke-linecap="butt" d="m551.556 142.042-4 .018-1.646 27.908"/><path fill="#b45f06" stroke="#b45f06" stroke-linecap="butt" d="m544.261 169.871 1.382 4.628 1.916-4.433z" fill-rule="evenodd"/><path fill="#fff2cc" d="M552.622 181.367h78.992v74.993h-78.992z" fill-rule="evenodd"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M552.622 181.367h78.992v74.993h-78.992z"/><path fill="#000" d="M573.314 223.664h-1.312l-1.266-2.72q-.14-.312-.297-.515-.156-.203-.328-.328-.172-.125-.375-.172-.203-.047-.453-.047h-.547v3.782h-1.156v-8.5h2.281q.735 0 1.266.156t.875.453q.344.297.5.719.172.406.172.906 0 .39-.125.75-.11.36-.344.656-.234.281-.578.5-.344.203-.781.313.359.109.609.422.25.312.516.828l1.343 2.797zm-1.859-6.172q0-.688-.438-1.016-.421-.344-1.187-.344h-1.094v2.813h.938q.406 0 .734-.094.328-.094.563-.281.234-.188.359-.453.125-.266.125-.625zm8.906 2.562q0 .235-.016.406 0 .157-.015.297h-4.578q0 1 .546 1.547.563.531 1.625.531.282 0 .563-.015.297-.031.562-.063.266-.047.5-.093.25-.047.454-.11v.938q-.454.125-1.047.203-.578.078-1.203.078-.829 0-1.438-.219-.61-.234-1-.656-.39-.438-.578-1.063-.172-.625-.172-1.421 0-.688.188-1.297.203-.625.578-1.094.39-.469.937-.734.563-.282 1.266-.282.672 0 1.203.219t.89.61q.36.39.547.953.188.562.188 1.265zm-1.188-.172q.032-.422-.078-.781-.109-.375-.328-.625-.219-.266-.547-.406-.312-.156-.75-.156-.359 0-.672.156-.312.14-.53.406-.22.25-.36.625-.125.36-.156.781h3.421zm2.656.657q0-.704.188-1.329.187-.64.578-1.109.39-.484.984-.766.61-.28 1.454-.28.328 0 .656.046.328.047.687.172l1-.266v9.328h-1.14v-2.468l.062-1.407q-.922 1.313-2.203 1.313-.562 0-.984-.219-.422-.234-.72-.656-.28-.438-.421-1.031-.14-.61-.14-1.328zm1.172-.079q0 .547.078.985.079.437.235.75.172.297.422.453.25.156.593.156.422 0 .907-.375.484-.39 1-1.14v-3.032q-.25-.125-.578-.203-.329-.078-.704-.078-.953 0-1.453.64-.5.626-.5 1.844zm11.75 3.204h-1.016l-.046-1.047q-.282.328-.547.562-.266.219-.532.36-.265.125-.53.171-.25.063-.548.063-1.015 0-1.531-.578-.5-.594-.5-1.797v-4.266h1.125v4.172q0 1.5 1.14 1.5.204 0 .391-.047.203-.062.422-.218.219-.157.469-.407.25-.265.562-.672v-4.328h1.141v6.532zm7.594-3.61q0 .235-.016.406 0 .157-.016.297h-4.578q0 1 .547 1.547.563.531 1.625.531.281 0 .563-.015.296-.031.562-.063.266-.047.5-.093.25-.047.453-.11v.938q-.453.125-1.047.203-.578.078-1.203.078-.828 0-1.437-.219-.61-.234-1-.656-.391-.438-.578-1.063-.172-.625-.172-1.421 0-.688.187-1.297.203-.625.578-1.094.39-.469.938-.734.562-.282 1.265-.282.672 0 1.204.219.53.219.89.61.36.39.547.953.188.562.188 1.265zm-1.188-.172q.031-.422-.078-.781-.11-.375-.328-.625-.219-.266-.547-.406-.313-.156-.75-.156-.36 0-.672.156-.312.14-.531.406-.219.25-.36.625-.125.36-.156.781h3.422zm8.172 2q0 .344-.125.625-.11.266-.313.485-.203.203-.469.359-.265.14-.578.25-.297.094-.625.125-.312.047-.61.047-.671 0-1.233-.063-.547-.046-1.079-.171v-1.047q.563.156 1.125.25.579.078 1.141.078.813 0 1.203-.219.39-.219.39-.625 0-.187-.062-.312-.062-.141-.234-.266-.156-.14-.5-.266-.344-.14-.938-.312-.437-.14-.812-.297-.375-.172-.656-.39-.266-.235-.422-.532-.156-.312-.156-.734 0-.266.125-.594.125-.328.437-.61.313-.28.828-.468.516-.188 1.297-.188.39 0 .86.047.468.047.968.14v1.016q-.531-.125-1.015-.187-.47-.063-.829-.063-.421 0-.718.063-.282.062-.47.187-.171.11-.25.266-.077.14-.077.313 0 .187.062.328.078.14.266.28.187.126.516.267.328.125.859.28.594.173.984.36.39.188.64.422.25.219.36.516.11.28.11.64zm7.421 1.688q-.39.094-.797.14-.406.047-.843.047-1.22 0-1.829-.547-.609-.562-.609-1.718v-3.407h-1.828v-.953h1.828v-1.797l1.14-.296v2.093h2.938v.953h-2.937v3.313q0 .703.375 1.062.375.344 1.093.344.313 0 .688-.047.375-.062.781-.156v.969z"/><path fill="#fff2cc" d="M706.255 181.365h97.291v74.992h-97.291z" fill-rule="evenodd"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M706.255 181.365h97.291v74.992h-97.291z"/><path fill="#000" d="M732.433 223.66h-1.313l-1.266-2.718q-.14-.312-.296-.515-.157-.204-.329-.329-.171-.125-.375-.171-.203-.047-.453-.047h-.547v3.78h-1.156v-8.5h2.281q.735 0 1.266.157.531.156.875.453.344.297.5.719.172.406.172.906 0 .39-.125.75-.11.36-.344.657-.234.28-.578.5-.344.203-.781.312.36.11.61.422t.515.828l1.344 2.797zm-1.86-6.171q0-.687-.437-1.016-.422-.343-1.188-.343h-1.094v2.812h.938q.406 0 .734-.094.328-.093.563-.28.234-.188.36-.454.124-.266.124-.625zm8.906 2.563q0 .234-.015.406 0 .156-.016.297h-4.578q0 1 .547 1.547.562.53 1.625.53.28 0 .562-.015.297-.031.563-.062.265-.047.5-.094.25-.047.453-.11v.938q-.453.125-1.047.203-.578.078-1.203.078-.828 0-1.438-.218-.61-.235-1-.657-.39-.437-.578-1.062-.172-.625-.172-1.422 0-.688.188-1.297.203-.625.578-1.094.39-.468.937-.734.563-.281 1.266-.281.672 0 1.203.218.531.22.89.61.36.39.548.953.187.562.187 1.266zm-1.187-.172q.03-.422-.078-.782-.11-.375-.329-.625-.218-.265-.546-.406-.313-.156-.75-.156-.36 0-.672.156-.313.14-.532.406-.218.25-.359.625-.125.36-.156.782h3.422zm8.171 2q0 .343-.125.625-.11.265-.312.484-.203.203-.469.36-.266.14-.578.25-.297.093-.625.124-.313.047-.61.047-.671 0-1.234-.062-.547-.047-1.078-.172v-1.047q.563.156 1.125.25.578.078 1.14.078.813 0 1.204-.219.39-.218.39-.625 0-.187-.062-.312-.063-.14-.234-.266-.157-.14-.5-.265-.344-.141-.938-.313-.437-.14-.812-.297-.375-.172-.657-.39-.265-.235-.422-.532-.156-.312-.156-.734 0-.266.125-.594.125-.328.438-.61.312-.28.828-.468.515-.187 1.297-.187.39 0 .859.047.469.046.969.14v1.016q-.531-.125-1.016-.188-.469-.062-.828-.062-.422 0-.719.062-.281.063-.468.188-.172.11-.25.265-.079.141-.079.313 0 .187.063.328.078.14.266.281.187.125.515.266.328.125.86.281.593.172.984.36.39.187.64.421.25.22.36.516.11.281.11.64zm7.734-1.61q0 .875-.25 1.532-.234.656-.671 1.093-.422.422-1.016.64-.578.204-1.266.204-.312 0-.625-.031-.297-.031-.625-.11v2.735h-1.125v-9.203h1l.078 1.093q.485-.671 1.032-.937.562-.281 1.203-.281.562 0 .984.234.422.234.703.672.297.422.438 1.031.14.594.14 1.328zm-1.156.063q0-.516-.078-.938-.078-.437-.25-.734-.156-.313-.406-.484-.25-.172-.61-.172-.203 0-.437.062-.219.063-.453.235-.235.156-.5.421-.266.266-.563.657v3.156q.313.14.657.219.343.062.671.062.922 0 1.438-.61.531-.624.531-1.874zm8.594.015q0 .75-.22 1.391-.218.64-.624 1.094-.39.437-.984.687-.579.25-1.313.25-.703 0-1.266-.203-.546-.219-.937-.64-.375-.438-.594-1.063-.203-.625-.203-1.437 0-.75.219-1.375.219-.641.61-1.094.405-.453.984-.703.593-.25 1.328-.25.703 0 1.25.218.562.22.937.641.39.422.594 1.047.219.625.219 1.437zm-1.157.047q0-.61-.14-1.062-.14-.453-.39-.75-.235-.297-.595-.453-.359-.157-.796-.157-.5 0-.86.204-.36.187-.594.53-.234.329-.343.766-.11.438-.11.922 0 .61.14 1.063.142.453.376.765.25.297.594.454.359.14.797.14.515 0 .875-.187.359-.203.593-.532.235-.343.344-.78.11-.438.11-.923zm2.797-3.265h1l.047 1.047q.281-.329.547-.547.281-.235.531-.375.25-.141.516-.188.28-.062.562-.062 1.016 0 1.531.609.516.594.516 1.781v4.266h-1.14v-4.172q0-.766-.282-1.125-.281-.375-.86-.375-.202 0-.405.063-.188.062-.407.218-.218.14-.468.407-.25.265-.563.656v4.328h-1.125v-6.531zm12.5 4.75q0 .343-.125.625-.11.265-.313.484-.203.203-.469.36-.265.14-.578.25-.297.093-.625.124-.312.047-.609.047-.672 0-1.234-.062-.547-.047-1.079-.172v-1.047q.563.156 1.125.25.579.078 1.141.078.813 0 1.203-.219.39-.218.39-.625 0-.187-.062-.312-.062-.14-.234-.266-.156-.14-.5-.265-.344-.141-.938-.313-.437-.14-.812-.297-.375-.172-.656-.39-.266-.235-.422-.532-.156-.312-.156-.734 0-.266.125-.594.125-.328.437-.61.313-.28.828-.468.516-.187 1.297-.187.39 0 .86.047.468.046.968.14v1.016q-.531-.125-1.015-.188-.47-.062-.829-.062-.421 0-.718.062-.282.063-.469.188-.172.11-.25.265-.078.141-.078.313 0 .187.062.328.078.14.266.281.187.125.516.266.328.125.859.281.594.172.984.36.391.187.641.421.25.22.36.516.109.281.109.64zm7.671-1.828q0 .234-.015.406 0 .156-.016.297h-4.578q0 1 .547 1.547.562.53 1.625.53.281 0 .562-.015.297-.031.563-.062.265-.047.5-.094.25-.047.453-.11v.938q-.453.125-1.047.203-.578.078-1.203.078-.828 0-1.438-.218-.609-.235-1-.657-.39-.437-.578-1.062-.172-.625-.172-1.422 0-.688.188-1.297.203-.625.578-1.094.39-.468.938-.734.562-.281 1.265-.281.672 0 1.203.218.532.22.891.61.36.39.547.953.187.562.187 1.266zm-1.187-.172q.031-.422-.078-.782-.11-.375-.328-.625-.22-.265-.547-.406-.313-.156-.75-.156-.36 0-.672.156-.313.14-.531.406-.22.25-.36.625-.125.36-.156.782h3.422z"/><path d="M815.018 289.535h223.496v26.016H815.018z"/><path fill="#b45f06" d="M829.175 303.296q.015-.359-.032-.625-.047-.265-.156-.421-.11-.172-.266-.25-.156-.079-.359-.079-.344 0-.719.297-.375.282-.828.938v4.187h-1.625v-6.61h1.438l.062.954q.156-.25.36-.453.203-.203.453-.344.25-.14.562-.219.313-.078.672-.078.5 0 .89.172.391.172.641.516.266.328.391.844.14.5.11 1.171h-1.594zm8.843.235q0 .156-.016.422-.015.265-.03.484h-4.345q0 .438.125.781.141.328.375.547.25.219.594.344.344.11.75.11.485 0 1.031-.063.563-.078 1.157-.25v1.265q-.266.063-.563.125-.297.063-.61.11-.312.047-.64.062-.312.032-.61.032-.75 0-1.359-.22-.593-.218-1.015-.64-.406-.422-.64-1.031-.22-.625-.22-1.438 0-.796.22-1.453.234-.672.624-1.14.406-.47.985-.72.578-.265 1.296-.265.704 0 1.235.219.547.219.906.61.36.39.547.937.203.531.203 1.172zm-1.625-.235q.016-.39-.094-.671-.109-.297-.297-.485-.171-.187-.406-.281-.234-.094-.515-.094-.594 0-.985.406-.375.407-.453 1.125h2.75zm8.64 2.094q0 .578-.25.985-.25.39-.671.64-.407.25-.938.36-.516.125-1.062.125-.735 0-1.329-.079-.578-.062-1.093-.187v-1.438q.61.25 1.218.375.61.11 1.157.11.625 0 .922-.203.312-.203.312-.516 0-.156-.062-.281-.063-.125-.25-.235-.172-.109-.5-.234-.329-.125-.844-.266-.5-.14-.875-.312-.36-.172-.61-.406-.234-.235-.359-.532-.11-.312-.11-.734 0-.406.173-.766.187-.359.546-.625.375-.265.907-.421.547-.157 1.265-.157.625 0 1.11.063.484.062.843.14v1.297q-.562-.187-1.062-.25-.5-.078-.984-.078-.485 0-.782.172-.297.172-.297.484 0 .157.047.282.063.109.235.218.187.11.484.235.313.11.828.25.563.172.953.36.391.187.625.421.25.234.344.531.11.297.11.672zm7.828-1.469q0 .907-.265 1.579-.25.656-.72 1.093-.452.438-1.077.657-.625.203-1.36.203-.25 0-.5-.032-.25-.03-.437-.078v2.578h-1.594v-9.187h1.375l.031.969q.204-.25.422-.453.22-.22.47-.36.265-.14.546-.219.297-.078.656-.078.594 0 1.047.235.453.234.766.672.312.421.468 1.046.172.61.172 1.375zm-1.672.063q0-.547-.078-.922-.078-.39-.234-.64-.14-.25-.36-.36-.203-.11-.468-.11-.406 0-.781.329-.36.312-.766.875v2.89q.187.079.453.125.281.047.563.047.375 0 .687-.156.313-.156.531-.437.22-.297.328-.704.125-.421.125-.937zm9 0q0 .781-.219 1.437-.218.641-.64 1.11-.422.453-1.031.719-.594.25-1.375.25-.735 0-1.313-.22-.578-.218-.984-.64-.407-.422-.625-1.062-.203-.657-.203-1.5 0-.782.218-1.422.235-.656.64-1.11.423-.453 1.032-.703.61-.25 1.375-.25.735 0 1.313.219t.984.656q.406.422.61 1.063.218.625.218 1.453zm-1.656.047q0-1.031-.39-1.547-.376-.516-1.141-.516-.407 0-.703.157-.297.156-.485.453-.187.28-.281.656-.078.375-.078.797 0 1.047.406 1.578.422.516 1.14.516.407 0 .688-.157.297-.172.485-.453.187-.281.265-.656.094-.39.094-.828zm6.968 3.312v-4.312q0-1.078-.796-1.078-.407 0-.782.328-.36.312-.765.875v4.187h-1.594v-6.61h1.375l.031.97q.203-.25.422-.453.219-.22.469-.36.265-.14.547-.219.297-.078.656-.078.516 0 .89.172.376.156.626.469.265.297.39.719t.125.953v4.437h-1.594zm8.844-1.953q0 .578-.25.985-.25.39-.672.64-.406.25-.937.36-.516.125-1.063.125-.734 0-1.328-.079-.578-.062-1.094-.187v-1.438q.61.25 1.219.375.61.11 1.156.11.625 0 .922-.203.313-.203.313-.516 0-.156-.063-.281-.062-.125-.25-.235-.172-.109-.5-.234t-.844-.266q-.5-.14-.875-.312-.359-.172-.609-.406-.234-.235-.36-.532-.109-.312-.109-.734 0-.406.172-.766.188-.359.547-.625.375-.265.906-.421.547-.157 1.266-.157.625 0 1.11.063.484.062.843.14v1.297q-.563-.187-1.063-.25-.5-.078-.984-.078t-.781.172q-.297.172-.297.484 0 .157.047.282.062.109.234.218.188.11.485.235.312.11.828.25.562.172.953.36.39.187.625.421.25.234.344.531.109.297.109.672zm7.64-1.86q0 .157-.015.423-.016.265-.032.484h-4.343q0 .438.125.781.14.328.375.547.25.219.593.344.344.11.75.11.485 0 1.032-.063.562-.078 1.156-.25v1.265q-.266.063-.563.125-.296.063-.609.11-.312.047-.64.062-.313.032-.61.032-.75 0-1.36-.22-.593-.218-1.015-.64-.406-.422-.64-1.031-.22-.625-.22-1.438 0-.796.22-1.453.234-.672.624-1.14.407-.47.985-.72.578-.265 1.297-.265.703 0 1.234.219.547.219.906.61.36.39.547.937.203.531.203 1.172zm-1.625-.234q.016-.39-.093-.671-.11-.297-.297-.485-.172-.187-.407-.281-.234-.094-.515-.094-.594 0-.985.406-.375.407-.453 1.125h2.75zm3.484 4.047v-8.5h5.11v1.344h-3.485v2.125h3.329v1.313h-3.329v2.359h3.485v1.36h-5.11zm10.969 0v-4.312q0-1.078-.797-1.078-.406 0-.781.328-.36.312-.766.875v4.187h-1.594v-6.61h1.375l.032.97q.203-.25.422-.453.218-.22.468-.36.266-.14.547-.219.297-.078.656-.078.516 0 .891.172.375.156.625.469.266.297.39.719.126.422.126.953v4.437h-1.594zm7.547 0-.032-.968q-.218.25-.437.453t-.485.359q-.25.14-.546.219-.282.094-.625.094-.594 0-1.047-.235-.453-.234-.766-.672-.312-.437-.469-1.047-.156-.625-.156-1.39 0-.906.25-1.563.266-.672.719-1.11.453-.452 1.078-.655.625-.22 1.36-.22.25 0 .5.032.25.031.437.094v-2.594h1.594v9.203h-1.375zm-2.907-3.25q0 .547.078.938.079.375.22.625.155.25.359.375.218.11.5.11.39 0 .75-.329.375-.328.78-.89v-2.891q-.187-.078-.468-.125-.266-.047-.547-.047-.39 0-.703.156-.297.156-.516.453-.218.282-.343.703-.11.407-.11.922z"/><path d="M821.023 302.8h-2.442l-7.031-39.508"/><path stroke="#b45f06" stroke-linejoin="round" stroke-linecap="butt" d="M821.023 302.8h-2.442l-5.98-33.601"/><path fill="#b45f06" stroke="#b45f06" stroke-linecap="butt" d="m814.227 268.91-2.421-4.179-.831 4.757z" fill-rule="evenodd"/><path d="M707.242 284.808h121.984v14.866H707.242z"/><path fill="#b45f06" d="M721.398 292.994q.016-.36-.031-.625t-.157-.422q-.109-.172-.265-.25-.156-.078-.36-.078-.343 0-.718.297-.375.281-.828.938v4.187h-1.625v-6.61h1.437l.063.954q.156-.25.359-.453.203-.203.453-.344.25-.14.563-.219.312-.078.671-.078.5 0 .891.172.39.172.64.516.266.328.391.843.14.5.11 1.172h-1.594zm8.843.235q0 .156-.015.421-.016.266-.031.485h-4.344q0 .437.125.781.14.328.375.547.25.219.594.344.343.11.75.11.484 0 1.03-.063.563-.079 1.157-.25v1.265q-.266.063-.562.125-.297.063-.61.11-.312.046-.64.062-.313.031-.61.031-.75 0-1.36-.218-.593-.22-1.015-.641-.406-.422-.64-1.031-.22-.625-.22-1.438 0-.797.22-1.453.234-.672.625-1.14.406-.47.984-.72.578-.265 1.297-.265.703 0 1.234.219.547.219.906.61.36.39.547.937.203.531.203 1.172zm-1.625-.235q.016-.39-.093-.672-.11-.297-.297-.484-.172-.188-.406-.281-.235-.094-.516-.094-.594 0-.984.406-.375.406-.454 1.125h2.75zm8.64 2.094q0 .578-.25.984-.25.391-.671.641-.406.25-.938.36-.515.124-1.062.124-.734 0-1.328-.078-.578-.062-1.094-.187v-1.438q.61.25 1.219.375.61.11 1.156.11.625 0 .922-.204.312-.203.312-.515 0-.156-.062-.281-.063-.125-.25-.235-.172-.11-.5-.234-.328-.125-.844-.266-.5-.14-.875-.312-.36-.172-.61-.407-.234-.234-.359-.53-.109-.313-.109-.735 0-.406.172-.766.187-.36.547-.625.375-.265.906-.422.547-.156 1.266-.156.625 0 1.109.063.484.062.844.14v1.297q-.563-.187-1.063-.25-.5-.078-.984-.078t-.781.172q-.297.172-.297.484 0 .156.047.281.062.11.234.22.188.109.484.234.313.109.829.25.562.171.953.359.39.187.625.422.25.234.343.531.11.297.11.672zm7.829-1.469q0 .906-.266 1.578-.25.657-.719 1.094-.453.438-1.078.656-.625.203-1.36.203-.25 0-.5-.03-.25-.032-.437-.079v2.578h-1.594v-9.187h1.375l.032.968q.203-.25.422-.453.218-.218.468-.359.266-.14.547-.219.297-.078.656-.078.594 0 1.047.234.453.235.766.672.312.422.469 1.047.172.61.172 1.375zm-1.672.063q0-.547-.078-.922-.079-.39-.235-.64-.14-.25-.36-.36-.202-.11-.468-.11-.406 0-.781.329-.36.312-.766.875v2.89q.188.078.453.125.282.047.563.047.375 0 .687-.156.313-.156.532-.438.218-.297.328-.703.125-.422.125-.937zm9 0q0 .781-.22 1.437-.218.64-.64 1.11-.422.453-1.031.718-.594.25-1.375.25-.735 0-1.313-.218-.578-.22-.984-.641-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.78.219-1.421.234-.657.64-1.11.422-.453 1.031-.703.61-.25 1.375-.25.735 0 1.313.219t.984.656q.407.422.61 1.063.218.625.218 1.453zm-1.657.047q0-1.032-.39-1.547-.375-.516-1.141-.516-.406 0-.703.156-.297.157-.485.453-.187.282-.28.657-.079.375-.079.797 0 1.046.406 1.578.422.515 1.141.515.406 0 .687-.156.297-.172.485-.453.187-.281.265-.656.094-.39.094-.828zm6.969 3.312v-4.312q0-1.079-.797-1.079-.406 0-.781.329-.36.312-.766.875v4.187h-1.594v-6.61h1.375l.031.97q.204-.25.422-.454.22-.218.47-.359.265-.14.546-.219.297-.078.656-.078.516 0 .89.172.376.156.626.469.265.297.39.718.125.422.125.954v4.437h-1.593zm8.843-1.953q0 .578-.25.984-.25.391-.672.641-.406.25-.937.36-.516.124-1.063.124-.734 0-1.328-.078-.578-.062-1.093-.187v-1.438q.609.25 1.218.375.61.11 1.157.11.625 0 .921-.204.313-.203.313-.515 0-.156-.063-.281-.062-.125-.25-.235-.171-.11-.5-.234-.328-.125-.843-.266-.5-.14-.875-.312-.36-.172-.61-.407-.234-.234-.36-.53-.108-.313-.108-.735 0-.406.171-.766.188-.36.547-.625.375-.265.907-.422.546-.156 1.265-.156.625 0 1.11.063.484.062.843.14v1.297q-.562-.187-1.062-.25-.5-.078-.985-.078-.484 0-.78.172-.298.172-.298.484 0 .156.047.281.063.11.235.22.187.109.484.234.312.109.828.25.563.171.953.359.39.187.625.422.25.234.344.531.11.297.11.672zm7.64-1.86q0 .157-.015.422-.016.266-.031.485h-4.344q0 .437.125.781.14.328.375.547.25.219.594.344.343.11.75.11.484 0 1.03-.063.563-.079 1.157-.25v1.265q-.265.063-.562.125-.297.063-.61.11-.312.046-.64.062-.313.031-.61.031-.75 0-1.36-.218-.593-.22-1.015-.641-.406-.422-.64-1.031-.22-.625-.22-1.438 0-.797.22-1.453.234-.672.625-1.14.406-.47.984-.72.578-.265 1.297-.265.703 0 1.234.219.547.219.907.61.359.39.546.937.204.531.204 1.172zm-1.624-.234q.015-.39-.094-.672-.11-.297-.297-.484-.172-.188-.406-.281-.235-.094-.516-.094-.594 0-.984.406-.375.406-.453 1.125h2.75zm8.921 1.469q0 .703-.265 1.219-.25.515-.72.86-.452.327-1.093.5-.64.155-1.39.155-.672 0-1.297-.078-.625-.078-1.235-.265v-1.579q.297.094.625.188t.656.172q.329.062.641.11.328.03.64.03.454 0 .766-.078.328-.078.532-.218.203-.141.28-.329.095-.187.095-.406 0-.312-.188-.531-.172-.219-.469-.375-.28-.156-.656-.281-.375-.14-.766-.282-.375-.156-.75-.343-.375-.188-.671-.469-.297-.281-.485-.672-.172-.39-.172-.937 0-.5.188-.938.187-.453.578-.781.39-.344 1-.547.61-.203 1.469-.203.25 0 .531.031.281.016.547.063.265.03.515.078.266.047.47.11v1.452q-.204-.078-.454-.14-.25-.063-.516-.11-.265-.047-.53-.078-.266-.031-.5-.031-.438 0-.735.078-.281.062-.469.187-.187.125-.281.297-.078.172-.078.391 0 .266.172.453.187.188.484.344.297.156.672.297.375.125.765.281.391.156.766.36.375.187.672.468.297.266.469.656.187.375.187.891zm7.047 2.516q-.438.093-.875.156-.422.062-.813.062-.656 0-1.125-.14-.468-.14-.78-.422-.313-.281-.47-.703-.14-.438-.14-1.032v-3.234h-1.766v-1.234h1.766v-1.688l1.625-.437v2.125h2.578v1.234h-2.578v3.11q0 .562.265.859.266.281.875.281.391 0 .75-.062.375-.063.688-.141v1.266zm6.015.062-.031-.86q-.219.22-.453.407-.219.187-.5.328-.266.125-.594.203-.312.078-.703.078-.5 0-.89-.156-.376-.156-.641-.422-.266-.265-.407-.64-.125-.375-.125-.829 0-.468.204-.859.203-.406.609-.687.406-.297 1.016-.454.609-.156 1.421-.156h.875v-.406q0-.25-.078-.453t-.234-.344q-.156-.156-.406-.234-.25-.078-.625-.078-.594 0-1.172.14-.563.125-1.094.375v-1.265q.484-.204 1.094-.313.625-.125 1.297-.125.734 0 1.265.14.532.141.86.423.343.265.5.687.172.422.172.984v4.516h-1.36zm-.219-2.922h-.968q-.407 0-.688.078-.281.078-.469.22-.171.124-.25.312-.078.171-.078.375 0 .406.25.625.266.203.72.203.327 0 .687-.235.359-.25.796-.687v-.89zm7.656-1.125q.016-.36-.03-.625-.048-.265-.157-.422-.11-.172-.266-.25-.156-.078-.36-.078-.343 0-.718.297-.375.281-.828.938v4.187h-1.625v-6.61h1.438l.062.954q.156-.25.36-.453.203-.203.453-.344.25-.14.562-.219.313-.078.672-.078.5 0 .89.172.391.172.641.516.266.328.39.843.141.5.11 1.172h-1.594zm8.531 3.985q-.437.093-.875.156-.421.062-.812.062-.656 0-1.125-.14t-.781-.422q-.313-.281-.47-.703-.14-.438-.14-1.032v-3.234h-1.765v-1.234h1.765v-1.688l1.625-.437v2.125h2.578v1.234h-2.578v3.11q0 .562.266.859.266.281.875.281.39 0 .75-.062.375-.063.687-.141v1.266z"/><path d="M710.142 284.398h-1.18l-3.395-22.607"/><path stroke="#b45f06" stroke-linejoin="round" stroke-linecap="butt" d="M710.142 284.398h-1.18l-2.504-16.674"/><path fill="#b45f06" stroke="#b45f06" stroke-linecap="butt" d="m708.092 267.479-2.308-4.243-.96 4.733z" fill-rule="evenodd"/><path d="M86.517 396.424h223.496v26.016H86.517z"/><path fill="#000" d="M100.455 416.966q-1.594-1.344-2.391-2.875-.781-1.531-.781-3.312 0-.985.234-1.86.234-.89.656-1.656.438-.781 1.016-1.453.594-.688 1.297-1.281l.906.906q-1.266 1.14-1.906 2.469-.64 1.312-.64 2.765 0 1.485.64 2.844.64 1.36 1.906 2.484l-.937.97zm4.874-9.344v4.313q0 .531.203.812.204.282.61.282.39 0 .75-.328.375-.344.781-.891v-4.188h1.594v6.61h-1.375l-.031-.969q-.22.25-.438.453-.203.203-.453.36-.25.14-.547.218-.297.094-.656.094-.5 0-.89-.172-.376-.172-.641-.469-.25-.312-.375-.734t-.125-.953v-4.438h1.593zm9.688 6.61v-4.313q0-1.078-.797-1.078-.407 0-.782.328-.359.313-.765.875v4.188h-1.594v-6.61h1.375l.031.97q.203-.25.422-.454.219-.219.469-.36.266-.14.547-.218.297-.078.656-.078.516 0 .89.172.376.156.626.468.265.297.39.72.125.421.125.952v4.438h-1.593zm5.53-7.953h-1.874v-1.25h3.5v7.968h1.906v1.235h-5.64v-1.235h2.109v-6.718zm11.14 4.593q0 .782-.218 1.438-.219.64-.64 1.11-.422.452-1.032.718-.593.25-1.375.25-.734 0-1.312-.219-.578-.218-.985-.64-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.781.219-1.422.234-.656.64-1.11.423-.452 1.032-.702.61-.25 1.375-.25.734 0 1.312.219.579.218.985.656.406.422.61 1.062.218.625.218 1.453zm-1.655.047q0-1.031-.391-1.547-.375-.515-1.14-.515-.407 0-.704.156t-.484.453q-.188.281-.281.656-.078.375-.078.797 0 1.047.406 1.578.422.516 1.14.516.407 0 .688-.156.297-.172.484-.453.188-.282.266-.657.094-.39.094-.828zm7.171 3.313-.031-.86q-.219.22-.453.407-.219.187-.5.328-.266.125-.594.203-.312.078-.703.078-.5 0-.89-.156-.376-.156-.641-.422-.266-.266-.406-.64-.125-.376-.125-.829 0-.469.203-.86.203-.405.609-.687.406-.297 1.016-.453.609-.156 1.422-.156h.875v-.406q0-.25-.079-.453-.078-.204-.234-.344-.156-.156-.406-.235-.25-.078-.625-.078-.594 0-1.172.14-.563.126-1.094.376v-1.266q.485-.203 1.094-.312.625-.125 1.297-.125.734 0 1.265.14.532.141.86.422.344.266.5.688.172.422.172.984v4.516h-1.36zm-.218-2.922h-.97q-.405 0-.687.078-.281.078-.468.219-.172.125-.25.312-.079.172-.079.375 0 .407.25.625.266.203.72.203.327 0 .687-.234.359-.25.797-.687v-.891zm7.562 2.922-.031-.969q-.22.25-.438.453-.219.203-.484.36-.25.14-.547.218-.281.094-.625.094-.594 0-1.047-.234-.453-.235-.766-.672-.312-.438-.468-1.047-.157-.625-.157-1.39 0-.907.25-1.563.266-.672.719-1.11.453-.453 1.078-.656.625-.219 1.36-.219.25 0 .5.032.25.03.437.093v-2.593h1.594v9.203h-1.375zm-2.906-3.25q0 .547.078.937.078.375.218.625.157.25.36.375.219.11.5.11.39 0 .75-.328.375-.329.781-.891v-2.89q-.187-.079-.469-.126-.265-.047-.547-.047-.39 0-.703.157-.297.156-.515.453-.22.281-.344.703-.11.406-.11.922zm6.374 3.25v-8.5h5.11v1.344h-3.485v2.125h3.328v1.312h-3.328v2.36h3.485v1.359h-5.11zm10.719 0h-1.828l-2.61-6.61h1.766l1.375 3.75.406 1.204.406-1.157 1.391-3.797h1.703l-2.61 6.61zm9.406-3.813q0 .157-.016.422-.016.266-.031.485h-4.344q0 .437.125.78.14.329.375.548.25.218.594.343.344.11.75.11.484 0 1.031-.063.563-.078 1.156-.25v1.266q-.265.062-.562.125-.297.062-.61.11-.312.046-.64.062-.313.031-.61.031-.75 0-1.359-.219-.594-.218-1.016-.64-.406-.422-.64-1.032-.219-.625-.219-1.437 0-.797.219-1.453.234-.672.625-1.14.406-.47.984-.72.578-.265 1.297-.265.703 0 1.234.219.547.218.907.609.36.39.547.937.203.532.203 1.172zm-1.625-.234q.015-.39-.094-.672-.11-.297-.297-.484-.172-.188-.406-.282-.235-.093-.516-.093-.594 0-.984.406-.375.406-.453 1.125h2.75zm7.124 4.047v-4.313q0-1.078-.796-1.078-.407 0-.782.328-.359.313-.765.875v4.188h-1.594v-6.61h1.375l.031.97q.203-.25.422-.454.219-.219.469-.36.265-.14.547-.218.297-.078.656-.078.516 0 .89.172.376.156.626.468.265.297.39.72.125.421.125.952v4.438h-1.594zm8.844-.063q-.438.094-.875.157-.422.062-.813.062-.656 0-1.125-.14-.468-.141-.78-.422-.313-.282-.47-.704-.14-.437-.14-1.03v-3.235h-1.766v-1.235h1.766v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.11q0 .562.265.859.266.28.875.28.391 0 .75-.062.375-.062.688-.14v1.265zm7.61-2.515q0 .703-.267 1.218-.25.516-.718.86-.453.328-1.094.5-.64.156-1.39.156-.673 0-1.298-.078t-1.234-.266v-1.578q.297.094.625.188.328.093.656.172.328.062.64.109.33.031.642.031.453 0 .765-.078.328-.078.531-.219.204-.14.282-.328.093-.187.093-.406 0-.313-.187-.531-.172-.22-.469-.375-.281-.157-.656-.282-.375-.14-.766-.28-.375-.157-.75-.345-.375-.187-.672-.468-.296-.282-.484-.672-.172-.39-.172-.938 0-.5.188-.937.187-.453.578-.781.39-.344 1-.547.61-.203 1.469-.203.25 0 .53.03.282.016.548.063.265.032.515.078.266.047.47.11v1.453q-.204-.078-.454-.14-.25-.063-.516-.11-.265-.047-.53-.078-.267-.031-.5-.031-.438 0-.735.078-.282.062-.47.187-.187.125-.28.297-.078.172-.078.39 0 .266.171.454.188.187.485.344.297.156.672.296.375.125.765.282.39.156.766.359.375.188.672.469.297.265.469.656.187.375.187.89zm7.046 2.515q-.438.094-.875.157-.422.062-.813.062-.656 0-1.125-.14-.469-.141-.781-.422-.313-.282-.469-.704-.14-.437-.14-1.03v-3.235h-1.766v-1.235h1.766v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.11q0 .562.265.859.266.28.875.28.39 0 .75-.062.375-.062.688-.14v1.265zm6.015.063-.031-.86q-.219.22-.453.407-.22.187-.5.328-.266.125-.594.203-.313.078-.703.078-.5 0-.89-.156-.376-.156-.641-.422-.266-.266-.407-.64-.125-.376-.125-.829 0-.469.203-.86.204-.405.61-.687.406-.297 1.015-.453.61-.156 1.422-.156h.875v-.406q0-.25-.078-.453-.078-.204-.234-.344-.156-.156-.406-.235-.25-.078-.625-.078-.594 0-1.172.14-.563.126-1.094.376v-1.266q.484-.203 1.094-.312.625-.125 1.297-.125.734 0 1.265.14.531.141.86.422.343.266.5.688.171.422.171.984v4.516h-1.359zm-.219-2.922h-.968q-.407 0-.688.078-.281.078-.469.219-.172.125-.25.312-.078.172-.078.375 0 .407.25.625.266.203.719.203.328 0 .687-.234.36-.25.797-.687v-.891zm7.656-1.125q.016-.36-.031-.625-.047-.266-.156-.422-.11-.172-.266-.25-.156-.078-.36-.078-.343 0-.718.297-.375.281-.828.937v4.188h-1.625v-6.61h1.437l.063.954q.156-.25.36-.454.202-.203.452-.343.25-.141.563-.22.312-.077.672-.077.5 0 .89.172.391.172.641.515.266.328.39.844.141.5.11 1.172h-1.594zm8.531 3.984q-.437.094-.875.157-.422.062-.812.062-.656 0-1.125-.14-.469-.141-.781-.422-.313-.282-.47-.704-.14-.437-.14-1.03v-3.235h-1.765v-1.235h1.765v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.11q0 .562.266.859.265.28.875.28.39 0 .75-.062.375-.062.687-.14v1.265zm3.39-9.64q1.594 1.328 2.376 2.875.78 1.53.78 3.312 0 .985-.233 1.86-.235.875-.657 1.656-.406.781-1 1.453-.578.687-1.281 1.281l-.922-.906q1.281-1.14 1.922-2.469.64-1.328.64-2.781 0-1.469-.64-2.828-.64-1.375-1.922-2.516l.938-.937z"/><path d="M102.33 388.92h-2.442l-7.031-39.509"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M102.33 388.92h-2.442l-5.98-33.602"/><path fill="#000" stroke="#000" stroke-linecap="butt" d="m95.534 355.029-2.42-4.179-.832 4.758z" fill-rule="evenodd"/><path d="M164.058 381.416h145.826v14.866H164.058z"/><path fill="#000" d="M177.995 396.383q-1.594-1.343-2.39-2.875-.782-1.53-.782-3.312 0-.984.235-1.86.234-.89.656-1.656.437-.78 1.016-1.453.593-.687 1.296-1.281l.907.906q-1.266 1.14-1.907 2.469-.64 1.312-.64 2.766 0 1.484.64 2.843.641 1.36 1.907 2.485l-.938.968zm4.875-9.343v4.312q0 .531.203.813.203.28.61.28.39 0 .75-.327.374-.344.78-.89v-4.188h1.594v6.61h-1.375l-.03-.97q-.22.25-.438.453-.203.204-.453.36-.25.14-.547.219-.297.093-.657.093-.5 0-.89-.172-.375-.171-.64-.468-.25-.313-.376-.735-.125-.422-.125-.953v-4.437h1.594zm9.687 6.61v-4.313q0-1.079-.797-1.079-.406 0-.78.329-.36.312-.767.875v4.187h-1.593v-6.61h1.375l.03.97q.204-.25.423-.454.219-.218.469-.36.265-.14.546-.218.297-.078.657-.078.515 0 .89.172.375.156.625.469.266.297.39.718.126.422.126.954v4.437h-1.594zm5.531-7.954h-1.875v-1.25h3.5v7.969h1.906v1.234h-5.64v-1.234h2.11v-6.72zm11.14 4.594q0 .78-.218 1.437-.219.64-.64 1.11-.423.453-1.032.718-.594.25-1.375.25-.734 0-1.313-.218-.578-.22-.984-.641-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.78.219-1.421.234-.657.64-1.11.422-.453 1.032-.703.609-.25 1.375-.25.734 0 1.312.219.578.219.984.656.407.422.61 1.063.219.625.219 1.453zm-1.656.047q0-1.032-.39-1.547-.375-.516-1.141-.516-.406 0-.703.156-.297.157-.484.453-.188.282-.282.657-.078.375-.078.797 0 1.046.406 1.578.422.515 1.141.515.406 0 .688-.156.296-.172.484-.453.187-.281.266-.656.093-.39.093-.828zm7.172 3.312-.031-.86q-.22.22-.453.407-.22.187-.5.328-.266.125-.594.203-.313.078-.703.078-.5 0-.891-.156-.375-.156-.64-.422-.266-.265-.407-.64-.125-.375-.125-.829 0-.468.203-.859.203-.406.61-.687.406-.297 1.015-.454.61-.156 1.422-.156h.875v-.406q0-.25-.078-.453t-.234-.344q-.157-.156-.407-.234-.25-.078-.625-.078-.593 0-1.171.14-.563.125-1.094.375v-1.265q.484-.204 1.094-.313.625-.125 1.296-.125.735 0 1.266.14.531.141.86.423.343.265.5.687.171.422.171.984v4.516h-1.36zm-.219-2.922h-.969q-.406 0-.687.078t-.469.22q-.172.124-.25.312-.078.171-.078.375 0 .406.25.625.266.203.719.203.328 0 .687-.235.36-.25.797-.687v-.89zm7.562 2.922-.03-.969q-.22.25-.438.453-.22.204-.485.36-.25.14-.547.219-.28.093-.625.093-.593 0-1.046-.234-.454-.234-.766-.672-.313-.437-.469-1.047-.156-.625-.156-1.39 0-.907.25-1.563.266-.672.719-1.11.453-.452 1.078-.656.625-.218 1.36-.218.25 0 .5.03.25.032.437.095v-2.594h1.593v9.203h-1.375zm-2.906-3.25q0 .547.078.938.078.375.219.625.156.25.36.375.218.109.5.109.39 0 .75-.328.374-.328.78-.89v-2.891q-.187-.079-.468-.125-.266-.047-.547-.047-.39 0-.703.156-.297.156-.516.453-.218.281-.343.703-.11.406-.11.922zm6.375 3.25v-8.5h5.11v1.344h-3.485v2.125h3.328v1.312h-3.328v2.36h3.484v1.36h-5.11zm10.718 0h-1.828l-2.61-6.61h1.767l1.375 3.75.406 1.204.406-1.156 1.39-3.797h1.704l-2.61 6.61zm9.406-3.812q0 .156-.015.421-.016.266-.031.485h-4.344q0 .437.125.781.14.328.375.547.25.219.594.344.343.11.75.11.484 0 1.03-.063.563-.079 1.157-.25v1.265q-.266.063-.562.125-.297.063-.61.11-.312.046-.64.062-.313.031-.61.031-.75 0-1.36-.218-.593-.22-1.015-.641-.406-.422-.64-1.031-.22-.625-.22-1.438 0-.797.22-1.453.234-.672.625-1.14.406-.47.984-.72.578-.265 1.297-.265.703 0 1.234.219.547.219.906.61.36.39.547.937.203.53.203 1.172zm-1.625-.235q.016-.39-.093-.672-.11-.297-.297-.484-.172-.188-.406-.281-.235-.094-.516-.094-.594 0-.984.406-.375.406-.454 1.125h2.75zm7.125 4.047v-4.312q0-1.079-.797-1.079-.406 0-.781.329-.36.312-.766.875v4.187h-1.593v-6.61h1.375l.03.97q.204-.25.423-.454.218-.218.468-.36.266-.14.547-.218.297-.078.657-.078.515 0 .89.172.375.156.625.469.266.297.39.718.126.422.126.954v4.437h-1.594zm8.844-.062q-.438.093-.875.156-.422.062-.813.062-.656 0-1.125-.14t-.781-.422q-.313-.281-.469-.703-.14-.438-.14-1.032v-3.234h-1.766v-1.234h1.765v-1.688l1.625-.437v2.125h2.579v1.234h-2.579v3.11q0 .562.266.859.266.281.875.281.39 0 .75-.062.375-.063.688-.141v1.266zm2.171.062v-8.5h5.11v1.344h-3.485v2.125h3.328v1.312h-3.328v2.36h3.485v1.36h-5.11zm10.969 0v-4.312q0-1.079-.797-1.079-.406 0-.781.329-.36.312-.766.875v4.187h-1.594v-6.61h1.375l.031.97q.204-.25.422-.454.22-.218.47-.36.265-.14.546-.218.297-.078.656-.078.516 0 .89.172.376.156.626.469.265.297.39.718.125.422.125.954v4.437h-1.593zm7.546 0-.03-.969q-.22.25-.438.453-.22.204-.485.36-.25.14-.547.219-.28.093-.625.093-.593 0-1.047-.234-.453-.234-.765-.672-.313-.437-.469-1.047-.156-.625-.156-1.39 0-.907.25-1.563.265-.672.719-1.11.453-.452 1.078-.656.625-.218 1.36-.218.25 0 .5.03.25.032.437.095v-2.594h1.593v9.203h-1.375zm-2.906-3.25q0 .547.078.938.078.375.219.625.156.25.36.375.218.109.5.109.39 0 .75-.328.374-.328.78-.89v-2.891q-.187-.079-.468-.125-.266-.047-.547-.047-.39 0-.703.156-.297.156-.516.453-.219.281-.344.703-.109.406-.109.922zm7.594-6.453q1.593 1.328 2.375 2.875.78 1.531.78 3.312 0 .985-.234 1.86-.234.875-.656 1.656-.406.781-1 1.453-.578.688-1.281 1.281l-.922-.906q1.281-1.14 1.922-2.469.64-1.328.64-2.78 0-1.47-.64-2.829-.64-1.375-1.922-2.516l.938-.937z"/><path d="M317.42 0h153.984v39.496H317.42z"/><path fill="#b45f06" d="M336.654 24.36h-1.578l-1.515-3.266q-.172-.375-.36-.625-.172-.25-.39-.39-.204-.14-.454-.203-.234-.063-.546-.063h-.657v4.547h-1.39V14.141h2.734q.89 0 1.531.203.64.188 1.047.547.422.344.61.844.187.5.187 1.094 0 .484-.14.906-.141.422-.422.781-.266.344-.688.594-.406.25-.937.375.437.156.734.531.297.36.61.985l1.624 3.359zm-2.234-7.406q0-.828-.516-1.235-.5-.406-1.437-.406h-1.313v3.375h1.125q.5 0 .89-.11.392-.109.673-.327.281-.235.422-.547.156-.328.156-.75zm10.687 3.062q0 .297-.015.5 0 .188-.016.36h-5.5q0 1.203.672 1.843.672.641 1.938.641.343 0 .687-.016.344-.03.656-.078.328-.047.61-.11.297-.062.547-.124v1.11q-.547.155-1.25.25-.704.109-1.454.109-1 0-1.734-.266-.719-.281-1.187-.797-.47-.531-.688-1.281-.219-.75-.219-1.703 0-.828.235-1.563.234-.75.687-1.297.469-.562 1.125-.89.672-.328 1.516-.328.812 0 1.437.265.64.25 1.078.719.438.469.657 1.156.218.672.218 1.5zm-1.406-.187q.016-.532-.11-.953-.124-.438-.39-.75-.25-.313-.64-.485-.391-.187-.907-.187-.453 0-.828.172-.36.171-.625.484-.265.313-.437.75-.157.438-.188.969h4.125zm9.797 2.39q0 .407-.14.735-.141.328-.391.593-.235.25-.563.438-.312.172-.687.297-.36.11-.75.156-.375.063-.735.063-.796 0-1.468-.079-.672-.062-1.313-.218v-1.25q.688.187 1.36.297.687.093 1.359.093.984 0 1.453-.265.469-.266.469-.75 0-.219-.078-.375-.078-.172-.282-.328-.187-.157-.593-.313-.407-.172-1.125-.375-.532-.156-.985-.36-.437-.202-.765-.468-.328-.281-.516-.64-.187-.376-.187-.876 0-.328.14-.718.156-.391.516-.72.375-.343 1-.562.625-.218 1.562-.218.469 0 1.032.046.562.047 1.171.172v1.22q-.64-.157-1.218-.235-.578-.078-1-.078-.5 0-.86.078-.343.078-.562.218-.203.141-.297.329-.094.171-.094.39 0 .203.078.375t.297.344q.235.156.625.313.406.156 1.047.343.688.203 1.156.438.485.218.782.5.296.265.421.61.141.343.141.78zm9.406-1.843q0 .906-.265 1.671-.25.766-.735 1.313-.484.531-1.187.844-.688.297-1.563.297-.843 0-1.515-.266-.672-.266-1.141-.766-.453-.515-.703-1.265-.25-.75-.25-1.719 0-.922.25-1.672.266-.75.75-1.297.484-.547 1.172-.843.703-.297 1.594-.297.843 0 1.5.265.671.25 1.14.766.469.5.703 1.25.25.75.25 1.719zm-1.39.062q0-.734-.157-1.265-.156-.547-.453-.907-.297-.375-.734-.547-.422-.187-.938-.187-.609 0-1.046.234-.438.235-.72.64-.265.392-.405.923-.125.531-.125 1.11 0 .718.156 1.265.172.547.469.922.296.359.718.546.422.172.953.172.61 0 1.032-.234.437-.234.718-.625.282-.406.407-.938.125-.53.125-1.109zm9.672 3.922h-1.22l-.046-1.266q-.36.407-.672.672-.312.266-.625.438-.312.172-.64.234-.313.063-.657.063-1.219 0-1.844-.704-.609-.718-.609-2.156v-5.125h1.36v5.016q0 1.797 1.359 1.797.25 0 .484-.063.25-.078.5-.265.266-.188.563-.5.312-.313.687-.782v-5.203h1.36v7.844zm2.812-7.844h1.234l.047 1.438q.688-.828 1.36-1.203.687-.375 1.375-.375 1.218 0 1.843.796.625.782.579 2.329h-1.375q.03-1.032-.297-1.485-.328-.468-.953-.468-.266 0-.547.093-.282.094-.578.313-.282.218-.61.562-.328.328-.703.797v5.047h-1.375v-7.844zm14.563 7.547q-.532.203-1.094.297-.547.11-1.14.11-1.86 0-2.876-1-1-1.016-1-2.954 0-.937.281-1.687.297-.766.813-1.297.531-.547 1.25-.828.734-.297 1.61-.297.609 0 1.14.094.531.078 1.016.265v1.297q-.5-.265-1.032-.375-.531-.125-1.093-.125-.516 0-.985.203-.469.188-.828.563-.344.375-.547.922-.203.53-.203 1.218 0 1.422.688 2.125.703.703 1.921.703.563 0 1.079-.125.515-.125 1-.375v1.266zm9.328-4.047q0 .297-.016.5 0 .188-.016.36h-5.5q0 1.203.672 1.843.672.641 1.938.641.344 0 .687-.016.344-.03.657-.078.328-.047.609-.11.297-.062.547-.124v1.11q-.547.155-1.25.25-.703.109-1.453.109-1 0-1.735-.266-.718-.281-1.187-.797-.469-.531-.688-1.281-.218-.75-.218-1.703 0-.828.234-1.563.234-.75.687-1.297.47-.562 1.125-.89.672-.328 1.516-.328.813 0 1.438.265.64.25 1.078.719.437.469.656 1.156.219.672.219 1.5zm-1.407-.187q.016-.532-.109-.953-.125-.438-.39-.75-.25-.313-.641-.485-.39-.187-.906-.187-.454 0-.829.172-.359.171-.625.484-.265.313-.437.75-.156.438-.188.969h4.125zm19.25-4.5h-3.015v9.031h-1.406v-9.031h-3.032V14.14h7.453v1.188zm4.594 2.312h-2.312v-1.125h3.687v6.703h2.344v1.141h-6.297v-1.14h2.578v-5.58zm.485-4.422q.218 0 .406.094.203.078.344.234.156.141.234.329.078.187.078.421 0 .22-.078.422-.078.188-.234.344-.141.14-.344.219-.188.078-.406.078-.235 0-.438-.078-.187-.078-.328-.219-.14-.156-.234-.344-.079-.203-.079-.421 0-.235.079-.422.093-.188.234-.329.14-.156.328-.234.203-.094.438-.094zm11.234 11.141v-5.64q0-.36-.031-.594-.016-.235-.078-.375-.063-.141-.157-.188-.078-.062-.218-.062-.157 0-.297.093-.125.094-.282.313-.14.203-.328.562-.187.344-.437.844v5.047h-1.235v-5.484q0-.438-.03-.704-.032-.265-.095-.406-.046-.156-.14-.203-.094-.062-.235-.062-.14 0-.265.078t-.281.281q-.141.203-.329.563-.187.343-.453.89v5.047h-1.25v-7.844h1.047l.063 1.485q.203-.438.39-.75.188-.313.39-.5.204-.204.438-.282.235-.093.516-.093.625 0 .953.421.328.407.328 1.266.188-.406.36-.719.187-.312.39-.53.219-.22.469-.329.25-.11.578-.11 1.469 0 1.469 2.266v5.719h-1.25zm5.875-6.719h-2.313v-1.125h3.688v6.703h2.344v1.141h-6.297v-1.14h2.578v-5.58zm.484-4.422q.219 0 .407.094.203.078.343.234.157.141.235.329.078.187.078.421 0 .22-.078.422-.078.188-.235.344-.14.14-.343.219-.188.078-.407.078-.234 0-.437-.078-.188-.078-.328-.219-.141-.156-.235-.344-.078-.203-.078-.421 0-.235.078-.422.094-.188.235-.329.14-.156.328-.234.203-.094.437-.094zm5.64 3.297h1.22l.047 1.266q.343-.406.656-.672.328-.281.64-.438.313-.171.625-.234.329-.062.672-.062 1.203 0 1.828.718.625.703.625 2.141v5.125h-1.359v-5.016q0-.922-.344-1.359-.343-.438-1.031-.438-.25 0-.484.079-.235.062-.5.25-.25.187-.563.5-.297.312-.672.78v5.204h-1.36v-7.844zm14.454 1.11q.219.265.328.64.125.36.125.782 0 .609-.219 1.109-.218.5-.625.86-.406.359-.984.562-.562.203-1.234.203-.5 0-.938-.11-.422-.109-.672-.265-.14.219-.25.422-.093.187-.093.437 0 .297.28.5.282.188.75.203l2.063.078q.594.016 1.078.157.5.125.86.375t.547.625q.203.36.203.843 0 .532-.235 1-.218.47-.687.813-.469.36-1.203.563-.719.218-1.719.218-.953 0-1.625-.156-.672-.14-1.11-.422-.421-.265-.624-.64-.188-.36-.188-.813 0-.563.266-1 .265-.438.828-.828-.203-.094-.36-.235-.14-.14-.234-.312t-.14-.36q-.047-.187-.047-.359 0-.515.234-.937.234-.422.563-.797-.141-.172-.266-.344-.11-.172-.188-.375t-.125-.422q-.046-.234-.046-.531 0-.61.218-1.11.235-.515.625-.874.407-.36.969-.547.578-.203 1.266-.203.28 0 .547.046.265.032.468.094h2.844v1.11h-1.25zm-4.719 7.875q0 .546.578.796.579.266 1.61.266.64 0 1.078-.125.453-.11.719-.312.265-.188.375-.438.125-.234.125-.5 0-.469-.391-.703-.39-.234-1.187-.266l-2.047-.078q-.266.172-.438.344-.156.172-.25.328-.094.172-.14.344-.032.172-.032.344zm.407-6.422q0 .375.125.687.125.313.343.532.235.218.547.343.313.11.688.11.406 0 .718-.125.313-.141.532-.375.218-.235.328-.532.11-.312.11-.64 0-.375-.126-.688-.125-.312-.36-.531-.218-.219-.53-.344-.297-.125-.672-.125-.407 0-.735.14-.312.142-.531.376-.203.234-.328.547-.11.297-.11.625z"/><path d="M803.546 174.436v-153H471.401"/><path stroke="#b45f06" stroke-linejoin="round" stroke-linecap="butt" stroke-dasharray="4.0,3.0" d="M803.546 174.436v-153H471.401"/><path fill="#f4cccc" d="M174.777 181h78.992v74.992h-78.992z" fill-rule="evenodd"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M174.777 181h78.992v74.992h-78.992z"/><path fill="#000" d="M195.11 205q0 .593-.25 1.062-.235.453-.688.75-.437.297-1.062.453-.625.14-1.36.14-.343 0-.687-.03-.328-.016-.64-.063-.313-.032-.594-.078-.266-.047-.485-.11V206q.485.188 1.094.297.61.094 1.39.094.563 0 .954-.078.39-.094.64-.266.25-.172.36-.422.125-.25.125-.562 0-.344-.203-.594-.188-.25-.5-.438-.313-.187-.72-.343-.39-.172-.812-.328-.406-.172-.812-.375-.406-.204-.719-.47-.312-.265-.5-.624-.187-.375-.187-.875 0-.438.171-.86.188-.421.563-.75.39-.328.984-.53.61-.204 1.453-.204.204 0 .454.031.265.016.515.047t.5.078q.266.047.469.094v1.047q-.5-.14-1-.219-.5-.078-.969-.078-1 0-1.469.344-.468.328-.468.89 0 .344.187.594.203.235.516.438.312.187.703.36.406.155.812.327.422.156.829.36.406.203.718.484.313.281.5.656.188.36.188.875zm7.406-1.313q0 .234-.016.406 0 .156-.015.297h-4.579q0 1 .547 1.547.563.53 1.625.53.282 0 .563-.015.297-.03.562-.062.266-.047.5-.094.25-.047.453-.11v.938q-.453.125-1.046.203-.579.078-1.204.078-.828 0-1.437-.218-.61-.235-1-.657-.39-.437-.578-1.062-.172-.625-.172-1.422 0-.687.187-1.297.204-.625.579-1.094.39-.468.937-.734.563-.281 1.266-.281.672 0 1.203.219.531.218.89.609.36.39.547.953.188.563.188 1.266zm-1.188-.172q.032-.422-.078-.781-.11-.375-.328-.625-.219-.266-.547-.407-.312-.156-.75-.156-.36 0-.672.156-.312.14-.53.407-.22.25-.36.625-.125.359-.157.78h3.422zm3.266-2.75h1.03l.032 1.203q.578-.703 1.14-1.016.563-.312 1.141-.312 1.016 0 1.532.656.53.656.484 1.953h-1.14q.015-.86-.25-1.234-.266-.39-.797-.39-.22 0-.454.077-.234.078-.484.266-.234.172-.516.453-.265.281-.578.672v4.203h-1.14v-6.531zm6.437 0h1.297l1.594 4.312.343 1.063.36-1.078 1.593-4.297h1.25l-2.578 6.531h-1.297l-2.562-6.531zm10.172.937h-1.938v-.937h3.078v5.594h1.953v.937h-5.234v-.937h2.14v-4.657zm.39-3.687q.203 0 .36.078.156.062.28.187.126.125.188.282.078.156.078.36 0 .17-.078.343-.062.156-.187.281-.125.125-.281.203-.157.063-.36.063-.187 0-.344-.063-.156-.078-.28-.203-.126-.125-.204-.281-.062-.172-.062-.344 0-.203.062-.36.078-.156.203-.28.125-.126.281-.188.157-.078.344-.078zm9.797 9.047q-.453.156-.922.234-.453.094-.953.094-1.547 0-2.39-.844-.829-.844-.829-2.453 0-.766.234-1.39.25-.641.672-1.094.438-.454 1.047-.688.61-.25 1.344-.25.5 0 .937.078.454.063.86.235v1.078q-.438-.22-.875-.313-.438-.11-.906-.11-.438 0-.829.173-.375.156-.671.468-.297.313-.47.766-.155.438-.155 1.016 0 1.172.562 1.765.578.594 1.61.594.453 0 .89-.11.438-.109.844-.312v1.063zm7.765-3.375q0 .234-.015.406 0 .156-.016.297h-4.578q0 1 .547 1.547.562.53 1.625.53.28 0 .562-.015.297-.03.563-.062.265-.047.5-.094.25-.047.453-.11v.938q-.453.125-1.047.203-.578.078-1.203.078-.828 0-1.438-.218-.61-.235-1-.657-.39-.437-.578-1.062-.172-.625-.172-1.422 0-.687.188-1.297.203-.625.578-1.094.39-.468.937-.734.563-.281 1.266-.281.672 0 1.203.219.531.218.89.609.36.39.548.953.187.563.187 1.266zm-1.187-.172q.03-.422-.078-.781-.11-.375-.329-.625-.218-.266-.546-.407-.313-.156-.75-.156-.36 0-.672.156-.313.14-.532.407-.218.25-.359.625-.125.359-.156.78h3.422zm-38.648 11.281-.562 8.5h-1.516l-1.046-3.031-.297-.969-.297 1.047-.985 2.953h-1.453l-.578-8.5h1.094l.328 5.781.094 1.594.406-1.36 1.031-3.156h.797l1.188 3.391.406 1.125.016-1.172.343-6.203h1.032zm7.032 5.188q0 .75-.22 1.39-.218.64-.624 1.094-.39.437-.985.687-.578.25-1.312.25-.703 0-1.266-.203-.547-.218-.937-.64-.375-.438-.594-1.063-.203-.625-.203-1.437 0-.75.219-1.375.218-.64.61-1.094.405-.453.983-.703.594-.25 1.329-.25.703 0 1.25.219.562.218.937.64.39.422.594 1.047.219.625.219 1.438zm-1.157.046q0-.609-.14-1.062-.14-.453-.39-.75-.235-.297-.595-.453-.359-.156-.797-.156-.5 0-.859.203-.36.187-.594.53-.234.33-.343.767-.11.437-.11.921 0 .61.14 1.063.141.453.376.766.25.296.594.453.359.14.796.14.516 0 .875-.187.36-.203.594-.531.235-.344.344-.782.11-.437.11-.922zm3.063-3.265h1.03l.032 1.203q.578-.703 1.14-1.016.563-.312 1.141-.312 1.016 0 1.532.656.53.656.484 1.953h-1.14q.015-.86-.25-1.234-.266-.39-.798-.39-.218 0-.453.077-.234.078-.484.266-.234.172-.516.453-.265.281-.578.672v4.203h-1.14v-6.531zm12.937 6.531h-1.563l-3.047-3.5v3.5h-1.125v-9.203h1.125v5.656l2.938-2.984h1.5l-3.063 3.015 3.235 3.516zm6.968-3.61q0 .235-.015.407 0 .156-.016.297h-4.578q0 1 .547 1.547.562.53 1.625.53.281 0 .562-.015.297-.03.563-.062.265-.047.5-.094.25-.047.453-.11v.938q-.453.125-1.047.203-.578.078-1.203.078-.828 0-1.438-.218-.609-.235-1-.657-.39-.437-.578-1.062-.172-.625-.172-1.422 0-.687.188-1.297.203-.625.578-1.094.39-.468.938-.734.562-.281 1.265-.281.672 0 1.203.219.532.218.891.609.36.39.547.953.187.563.187 1.266zm-1.187-.171q.031-.422-.078-.781-.11-.375-.328-.625-.22-.266-.547-.407-.313-.156-.75-.156-.36 0-.672.156-.313.14-.531.407-.22.25-.36.625-.125.359-.156.78h3.422zm3.265-2.75h1.031l.032 1.203q.578-.703 1.14-1.016.563-.312 1.14-.312 1.017 0 1.532.656.531.656.485 1.953h-1.141q.016-.86-.25-1.234-.266-.39-.797-.39-.219 0-.453.077-.234.078-.484.266-.235.172-.516.453-.266.281-.578.672v4.203h-1.14v-6.531zm-27.546 15h-1.953v-.969h5.078v.969h-1.953v6.547h1.953v.984h-5.078v-.984h1.953v-6.547zm5.297 1h1l.047 1.047q.281-.328.547-.547.281-.235.531-.375t.516-.188q.28-.062.562-.062 1.016 0 1.531.61.516.593.516 1.78v4.266h-1.14v-4.172q0-.765-.282-1.125-.281-.375-.86-.375-.202 0-.406.063-.187.062-.406.218-.219.141-.469.407-.25.265-.562.656v4.328h-1.125v-6.531zm9.547.937H215.6v-.937h3.078v5.594h1.953v.937h-5.234v-.937h2.14v-4.657zm.39-3.687q.203 0 .36.078.156.062.28.187.126.125.188.282.078.156.078.36 0 .17-.078.343-.062.156-.187.281-.125.125-.281.203-.157.063-.36.063-.187 0-.344-.063-.156-.078-.28-.203-.126-.125-.204-.281-.062-.172-.062-.344 0-.203.062-.36.078-.156.203-.28.125-.126.281-.188.157-.078.344-.078zm9.984 9.187q-.39.094-.797.14-.406.048-.843.048-1.219 0-1.828-.547-.61-.563-.61-1.719v-3.406h-1.828v-.953h1.828v-1.797l1.14-.297v2.094h2.938v.953h-2.937v3.312q0 .704.375 1.063.375.344 1.094.344.312 0 .687-.047.375-.063.781-.156v.968z"/><path d="M193.8 111.049h142.993v26.015H193.8z"/><path fill="#b45f06" d="M209.129 128.856h-1.766l-.703-2.093-.203-.735-.219.75-.672 2.078h-1.781l-.938-6.609h1.516l.469 3.734.11 1.016.28-.906.657-2.016h1.203l.719 2 .296.938.125-1.047.407-3.719h1.437l-.937 6.61zm7.859-3.359q0 .781-.219 1.438-.219.64-.64 1.109-.422.453-1.032.719-.594.25-1.375.25-.734 0-1.312-.22-.578-.218-.985-.64-.406-.422-.625-1.062-.203-.656-.203-1.5 0-.781.219-1.422.234-.656.64-1.11.422-.453 1.032-.703.61-.25 1.375-.25.734 0 1.312.22.578.218.985.655.406.422.609 1.063.219.625.219 1.453zm-1.656.047q0-1.031-.391-1.547-.375-.516-1.14-.516-.407 0-.704.157-.297.156-.484.453-.188.281-.281.656-.079.375-.079.797 0 1.047.407 1.578.422.516 1.14.516.407 0 .688-.157.297-.171.484-.453.188-.28.266-.656.094-.39.094-.828zm7.28-.734q.016-.36-.03-.625-.048-.266-.157-.422-.11-.172-.266-.25-.156-.078-.359-.078-.344 0-.719.296-.375.282-.828.938v4.187h-1.625v-6.609h1.438l.062.953q.156-.25.36-.453.203-.203.453-.344.25-.14.562-.218.313-.079.672-.079.5 0 .89.172.391.172.641.516.266.328.39.844.142.5.11 1.172h-1.593zm7.172 4.046-2.437-3.312v3.312h-1.594v-9.203h1.594v5.39l2.312-2.796h1.984l-2.687 3.016 2.906 3.593h-2.078zm9-3.812q0 .156-.016.422-.015.265-.031.484h-4.344q0 .438.125.781.14.329.375.547.25.22.594.344.344.11.75.11.484 0 1.031-.063.563-.078 1.156-.25v1.266q-.265.062-.562.125-.297.062-.61.109-.312.047-.64.062-.313.032-.61.032-.75 0-1.359-.22-.594-.218-1.015-.64-.407-.422-.641-1.03-.219-.626-.219-1.438 0-.797.219-1.454.234-.671.625-1.14.406-.469.984-.719.578-.266 1.297-.266.703 0 1.235.22.546.218.906.609.36.39.547.937.203.531.203 1.172zm-1.625-.234q.015-.391-.094-.672-.11-.297-.297-.485-.172-.187-.406-.28-.234-.095-.516-.095-.593 0-.984.407-.375.406-.453 1.125h2.75zm7.437 0q.016-.36-.031-.625-.047-.266-.156-.422-.11-.172-.266-.25-.156-.078-.36-.078-.343 0-.718.296-.375.282-.828.938v4.187h-1.625v-6.609h1.437l.063.953q.156-.25.36-.453.202-.203.452-.344.25-.14.563-.218.312-.079.672-.079.5 0 .89.172t.64.516q.266.328.391.844.141.5.11 1.172h-1.594zm8.812 1.468q0 .703-.265 1.22-.25.515-.719.858-.453.329-1.094.5-.64.157-1.39.157-.672 0-1.297-.078-.625-.079-1.235-.266v-1.578q.297.094.625.187.328.094.657.172.328.063.64.11.328.03.64.03.454 0 .766-.077.329-.078.532-.22.203-.14.281-.327.094-.188.094-.406 0-.313-.188-.532-.172-.218-.469-.375-.28-.156-.656-.28-.375-.142-.765-.282-.375-.156-.75-.344-.375-.187-.672-.469-.297-.28-.485-.672-.172-.39-.172-.937 0-.5.188-.938.187-.453.578-.78.39-.345 1-.548.61-.203 1.469-.203.25 0 .531.031.281.016.547.063.266.031.516.078.265.047.468.11v1.453q-.203-.079-.453-.141-.25-.063-.515-.11-.266-.046-.532-.078-.265-.03-.5-.03-.437 0-.734.077-.281.063-.469.188-.187.125-.281.297-.078.172-.078.39 0 .266.172.453.187.188.484.344.297.156.672.297.375.125.766.281.39.157.765.36.375.187.672.468.297.266.469.657.187.375.187.89zm7.047 2.516q-.438.094-.875.156-.422.063-.813.063-.656 0-1.125-.14-.468-.142-.78-.423-.313-.281-.47-.703-.14-.437-.14-1.031v-3.235h-1.766v-1.234h1.766v-1.687l1.625-.438v2.125h2.578v1.234h-2.578v3.11q0 .562.265.86.266.28.875.28.391 0 .75-.062.375-.063.688-.14v1.265zm6.015.062-.03-.859q-.22.219-.454.406-.219.188-.5.328-.266.125-.594.204-.312.078-.703.078-.5 0-.89-.157-.376-.156-.641-.421-.266-.266-.406-.641-.125-.375-.125-.828 0-.469.203-.86.203-.406.61-.687.405-.297 1.015-.453.61-.156 1.422-.156h.875v-.407q0-.25-.079-.453-.078-.203-.234-.344-.156-.156-.406-.234-.25-.078-.625-.078-.594 0-1.172.14-.563.126-1.094.376v-1.266q.485-.203 1.094-.313.625-.125 1.297-.125.734 0 1.265.141.532.14.86.422.344.266.5.687.172.422.172.985v4.515h-1.36zm-.218-2.921h-.97q-.405 0-.687.078-.28.078-.468.218-.172.125-.25.313-.079.172-.079.375 0 .406.25.625.266.203.72.203.327 0 .687-.234.36-.25.797-.688v-.89zm7.656-1.125q.015-.36-.032-.625-.047-.266-.156-.422-.11-.172-.266-.25-.156-.078-.359-.078-.344 0-.719.296-.375.282-.828.938v4.187h-1.625v-6.609h1.438l.062.953q.156-.25.36-.453.203-.203.453-.344.25-.14.562-.218.313-.079.672-.079.5 0 .89.172.391.172.641.516.266.328.39.844.142.5.11 1.172h-1.593zm8.53 3.984q-.437.094-.874.156-.422.063-.813.063-.656 0-1.125-.14-.469-.142-.781-.423-.313-.281-.469-.703-.14-.437-.14-1.031v-3.235h-1.766v-1.234h1.765v-1.687l1.625-.438v2.125h2.579v1.234h-2.579v3.11q0 .562.266.86.266.28.875.28.39 0 .75-.062.375-.063.688-.14v1.265z"/><path d="M196.059 127.362h-3.476l-10.01 46.636"/><path stroke="#b45f06" stroke-linejoin="round" stroke-linecap="butt" d="M196.059 127.362h-3.476l-8.752 40.77"/><path fill="#b45f06" stroke="#b45f06" stroke-linecap="butt" d="m182.216 167.785.663 4.784 2.567-4.09z" fill-rule="evenodd"/><path fill="#f4cccc" d="M262.92 181h78.992v74.992H262.92z" fill-rule="evenodd"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M262.92 181h78.992v74.992H262.92z"/><path fill="#000" d="M283.253 197q0 .593-.25 1.062-.235.453-.688.75-.437.297-1.062.453-.625.14-1.36.14-.343 0-.687-.03-.328-.016-.64-.063-.313-.032-.594-.078-.266-.047-.485-.11V198q.485.188 1.094.297.61.094 1.39.094.563 0 .954-.078.39-.094.64-.266.25-.172.36-.422.125-.25.125-.562 0-.344-.203-.594-.188-.25-.5-.438-.313-.187-.72-.343-.39-.172-.812-.328-.406-.172-.812-.375-.406-.204-.719-.47-.312-.265-.5-.624-.187-.375-.187-.875 0-.438.171-.86.188-.421.563-.75.39-.328.984-.53.61-.204 1.453-.204.204 0 .454.031.265.016.515.047t.5.078q.266.047.469.094v1.047q-.5-.14-1-.219-.5-.078-.969-.078-1 0-1.469.344-.468.328-.468.89 0 .344.187.594.203.235.516.438.312.187.703.36.406.155.812.327.422.156.829.36.406.203.718.484.313.281.5.656.188.36.188.875zm7.406-1.313q0 .234-.016.406 0 .156-.015.297h-4.579q0 1 .547 1.547.563.53 1.625.53.282 0 .563-.015.297-.03.562-.062.266-.047.5-.094.25-.047.453-.11v.938q-.453.125-1.046.203-.579.078-1.204.078-.828 0-1.437-.218-.61-.235-1-.657-.39-.437-.578-1.062-.172-.625-.172-1.422 0-.687.187-1.297.204-.625.579-1.094.39-.468.937-.734.563-.281 1.266-.281.672 0 1.203.219.531.218.89.609.36.39.547.953.188.563.188 1.266zm-1.188-.172q.032-.422-.078-.781-.11-.375-.328-.625-.219-.266-.547-.407-.312-.156-.75-.156-.36 0-.672.156-.312.14-.53.407-.22.25-.36.625-.125.359-.157.78h3.422zm3.266-2.75h1.031l.031 1.203q.578-.703 1.14-1.016.563-.312 1.141-.312 1.016 0 1.532.656.531.656.484 1.953h-1.14q.015-.86-.25-1.234-.266-.39-.797-.39-.22 0-.454.077-.234.078-.484.266-.234.172-.516.453-.265.281-.578.672v4.203h-1.14v-6.531zm6.437 0h1.297l1.594 4.312.343 1.063.36-1.078 1.593-4.297h1.25l-2.578 6.531h-1.297l-2.562-6.531zm10.172.937h-1.938v-.937h3.078v5.594h1.953v.937h-5.234v-.937h2.14v-4.657zm.39-3.687q.203 0 .36.078.156.062.28.187.126.125.188.282.078.156.078.36 0 .17-.078.343-.062.156-.187.281-.125.125-.281.203-.157.063-.36.063-.187 0-.344-.063-.156-.078-.28-.203-.126-.125-.204-.281-.062-.172-.062-.344 0-.203.062-.36.078-.156.203-.28.125-.126.281-.188.157-.078.344-.078zm9.797 9.047q-.453.156-.922.234-.453.094-.953.094-1.547 0-2.39-.844-.829-.844-.829-2.453 0-.766.234-1.39.25-.641.672-1.094.438-.454 1.047-.688.61-.25 1.344-.25.5 0 .937.078.454.063.86.235v1.078q-.438-.22-.875-.313-.438-.11-.906-.11-.438 0-.829.173-.375.156-.671.468-.297.313-.47.766-.155.438-.155 1.016 0 1.172.562 1.765.578.594 1.61.594.453 0 .89-.11.438-.109.844-.312v1.063zm7.765-3.375q0 .234-.015.406 0 .156-.016.297h-4.578q0 1 .547 1.547.562.53 1.625.53.28 0 .562-.015.297-.03.563-.062.265-.047.5-.094.25-.047.453-.11v.938q-.453.125-1.047.203-.578.078-1.203.078-.828 0-1.438-.218-.61-.235-1-.657-.39-.437-.578-1.062-.172-.625-.172-1.422 0-.687.188-1.297.203-.625.578-1.094.39-.468.937-.734.563-.281 1.266-.281.672 0 1.203.219.531.218.89.609.36.39.548.953.187.563.187 1.266zm-1.187-.172q.03-.422-.078-.781-.11-.375-.329-.625-.218-.266-.546-.407-.313-.156-.75-.156-.36 0-.672.156-.313.14-.532.407-.218.25-.359.625-.125.359-.156.78h3.422zm-38.647 11.281-.563 8.5h-1.515l-1.047-3.031-.297-.969-.297 1.047-.984 2.953h-1.454l-.578-8.5h1.094l.328 5.781.094 1.594.406-1.36 1.031-3.156h.797l1.188 3.391.406 1.125.016-1.172.343-6.203h1.032zm7.03 5.188q0 .75-.218 1.39-.219.64-.625 1.094-.39.437-.984.687-.579.25-1.313.25-.703 0-1.266-.203-.546-.218-.937-.64-.375-.438-.594-1.063-.203-.625-.203-1.437 0-.75.219-1.375.219-.64.61-1.094.405-.453.984-.703.593-.25 1.328-.25.703 0 1.25.219.562.218.937.64.39.422.594 1.047.219.625.219 1.438zm-1.156.046q0-.609-.14-1.062-.14-.453-.39-.75-.235-.297-.595-.453-.359-.156-.796-.156-.5 0-.86.203-.36.187-.594.53-.234.33-.343.767-.11.437-.11.921 0 .61.14 1.063.142.453.376.766.25.296.594.453.359.14.797.14.515 0 .875-.187.359-.203.593-.531.235-.344.344-.782.11-.437.11-.922zm3.063-3.265h1.03l.032 1.203q.578-.703 1.14-1.016.563-.312 1.141-.312 1.016 0 1.532.656.53.656.484 1.953h-1.14q.015-.86-.25-1.234-.266-.39-.797-.39-.22 0-.454.077-.234.078-.484.266-.234.172-.516.453-.265.281-.578.672v4.203h-1.14v-6.531zm12.937 6.531h-1.563l-3.046-3.5v3.5h-1.125v-9.203h1.125v5.656l2.937-2.984h1.5l-3.062 3.015 3.234 3.516zm6.968-3.61q0 .235-.015.407 0 .156-.016.297h-4.578q0 1 .547 1.547.562.53 1.625.53.281 0 .562-.015.297-.03.563-.062.265-.047.5-.094.25-.047.453-.11v.938q-.453.125-1.047.203-.578.078-1.203.078-.828 0-1.438-.218-.609-.235-1-.657-.39-.437-.578-1.062-.172-.625-.172-1.422 0-.687.188-1.297.203-.625.578-1.094.39-.468.938-.734.562-.281 1.265-.281.672 0 1.203.219.532.218.891.609.36.39.547.953.187.563.187 1.266zm-1.187-.171q.031-.422-.078-.781-.11-.375-.328-.625-.22-.266-.547-.407-.313-.156-.75-.156-.36 0-.672.156-.313.14-.531.407-.22.25-.36.625-.125.359-.156.78h3.422zm3.265-2.75h1.031l.032 1.203q.578-.703 1.14-1.016.563-.312 1.141-.312 1.016 0 1.531.656.531.656.485 1.953h-1.141q.016-.86-.25-1.234-.266-.39-.797-.39-.219 0-.453.077-.234.078-.484.266-.235.172-.516.453-.266.281-.578.672v4.203h-1.14v-6.531zm-28.163 15.015h-3.609v2.766h3.422v.969h-3.422v3.781h-1.188v-8.5h4.797v.984zm7.766 3.907q0 .234-.016.406 0 .156-.016.297h-4.578q0 1 .547 1.547.563.53 1.625.53.281 0 .563-.015.297-.03.562-.062.266-.047.5-.094.25-.047.453-.11v.938q-.453.125-1.047.203-.578.078-1.203.078-.828 0-1.437-.218-.61-.235-1-.657-.39-.437-.578-1.062-.172-.625-.172-1.422 0-.687.187-1.297.203-.625.578-1.094.391-.468.938-.734.562-.281 1.266-.281.671 0 1.203.219.531.218.89.609.36.39.547.953.188.563.188 1.266zm-1.188-.172q.031-.422-.078-.781-.11-.375-.328-.625-.219-.266-.547-.407-.312-.156-.75-.156-.36 0-.672.156-.312.14-.531.407-.219.25-.36.625-.124.359-.156.78h3.422zm8.266 3.687q-.391.094-.797.14-.407.048-.844.048-1.219 0-1.828-.547-.61-.563-.61-1.719v-3.406h-1.828v-.953h1.828v-1.797l1.141-.297v2.094h2.938v.953h-2.938v3.312q0 .704.375 1.063.375.344 1.094.344.312 0 .687-.047.375-.063.782-.156v.968zm7.14-.14q-.453.156-.922.234-.453.094-.953.094-1.547 0-2.39-.844-.829-.844-.829-2.453 0-.766.235-1.39.25-.641.671-1.094.438-.454 1.047-.688.61-.25 1.344-.25.5 0 .938.078.453.063.859.235v1.078q-.438-.22-.875-.313-.438-.11-.906-.11-.438 0-.828.173-.375.156-.672.468-.297.313-.469.766-.156.438-.156 1.016 0 1.172.562 1.765.578.594 1.61.594.453 0 .89-.11.438-.109.844-.312v1.063zm7.5.234h-1.14v-4.172q0-.75-.282-1.125-.281-.375-.813-.375-.218 0-.422.063-.203.062-.421.218-.204.141-.47.407-.25.265-.577.656v4.328h-1.125v-9.203h1.125v2.672l-.032 1.031q.266-.328.516-.547.266-.219.516-.344.25-.14.515-.203.282-.062.563-.062.969 0 1.5.61.547.593.547 1.78v4.266zm-29.468 16h-4.828v-8.5h4.828v.969h-3.672v2.64h3.531v.97h-3.53v2.937h3.671v.984zm1.61-6.531h1.296l1.594 4.312.343 1.063.36-1.078 1.594-4.297h1.25l-2.579 6.531h-1.296l-2.563-6.531zm13.468 2.922q0 .234-.016.406 0 .156-.016.297h-4.578q0 1 .547 1.547.563.53 1.625.53.281 0 .563-.015.296-.03.562-.062.266-.047.5-.094.25-.047.453-.11v.938q-.453.125-1.047.203-.578.078-1.203.078-.828 0-1.437-.218-.61-.235-1-.657-.39-.437-.578-1.062-.172-.625-.172-1.422 0-.687.187-1.297.203-.625.578-1.094.391-.468.938-.734.562-.281 1.265-.281.672 0 1.204.219.53.218.89.609.36.39.547.953.188.563.188 1.266zm-1.188-.172q.031-.422-.078-.781-.11-.375-.328-.625-.219-.266-.547-.407-.313-.156-.75-.156-.36 0-.672.156-.312.14-.531.407-.219.25-.36.625-.125.359-.156.78h3.422zm3-2.75h1l.047 1.047q.281-.328.547-.547.28-.235.53-.375t.516-.188q.282-.062.563-.062 1.016 0 1.531.61.516.593.516 1.78v4.266h-1.14v-4.172q0-.765-.282-1.125-.281-.375-.86-.375-.203 0-.406.063-.187.062-.406.218-.219.141-.469.407-.25.265-.562.656v4.328h-1.125v-6.531zm12.593 6.437q-.39.094-.797.14-.406.048-.843.048-1.22 0-1.828-.547-.61-.563-.61-1.719v-3.406h-1.828v-.953h1.828v-1.797l1.14-.297v2.094h2.938v.953h-2.937v3.312q0 .704.375 1.063.375.344 1.094.344.312 0 .687-.047.375-.063.781-.156v.968z"/><path d="M168.651 381.416h-2.441l-7.032-39.509"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" d="M168.651 381.416h-2.441l-5.98-33.602"/><path fill="#000" stroke="#000" stroke-linecap="butt" d="m161.856 347.525-2.421-4.178-.831 4.757z" fill-rule="evenodd"/><path fill="#fff2cc" d="M639.126 180.617h63.024v74.992h-63.024z" fill-rule="evenodd"/><path stroke="#000" stroke-linejoin="round" stroke-linecap="butt" stroke-dasharray="1.0,3.0" d="M639.126 180.617h63.024v74.992h-63.024z"/><path fill="#000" d="M658.459 206.913h-4.828v-8.5h4.828v.969h-3.672v2.64h3.531v.969h-3.531v2.937h3.672v.985zm6.421 0-.015-.875q-.547.531-1.094.765-.547.22-1.156.22-.547 0-.953-.141-.391-.141-.657-.391-.25-.25-.375-.578-.125-.344-.125-.75 0-.985.735-1.531.734-.563 2.172-.563h1.343v-.562q0-.579-.375-.922-.359-.36-1.125-.36-.547 0-1.093.125-.532.125-1.11.344v-1.016q.219-.078.485-.156.265-.078.546-.125.297-.062.61-.094.328-.046.656-.046.594 0 1.063.14.484.125.812.39.328.266.5.673.172.406.172.953v4.5h-1.016zm-.125-2.969h-1.437q-.422 0-.735.078-.296.078-.5.235-.187.156-.28.375-.095.218-.095.5 0 .187.063.359.062.172.187.312.125.125.329.204.218.078.515.078.39 0 .89-.235.516-.234 1.063-.75v-1.156zm3.531-3.562h1.032l.03 1.203q.579-.703 1.142-1.016.562-.312 1.14-.312 1.016 0 1.531.656.532.656.485 1.953h-1.14q.015-.86-.25-1.234-.266-.391-.798-.391-.218 0-.453.078-.234.078-.484.266-.235.172-.516.453-.265.281-.578.672v4.203h-1.14v-6.531zm9.281-1.735h-1.937v-.937h3.078v8.265h1.953v.938h-5.234v-.938h2.14v-7.328zm10.922 1.735-2.234 5.843q-.344.891-.72 1.532-.359.64-.796 1.046-.438.422-.953.61-.516.203-1.172.203-.172 0-.313-.016h-.28v-1.03l.296.03q.172.016.36.016.312 0 .578-.094.28-.094.515-.297.25-.203.469-.53.219-.313.437-.782l-2.625-6.531h1.297l1.657 4.312.328 1.016.375-1.032 1.531-4.296h1.25zm-29.561 22.531h-1.157v-3.906h-3.578v3.906h-1.156v-8.5h1.156v3.594h3.578v-3.594h1.157v8.5zm3.984-5.594h-1.938v-.937h3.078v5.593h1.953v.938h-5.234v-.938h2.14v-4.656zm.39-3.687q.203 0 .36.078.156.062.28.187.126.125.188.281.079.157.079.36 0 .172-.079.344-.062.156-.187.28-.125.126-.281.204-.157.062-.36.062-.187 0-.343-.062-.157-.078-.282-.203-.125-.125-.203-.281-.062-.172-.062-.344 0-.203.062-.36.078-.156.203-.28.125-.126.282-.188.156-.078.343-.078zm4.719 2.75h1l.047 1.046q.28-.328.547-.546.28-.235.53-.375.25-.141.516-.188.282-.062.563-.062 1.016 0 1.531.609.516.594.516 1.781v4.266h-1.14v-4.172q0-.766-.282-1.125-.281-.375-.86-.375-.203 0-.406.062-.187.063-.406.22-.219.14-.469.405-.25.266-.562.657v4.328h-1.125v-6.531zm12.593 6.437q-.39.094-.797.14-.406.048-.843.048-1.22 0-1.828-.547-.61-.563-.61-1.719v-3.406h-1.828v-.953h1.828v-1.797l1.14-.297v2.094h2.938v.953h-2.937v3.312q0 .703.375 1.063.375.343 1.094.343.312 0 .687-.046.375-.063.781-.157v.97zm7.234-1.687q0 .343-.125.625-.109.265-.312.484-.203.203-.469.36-.266.14-.578.25-.297.093-.625.124-.313.047-.61.047-.671 0-1.234-.062-.547-.047-1.078-.172v-1.047q.563.156 1.125.25.578.078 1.14.078.813 0 1.204-.219.39-.218.39-.625 0-.187-.062-.312-.063-.14-.234-.266-.157-.14-.5-.265-.344-.141-.938-.313-.437-.14-.812-.297-.375-.172-.657-.39-.265-.235-.422-.532-.156-.312-.156-.734 0-.266.125-.594.125-.328.438-.61.312-.28.828-.468.515-.187 1.297-.187.39 0 .86.046.468.047.968.141v1.016q-.531-.125-1.016-.188-.469-.062-.828-.062-.422 0-.719.062-.28.063-.468.188-.172.11-.25.265-.079.141-.079.313 0 .187.063.328.078.14.266.281.187.125.515.266.328.125.86.281.593.172.984.36.39.187.64.421.25.22.36.516.11.281.11.64zm-30.577 20.515q-3-2.781-3-6.14 0-.797.156-1.579.157-.78.516-1.562.36-.797.938-1.578.578-.797 1.421-1.563l.657.672q-2.532 2.485-2.532 5.516 0 1.515.641 2.906.64 1.39 1.89 2.625l-.687.703zm8.86-2.734h-5.344v-1.047h2.187v-6.219l-2.031 1.11-.422-.97 2.703-1.421h1.016v7.5h1.89v1.047zm7.593-4.25q0 .969-.203 1.781-.188.797-.578 1.375-.391.578-.985.89-.593.313-1.39.313-.672 0-1.235-.25-.562-.25-.968-.781-.391-.547-.61-1.375-.203-.828-.203-1.953 0-.969.188-1.781.203-.813.593-1.375.39-.579.985-.891.593-.328 1.39-.328.672 0 1.235.265.562.25.953.797.406.532.61 1.36.218.828.218 1.953zm-1.14.047q0-.235-.016-.453l-.032-.422-3.609 2.672q.11.343.25.64.156.281.36.485.218.203.484.312.265.11.61.11.452 0 .812-.204.359-.218.609-.64.266-.422.39-1.047.141-.64.141-1.453zm-3.891-.078v.39q0 .203.03.39l3.595-2.655q-.094-.329-.25-.594-.141-.281-.36-.485-.203-.203-.468-.312-.266-.11-.61-.11-.437 0-.797.22-.36.218-.625.64-.25.422-.39 1.062-.125.625-.125 1.454zm12 1.703q0 .547-.235 1.047-.219.484-.672.859-.453.36-1.14.578-.688.203-1.61.203-.515 0-.922-.031-.39-.031-.75-.078v-1.016q.407.078.86.125.453.031.922.031.625 0 1.078-.109.453-.125.734-.328.297-.219.422-.531.14-.313.14-.688 0-.36-.156-.61-.156-.265-.453-.437-.281-.172-.672-.265-.39-.094-.86-.094h-.968v-.922h.985q.375 0 .687-.094.328-.109.547-.297.234-.187.344-.468.125-.282.125-.625 0-.688-.422-1-.406-.313-1.219-.313-.422 0-.89.094-.454.078-.97.25v-1q.22-.078.47-.14.25-.063.5-.094.25-.047.5-.063.25-.031.468-.031.688 0 1.203.156.516.14.86.422.343.266.515.656t.172.875q0 .735-.375 1.235-.375.484-1.015.78.328.048.64.204.328.156.578.406.266.235.422.578.156.328.156.735zm3.312-7.11q3 2.782 3 6.188 0 .687-.141 1.453-.14.75-.484 1.547-.344.781-.938 1.594-.578.812-1.469 1.64l-.656-.672q1.281-1.25 1.89-2.609.626-1.375.626-2.875 0-3.094-2.516-5.578l.688-.688z"/><path d="M672.05 312.344h223.496v26.016H672.05z"/><path fill="#b45f06" d="M685.847 321.73q0 .219-.078.406-.079.188-.22.328-.14.14-.327.219-.188.078-.407.078-.218 0-.421-.078-.188-.078-.329-.219-.14-.14-.218-.328-.078-.187-.078-.406 0-.219.078-.406.078-.188.218-.329.141-.14.329-.218.203-.094.421-.094.22 0 .407.094.187.078.328.218.14.141.219.329.078.187.078.406zm-1.75 3.047h-1.875v-1.235h3.5v5.375h1.906v1.235h-5.64v-1.235h2.109v-4.14zm9.124 5.375v-4.313q0-1.078-.796-1.078-.407 0-.782.328-.359.313-.765.875v4.188h-1.594v-6.61h1.375l.031.97q.203-.25.422-.454.219-.219.469-.36.265-.14.547-.218.297-.078.656-.078.516 0 .89.172.376.156.626.468.265.297.39.72.125.421.125.952v4.438h-1.594zm8.844-.063q-.437.094-.875.156-.422.063-.812.063-.657 0-1.125-.14-.47-.141-.782-.423-.312-.28-.468-.703-.141-.437-.141-1.03v-3.235h-1.766v-1.235h1.766v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.11q0 .562.266.858.265.282.875.282.39 0 .75-.063.375-.062.687-.14v1.265zm7.64-3.75q0 .156-.015.422-.016.266-.032.484h-4.343q0 .438.125.782.14.328.375.547.25.218.593.343.344.11.75.11.485 0 1.032-.063.562-.078 1.156-.25v1.266q-.266.062-.563.125-.296.062-.609.11-.312.046-.64.062-.313.031-.61.031-.75 0-1.36-.219-.593-.219-1.015-.64-.406-.422-.64-1.032-.22-.625-.22-1.437 0-.797.22-1.453.234-.672.624-1.14.407-.47.985-.72.578-.265 1.297-.265.703 0 1.234.218.547.22.906.61.36.39.547.937.203.532.203 1.172zm-1.625-.234q.016-.39-.093-.672-.11-.297-.297-.484-.172-.188-.407-.282-.234-.093-.515-.093-.594 0-.985.406-.375.406-.453 1.125h2.75zm7.438 0q.015-.36-.032-.625-.047-.266-.156-.422-.11-.172-.266-.25-.156-.078-.359-.078-.344 0-.719.297-.375.281-.828.937v4.188h-1.625v-6.61h1.438l.062.953q.156-.25.36-.453.203-.203.453-.343.25-.141.562-.22.313-.077.672-.077.5 0 .89.172.391.171.641.515.266.328.391.844.14.5.11 1.172h-1.594zm6.968-4.375q0 .219-.078.406-.078.188-.219.328-.14.14-.328.219-.187.078-.406.078-.219 0-.422-.078-.188-.078-.328-.219-.14-.14-.219-.328-.078-.187-.078-.406 0-.219.078-.406.078-.188.219-.329.14-.14.328-.218.203-.094.422-.094.219 0 .406.094.188.078.328.218.14.141.219.329.078.187.078.406zm-1.75 3.047h-1.875v-1.235h3.5v5.375h1.906v1.235h-5.64v-1.235h2.11v-4.14zm9.86 5.375v-4.5q0-.25-.016-.438-.016-.187-.063-.312-.031-.125-.11-.188-.077-.062-.202-.062-.204 0-.407.281-.187.266-.437.937v4.282H728v-4.5q0-.25-.015-.438 0-.187-.047-.312-.031-.125-.11-.188-.078-.062-.218-.062-.172 0-.375.281-.203.266-.469.937v4.282h-1.36v-6.61h1.173l.03.953q.141-.28.282-.484.14-.219.297-.344.172-.14.36-.187.187-.063.421-.063.547 0 .828.297.297.281.344.781.156-.28.297-.484.156-.219.312-.344.172-.14.36-.187.203-.063.437-.063.72 0 1.063.5.344.5.344 1.485v4.75h-1.36zm6.874 0-1.188-2.735q-.171-.39-.484-.578-.297-.203-.703-.203h-.313v3.516h-1.593v-8.5h2.468q.704 0 1.282.125.578.11.968.39.407.282.625.735.22.437.22 1.093 0 .47-.141.844-.125.36-.375.625-.25.25-.594.422-.344.156-.735.219.313.078.563.375.266.281.531.828l1.36 2.844h-1.891zm-.39-6q0-.625-.407-.89-.39-.282-1.187-.282h-.704v2.406h.657q.375 0 .672-.078.296-.078.515-.234.219-.157.328-.391.125-.234.125-.531zm9.265 2.187q0 .156-.016.422t-.031.484h-4.344q0 .438.125.782.14.328.375.547.25.218.594.343.344.11.75.11.484 0 1.031-.063.563-.078 1.156-.25v1.266q-.265.062-.562.125-.297.062-.61.11-.312.046-.64.062-.313.031-.61.031-.75 0-1.359-.219-.594-.219-1.016-.64-.406-.422-.64-1.032-.219-.625-.219-1.437 0-.797.219-1.453.234-.672.625-1.14.406-.47.984-.72.578-.265 1.297-.265.703 0 1.234.218.547.22.907.61.359.39.547.937.203.532.203 1.172zm-1.625-.234q.015-.39-.094-.672-.11-.297-.297-.484-.172-.188-.406-.282-.235-.093-.516-.093-.594 0-.984.406-.375.406-.453 1.125h2.75zm8.64 2.094q0 .578-.25.984-.25.39-.672.64-.406.25-.937.36-.516.125-1.063.125-.734 0-1.328-.078-.578-.063-1.094-.188v-1.437q.61.25 1.219.375.61.11 1.156.11.625 0 .922-.204.313-.203.313-.516 0-.156-.063-.28-.062-.126-.25-.235-.172-.11-.5-.235-.328-.125-.844-.265-.5-.14-.875-.313-.359-.172-.609-.406-.234-.234-.36-.531-.109-.313-.109-.735 0-.406.172-.765.188-.36.547-.625.375-.266.906-.422.547-.156 1.266-.156.625 0 1.11.062.484.063.843.14v1.298q-.562-.188-1.062-.25-.5-.078-.985-.078-.484 0-.781.171-.297.172-.297.485 0 .156.047.281.062.11.234.219.188.11.485.234.312.11.828.25.562.172.953.36.39.187.625.421.25.235.344.532.109.297.109.672zm7.828-1.47q0 .907-.266 1.579-.25.656-.718 1.094-.454.437-1.079.656-.625.203-1.359.203-.25 0-.5-.031t-.437-.078v2.578h-1.594v-9.188h1.375l.031.97q.203-.25.422-.454.219-.219.469-.36.265-.14.547-.218.296-.078.656-.078.594 0 1.047.234.453.234.765.672.313.422.47 1.047.17.61.17 1.375zm-1.672.063q0-.547-.078-.922-.078-.39-.234-.64-.141-.25-.36-.36-.203-.109-.469-.109-.406 0-.78.328-.36.313-.766.875v2.89q.187.079.453.126.28.047.562.047.375 0 .688-.157.312-.156.53-.437.22-.297.33-.703.124-.422.124-.938zm9 0q0 .782-.219 1.438-.219.64-.64 1.11-.423.452-1.032.718-.594.25-1.375.25-.734 0-1.312-.219-.579-.219-.985-.64-.406-.422-.625-1.063-.203-.656-.203-1.5 0-.781.219-1.422.234-.656.64-1.11.422-.452 1.032-.702.61-.25 1.375-.25.734 0 1.312.218.578.22.985.657.406.422.609 1.062.219.625.219 1.453zm-1.657.047q0-1.031-.39-1.547-.375-.515-1.14-.515-.407 0-.704.156t-.484.453q-.188.281-.282.656-.078.375-.078.797 0 1.047.407 1.578.421.516 1.14.516.406 0 .688-.156.297-.172.484-.453.188-.282.266-.657.093-.39.093-.828zm6.969 3.313v-4.313q0-1.078-.797-1.078-.406 0-.781.328-.36.313-.766.875v4.188h-1.593v-6.61h1.375l.03.97q.204-.25.423-.454.218-.219.468-.36.266-.14.547-.218.297-.078.657-.078.515 0 .89.172.375.156.625.468.266.297.39.72.126.421.126.952v4.438h-1.594zm8.844-1.953q0 .578-.25.984-.25.39-.672.64-.407.25-.938.36-.515.125-1.062.125-.735 0-1.328-.078-.579-.063-1.094-.188v-1.437q.61.25 1.219.375.609.11 1.156.11.625 0 .922-.204.312-.203.312-.516 0-.156-.062-.28-.063-.126-.25-.235-.172-.11-.5-.235-.328-.125-.844-.265-.5-.14-.875-.313-.36-.172-.61-.406-.234-.234-.359-.531-.11-.313-.11-.735 0-.406.173-.765.187-.36.547-.625.375-.266.906-.422.547-.156 1.265-.156.625 0 1.11.062.484.063.844.14v1.298q-.563-.188-1.063-.25-.5-.078-.984-.078-.485 0-.782.171-.296.172-.296.485 0 .156.046.281.063.11.235.219.187.11.484.234.313.11.828.25.563.172.953.36.391.187.625.421.25.235.344.532.11.297.11.672zm7.64-1.86q0 .156-.016.422-.015.266-.031.484h-4.344q0 .438.125.782.14.328.375.547.25.218.594.343.344.11.75.11.484 0 1.031-.063.563-.078 1.157-.25v1.266q-.266.062-.563.125-.297.062-.61.11-.312.046-.64.062-.312.031-.61.031-.75 0-1.359-.219-.593-.219-1.015-.64-.407-.422-.641-1.032-.219-.625-.219-1.437 0-.797.219-1.453.234-.672.625-1.14.406-.47.984-.72.579-.265 1.297-.265.703 0 1.235.218.547.22.906.61.36.39.547.937.203.532.203 1.172zm-1.625-.234q.016-.39-.094-.672-.11-.297-.297-.484-.172-.188-.406-.282-.234-.093-.516-.093-.593 0-.984.406-.375.406-.453 1.125h2.75zm8.921 1.469q0 .703-.265 1.218-.25.516-.719.86-.453.328-1.094.5-.64.156-1.39.156-.672 0-1.297-.078-.625-.078-1.235-.266v-1.578q.297.094.625.188.329.093.657.171.328.063.64.11.328.031.641.031.453 0 .766-.078.328-.078.53-.219.204-.14.282-.328.094-.187.094-.406 0-.313-.188-.531-.172-.22-.468-.375-.282-.157-.657-.282-.375-.14-.765-.28-.375-.157-.75-.345-.375-.187-.672-.468-.297-.282-.485-.672-.171-.39-.171-.938 0-.5.187-.937.188-.453.578-.782.39-.343 1-.546.61-.204 1.469-.204.25 0 .531.032.281.015.547.062.266.031.516.078.265.047.468.11v1.453q-.203-.078-.453-.14-.25-.063-.515-.11-.266-.047-.532-.078-.265-.032-.5-.032-.437 0-.734.079-.281.062-.469.187-.187.125-.28.297-.079.172-.079.39 0 .266.172.454.187.187.484.343.297.157.672.297.375.125.766.282.39.156.765.359.375.187.672.469.297.265.469.656.187.375.187.89zm7.047 2.515q-.437.094-.875.156-.422.063-.812.063-.657 0-1.125-.14-.47-.141-.782-.423-.312-.28-.468-.703-.141-.437-.141-1.03v-3.235h-1.766v-1.235h1.766v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.11q0 .562.266.858.265.282.875.282.39 0 .75-.063.375-.062.687-.14v1.265zm6.015.063-.03-.86q-.22.22-.454.407-.219.187-.5.328-.266.125-.594.203-.312.078-.703.078-.5 0-.89-.156-.375-.157-.641-.422-.266-.266-.406-.64-.125-.376-.125-.829 0-.469.203-.86.203-.406.61-.687.405-.297 1.015-.453.61-.156 1.422-.156h.875v-.406q0-.25-.078-.454-.079-.203-.235-.343-.156-.157-.406-.235-.25-.078-.625-.078-.594 0-1.172.14-.562.126-1.094.376v-1.266q.485-.203 1.094-.312.625-.125 1.297-.125.734 0 1.266.14.53.141.859.422.344.266.5.688.172.422.172.984v4.516h-1.36zm-.218-2.922h-.969q-.406 0-.688.078-.28.078-.468.219-.172.125-.25.312-.078.172-.078.375 0 .406.25.625.265.203.718.203.328 0 .688-.234.36-.25.797-.688v-.89zm7.656-1.125q.015-.36-.032-.625-.046-.266-.156-.422-.11-.172-.265-.25-.157-.078-.36-.078-.344 0-.719.297-.375.281-.828.937v4.188h-1.625v-6.61h1.438l.062.953q.157-.25.36-.453.203-.203.453-.343.25-.141.562-.22.313-.077.672-.077.5 0 .89.172.391.171.641.515.266.328.391.844.14.5.11 1.172h-1.594zm8.53 3.984q-.437.094-.874.156-.422.063-.813.063-.656 0-1.125-.14-.469-.141-.781-.423-.313-.28-.469-.703-.14-.437-.14-1.03v-3.235h-1.766v-1.235h1.766v-1.687l1.625-.438v2.125h2.578v1.235h-2.578v3.11q0 .562.265.858.266.282.875.282.39 0 .75-.063.375-.062.688-.14v1.265z"/><path d="M678.058 327.399h-9.04l-26.039-69.728"/><path stroke="#b45f06" stroke-linejoin="round" stroke-linecap="butt" d="M678.058 327.399h-9.04l-23.94-64.107"/><path fill="#b45f06" stroke="#b45f06" stroke-linecap="butt" d="m646.625 262.714-3.135-3.673.04 4.829z" fill-rule="evenodd"/></g></svg>
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/performancenavigationtiming/index.md
--- title: PerformanceNavigationTiming slug: Web/API/PerformanceNavigationTiming page-type: web-api-interface browser-compat: api.PerformanceNavigationTiming --- {{APIRef("Performance API")}} The **`PerformanceNavigationTiming`** interface provides methods and properties to store and retrieve metrics regarding the browser's document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document. Only the current document is included in the performance timeline, so there is only one `PerformanceNavigationTiming` object in the performance timeline. It inherits all of the properties and methods of {{domxref("PerformanceResourceTiming")}} and {{domxref("PerformanceEntry")}}. {{InheritanceDiagram}} The following diagram shows all of the timestamp properties defined in `PerformanceNavigationTiming`. ![Timestamp diagram listing timestamps in the order in which they are recorded for the fetching of a document](timestamp-diagram.svg) ## Instance properties This interface extends the following {{domxref('PerformanceEntry')}} properties by qualifying and constraining them as follows: - {{domxref("PerformanceEntry.entryType")}} {{ReadOnlyInline}} - : Returns `"navigation"`. - {{domxref("PerformanceEntry.name")}} {{ReadOnlyInline}} - : Returns the [document's URL](/en-US/docs/Web/API/Document/URL). - {{domxref("PerformanceEntry.startTime")}} {{ReadOnlyInline}} - : Returns a {{domxref("DOMHighResTimeStamp")}} with a value of "`0`". - {{domxref("PerformanceEntry.duration")}} {{ReadOnlyInline}} - : Returns a {{domxref("DOMHighResTimeStamp","timestamp")}} that is the difference between the {{domxref("PerformanceNavigationTiming.loadEventEnd")}} and {{domxref("PerformanceEntry.startTime")}} properties. This interface also extends the following {{domxref('PerformanceResourceTiming')}} properties by qualifying and constraining them as follows: - {{domxref('PerformanceResourceTiming.initiatorType')}} {{ReadOnlyInline}} - : Returns `"navigation"`. The interface also supports the following properties: - {{domxref('PerformanceNavigationTiming.activationStart')}} {{ReadOnlyInline}} {{experimental_inline}} - : A {{domxref("DOMHighResTimeStamp")}} representing the time between when a document starts prerendering and when it is activated. - {{domxref('PerformanceNavigationTiming.domComplete')}} {{ReadOnlyInline}} - : A {{domxref("DOMHighResTimeStamp")}} representing the time immediately before the user agent sets the document's [`readyState`](/en-US/docs/Web/API/Document/readyState) to `"complete"`. - {{domxref('PerformanceNavigationTiming.domContentLoadedEventEnd')}} {{ReadOnlyInline}} - : A {{domxref("DOMHighResTimeStamp")}} representing the time immediately after the current document's [`DOMContentLoaded`](/en-US/docs/Web/API/Document/DOMContentLoaded_event) event handler completes. - {{domxref('PerformanceNavigationTiming.domContentLoadedEventStart')}} {{ReadOnlyInline}} - : A {{domxref("DOMHighResTimeStamp")}} representing the time immediately before the current document's [`DOMContentLoaded`](/en-US/docs/Web/API/Document/DOMContentLoaded_event) event handler starts. - {{domxref('PerformanceNavigationTiming.domInteractive')}} {{ReadOnlyInline}} - : A {{domxref("DOMHighResTimeStamp")}} representing the time immediately before the user agent sets the document's [`readyState`](/en-US/docs/Web/API/Document/readyState) to `"interactive"`. - {{domxref('PerformanceNavigationTiming.loadEventEnd')}} {{ReadOnlyInline}} - : A {{domxref("DOMHighResTimeStamp")}} representing the time immediately after the current document's [`load`](/en-US/docs/Web/API/Window/load_event) event handler completes. - {{domxref('PerformanceNavigationTiming.loadEventStart')}} {{ReadOnlyInline}} - : A {{domxref("DOMHighResTimeStamp")}} representing the time immediately before the current document's [`load`](/en-US/docs/Web/API/Window/load_event) event handler starts. - {{domxref('PerformanceNavigationTiming.redirectCount')}} {{ReadOnlyInline}} - : A number representing the number of redirects since the last non-redirect navigation in the current browsing context. - {{domxref('PerformanceNavigationTiming.type')}} {{ReadOnlyInline}} - : A string representing the navigation type. Either `"navigate"`, `"reload"`, `"back_forward"` or `"prerender"`. - {{domxref('PerformanceNavigationTiming.unloadEventEnd')}} {{ReadOnlyInline}} - : A {{domxref("DOMHighResTimeStamp")}} representing the time immediately after the current document's [`unload`](/en-US/docs/Web/API/Window/unload_event) event handler completes. - {{domxref('PerformanceNavigationTiming.unloadEventStart')}} {{ReadOnlyInline}} - : A {{domxref("DOMHighResTimeStamp")}} representing the time immediately before the current document's [`unload`](/en-US/docs/Web/API/Window/unload_event) event handler starts. ## Instance methods - {{domxref("PerformanceNavigationTiming.toJSON()")}} - : Returns a JSON representation of the `PerformanceNavigationTiming` object. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{domxref("Performance.navigation")}} - {{domxref("PerformanceNavigation")}}
0
data/mdn-content/files/en-us/web/api/performancenavigationtiming
data/mdn-content/files/en-us/web/api/performancenavigationtiming/redirectcount/index.md
--- title: "PerformanceNavigationTiming: redirectCount property" short-title: redirectCount slug: Web/API/PerformanceNavigationTiming/redirectCount page-type: web-api-instance-property browser-compat: api.PerformanceNavigationTiming.redirectCount --- {{APIRef("Performance API")}} The **`redirectCount`** read-only property returns a number representing the number of redirects since the last non-redirect navigation in the current browsing context. The higher the number of redirects on a page, the longer the page load time. To improve the performance of your web page, avoid multiple redirects. The {{domxref("PerformanceResourceTiming.redirectStart", "redirectStart")}} and {{domxref("PerformanceResourceTiming.redirectEnd", "redirectEnd")}} properties can be used to measure redirection time. Note that they will return `0` for cross-origin redirects. Note that client side redirects, such as `<meta http-equiv="refresh" content="0; url=https://example.com/">` are not considered here. ## Value The `redirectCount` property can have the following values: - A number representing the number of redirects since the last non-redirect navigation in the current browsing context. - `0` if the redirect is cross-origin. ## Examples ### Logging entries with redirects The `redirectCount` property can be used to check whether there are one or more redirects. We log the entry's name and the redirection time if it is available. Example using a {{domxref("PerformanceObserver")}}, which notifies of new `navigation` performance entries as they are recorded in the browser's performance timeline. Use the `buffered` option to access entries from before the observer creation. ```js const observer = new PerformanceObserver((list) => { list.getEntries().forEach((entry) => { const name = entry.name; const redirectCount = entry.redirectCount; const redirectTime = entry.redirectEnd - entry.redirectStart; if (redirectCount > 0) { console.log(`${name}: Redirect count: ${redirectCount}`); if (redirectTime > 0) { console.log(`${name}: Redirect time: ${redirectTime}ms`); } } }); }); observer.observe({ type: "navigation", buffered: true }); ``` Example using {{domxref("Performance.getEntriesByType()")}}, which only shows `navigation` performance entries present in the browser's performance timeline at the time you call this method: ```js const entries = performance.getEntriesByType("navigation"); entries.forEach((entry) => { const name = entry.name; const redirectCount = entry.redirectCount; const redirectTime = entry.redirectEnd - entry.redirectStart; if (redirectCount > 0) { console.log(`${name}: Redirect count: ${redirectCount}`); if (redirectTime > 0) { console.log(`${name}: Redirect time: ${redirectTime}ms`); } } }); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{domxref("PerformanceResourceTiming.redirectStart")}} - {{domxref("PerformanceResourceTiming.redirectEnd")}}
0
data/mdn-content/files/en-us/web/api/performancenavigationtiming
data/mdn-content/files/en-us/web/api/performancenavigationtiming/loadeventstart/index.md
--- title: "PerformanceNavigationTiming: loadEventStart property" short-title: loadEventStart slug: Web/API/PerformanceNavigationTiming/loadEventStart page-type: web-api-instance-property browser-compat: api.PerformanceNavigationTiming.loadEventStart --- {{APIRef("Performance API")}} The **`loadEventStart`** read-only property returns a {{domxref("DOMHighResTimeStamp")}} representing the time immediately before the current document's [`load`](/en-US/docs/Web/API/Window/load_event) event handler starts. ## Value A {{domxref("DOMHighResTimeStamp")}} representing the time immediately before the current document's [`load`](/en-US/docs/Web/API/Window/load_event) event handler starts. ## Examples ### Measuring `load` event handler time The `loadEventStart` property can be used to measure how long it takes process the[`load`](/en-US/docs/Web/API/Window/load_event) event handler. This is useful to measure the time of long running [`load`](/en-US/docs/Web/API/Window/load_event) event handlers. ```js window.addEventListener("load", (event) => { // Some long running code }); ``` Example using a {{domxref("PerformanceObserver")}}, which notifies of new `navigation` performance entries as they are recorded in the browser's performance timeline. Use the `buffered` option to access entries from before the observer creation. ```js const observer = new PerformanceObserver((list) => { list.getEntries().forEach((entry) => { const loadEventTime = entry.loadEventEnd - entry.loadEventStart; if (loadEventTime > 0) { console.log(`${entry.name}: load event handler time: ${loadEventTime}ms`); } }); }); observer.observe({ type: "navigation", buffered: true }); ``` Example using {{domxref("Performance.getEntriesByType()")}}, which only shows `navigation` performance entries present in the browser's performance timeline at the time you call this method: ```js const entries = performance.getEntriesByType("navigation"); entries.forEach((entry) => { const loadEventTime = entry.loadEventEnd - entry.loadEventStart; if (loadEventTime > 0) { console.log(`${entry.name}: load event handler time: ${loadEventTime}ms`); } }); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [`load`](/en-US/docs/Web/API/Window/load_event) event
0
data/mdn-content/files/en-us/web/api/performancenavigationtiming
data/mdn-content/files/en-us/web/api/performancenavigationtiming/unloadeventstart/index.md
--- title: "PerformanceNavigationTiming: unloadEventStart property" short-title: unloadEventStart slug: Web/API/PerformanceNavigationTiming/unloadEventStart page-type: web-api-instance-property browser-compat: api.PerformanceNavigationTiming.unloadEventStart --- {{APIRef("Performance API")}} The **`unloadEventStart`** read-only property returns a {{domxref("DOMHighResTimeStamp")}} representing the time immediately before the current document's [`unload`](/en-US/docs/Web/API/Window/unload_event) event handler starts. ## Value The `unloadEventStart` property can have the following values: - A {{domxref("DOMHighResTimeStamp")}} representing the time immediately before the current document's [`unload`](/en-US/docs/Web/API/Window/unload_event) event handler starts. - `0` if there is no previous document. - `0` if the previous page was on another origin. ## Examples ### Measuring `unload` event handler time The `unloadEventStart` property can be used to measure how long it takes process the[`unload`](/en-US/docs/Web/API/Window/unload_event) event handler. This is useful to measure the time of long running [`unload`](/en-US/docs/Web/API/Window/load_event) event handlers. ```js window.addEventListener("unload", (event) => { // Some long running code }); ``` Example using a {{domxref("PerformanceObserver")}}, which notifies of new `navigation` performance entries as they are recorded in the browser's performance timeline. Use the `buffered` option to access entries from before the observer creation. ```js const observer = new PerformanceObserver((list) => { list.getEntries().forEach((entry) => { const unloadEventTime = entry.unloadEventEnd - entry.unloadEventStart; if (unloadEventTime > 0) { console.log( `${entry.name}: unload event handler time: ${unloadEventTime}ms`, ); } }); }); observer.observe({ type: "navigation", buffered: true }); ``` Example using {{domxref("Performance.getEntriesByType()")}}, which only shows `navigation` performance entries present in the browser's performance timeline at the time you call this method: ```js const entries = performance.getEntriesByType("navigation"); entries.forEach((entry) => { const loadEventTime = entry.unloadEventEnd - entry.unloadEventStart; if (unloadEventTime > 0) { console.log(`${entry.name}: load event handler time: ${unloadEventTime}ms`); } }); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [`unload`](/en-US/docs/Web/API/Window/unload_event) event
0
data/mdn-content/files/en-us/web/api/performancenavigationtiming
data/mdn-content/files/en-us/web/api/performancenavigationtiming/domcontentloadedeventend/index.md
--- title: "PerformanceNavigationTiming: domContentLoadedEventEnd property" short-title: domContentLoadedEventEnd slug: Web/API/PerformanceNavigationTiming/domContentLoadedEventEnd page-type: web-api-instance-property browser-compat: api.PerformanceNavigationTiming.domContentLoadedEventEnd --- {{APIRef("Performance API")}} The **`domContentLoadedEventEnd`** read-only property returns a {{domxref("DOMHighResTimeStamp")}} representing the time immediately after the current document's [`DOMContentLoaded`](/en-US/docs/Web/API/Document/DOMContentLoaded_event) event handler completes. Typically frameworks and libraries wait for the `DOMContentLoaded` event before starting to run their code. We can use the `domContentLoadedEventEnd` and the [`domContentLoadedEventStart`](/en-US/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventStart) properties to calculate how long this takes to run. ## Value A {{domxref("DOMHighResTimeStamp")}} representing the time immediately after the current document's [`DOMContentLoaded`](/en-US/docs/Web/API/Document/DOMContentLoaded_event) event handler completes. ## Examples ### Measuring `DOMContentLoaded` event handler time The `domContentLoadedEventEnd` property can be used to measure how long it takes process the [`DOMContentLoaded`](/en-US/docs/Web/API/Document/DOMContentLoaded_event) event handler. Example using a {{domxref("PerformanceObserver")}}, which notifies of new `navigation` performance entries as they are recorded in the browser's performance timeline. Use the `buffered` option to access entries from before the observer creation. ```js const observer = new PerformanceObserver((list) => { list.getEntries().forEach((entry) => { const domContentLoadedTime = entry.domContentLoadedEventEnd - entry.domContentLoadedEventStart; console.log( `${entry.name}: DOMContentLoaded processing time: ${domContentLoadedTime}ms`, ); }); }); observer.observe({ type: "navigation", buffered: true }); ``` Example using {{domxref("Performance.getEntriesByType()")}}, which only shows `navigation` performance entries present in the browser's performance timeline at the time you call this method: ```js const entries = performance.getEntriesByType("navigation"); entries.forEach((entry) => { const domContentLoadedTime = entry.domContentLoadedEventEnd - entry.domContentLoadedEventStart; console.log( `${entry.name}: DOMContentLoaded processing time: ${domContentLoadedTime}ms`, ); }); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [DOMContentLoaded](/en-US/docs/Web/API/Document/DOMContentLoaded_event)
0
data/mdn-content/files/en-us/web/api/performancenavigationtiming
data/mdn-content/files/en-us/web/api/performancenavigationtiming/unloadeventend/index.md
--- title: "PerformanceNavigationTiming: unloadEventEnd property" short-title: unloadEventEnd slug: Web/API/PerformanceNavigationTiming/unloadEventEnd page-type: web-api-instance-property browser-compat: api.PerformanceNavigationTiming.unloadEventEnd --- {{APIRef("Performance API")}} The **`unloadEventEnd`** read-only property returns a {{domxref("DOMHighResTimeStamp")}} representing the time immediately after the current document's [`unload`](/en-US/docs/Web/API/Window/unload_event) event handler completes. ## Value The `unloadEventEnd` property can have the following values: - A {{domxref("DOMHighResTimeStamp")}} representing the time immediately after the current document's [`unload`](/en-US/docs/Web/API/Window/unload_event) event handler completes. - `0` if there is no previous document. - `0` if the previous page was on another origin. ## Examples ### Measuring `unload` event handler time The `unloadEventEnd` property can be used to measure how long it takes process the[`unload`](/en-US/docs/Web/API/Window/unload_event) event handler. This is useful to measure the time of long running [`unload`](/en-US/docs/Web/API/Window/load_event) event handlers. ```js window.addEventListener("unload", (event) => { // Some long running code }); ``` Example using a {{domxref("PerformanceObserver")}}, which notifies of new `navigation` performance entries as they are recorded in the browser's performance timeline. Use the `buffered` option to access entries from before the observer creation. ```js const observer = new PerformanceObserver((list) => { list.getEntries().forEach((entry) => { const unloadEventTime = entry.unloadEventEnd - entry.unloadEventStart; if (unloadEventTime > 0) { console.log( `${entry.name}: unload event handler time: ${unloadEventTime}ms`, ); } }); }); observer.observe({ type: "navigation", buffered: true }); ``` Example using {{domxref("Performance.getEntriesByType()")}}, which only shows `navigation` performance entries present in the browser's performance timeline at the time you call this method: ```js const entries = performance.getEntriesByType("navigation"); entries.forEach((entry) => { const loadEventTime = entry.unloadEventEnd - entry.unloadEventStart; if (unloadEventTime > 0) { console.log(`${entry.name}: load event handler time: ${unloadEventTime}ms`); } }); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [`unload`](/en-US/docs/Web/API/Window/unload_event) event
0
data/mdn-content/files/en-us/web/api/performancenavigationtiming
data/mdn-content/files/en-us/web/api/performancenavigationtiming/domcomplete/index.md
--- title: "PerformanceNavigationTiming: domComplete property" short-title: domComplete slug: Web/API/PerformanceNavigationTiming/domComplete page-type: web-api-instance-property browser-compat: api.PerformanceNavigationTiming.domComplete --- {{APIRef("Performance API")}} The **`domComplete`** read-only property returns a {{domxref("DOMHighResTimeStamp")}} representing the time immediately before the user agent sets the document's [`readyState`](/en-US/docs/Web/API/Document/readyState) to `"complete"`. See also the `complete` state of {{domxref("Document.readyState")}} which corresponds to this property and refers to the state in which the document and all sub-resources have finished loading. The state also indicates that the {{domxref("Window/load_event", "load")}} event is about to fire. ## Value A {{domxref("DOMHighResTimeStamp")}} representing the time immediately before the user agent sets the document's [`readyState`](/en-US/docs/Web/API/Document/readyState) to `"complete"`. ## Examples ### Logging DOM completion time The `domComplete` property can be used to log the time when the DOM is complete. Example using a {{domxref("PerformanceObserver")}}, which notifies of new `navigation` performance entries as they are recorded in the browser's performance timeline. Use the `buffered` option to access entries from before the observer creation. ```js const observer = new PerformanceObserver((list) => { list.getEntries().forEach((entry) => { console.log(`${entry.name}: domComplete time: ${entry.domComplete}ms`); }); }); observer.observe({ type: "navigation", buffered: true }); ``` Example using {{domxref("Performance.getEntriesByType()")}}, which only shows `navigation` performance entries present in the browser's performance timeline at the time you call this method: ```js const entries = performance.getEntriesByType("navigation"); entries.forEach((entry) => { console.log(`${entry.name}: domComplete time: ${entry.domComplete}ms`); }); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{domxref("Document.readyState")}}
0
data/mdn-content/files/en-us/web/api/performancenavigationtiming
data/mdn-content/files/en-us/web/api/performancenavigationtiming/dominteractive/index.md
--- title: "PerformanceNavigationTiming: domInteractive property" short-title: domInteractive slug: Web/API/PerformanceNavigationTiming/domInteractive page-type: web-api-instance-property browser-compat: api.PerformanceNavigationTiming.domInteractive --- {{APIRef("Performance API")}} The **`domInteractive`** read-only property returns a {{domxref("DOMHighResTimeStamp")}} representing the time immediately before the user agent sets the document's [`readyState`](/en-US/docs/Web/API/Document/readyState) to `"interactive"`. > **Note:** This property is **not** {{Glossary("Time to interactive")}} (TTI). This property refers to the time when DOM construction is finished and interaction to it from JavaScript is possible. See also the `interactive` state of {{domxref("Document.readyState")}} which corresponds to this property. Measuring DOM processing time may not be consequential unless your site has a very large HTML source to a construct a Document Object Model from. If there is no parser-blocking JavaScript then the [`DOMContentLoaded`](/en-US/docs/Web/API/Document/DOMContentLoaded_event) event (see [`domContentLoadedEventStart`](/en-US/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventStart) for the timestamp) will fire immediately after `domInteractive`. ## Value A {{domxref("DOMHighResTimeStamp")}} representing the time immediately before the user agent sets the document's [`readyState`](/en-US/docs/Web/API/Document/readyState) to `"interactive"`. ## Examples ### Logging DOM interaction time The `domInteractive` property can be used to log the time when the DOM construction has finished and interaction with it is possible. Example using a {{domxref("PerformanceObserver")}}, which notifies of new `navigation` performance entries as they are recorded in the browser's performance timeline. Use the `buffered` option to access entries from before the observer creation. ```js const observer = new PerformanceObserver((list) => { list.getEntries().forEach((entry) => { console.log( `${entry.name}: domInteractive time: ${entry.domInteractive}ms`, ); }); }); observer.observe({ type: "navigation", buffered: true }); ``` Example using {{domxref("Performance.getEntriesByType()")}}, which only shows `navigation` performance entries present in the browser's performance timeline at the time you call this method: ```js const entries = performance.getEntriesByType("navigation"); entries.forEach((entry) => { console.log(`${entry.name}: domInteractive time: ${entry.domInteractive}ms`); }); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{domxref("Document.readyState")}}
0
data/mdn-content/files/en-us/web/api/performancenavigationtiming
data/mdn-content/files/en-us/web/api/performancenavigationtiming/activationstart/index.md
--- title: "PerformanceNavigationTiming: activationStart property" short-title: activationStart slug: Web/API/PerformanceNavigationTiming/activationStart page-type: web-api-instance-property status: - experimental browser-compat: api.PerformanceNavigationTiming.activationStart --- {{APIRef("Performance API")}}{{SeeCompatTable}} The **`activationStart`** read-only property represents the time between when a document starts prerendering and when it is activated. ## Value A {{domxref("DOMHighResTimeStamp")}} representing the duration between document prerendering start and activation in milliseconds. The value is `0` if the page has not prerendered or is still prerendering. ## Examples ### Detecting prerendered pages When a prerendered document is activated, `activationStart` is set to the current time. The following function can check whether a page is {{DOMxRef("Document.prerendering","prerendering")}} or has already prerendered: ```js function pagePrerendered() { return ( document.prerendering || self.performance?.getEntriesByType?.("navigation")[0]?.activationStart > 0 ); } ``` ### Measuring user-perceived performance milestones With prerendered pages, a page may have been created long before it was actually navigated to. When using the [Performance API](/en-US/docs/Web/API/Performance_API) on prerendered pages, it is vital to compare returned values with `activationStart` in order to avoid misleading measurements. ```js // Time to when activation occurred let activationStart = performance.getEntriesByType("navigation")[0].activationStart; // Time to first paint let firstPaint = performance.getEntriesByName("first-paint")[0].startTime; // Time to first contentful paint let firstContentfulPaint = performance.getEntriesByName( "first-contentful-paint", )[0].startTime; console.log("time to first paint: " + (firstPaint - activationStart)); console.log( "time to first-contentful-paint: " + (firstContentfulPaint - activationStart), ); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [Speculation Rules API](/en-US/docs/Web/API/Speculation_Rules_API) - [Speculative loading](/en-US/docs/Web/Performance/Speculative_loading)
0
data/mdn-content/files/en-us/web/api/performancenavigationtiming
data/mdn-content/files/en-us/web/api/performancenavigationtiming/loadeventend/index.md
--- title: "PerformanceNavigationTiming: loadEventEnd property" short-title: loadEventEnd slug: Web/API/PerformanceNavigationTiming/loadEventEnd page-type: web-api-instance-property browser-compat: api.PerformanceNavigationTiming.loadEventEnd --- {{APIRef("Performance API")}} The **`loadEventEnd`** read-only property returns a {{domxref("DOMHighResTimeStamp")}} representing the time immediately after the current document's [`load`](/en-US/docs/Web/API/Window/load_event) event handler completes. ## Value A {{domxref("DOMHighResTimeStamp")}} representing the time immediately after the current document's [`load`](/en-US/docs/Web/API/Window/load_event) event handler completes. ## Examples ### Measuring `load` event handler time The `loadEventEnd` property can be used to measure how long it takes process the[`load`](/en-US/docs/Web/API/Window/load_event) event handler. This is useful to measure the time of long running [`load`](/en-US/docs/Web/API/Window/load_event) event handlers. ```js window.addEventListener("load", (event) => { // Some long running code }); ``` Example using a {{domxref("PerformanceObserver")}}, which notifies of new `navigation` performance entries as they are recorded in the browser's performance timeline. Use the `buffered` option to access entries from before the observer creation. ```js const observer = new PerformanceObserver((list) => { list.getEntries().forEach((entry) => { const loadEventTime = entry.loadEventEnd - entry.loadEventStart; if (loadEventTime > 0) { console.log(`${entry.name}: load event handler time: ${loadEventTime}ms`); } }); }); observer.observe({ type: "navigation", buffered: true }); ``` Example using {{domxref("Performance.getEntriesByType()")}}, which only shows `navigation` performance entries present in the browser's performance timeline at the time you call this method: ```js const entries = performance.getEntriesByType("navigation"); entries.forEach((entry) => { const loadEventTime = entry.loadEventEnd - entry.loadEventStart; if (loadEventTime > 0) { console.log(`${entry.name}: load event handler time: ${loadEventTime}ms`); } }); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [`load`](/en-US/docs/Web/API/Window/load_event) event
0
data/mdn-content/files/en-us/web/api/performancenavigationtiming
data/mdn-content/files/en-us/web/api/performancenavigationtiming/domcontentloadedeventstart/index.md
--- title: "PerformanceNavigationTiming: domContentLoadedEventStart property" short-title: domContentLoadedEventStart slug: Web/API/PerformanceNavigationTiming/domContentLoadedEventStart page-type: web-api-instance-property browser-compat: api.PerformanceNavigationTiming.domContentLoadedEventStart --- {{APIRef("Performance API")}} The **`domContentLoadedEventStart`** read-only property returns a {{domxref("DOMHighResTimeStamp")}} representing the time immediately before the current document's [`DOMContentLoaded`](/en-US/docs/Web/API/Document/DOMContentLoaded_event) event handler starts. Typically frameworks and libraries wait for the `DOMContentLoaded` event before starting to run their code. We can use the `domContentLoadedEventStart` and the [`domContentLoadedEventEnd`](/en-US/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventEnd) properties to calculate how long this takes to run. ## Value A {{domxref("DOMHighResTimeStamp")}} representing the time immediately before the current document's [`DOMContentLoaded`](/en-US/docs/Web/API/Document/DOMContentLoaded_event) event handler starts. ## Examples ### Measuring `DOMContentLoaded` event handler time The `domContentLoadedEventStart` property can be used to measure how long it takes process the [`DOMContentLoaded`](/en-US/docs/Web/API/Document/DOMContentLoaded_event) event handler. Example using a {{domxref("PerformanceObserver")}}, which notifies of new `navigation` performance entries as they are recorded in the browser's performance timeline. Use the `buffered` option to access entries from before the observer creation. ```js const observer = new PerformanceObserver((list) => { list.getEntries().forEach((entry) => { const domContentLoadedTime = entry.domContentLoadedEventEnd - entry.domContentLoadedEventStart; console.log( `${entry.name}: DOMContentLoaded processing time: ${domContentLoadedTime}ms`, ); }); }); observer.observe({ type: "navigation", buffered: true }); ``` Example using {{domxref("Performance.getEntriesByType()")}}, which only shows `navigation` performance entries present in the browser's performance timeline at the time you call this method: ```js const entries = performance.getEntriesByType("navigation"); entries.forEach((entry) => { const domContentLoadedTime = entry.domContentLoadedEventEnd - entry.domContentLoadedEventStart; console.log( `${entry.name}: DOMContentLoaded processing time: ${domContentLoadedTime}ms`, ); }); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [DOMContentLoaded](/en-US/docs/Web/API/Document/DOMContentLoaded_event)
0
data/mdn-content/files/en-us/web/api/performancenavigationtiming
data/mdn-content/files/en-us/web/api/performancenavigationtiming/type/index.md
--- title: "PerformanceNavigationTiming: type property" short-title: type slug: Web/API/PerformanceNavigationTiming/type page-type: web-api-instance-property browser-compat: api.PerformanceNavigationTiming.type --- {{APIRef("Performance API")}} The **`type`** read-only property returns the type of navigation. You can use this property to categorize your navigation timing data as each of these types will have different performance characteristics. Users going back and forth might experience a faster site than users performing navigation for the first time or submitting forms, etc. For example, if your site provides new content frequently, you might want to refresh that content using [Fetch](/en-US/docs/Web/API/Fetch_API) or similar and avoid users having to hit reload for the entire page all the time. The `"reload"` type can help you find pages that are reloaded frequently. ## Value The `type` property can have the following values: - `"navigate"` - : Navigation started by clicking a link, entering the URL in the browser's address bar, form submission, or initializing through a script operation other than `reload` and `back_forward` as listed below. - `"reload"` - : Navigation is through the browser's reload operation, {{domxref("location.reload()")}} or a Refresh pragma directive like `<meta http-equiv="refresh" content="300">`. - `"back_forward"` - : Navigation is through the browser's history traversal operation. - `"prerender"` - : Navigation is initiated by a [prerender hint](/en-US/docs/Web/HTML/Attributes/rel/prerender). ## Examples ### Logging reload navigation The `type` property can be used to check whether the navigation was of type `reload`. You could collect these `reload` entries in a server-side endpoint to determine which pages of your site gets reloaded the most, or collect all navigation types and determine what percent of users go back and forward, for example. Example using a {{domxref("PerformanceObserver")}}, which notifies of new `navigation` performance entries as they are recorded in the browser's performance timeline. Use the `buffered` option to access entries from before the observer creation. ```js const observer = new PerformanceObserver((list) => { list.getEntries().forEach((entry) => { if (entry.type === "reload") { console.log(`${entry.name} was reloaded!`); console.log(entry); } }); }); observer.observe({ type: "navigation", buffered: true }); ``` Example using {{domxref("Performance.getEntriesByType()")}}, which only shows `navigation` performance entries present in the browser's performance timeline at the time you call this method: ```js const entries = performance.getEntriesByType("navigation"); entries.forEach((entry) => { if (entry.type === "reload") { console.log(`${entry.name} was reloaded!`); console.log(entry); } }); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}}
0
data/mdn-content/files/en-us/web/api/performancenavigationtiming
data/mdn-content/files/en-us/web/api/performancenavigationtiming/tojson/index.md
--- title: "PerformanceNavigationTiming: toJSON() method" short-title: toJSON() slug: Web/API/PerformanceNavigationTiming/toJSON page-type: web-api-instance-method browser-compat: api.PerformanceNavigationTiming.toJSON --- {{APIRef("Performance API")}} The **`toJSON()`** method of the {{domxref("PerformanceNavigationTiming")}} interface is a {{Glossary("Serialization","serializer")}}; it returns a JSON representation of the {{domxref("PerformanceNavigationTiming")}} object. ## Syntax ```js-nolint toJSON() ``` ### Parameters None. ### Return value A {{jsxref("JSON")}} object that is the serialization of the {{domxref("PerformanceNavigationTiming")}} object. ## Examples ### Using the toJSON method In this example, calling `entry.toJSON()` returns a JSON representation of the `PerformanceNavigationTiming` object. ```js const observer = new PerformanceObserver((list) => { list.getEntries().forEach((entry) => { console.log(entry.toJSON()); }); }); observer.observe({ entryTypes: ["navigation"] }); ``` This would log a JSON object like so: ```json { "name": "https://en.wikipedia.org/wiki/Main_Page", "entryType": "navigation", "startTime": 0, "duration": 227.60000002384186, "initiatorType": "navigation", "nextHopProtocol": "h2", "renderBlockingStatus": "blocking", "workerStart": 0, "redirectStart": 4, "redirectEnd": 71.40000000596046, "fetchStart": 71.40000000596046, "domainLookupStart": 71.40000000596046, "domainLookupEnd": 71.40000000596046, "connectStart": 71.40000000596046, "connectEnd": 71.40000000596046, "secureConnectionStart": 71.40000000596046, "requestStart": 73.7000000178814, "responseStart": 102.90000000596046, "responseEnd": 105.2000000178814, "transferSize": 19464, "encodedBodySize": 19164, "decodedBodySize": 83352, "serverTiming": [ { "name": "cache", "duration": 0, "description": "hit-front" }, { "name": "host", "duration": 0, "description": "cp3062" } ], "unloadEventStart": 0, "unloadEventEnd": 0, "domInteractive": 178.10000002384186, "domContentLoadedEventStart": 178.2000000178814, "domContentLoadedEventEnd": 178.2000000178814, "domComplete": 227.60000002384186, "loadEventStart": 227.60000002384186, "loadEventEnd": 227.60000002384186, "type": "navigate", "redirectCount": 1, "activationStart": 0 } ``` To get a JSON string, you can use [`JSON.stringify(entry)`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) directly; it will call `toJSON()` automatically. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{jsxref("JSON")}}
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/filelist/index.md
--- title: FileList slug: Web/API/FileList page-type: web-api-interface browser-compat: api.FileList --- {{APIRef("File API")}}{{AvailableInWorkers}} The **`FileList`** interface represents an object of this type returned by the `files` property of the HTML {{HTMLElement("input")}} element; this lets you access the list of files selected with the `<input type="file">` element. It's also used for a list of files dropped into web content when using the drag and drop API; see the {{domxref("DataTransfer")}} object for details on this usage. All `<input>` element nodes have a `files` attribute of type `FileList` on them which allows access to the items in this list. For example, if the HTML includes the following file input: ```html <input id="fileItem" type="file" /> ``` The following line of code fetches the first file in the node's file list as a {{domxref("File")}} object: ```js const file = document.getElementById("fileItem").files[0]; ``` > **Note:** This interface was an [attempt to create an unmodifiable list](https://stackoverflow.com/questions/74630989/why-use-domstringlist-rather-than-an-array/74641156#74641156) and only continues to be supported to not break code that's already using it. Modern APIs use types that wrap around ECMAScript array types instead, so you can treat them like ECMAScript arrays, and at the same time impose additional semantics on their usage (such as making their items read-only). ## Instance properties - {{DOMxRef("FileList.length", "length")}} {{ReadOnlyInline}} - : A read-only value indicating the number of files in the list. ## Instance methods - {{DOMxRef("FileList.item()", "item()")}} - : Returns a {{domxref("File")}} object representing the file at the specified index in the file list. ## Example ### Logging filenames In this example, we log the names of all the files selected by the user. #### HTML ```html <input id="myfiles" multiple type="file" /> <pre class="output">Selected files:</pre> ``` #### CSS ```css .output { overflow: scroll; margin: 1rem 0; height: 200px; } ``` #### JavaScript ```js const output = document.querySelector(".output"); const fileInput = document.querySelector("#myfiles"); fileInput.addEventListener("change", () => { for (const file of fileInput.files) { output.innerText += `\n${file.name}`; } }); ``` #### Result {{EmbedLiveSample("Logging filenames")}} ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [Using files from web applications](/en-US/docs/Web/API/File_API/Using_files_from_web_applications) - {{domxref("File")}} - {{domxref("FileReader")}}
0
data/mdn-content/files/en-us/web/api/filelist
data/mdn-content/files/en-us/web/api/filelist/length/index.md
--- title: "FileList: length property" short-title: length slug: Web/API/FileList/length page-type: web-api-instance-property browser-compat: api.FileList.length --- {{APIRef("File API")}}{{AvailableInWorkers}} The **`length`** read-only property of the {{domxref("FileList")}} interface returns the number of files in the `FileList`. ## Value A number indicating the number of files in the list. ## Examples ### Printing the number of files selected In this example, we use `length` to find the number of items in the `FileList`. #### HTML ```html <input type="file" multiple /> <div class="output"></div> ``` #### JavaScript ```js const fileInput = document.querySelector("input[type=file]"); const output = document.querySelector(".output"); fileInput.addEventListener("change", () => { const fileList = fileInput.files; output.textContent = `You've selected: ${fileList.length} file(s)`; }); ``` #### Result {{EmbedLiveSample("Printing the number of files selected")}} ## Specifications {{Specifications}} ## Browser compatibility {{Compat}}
0
data/mdn-content/files/en-us/web/api/filelist
data/mdn-content/files/en-us/web/api/filelist/item/index.md
--- title: "FileList: item() method" short-title: item() slug: Web/API/FileList/item page-type: web-api-instance-method browser-compat: api.FileList.item --- {{APIRef("File API")}}{{AvailableInWorkers}} The **`item()`** method of the {{domxref("FileList")}} interface returns a {{domxref("File")}} object representing the file at the specified index in the file list. ## Syntax ```js-nolint item(index) ``` ### Parameters - `index` - : The zero-based index of the file to retrieve from the list. ### Return value A {{domxref("File")}} object representing the requested file. ## Examples ### Printing the name of a file In this example, we use `item()` to select the first item in the `FileList`. #### HTML ```html <input type="file" /> <div class="output"></div> ``` #### JavaScript ```js const fileInput = document.querySelector("input[type=file]"); const output = document.querySelector(".output"); fileInput.addEventListener("change", () => { const fileList = fileInput.files; if (fileList.length > 0) { const file = fileList.item(0); output.textContent = `You selected: ${file.name}`; } }); ``` #### Result {{EmbedLiveSample("Printing the name of a file")}} ## Specifications {{Specifications}} ## Browser compatibility {{Compat}}
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/svgtransformlist/index.md
--- title: SVGTransformList slug: Web/API/SVGTransformList page-type: web-api-interface browser-compat: api.SVGTransformList --- {{APIRef("SVG")}} ## SVG transform list interface The `SVGTransformList` defines a list of {{ domxref("SVGTransform") }} objects. An `SVGTransformList` object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown. An `SVGTransformList` is indexable and can be accessed like an array. ### Interface overview <table class="standard-table"> <tbody> <tr> <th scope="row">Also implement</th> <td><em>None</em></td> </tr> <tr> <th scope="row">Methods</th> <td> <ul> <li><code>void clear()</code></li> <li> {{ domxref("SVGTransform") }} <code >initialize(in {{ domxref("SVGTransform") }} <em>newItem</em>)</code > </li> <li> {{ domxref("SVGTransform") }} <code>getItem(in unsigned long <em>index</em>)</code> </li> <li> {{ domxref("SVGTransform") }} <code >insertItemBefore(in {{ domxref("SVGTransform") }} <em>newItem</em>, in unsigned long <em>index</em>)</code > </li> <li> {{ domxref("SVGTransform") }} <code >replaceItem(in {{ domxref("SVGTransform") }} <em>newItem</em>, in unsigned long <em>index</em>)</code > </li> <li> {{ domxref("SVGTransform") }} <code>removeItem(in unsigned long <em>index</em>)</code> </li> <li> {{ domxref("SVGTransform") }} <code >appendItem(in {{ domxref("SVGTransform") }} <em>newItem</em>)</code > </li> <li> {{ domxref("SVGTransform") }} <code >createSVGTransformFromMatrix(in {{ domxref("DOMMatrix") }})</code > </li> <li> {{ domxref("SVGTransform") }} <code>consolidate()</code> </li> </ul> </td> </tr> <tr> <th scope="row">Properties</th> <td> <ul> <li>readonly unsigned long <code>numberOfItems</code></li> <li> readonly unsigned long <code>length</code> {{ non-standard_inline() }} </li> </ul> </td> </tr> <tr> <th scope="row">Normative document</th> <td> <a href="https://www.w3.org/TR/SVG/coords.html#InterfaceSVGTransformList" >SVG 1.1 (2nd Edition)</a > </td> </tr> </tbody> </table> ## Instance properties | Name | Type | Description | | ------------------------------------ | ------------- | -------------------------------- | | `numberOfItems` | unsigned long | The number of items in the list. | | `length` {{ non-standard_inline() }} | unsigned long | The number of items in the list. | ## Instance methods <table class="standard-table"> <thead> <tr> <th>Name &#x26; Arguments</th> <th>Return</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td> <code><strong>clear</strong>()</code> </td> <td><code>void</code></td> <td> <p> Clears all existing current items from the list, with the result being an empty list. </p> <p><strong>Exceptions:</strong></p> <ul> <li> a {{ domxref("DOMException") }} with code <code>NO_MODIFICATION_ALLOWED_ERR</code> is raised when the list corresponds to a read only attribute or when the object itself is read only. </li> </ul> </td> </tr> <tr> <td> <code ><strong>initialize</strong>(in {{ domxref("SVGTransform") }} <em>newItem</em>)</code > </td> <td>{{ domxref("SVGTransform") }}</td> <td> <p> Clears all existing current items from the list and re-initializes the list to hold the single item specified by the parameter. If the inserted item is already in a list, it is removed from its previous list before it is inserted into this list. The inserted item is the item itself and not a copy. The return value is the item inserted into the list. </p> <p><strong>Exceptions:</strong></p> <ul> <li> a {{ domxref("DOMException") }} with code <code>NO_MODIFICATION_ALLOWED_ERR</code> is raised when the list corresponds to a read only attribute or when the object itself is read only. </li> </ul> </td> </tr> <tr> <td> <code><strong>getItem</strong>(in unsigned long <em>index</em>)</code> </td> <td>{{ domxref("SVGTransform") }}</td> <td> <p> Returns the specified item from the list. The returned item is the item itself and not a copy. Any changes made to the item are immediately reflected in the list. The first item is number 0. </p> <p><strong>Exceptions:</strong></p> <ul> <li> a {{ domxref("DOMException") }} with code <code>NO_MODIFICATION_ALLOWED_ERR</code> is raised when the list corresponds to a read only attribute or when the object itself is read only. </li> </ul> </td> </tr> <tr> <td> <code ><strong>insertItemBefore</strong>(in {{ domxref("SVGTransform") }} <em>newItem</em>, in unsigned long <em>index</em>)</code > </td> <td>{{ domxref("SVGTransform") }}</td> <td> <p> Inserts a new item into the list at the specified position. The first item is number 0. If <code>newItem</code> is already in a list, it is removed from its previous list before it is inserted into this list. The inserted item is the item itself and not a copy. If the item is already in this list, note that the index of the item to insert before is before the removal of the item. If the <code>index</code> is equal to 0, then the new item is inserted at the front of the list. If the index is greater than or equal to <code>numberOfItems</code>, then the new item is appended to the end of the list. </p> <p><strong>Exceptions:</strong></p> <ul> <li> a {{ domxref("DOMException") }} with code <code>NO_MODIFICATION_ALLOWED_ERR</code> is raised when the list corresponds to a read only attribute or when the object itself is read only. </li> </ul> </td> </tr> <tr> <td> <code ><strong>replaceItem</strong>(in {{ domxref("SVGTransform") }} <em>newItem</em>, in unsigned long <em>index</em>)</code > </td> <td>{{ domxref("SVGTransform") }}</td> <td> <p> Replaces an existing item in the list with a new item. If <code>newItem</code> is already in a list, it is removed from its previous list before it is inserted into this list. The inserted item is the item itself and not a copy. If the item is already in this list, note that the index of the item to replace is before the removal of the item. </p> <p><strong>Exceptions:</strong></p> <ul> <li> a {{ domxref("DOMException") }} with code <code>NO_MODIFICATION_ALLOWED_ERR</code> is raised when the list corresponds to a read only attribute or when the object itself is read only. </li> <li> a {{ domxref("DOMException") }} with code <code>INDEX_SIZE_ERR</code> is raised if the index number is greater than or equal to <code>numberOfItems</code>. </li> </ul> </td> </tr> <tr> <td> <code ><strong>removeItem</strong>(in unsigned long <em>index</em>)</code > </td> <td>{{ domxref("SVGTransform") }}</td> <td> <p>Removes an existing item from the list.</p> <p><strong>Exceptions:</strong></p> <ul> <li> a {{ domxref("DOMException") }} with code <code>NO_MODIFICATION_ALLOWED_ERR</code> is raised when the list corresponds to a read only attribute or when the object itself is read only. </li> <li> a {{ domxref("DOMException") }} with code <code>INDEX_SIZE_ERR</code> is raised if the index number is greater than or equal to <code>numberOfItems</code>. </li> </ul> </td> </tr> <tr> <td> <code ><strong>appendItem</strong>(in {{ domxref("SVGTransform") }} <em>newItem</em>)</code > </td> <td>{{ domxref("SVGTransform") }}</td> <td> <p> Inserts a new item at the end of the list. If <code>newItem</code> is already in a list, it is removed from its previous list before it is inserted into this list. The inserted item is the item itself and not a copy. </p> <p><strong>Exceptions:</strong></p> <ul> <li> a {{ domxref("DOMException") }} with code <code>NO_MODIFICATION_ALLOWED_ERR</code> is raised when the list corresponds to a read only attribute or when the object itself is read only. </li> </ul> </td> </tr> <tr> <td> <code ><strong>createSVGTransformFromMatrix</strong>(in {{ domxref("DOMMatrix") }})</code > </td> <td>{{ domxref("SVGTransform") }}</td> <td> Creates an <code>SVGTransform</code> object which is initialized to transform of type <code>SVG_TRANSFORM_MATRIX</code> and whose values are the given matrix. The values from the parameter matrix are copied, the matrix parameter is not adopted as <code>SVGTransform::matrix</code>. </td> </tr> <tr> <td> <code><strong>consolidate</strong>()</code> </td> <td>{{ domxref("SVGTransform") }}</td> <td> <p> Consolidates the list of separate <code>SVGTransform</code> objects by multiplying the equivalent transformation matrices together to result in a list consisting of a single <code>SVGTransform</code> object of type <code>SVG_TRANSFORM_MATRIX</code>. The consolidation operation creates new <code>SVGTransform</code> object as the first and only item in the list. The returned item is the item itself and not a copy. Any changes made to the item are immediately reflected in the list. </p> <p><strong>Exceptions:</strong></p> <ul> <li> a {{ domxref("DOMException") }} with code <code>NO_MODIFICATION_ALLOWED_ERR</code> is raised when the list corresponds to a read only attribute or when the object itself is read only. </li> </ul> </td> </tr> </tbody> </table> ## Examples ### Using multiple SVGTransform objects In this example we create a function that will apply three different transformations to the SVG element that has been clicked on. In order to do this we create a separate {{domxref("SVGTransform")}} object for each transformation — such as `translate`, `rotate`, and `scale`. We apply multiple transformation by appending the transform object to the `SVGTransformList` associated with an SVG element. ```html-nolint <svg id="my-svg" viewBox="0 0 300 280" xmlns="http://www.w3.org/2000/svg" version="1.1"> <desc> Example showing how to transform svg elements that using SVGTransform objects </desc> <script type="application/ecmascript"> <![CDATA[ function transformMe(evt) { // svg root element to access the createSVGTransform() function const svgroot = evt.target.parentNode; // SVGTransformList of the element that has been clicked on const tfmList = evt.target.transform.baseVal; // Create a separate transform object for each transform const translate = svgroot.createSVGTransform(); translate.setTranslate(50,5); const rotate = svgroot.createSVGTransform(); rotate.setRotate(10,0,0); const scale = svgroot.createSVGTransform(); scale.setScale(0.8,0.8); // apply the transformations by appending the SVGTransform objects to the SVGTransformList associated with the element tfmList.appendItem(translate); tfmList.appendItem(rotate); tfmList.appendItem(scale); } ]]> </script> <polygon fill="orange" stroke="black" stroke-width="5" points="100,225 100,115 130,115 70,15 70,15 10,115 40,115 40,225" onclick="transformMe(evt)" /> <rect x="200" y="100" width="100" height="100" fill="yellow" stroke="black" stroke-width="5" onclick="transformMe(evt)" /> <text x="40" y="250" font-family="Verdana" font-size="16" fill="green"> Click on a shape to transform it </text> </svg> ``` Live preview: {{EmbedLiveSample("Using_multiple_SVGTransform_objects",300,280)}} ## Specifications {{Specifications}} ## Browser compatibility {{Compat}}
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/mediadevices/index.md
--- title: MediaDevices slug: Web/API/MediaDevices page-type: web-api-interface browser-compat: api.MediaDevices --- {{APIRef("Media Capture and Streams")}}{{SecureContext_Header}} The **`MediaDevices`** interface of the {{domxref("Media Capture and Streams API", "", "", "nocode")}} provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data. {{InheritanceDiagram}} ## Instance properties _Inherits properties from its parent interface, {{domxref("EventTarget")}}._ ## Instance methods _Inherits methods from its parent interface, {{domxref("EventTarget")}}._ - {{domxref("MediaDevices.enumerateDevices", "enumerateDevices()")}} - : Obtains an array of information about the media input and output devices available on the system. - {{domxref("MediaDevices.getSupportedConstraints", "getSupportedConstraints()")}} - : Returns an object conforming to {{domxref("MediaTrackSupportedConstraints")}} indicating which constrainable properties are supported on the {{domxref("MediaStreamTrack")}} interface. See [Media Streams API](/en-US/docs/Web/API/Media_Capture_and_Streams_API/Constraints) to learn more about constraints and how to use them. - {{domxref("MediaDevices.getDisplayMedia", "getDisplayMedia()")}} - : Prompts the user to select a display or portion of a display (such as a window) to capture as a {{domxref("MediaStream")}} for sharing or recording purposes. Returns a promise that resolves to a `MediaStream`. - {{domxref("MediaDevices.getUserMedia", "getUserMedia()")}} - : With the user's permission through a prompt, turns on a camera and/or a microphone on the system and provides a {{domxref("MediaStream")}} containing a video track and/or an audio track with the input. - {{domxref("MediaDevices.selectAudioOutput", "selectAudioOutput()") }} {{Experimental_Inline}} - : Prompts the user to select a specific audio output device. ## Events - {{domxref("MediaDevices/devicechange_event", "devicechange")}} - : Fired when a media input or output device is attached to or removed from the user's computer. ## Example ```js // Put variables in global scope to make them available to the browser console. const video = document.querySelector("video"); const constraints = { audio: false, video: true, }; navigator.mediaDevices .getUserMedia(constraints) .then((stream) => { const videoTracks = stream.getVideoTracks(); console.log("Got stream with constraints:", constraints); console.log(`Using video device: ${videoTracks[0].label}`); stream.onremovetrack = () => { console.log("Stream ended"); }; video.srcObject = stream; }) .catch((error) => { if (error.name === "OverconstrainedError") { console.error( `The resolution ${constraints.video.width.exact}x${constraints.video.height.exact} px is not supported by your device.`, ); } else if (error.name === "NotAllowedError") { console.error( "You need to grant this page permission to access your camera and microphone.", ); } else { console.error(`getUserMedia error: ${error.name}`, error); } }); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [Media Capture and Streams API](/en-US/docs/Web/API/Media_Capture_and_Streams_API): The API this interface is part of. - [Screen Capture API](/en-US/docs/Web/API/Screen_Capture_API): The API defining the {{domxref("MediaDevices.getDisplayMedia", "getDisplayMedia()")}} method. - [WebRTC API](/en-US/docs/Web/API/WebRTC_API) - {{domxref("Navigator.mediaDevices")}}: Returns a reference to a `MediaDevices` object that can be used to access devices. - [CameraCaptureJS:](https://github.com/chrisjohndigital/CameraCaptureJS) HTML video capture and playback using `MediaDevices` and the MediaStream Recording API - [OpenLang](https://github.com/chrisjohndigital/OpenLang): HTML video language lab web application using `MediaDevices` and the MediaStream Recording API for video recording
0
data/mdn-content/files/en-us/web/api/mediadevices
data/mdn-content/files/en-us/web/api/mediadevices/getsupportedconstraints/index.md
--- title: "MediaDevices: getSupportedConstraints() method" short-title: getSupportedConstraints() slug: Web/API/MediaDevices/getSupportedConstraints page-type: web-api-instance-method browser-compat: api.MediaDevices.getSupportedConstraints --- {{APIRef("Media Capture and Streams")}}{{SecureContext_Header}} The **`getSupportedConstraints()`** method of the {{domxref("MediaDevices")}} interface returns an object based on the {{domxref("MediaTrackSupportedConstraints")}} dictionary, whose member fields each specify one of the constrainable properties the {{Glossary("user agent")}} understands. ## Syntax ```js-nolint getSupportedConstraints() ``` ### Parameters None. ### Return value A new object based on the {{domxref("MediaTrackSupportedConstraints")}} dictionary listing the constraints supported by the user agent. Because only constraints supported by the user agent are included in the list, each of these Boolean properties has the value `true`. ## Examples This example outputs a list of the constraints supported by your browser. ```html hidden <p>The following media constraints are supported by your browser:</p> <ul id="constraintList"></ul> ``` ```css hidden body { font: 15px Arial, sans-serif; } ``` ```js const constraintList = document.querySelector("#constraintList"); const supportedConstraints = navigator.mediaDevices.getSupportedConstraints(); for (const constraint of Object.keys(supportedConstraints)) { const elem = document.createElement("li"); elem.innerHTML = `<code>${constraint}</code>`; constraintList.appendChild(elem); } ``` ### Result {{ EmbedLiveSample('Examples', 600, 350) }} ## Specifications {{Specifications}} ## Browser compatibility {{Compat}}
0
data/mdn-content/files/en-us/web/api/mediadevices
data/mdn-content/files/en-us/web/api/mediadevices/selectaudiooutput/index.md
--- title: "MediaDevices: selectAudioOutput() method" short-title: selectAudioOutput() slug: Web/API/MediaDevices/selectAudioOutput page-type: web-api-instance-method status: - experimental browser-compat: api.MediaDevices.selectAudioOutput --- {{APIRef("Audio Output Devices API")}}{{securecontext_header}}{{SeeCompatTable}} The **`MediaDevices.selectAudioOutput()`** method of the [Audio Output Devices API](/en-US/docs/Web/API/Audio_Output_Devices_API) prompts the user to select an audio output device, such as a speaker or headset. If the user selects a device, the method grants user permission to use the selected device as an audio output sink. Following selection, if the device is available it can be enumerated using {{domxref("MediaDevices.enumerateDevices()")}} and set as the audio output sink using {{domxref("HTMLMediaElement.setSinkId()")}}. On success, the returned {{jsxref("Promise")}} is resolved with a {{domxref("MediaDeviceInfo")}} describing the selected device. ## Syntax ```js-nolint selectAudioOutput() selectAudioOutput(options) ``` ### Parameters - `options` {{Optional_Inline}} - : An object that configures what device(s) may be offered in the user prompt. - `deviceId` {{Optional_Inline}} - : A string representing the ID of a single previously exposed/permitted device. If not set, a prompt with all available audio output devices will be displayed. The option is intended for applications that want to store a device id so that the same device can be used by default in future sessions. Note that the method may return a new ID for the same device, and that persisted ids _must be passed_ through `selectAudioOutput()` successfully before they will work with {{domxref("HTMLMediaElement.setSinkId","setSinkId()")}}. > **Note:** A user agent may choose to skip prompting the user if a specified non-null id was previously exposed to the user by `selectAudioOutput()` in an earlier session. > In this case the user agent may simply resolve with this device id, or a new id for the same device if it has changed. > If permission for the specified device was previously granted but has since been revoked, the user-agent might display all allowed devices, highlighting the one with the specified ID. ### Return value A {{ jsxref("Promise") }} that is fulfilled with a {{domxref("MediaDeviceInfo")}} object that describes the audio output device selected by the user. ### Exceptions - `NotAllowedError` {{domxref("DOMException")}} - : Returned if a [`speaker-selection`](/en-US/docs/Web/HTTP/Headers/Permissions-Policy/speaker-selection) [Permissions Policy](/en-US/docs/Web/HTTP/Permissions_Policy) is used to block use of audio outputs (in addition the popup for selecting an audio output won't be displayed), or the user closed the selection prompt without choosing a device. - `NotFoundError` {{domxref("DOMException")}} - : Returned if there are no available audio output devices. - `InvalidStateError` {{domxref("DOMException")}} - : Returned if there hasn't been a {{Glossary("transient activation")}} (you must trigger it from some kind of UI event). ## Security requirements Access to the API is subject to the following constraints: - The method must be called in a [secure context](/en-US/docs/Web/Security/Secure_Contexts). - [Transient user activation](/en-US/docs/Web/Security/User_activation) is required. The user has to interact with the page or a UI element for this feature to work. - Access may be gated by the [`speaker-selection`](/en-US/docs/Web/HTTP/Headers/Permissions-Policy/midi) HTTP [Permission Policy](/en-US/docs/Web/HTTP/Permissions_Policy). The permission status can be queried using the [Permissions API](/en-US/docs/Web/API/Permissions_API) method {{domxref("Permissions.query", "navigator.permissions.query()")}}, passing a permission descriptor with the `speaker-selection` permission. ## Examples Here's an example of using `selectAudioOutput()`, within a function that is triggered by a button click. It outputs the selected {{domxref("MediaDeviceInfo.deviceId", "device IDs", "", "nocode")}} and labels (if available) or an error message. ```js document.querySelector("#myButton").addEventListener("click", () => { if (!navigator.mediaDevices.selectAudioOutput) { console.log("selectAudioOutput() not supported."); return; } // Display prompt and log selected device or error navigator.mediaDevices .selectAudioOutput() .then((device) => { console.log(`${device.kind}: ${device.label} id = ${device.deviceId}`); }) .catch((err) => { console.error(`${err.name}: ${err.message}`); }); }); ``` On selection of an output this might produce: ```bash audiooutput: Realtek Digital Output (Realtek(R) Audio) id = 0wE6fURSZ20H0N2NbxqgowQJLWbwo+5ablCVVJwRM3k= ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{domxref("HTMLMediaElement.setSinkId()")}} - {{domxref("HTMLMediaElement.sinkId")}} - [WebRTC](/en-US/docs/Web/API/WebRTC_API) - the introductory page to the API
0
data/mdn-content/files/en-us/web/api/mediadevices
data/mdn-content/files/en-us/web/api/mediadevices/devicechange_event/index.md
--- title: "MediaDevices: devicechange event" short-title: devicechange slug: Web/API/MediaDevices/devicechange_event page-type: web-api-event browser-compat: api.MediaDevices.devicechange_event --- {{APIRef("Media Capture and Streams")}}{{SecureContext_Header}} The **`devicechange`** event is sent to a {{domxref("MediaDevices")}} instance whenever a media device such as a camera, microphone, or speaker is connected to or removed from the system. This event is not cancelable and does not bubble. ## Syntax Use the event name in methods like {{domxref("EventTarget.addEventListener", "addEventListener()")}}, or set an event handler property. ```js addEventListener("devicechange", (event) => {}); ondevicechange = (event) => {}; ``` ## Event type A generic {{domxref("Event")}}. ## Example In this example, we create a function called `updateDeviceList()`, which is called once when {{domxref("MediaDevices.getUserMedia()")}} successfully obtains a stream, and then is called any time the device list changes. It displays in the browser window two lists: one of audio devices and one of video devices, with both the device's label (name) and whether it's an input or an output device. Because the example provides a handler for the `devicechange` event, the list is refreshed any time a media device is attached to or removed from the device running the sample. ```html hidden <p>Click the start button below to begin the demonstration.</p> <div id="startButton" class="button">Start</div> <video id="video" width="160" height="120" autoplay></video><br /> <div class="left"> <h2>Audio devices:</h2> <ul class="deviceList" id="audioList"></ul> </div> <div class="right"> <h2>Video devices:</h2> <ul class="deviceList" id="videoList"></ul> </div> <output></output> ``` ```css hidden body { font: 14px "Open Sans", "Arial", sans-serif; } video { margin-top: 20px; border: 1px solid black; } .button { cursor: pointer; width: 160px; border: 1px solid black; font-size: 16px; text-align: center; padding-top: 2px; padding-bottom: 4px; color: white; background-color: darkgreen; } h2 { margin-bottom: 4px; } .left { float: left; width: 48%; margin-right: 2%; } .right { float: right; width: 48%; margin-left: 2%; } .deviceList { border: 1px solid black; list-style-type: none; margin-top: 2px; padding: 6px; } ``` ```js hidden // UI elements const videoElement = document.querySelector("#video"); const logElement = document.querySelector("output"); const startButton = document.querySelector("#startButton"); function log(msg) { logElement.innerHTML += `${msg}<br>`; } startButton.addEventListener( "click", () => { const constraints = { video: { width: 160, height: 120, frameRate: 30, }, audio: { sampleRate: 44100, sampleSize: 16, volume: 0.25, }, }; navigator.mediaDevices .getUserMedia(constraints) .then((stream) => { videoElement.srcObject = stream; updateDeviceList(); }) .catch((err) => { log(`${err.name}: ${err.message}`); }); }, false, ); ``` We set up global variables that contain references to the {{HTMLElement("ul")}} elements that are used to list the audio and video devices: ```js const audioList = document.getElementById("audioList"); const videoList = document.getElementById("videoList"); ``` ### Getting and drawing the device list Now let's take a look at `updateDeviceList()` itself. This method is called any time we want to fetch the current list of media devices and then update the displayed lists of audio and video devices using that information. ```js function updateDeviceList() { navigator.mediaDevices.enumerateDevices().then((devices) => { audioList.innerHTML = ""; videoList.innerHTML = ""; devices.forEach((device) => { const elem = document.createElement("li"); const [kind, type, direction] = device.kind.match(/(\w+)(input|output)/i); elem.innerHTML = `<strong>${device.label}</strong> (${direction})`; if (type === "audio") { audioList.appendChild(elem); } else if (type === "video") { videoList.appendChild(elem); } }); }); } ``` `updateDeviceList()` consists entirely of a call to the function {{domxref("MediaDevices.enumerateDevices", "enumerateDevices()")}} on the {{domxref("MediaDevices")}} object referenced in the {{domxref("navigator.mediaDevices")}} property, as well as the code that's run when the {{jsxref("promise")}} returned by `enumerateDevices()` is fulfilled. The fulfillment handler is called when the device list is ready. The list is passed into the fulfillment handler as an array of {{domxref("MediaDeviceInfo")}} objects, each describing one media input or output device. A {{jsxref("Array.forEach", "forEach()")}} loop is used to scan through all the devices. For each device, we create a new {{HTMLElement("li")}} object to be used to display it to the user. The line `let [kind, type, direction] = device.kind.match(/(\w+)(input|output)/i);` deserves special notice. This uses [destructuring assignment](/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment) to assign the values of the first three items in the array returned by {{jsxref("String.match()")}} to the variables `kind`, `type`, and `direction`. We do this because the value of {{domxref("MediaDeviceInfo.kind")}} is a single string that includes both the media type and the direction the media flows, such as "audioinput" or "videooutput". This line, then, pulls out the type ("audio" or "video") and direction ("input" or "output") so they can be used to construct the string displayed in the list. Once the string is assembled, containing the device's name in bold and the direction in parentheses, it's appended to the appropriate list by calling {{domxref("Node.appendChild", "appendChild()")}} on either `audioList` or `videoList`, as appropriate based on the device type. ### Handling device list changes We call `updateDeviceList()` in two places. The first is in the {{domxref("MediaDevices.getUserMedia", "getUserMedia()")}} promise's fulfillment handler, to initially fill out the list when the stream is opened. The second is in the event handler for this `devicechange` event: ```js navigator.mediaDevices.ondevicechange = (event) => { updateDeviceList(); }; ``` With this code in place, each time the user plugs in a camera, microphone, or other media device, or turns one on or off, we call `updateDeviceList()` to redraw the list of connected devices. ### Result {{ EmbedLiveSample('Example', 600, 460, "", "", "", "camera;microphone") }} ## Specifications {{Specifications}} ## Browser compatibility {{Compat}}
0
data/mdn-content/files/en-us/web/api/mediadevices
data/mdn-content/files/en-us/web/api/mediadevices/getusermedia/index.md
--- title: "MediaDevices: getUserMedia() method" short-title: getUserMedia() slug: Web/API/MediaDevices/getUserMedia page-type: web-api-instance-method browser-compat: api.MediaDevices.getUserMedia --- {{securecontext_header}}{{APIRef("Media Capture and Streams")}} The **`getUserMedia()`** method of the {{domxref("MediaDevices")}} interface prompts the user for permission to use a media input which produces a {{domxref("MediaStream")}} with tracks containing the requested types of media. That stream can include, for example, a video track (produced by either a hardware or virtual video source such as a camera, video recording device, screen sharing service, and so forth), an audio track (similarly, produced by a physical or virtual audio source like a microphone, A/D converter, or the like), and possibly other track types. It returns a {{jsxref("Promise")}} that resolves to a {{domxref("MediaStream")}} object. If the user denies permission, or matching media is not available, then the promise is rejected with `NotAllowedError` or `NotFoundError` {{domxref("DOMException")}} respectively. > **Note:** It's possible for the returned promise to _neither_ resolve nor reject, as the user is not required to make a choice at all and may ignore the request. ## Syntax ```js-nolint getUserMedia(constraints) ``` ### Parameters - `constraints` - : An object specifying the types of media to request, along with any requirements for each type. The `constraints` parameter is an object with two members: `video` and `audio`, describing the media types requested. Either or both must be specified. If the browser cannot find all media tracks with the specified types that meet the constraints given, then the returned promise is rejected with `NotFoundError` {{domxref("DOMException")}}. For both `video` and `audio`, its value is either a boolean or an object. The default value is `false`. - If `true` is specified for a media type, the resulting stream is _required_ to have that type of track in it. If one cannot be included for any reason, the returned promise will reject. - If `false` is specified for a media type, the resulting stream _must not_ have that type of track, or the returned promise will reject. Because both `video` and `audio` default to `false`, if the `constraints` object contains neither property or if it's not present at all, the returned promise will always reject. - If an object is specified for a media type, the object is read as a {{domxref("MediaTrackConstraints")}} dictionary. ### Return value A {{jsxref("Promise")}} whose fulfillment handler receives a {{domxref("MediaStream")}} object when the requested media has successfully been obtained. ### Exceptions - `AbortError` {{domxref("DOMException")}} - : Although the user and operating system both granted access to the hardware device, and no hardware issues occurred that would cause a `NotReadableError` {{domxref("DOMException")}}, throw if some problem occurred which prevented the device from being used. - `InvalidStateError` {{domxref("DOMException")}} - : Thrown if current document is not fully active. - `NotAllowedError` {{domxref("DOMException")}} - : Thrown if one or more of the requested source devices cannot be used at this time. This will happen if the browsing context is insecure (that is, the page was loaded using HTTP rather than HTTPS). It also happens if the user has specified that the current browsing instance is not permitted access to the device, the user has denied access for the current session, or the user has denied all access to user media devices globally. On browsers that support managing media permissions with [Permissions Policy](/en-US/docs/Web/HTTP/Permissions_Policy), this error is returned if Permissions Policy is not configured to allow access to the input source(s). > **Note:** Older versions of the specification used `SecurityError` > for this instead; `SecurityError` has taken on a new meaning. - `NotFoundError` {{domxref("DOMException")}} - : Thrown if no media tracks of the type specified were found that satisfy the given constraints. - `NotReadableError` {{domxref("DOMException")}} - : Thrown if, although the user granted permission to use the matching devices, a hardware error occurred at the operating system, browser, or Web page level which prevented access to the device. - `OverconstrainedError` {{domxref("DOMException")}} - : Thrown if the specified constraints resulted in no candidate devices which met the criteria requested. The error is an object of type `OverconstrainedError`, and has a `constraint` property whose string value is the name of a constraint which was impossible to meet, and a `message` property containing a human-readable string explaining the problem. > **Note:** Because this error can occur even when the user has not yet granted > permission to use the underlying device, it can potentially be used as a > [fingerprinting](/en-US/docs/Glossary/Fingerprinting) surface. - `SecurityError` {{domxref("DOMException")}} - : Thrown if user media support is disabled on the {{domxref("Document")}} on which `getUserMedia()` was called. The mechanism by which user media support is enabled and disabled is left up to the individual user agent. - {{jsxref("TypeError")}} - : Thrown if the list of constraints specified is empty, or has all constraints set to `false`. This can also happen if you try to call `getUserMedia()` in an insecure context, since {{domxref("navigator.mediaDevices")}} is `undefined` in an insecure context. ## Privacy and security As an API that may involve significant privacy concerns, `getUserMedia()`'s specification lays out a wide array of privacy and security requirements that browsers are obligated to meet. `getUserMedia()` is a powerful feature that can only be used in [secure contexts](/en-US/docs/Web/Security/Secure_Contexts); in insecure contexts, `navigator.mediaDevices` is `undefined`, preventing access to `getUserMedia()`. A secure context is, in short, a page loaded using HTTPS or the `file:///` URL scheme, or a page loaded from `localhost`. In addition, user permission is always required to access the user's audio and video inputs. Only a window's top-level document context for a valid origin can even request permission to use `getUserMedia()`, unless the top-level context expressly grants permission for a given {{HTMLElement("iframe")}} to do so using [Permissions Policy](/en-US/docs/Web/HTTP/Permissions_Policy). Otherwise, the user will never even be asked for permission to use the input devices. For additional details on these requirements and rules, how they are reflected in the context in which your code is running, and about how browsers manage user privacy and security issues, read on. ### User privacy As an API that may involve significant privacy concerns, `getUserMedia()` is held by the specification to very specific requirements for user notification and permission management. First, `getUserMedia()` must always get user permission before opening any media gathering input such as a webcam or microphone. Browsers may offer a once-per-domain permission feature, but they must ask at least the first time, and the user must specifically grant ongoing permission if they choose to do so. Of equal importance are the rules around notification. Browsers are required to display an indicator that shows that a camera or microphone is in use, above and beyond any hardware indicator that may exist. They must also show an indicator that permission has been granted to use a device for input, even if the device is not actively recording at the moment. For example in Firefox, the URL bar displays a pulsing red icon to indicate that recording is underway. The icon is gray if the permission is in place but recording is not currently underway. The device's physical light is used to indicate whether or not recording is currently active. If you've muted your camera (so-called "facemuting"), your camera's activity light goes out to indicate that the camera is not actively recording you, without discarding the permission to resume using the camera once muting is over. ### Security There are a number of ways security management and controls in a {{Glossary("user agent")}} can cause `getUserMedia()` to return a security-related error. #### Permissions Policy The two [Permissions Policy](/en-US/docs/Web/HTTP/Permissions_Policy) directives that apply to `getUserMedia()` are `camera` and `microphone`. For example, this HTTP header will enable use of a camera by the document and any embedded {{HTMLElement("iframe")}} elements that are loaded from the same origin: ```http Permissions-Policy: camera=(self) ``` This will request access to the microphone for the current origin and the specific origin `https://developer.mozilla.org`: ```http Permissions-Policy: microphone=(self "https://developer.mozilla.org") ``` If you're using `getUserMedia()` within an `<iframe>`, you can request permission just for that frame, which is clearly more secure than requesting a more general permission. Here, indicate we need the ability to use both camera and microphone: ```html <iframe src="https://mycode.example.net/etc" allow="camera; microphone"> </iframe> ``` #### Encryption based security The `getUserMedia()` method is only available in [secure contexts](/en-US/docs/Web/Security/Secure_Contexts). A secure context is one the browser is reasonably confident contains a document which was loaded securely, using HTTPS/TLS, and has limited exposure to insecure contexts. If a document isn't loaded in a secure context, the {{domxref("navigator.mediaDevices")}} property is `undefined`, making access to `getUserMedia()` impossible. Attempting to access `getUserMedia()` in this situation will result in a {{jsxref("TypeError")}}. #### Document source security Because of the obvious security concern associated with `getUserMedia()` if used unexpectedly or without security being carefully managed, it can only be used in secure contexts. There are a number of insecure ways to load a document that might, in turn, attempt to call `getUserMedia()`. The following are examples of situations in which `getUserMedia()` is not permitted to be called: - A document loaded into a sandboxed {{HTMLElement("iframe")}} element cannot call `getUserMedia()` unless the `<iframe>` has its [`sandbox`](/en-US/docs/Web/HTML/Element/iframe#sandbox) attribute set to `allow-same-origin`. - A document loaded using a `data://` or `blob://` URL which has no origin (such as when one of these URLs is typed by the user into the address bar) cannot call `getUserMedia()`. These kinds of URLs loaded from JavaScript code inherit the script's permissions. - Any other situation in which there is no origin, such as when the [`srcdoc`](/en-US/docs/Web/HTML/Element/iframe#srcdoc) attribute is used to specify the contents of a frame. ## Examples ### Using getUserMedia() Generally, you will access the {{domxref("MediaDevices")}} singleton object using {{domxref("navigator.mediaDevices")}}, like this: ```js async function getMedia(constraints) { let stream = null; try { stream = await navigator.mediaDevices.getUserMedia(constraints); /* use the stream */ } catch (err) { /* handle the error */ } } ``` Similarly, using the raw promises directly, the code looks like this: ```js navigator.mediaDevices .getUserMedia(constraints) .then((stream) => { /* use the stream */ }) .catch((err) => { /* handle the error */ }); ``` > **Note:** If the current document isn't loaded securely, > `navigator.mediaDevices` will be `undefined`, and you cannot use > `getUserMedia()`. See [Security](#security) for more information on this and > other security issues related to using `getUserMedia()`. Below are some examples of the `constraints` parameter. The following requests both audio and video without any specific requirements: ```js getUserMedia({ audio: true, video: true, }); ``` While information about a user's cameras and microphones are inaccessible for privacy reasons, an application can request the camera and microphone capabilities it needs and wants, using additional constraints. The following expresses a preference for 1280x720 camera resolution: ```js getUserMedia({ audio: true, video: { width: 1280, height: 720 }, }); ``` The browser will try to honor this, but may return other resolutions if an exact match is not available, or the user overrides it. To _require_ a capability, use the keywords `min`, `max`, or `exact` (a.k.a. `min === max`). The following demands a minimum resolution of 1280x720: ```js getUserMedia({ audio: true, video: { width: { min: 1280 }, height: { min: 720 }, }, }); ``` If no camera exists with this resolution or higher, then the returned promise will be rejected with `OverconstrainedError`, and the user will not be prompted. The reason for the difference in behavior is that the keywords `min`, `max`, and `exact` are inherently mandatory — whereas plain values and a keyword called `ideal` are not. Here's a full example: ```js getUserMedia({ audio: true, video: { width: { min: 1024, ideal: 1280, max: 1920 }, height: { min: 576, ideal: 720, max: 1080 }, }, }); ``` An `ideal` value, when used, has gravity — which means that the browser will try to find the setting (and camera, if you have more than one), with the smallest [fitness distance](https://w3c.github.io/mediacapture-main/#dfn-fitness-distance) from the ideal values given. Plain values are inherently ideal, which means that the first of our resolution examples above could have been written like this: ```js getUserMedia({ audio: true, video: { width: { ideal: 1280 }, height: { ideal: 720 }, }, }); ``` Not all constraints are numbers. For example, on mobile devices, the following will prefer the front camera (if one is available) over the rear one: ```js getUserMedia({ audio: true, video: { facingMode: "user" }, }); ``` To _require_ the rear camera, use: ```js getUserMedia({ audio: true, video: { facingMode: { exact: "environment" }, }, }); ``` Another non-number constraint is the `deviceId` constraint. If you have a `deviceId` from {{domxref("mediaDevices.enumerateDevices()")}}, you can use it to request a specific device: ```js getUserMedia({ video: { deviceId: myPreferredCameraDeviceId, }, }); ``` The above will return the camera you requested, or a different camera if that specific camera is no longer available. Again, to _require_ the specific camera, you would use: ```js getUserMedia({ video: { deviceId: { exact: myExactCameraOrBustDeviceId, }, }, }); ``` ### Width and height This example gives a preference for camera resolution, and assigns the resulting {{domxref("MediaStream")}} object to a video element. ```js // Prefer camera resolution nearest to 1280x720. const constraints = { audio: true, video: { width: 1280, height: 720 }, }; navigator.mediaDevices .getUserMedia(constraints) .then((mediaStream) => { const video = document.querySelector("video"); video.srcObject = mediaStream; video.onloadedmetadata = () => { video.play(); }; }) .catch((err) => { // always check for errors at the end. console.error(`${err.name}: ${err.message}`); }); ``` ### Frame rate Lower frame-rates may be desirable in some cases, like WebRTC transmissions with bandwidth restrictions. ```js const constraints = { video: { frameRate: { ideal: 10, max: 15 } }, }; ``` ### Front and back camera On mobile phones. ```js let front = false; document.getElementById("flip-button").onclick = () => { front = !front; }; const constraints = { video: { facingMode: front ? "user" : "environment" }, }; ``` > **Note:** In certain cases, it may be necessary to release the current camera facing mode before you can switch to a different one. To ensure the camera switch, it is advisable to free up the media resources by invoking the "stop()" method on the track before requesting a different facing mode. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - The older {{domxref("Navigator.getUserMedia()")}} legacy API - {{domxref("MediaDevices.enumerateDevices()")}}: Listing available media devices - {{domxref("WebRTC API", "", "", "nocode")}} - {{domxref("Media Capture and Streams API", "", "", "nocode")}} - {{domxref("Screen Capture API", "", "", "nocode")}}: Capturing screen contents as a {{domxref("MediaStream")}} - {{domxref("MediaDevices.getDisplayMedia()")}}: Getting a stream containing screen contents - {{domxref("Media Capture and Streams API/Taking Still Photos", "Taking webcam photos", "", "nocode")}}: A tutorial on using `getUserMedia()` to take still photos rather than video
0
data/mdn-content/files/en-us/web/api/mediadevices
data/mdn-content/files/en-us/web/api/mediadevices/enumeratedevices/index.md
--- title: "MediaDevices: enumerateDevices() method" short-title: enumerateDevices() slug: Web/API/MediaDevices/enumerateDevices page-type: web-api-instance-method browser-compat: api.MediaDevices.enumerateDevices --- {{APIRef("Media Capture and Streams")}}{{SecureContext_Header}} The **`enumerateDevices()`** method of the {{domxref("MediaDevices")}} interface requests a list of the currently available media input and output devices, such as microphones, cameras, headsets, and so forth. The returned {{jsxref("Promise")}} is resolved with an array of {{domxref("MediaDeviceInfo")}} objects describing the devices. The returned list will omit any devices that are blocked by the document [Permission Policy](/en-US/docs/Web/HTTP/Headers/Permissions-Policy): [`microphone`](/en-US/docs/Web/HTTP/Headers/Permissions-Policy/microphone), [`camera`](/en-US/docs/Web/HTTP/Headers/Permissions-Policy/camera), [`speaker-selection`](/en-US/docs/Web/HTTP/Headers/Permissions-Policy/speaker-selection) (for output devices), and so on. Access to particular non-default devices is also gated by the [Permissions API](/en-US/docs/Web/API/Permissions_API), and the list will omit devices for which the user has not granted explicit permission. ## Syntax ```js-nolint enumerateDevices() ``` ### Parameters None. ### Return value A {{jsxref("Promise")}} that is fulfilled with an array of {{domxref("MediaDeviceInfo")}} objects. Each object in the array describes one of the available media input and output devices. The order is significant — the default capture devices will be listed first. Other than default devices, only devices for which permission has been granted are "available". If the media device is an input device, an {{domxref("InputDeviceInfo")}} object will be returned instead. If enumeration fails, the promise is rejected. ## Security requirements Access to the API is subject to the following constraints: - The method must be called in a [secure context](/en-US/docs/Web/Security/Secure_Contexts). - The document must be fully active and its visibility must be "visible". ## Examples Here's an example of using `enumerateDevices()`. It outputs a list of the [device IDs](/en-US/docs/Web/API/MediaDeviceInfo/deviceId), with their labels if available. ```js if (!navigator.mediaDevices?.enumerateDevices) { console.log("enumerateDevices() not supported."); } else { // List cameras and microphones. navigator.mediaDevices .enumerateDevices() .then((devices) => { devices.forEach((device) => { console.log(`${device.kind}: ${device.label} id = ${device.deviceId}`); }); }) .catch((err) => { console.error(`${err.name}: ${err.message}`); }); } ``` This might produce: ```plain videoinput: id = csO9c0YpAf274OuCPUA53CNE0YHlIr2yXCi+SqfBZZ8= audioinput: id = RKxXByjnabbADGQNNZqLVLdmXlS0YkETYCIbg+XxnvM= audioinput: id = r2/xw1xUPIyZunfV1lGrKOma5wTOvCkWfZ368XCndm0= ``` or if one or more {{domxref("MediaStream")}}s are active or persistent permissions are granted: ```plain videoinput: FaceTime HD Camera (Built-in) id=csO9c0YpAf274OuCPUA53CNE0YHlIr2yXCi+SqfBZZ8= audioinput: default (Built-in Microphone) id=RKxXByjnabbADGQNNZqLVLdmXlS0YkETYCIbg+XxnvM= audioinput: Built-in Microphone id=r2/xw1xUPIyZunfV1lGrKOma5wTOvCkWfZ368XCndm0= ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{domxref("MediaDevices.getUserMedia")}} - [WebRTC](/en-US/docs/Web/API/WebRTC_API) - the introductory page to the API - [Media Capture and Streams API](/en-US/docs/Web/API/Media_Capture_and_Streams_API) - the API for the media stream objects - [Taking webcam photos](/en-US/docs/Web/API/Media_Capture_and_Streams_API/Taking_still_photos) - a tutorial on using `getUserMedia()` for taking photos rather than video.
0
data/mdn-content/files/en-us/web/api/mediadevices
data/mdn-content/files/en-us/web/api/mediadevices/getdisplaymedia/index.md
--- title: "MediaDevices: getDisplayMedia() method" short-title: getDisplayMedia() slug: Web/API/MediaDevices/getDisplayMedia page-type: web-api-instance-method browser-compat: api.MediaDevices.getDisplayMedia --- {{APIRef("Screen Capture API")}}{{SecureContext_Header}} The **`getDisplayMedia()`** method of the {{domxref("MediaDevices")}} interface prompts the user to select and grant permission to capture the contents of a display or portion thereof (such as a window) as a {{domxref("MediaStream")}}. The resulting stream can then be recorded using the [MediaStream Recording API](/en-US/docs/Web/API/MediaStream_Recording_API) or transmitted as part of a [WebRTC](/en-US/docs/Web/API/WebRTC_API) session. See [Using the Screen Capture API](/en-US/docs/Web/API/Screen_Capture_API/Using_Screen_Capture) for more details and an example. ## Syntax ```js-nolint getDisplayMedia() getDisplayMedia(options) ``` ### Parameters - `options` {{optional_inline}} - : An optional object specifying requirements for the returned {{domxref("MediaStream")}}. The options for `getDisplayMedia()` work in the same as the [constraints](/en-US/docs/Web/API/MediaDevices/getUserMedia#parameters) for the {{domxref("MediaDevices.getUserMedia()")}} method, although in that case only `audio` and `video` can be specified. The list of possible option properties for `getDisplayMedia()` is as follows: - `video` {{optional_inline}} - : A boolean or a {{domxref("MediaTrackConstraints")}} instance; the default value is `true`. If this option is omitted or set to `true`, the stream will contain a video track A value of `true` indicates that the returned {{domxref("MediaStream")}} will contain a video track. Since `getDisplayMedia()` requires a video track, if this option is set to `false` the promise will reject with a `TypeError`. - `audio` {{optional_inline}} - : A boolean or a {{domxref("MediaTrackConstraints")}} instance; the default value is `false`. A value of `true` indicates that the returned {{domxref("MediaStream")}} will contain an audio track, if audio is supported and available for the display surface chosen by the user. - `controller` {{Experimental_Inline}} {{optional_inline}} - : A {{domxref("CaptureController")}} object instance containing methods that can be used to further manipulate the capture session if included. - `monitorTypeSurfaces` {{optional_inline}} - : An enumerated value specifying whether the browser should offer entire screens in the screen capture options presented to the user alongside tab and window options. This option is intended to protect companies from leakage of private information through employee error when using video conferencing apps. Possible values are `include`, which hints that the browser should include screen options, and `exclude`, which hints that they should be excluded. A default value is not mandated by the spec; see the [Browser compatibility](#browser_compatibility) section for browser-specific defaults. > **Note:** You cannot set `monitorTypeSurfaces: "exclude"` at the same time as [`displaySurface: "monitor"`](/en-US/docs/Web/API/MediaTrackConstraints/displaySurface) as the two settings are contradictory. Trying to do so will result in the `getDisplayMedia()` call failing with a `TypeError`. - `preferCurrentTab` {{non-standard_inline}} {{Experimental_Inline}} {{optional_inline}} - : A boolean; a value of `true` instructs the browser to offer the current tab as the most prominent capture source, i.e. as a separate "This Tab" option in the "Choose what to share" options presented to the user. This is useful as many app types generally just want to share the current tab. For example, a slide deck app might want to let the user stream the current tab containing the presentation to a virtual conference. A default value is not mandated by the spec; see the [Browser compatibility](#browser_compatibility) section for browser-specific defaults. - `selfBrowserSurface` {{Experimental_Inline}} {{optional_inline}} - : An enumerated value specifying whether the browser should allow the user to select the current tab for capture. This helps to avoid the "infinite hall of mirrors" effect experienced when a video conferencing app inadvertently shares its own display. Possible values are `include`, which hints that the browser should include the current tab in the choices offered for capture, and `exclude`, which hints that it should be excluded. A default value is not mandated by the spec; see the [Browser compatibility](#browser_compatibility) section for browser-specific defaults. - `surfaceSwitching` {{Experimental_Inline}} {{optional_inline}} - : An enumerated value specifying whether the browser should display a control to allow the user to dynamically switch the shared tab during screen-sharing. This is much more convenient than having to go through the whole sharing process again each time a user wants to switch the shared tab. Possible values are `include`, which hints that the browser should include the control, and `exclude`, which hints that it should not be shown. A default value is not mandated by the spec; see the [Browser compatibility](#browser_compatibility) section for browser-specific defaults. - `systemAudio` {{Experimental_Inline}} {{optional_inline}} - : An enumerated value specifying whether the browser should include the system audio among the possible audio sources offered to the user. Possible values are `include`, which hints that the browser should include the system audio in the list of choices, and `exclude`, which hints that it should be excluded. A default value is not mandated by the spec; see the [Browser compatibility](#browser_compatibility) section for browser-specific defaults. - `monitorTypeSurfaces` {{Experimental_Inline}} {{optional_inline}} - : An enumerated value specifying whether the application would like the user agent to offer the user the option to choose display surfaces whose type is monitor. Possible values are `include`, which hints that the browser should include the display surfaces whose type is monitor, and `exclude`, which hints that it should be excluded. A default value is not mandated by the spec; see the [Browser compatibility](#browser_compatibility) section for browser-specific defaults. > **Note:** See the article [Capabilities, constraints, and settings](/en-US/docs/Web/API/Media_Capture_and_Streams_API/Constraints) for a lot more detail on how these options work. ### Return value A {{jsxref("Promise")}} that resolves to a {{domxref("MediaStream")}} containing a video track whose contents come from a user-selected screen area, as well as an optional audio track. > **Note:** Browser support for audio tracks varies, both in terms of whether or not they're supported at all by the media recorder and in terms of the audio sources supported. Check the [compatibility table](#browser_compatibility) for details for each browser. ### Exceptions - `AbortError` {{domxref("DOMException")}} - : Thrown if an error or failure does not match any of the other exceptions listed here. - `InvalidStateError` {{domxref("DOMException")}} - : Thrown if the call to `getDisplayMedia()` was not made from code running due to a {{glossary("transient activation")}}, such as an event handler. Or if the browser context is not fully active or does not focused. Or if the `controller` options has been already used in creating another {{domxref("MediaStream")}}. - `NotAllowedError` {{domxref("DOMException")}} - : Thrown if the permission to access a screen area was denied by the user, or the current browsing instance is not permitted access to screen sharing (for example by a [Permissions Policy](/en-US/docs/Web/HTTP/Permissions_Policy)). - `NotFoundError` {{domxref("DOMException")}} - : Thrown if no sources of screen video are available for capture. - `NotReadableError` {{domxref("DOMException")}} - : Thrown if the user selected a screen, window, tab, or another source of screen data, but a hardware or operating system level error or lockout occurred, preventing the sharing of the selected source. - `OverconstrainedError` {{domxref("DOMException")}} - : Thrown if, after creating the stream, applying any specified constraints fails because no compatible stream could be generated. - {{jsxref("TypeError")}} - : Thrown if the specified `options` include values that are not permitted when calling `getDisplayMedia()`, for example a `video` property set to false, or if any specified {{domxref("MediaTrackConstraints")}} are not permitted. `min` and `exact` values are not permitted in constraints used in `getDisplayMedia()` calls. ## Security Because `getDisplayMedia()` could be used in nefarious ways, it can be a source of significant privacy and security concerns. For that reason, the specification details measures browsers are required to take in order to fully support `getDisplayMedia()`. - The specified options can't be used to limit the choices available to the user. Instead, they must be applied after the user chooses a source, in order to generate output that matches the options. - The go-ahead permission to use `getDisplayMedia()` cannot be persisted for reuse. The user must be prompted for permission every time. - [Transient user activation](/en-US/docs/Web/Security/User_activation) is required. The user has to interact with the page or a UI element in order for this feature to work. - Browsers are encouraged to provide a warning to users about sharing displays or windows that contain browsers, and to keep a close eye on what other content might be getting captured and shown to other users. ## Examples In the example below a `startCapture()` method is created, which initiates screen capture given a set of options specified by the `displayMediaOptions` parameter. ```js const displayMediaOptions = { video: { displaySurface: "browser", }, audio: { suppressLocalAudioPlayback: false, }, preferCurrentTab: false, selfBrowserSurface: "exclude", systemAudio: "include", surfaceSwitching: "include", monitorTypeSurfaces: "include", }; async function startCapture(displayMediaOptions) { let captureStream; try { captureStream = await navigator.mediaDevices.getDisplayMedia(displayMediaOptions); } catch (err) { console.error(`Error: ${err}`); } return captureStream; } ``` This uses {{jsxref("Operators/await", "await")}} to asynchronously wait for `getDisplayMedia()` to resolve with a {{domxref("MediaStream")}} which contains the display contents as requested by the specified options. The stream is then returned to the caller for use, perhaps for adding to a WebRTC call using {{domxref("RTCPeerConnection.addTrack()")}} to add the video track from the stream. > **Note:** The [Screen sharing controls](https://screen-sharing-controls.glitch.me/) demo provides a complete implementation that allows you to create a screen capture with your choice of `getDisplayMedia()` constraints and options. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [Screen Capture API](/en-US/docs/Web/API/Screen_Capture_API) - [Using the Screen Capture API](/en-US/docs/Web/API/Screen_Capture_API/Using_Screen_Capture) - [Media Capture and Streams API](/en-US/docs/Web/API/Media_Capture_and_Streams_API) - [WebRTC API](/en-US/docs/Web/API/WebRTC_API) - {{domxref("MediaDevices.getUserMedia", "getUserMedia()")}}: Capturing media from a camera and/or microphone
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/xrwebgllayer/index.md
--- title: XRWebGLLayer slug: Web/API/XRWebGLLayer page-type: web-api-interface status: - experimental browser-compat: api.XRWebGLLayer --- {{SecureContext_Header}}{{APIRef("WebXR Device API")}}{{SeeCompatTable}} The **`XRWebGLLayer`** interface of the WebXR Device API provides a linkage between the WebXR device (or simulated XR device, in the case of an inline session) and a WebGL context used to render the scene for display on the device. In particular, it provides access to the WebGL framebuffer and viewport to ease access to the context. Although `XRWebGLLayer` is currently the only type of framebuffer layer supported by [WebGL](/en-US/docs/Web/API/WebGL_API), it's entirely possible that future updates to the WebXR specification may allow for other layer types and corresponding image sources. {{InheritanceDiagram}} ## Constructor - {{domxref("XRWebGLLayer.XRWebGLLayer", "new XRWebGLLayer()")}} {{Experimental_Inline}} - : Creates and returns a new `XRWebGLLayer` object for use by the specified {{domxref("XRSession")}}, using a particular {{domxref("WebGLRenderingContext")}} or {{domxref("WebGL2RenderingContext")}} as the destination context. ## Instance properties - {{domxref('XRWebGLLayer.antialias', "antialias")}} {{ReadOnlyInline}} {{Experimental_Inline}} - : A Boolean value indicating whether or not the WebGL context's framebuffer supports anti-aliasing. The specific type of anti-aliasing is determined by the {{Glossary("user agent")}}. - {{domxref('XRWebGLLayer.fixedFoveation', "fixedFoveation")}} {{Experimental_Inline}} - : A number indicating the amount of foveation used by the XR compositor. Fixed Foveated Rendering (FFR) renders the edges of the eye textures at a lower resolution than the center and reduces the GPU load. - {{domxref('XRWebGLLayer.framebuffer', "framebuffer")}} {{ReadOnlyInline}} {{Experimental_Inline}} - : Returns a {{domxref('WebGLFramebuffer')}} suitable for passing into the {{domxref("WebGLRenderingContext.bindFrameBuffer", "bindFrameBuffer()")}} method. - {{domxref('XRWebGLLayer.framebufferWidth', "framebufferWidth")}} {{ReadOnlyInline}} {{Experimental_Inline}} - : Returns the width of the `XRWebGLLayer`'s framebuffer. - {{domxref('XRWebGLLayer.framebufferHeight', "framebufferHeight")}} {{ReadOnlyInline}} {{Experimental_Inline}} - : Returns the height of the layer's framebuffer. - {{domxref('XRWebGLLayer.ignoreDepthValues', "ignoreDepthValues")}} {{ReadOnlyInline}} {{Experimental_Inline}} - : A Boolean which Indicates whether or not the [WebXR compositor](/en-US/docs/Web/API/WebXR_Device_API/Fundamentals#the_webxr_compositor) should make use of the contents of the layer's depth buffer while compositing the scene. ## Static methods - {{domxref('XRWebGLLayer/getNativeFramebufferScaleFactor_static', "getNativeFramebufferScaleFactor()")}} {{Experimental_Inline}} - : Returns the scaling factor that can be used to scale the resolution of the recommended WebGL framebuffer resolution to the rendering device's native resolution. ## Instance methods - {{domxref('XRWebGLLayer.getViewport()', "getViewport()")}} {{Experimental_Inline}} - : Returns a new {{domxref('XRViewport')}} instance representing the position, width, and height to which the [WebGL context's viewport](/en-US/docs/Web/API/WebGLRenderingContext/viewport) must be set to contain drawing to the area of the framebuffer designated for the specified view's contents. In this way, for example, the rendering of the left eye's point of view and of the right eye's point of view are each placed into the correct parts of the framebuffer. ## Examples ### Binding the layer to a WebGL context This snippet, taken from [Drawing a frame](/en-US/docs/Web/API/WebXR_Device_API/Movement_and_motion#drawing_a_frame) in our "Movement and motion" WebXR example, shows how the `XRWebGLLayer` is obtained from the {{domxref("XRSession")}} object's rendering state and is then bound as the current rendering WebGL framebuffer by calling the WebGL {{domxref("WebGLRenderingContext.bindFrameBuffer", "bindFrameBuffer()")}} function. ```js let glLayer = xrSession.renderState.baseLayer; gl.bindFrameBuffer(gl.FRAMEBUFFER, glLayer.framebuffer); ``` ### Rendering every view in a frame Each time the GPU is ready to render the scene to the XR device, the XR runtime calls the function you specified when you called the {{domxref("XRSession")}} method {{domxref("XRSession.requestAnimationFrame", "requestAnimationFrame()")}} to ask to render the frame. That function receives as input an {{domxref("XRFrame")}} which encapsulates the data needed to render the frame. This information includes the pose (an {{domxref("XRViewerPose")}} object) that describes the position and facing direction of the viewer within the scene as well as a list of {{domxref("XRView")}} objects, each representing one perspective on the scene. In current WebXR implementations, there will never be more than two entries in this list: one describing the position and viewing angle of the left eye and another doing the same for the right. ```js let pose = xrFrame.getViewerPose(xrReferenceSpace); if (pose) { const glLayer = xrSession.renderState.baseLayer; gl.bindFrameBuffer(gl.FRAMEBUFFER, glLayer.Framebffer); for (const view of pose.views) { const viewport = glLayer.getViewport(view); gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); /* Render the view */ } } ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [WebXR Device API](/en-US/docs/Web/API/WebXR_Device_API) - [Getting started with WebGL](/en-US/docs/Web/API/WebGL_API/Tutorial/Getting_started_with_WebGL) - {{domxref('WebGLRenderingContext')}} and {{domxref("WebGL2RenderingContext")}} - [Drawing a frame](/en-US/docs/Web/API/WebXR_Device_API/Movement_and_motion#drawing_a_frame) in our "Movement and motion" WebXR example
0
data/mdn-content/files/en-us/web/api/xrwebgllayer
data/mdn-content/files/en-us/web/api/xrwebgllayer/framebufferheight/index.md
--- title: "XRWebGLLayer: framebufferHeight property" short-title: framebufferHeight slug: Web/API/XRWebGLLayer/framebufferHeight page-type: web-api-instance-property status: - experimental browser-compat: api.XRWebGLLayer.framebufferHeight --- {{APIRef("WebXR Device API")}}{{SeeCompatTable}}{{SecureContext_Header}} The read-only {{domxref("XRWebGLLayer")}} property **`framebufferHeight`** indicates the height of the framebuffer, in pixels. You can get the width of the framebuffer using the {{domxref("XRWebGLLayer.framebufferWidth", "framebufferWidth")}} property. ## Value The height in pixels of the XR device's framebuffer. Each of the framebuffer's attachments (pixel, depth, color, and/or stencil buffers, for example) are all this many pixels tall. ## Examples This snippet fetches the framebuffer's width and height for later use. ```js let glLayer = xrSession.renderState.baseLayer; gl.bindFramebuffer(gl.FRAMEBUFFER, glLayer.framebuffer); frameWidth = glLayer.framebufferHeight; frameHeight = glLayer.framebufferHeight; ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [WebXR Device API](/en-US/docs/Web/API/WebXR_Device_API)
0
data/mdn-content/files/en-us/web/api/xrwebgllayer
data/mdn-content/files/en-us/web/api/xrwebgllayer/ignoredepthvalues/index.md
--- title: "XRWebGLLayer: ignoreDepthValues property" short-title: ignoreDepthValues slug: Web/API/XRWebGLLayer/ignoreDepthValues page-type: web-api-instance-property status: - experimental browser-compat: api.XRWebGLLayer.ignoreDepthValues --- {{APIRef("WebXR Device API")}}{{SeeCompatTable}}{{SecureContext_Header}} The read-only {{domxref("XRWebGLLayer")}} property **`ignoreDepthValues`** is a Boolean value which is `true` if the session has been configured to ignore the values in the depth buffer while rendering the scene. If the depth buffer is being used to determine the position of vertices, this property is `false`. The value of `ignoreDepthValues` can only be set when the {{domxref("XRWebGLLayer")}} is instantiated, by setting the corresponding value in the [constructor's](/en-US/docs/Web/API/XRWebGLLayer/XRWebGLLayer) `options` parameter. ## Value A Boolean value which is `true` if the WebGL context's depth buffer is being used while computing the locations of points in the 3D world. Otherwise, if this is `true`, the depth buffer's values are being used to assist in placing objects in the scene. Since the [XR compositor](/en-US/docs/Web/API/WebXR_Device_API/Fundamentals#the_webxr_compositor) uses the depth buffer by default, this value is `false` unless explicitly set otherwise when creating the {{domxref("XRWebGLLayer")}} using its constructor, {{domxref("XRWebGLLayer.XRWebGLLayer", "XRWebGLLayer()")}}. ## Usage notes When the `ignoreDepthValues` property is `false`, the XR compositor uses the values found in the depth buffer, which should be accurate for the scene, in order to potentially improve the quality or the output as well as the comfort level for the viewer. The depth buffer is {{domxref("XRWebGLLayer.framebufferWidth", "framebufferWidth")}} entries wide and {{domxref("XRWebGLLayer.framebufferHeight", "framebuffer")}} entries tall. Each entry in the buffer specifies the depth at which the corresponding pixel is located, and has a value between 0.0 and 1.0. A depth buffer pixel value of 0.0 corresponds to the depth given by the session's {{domxref("XRRenderState.depthNear", "depthNear")}} and a value of 1.0 corresponds to the depth given by {{domxref("XRRenderState.depthFar", "depthFar")}}. The depth, in tandem with the coordinates of each point being rendered, makes it possible to more accurately represent the scene in the 3D space. ## Examples If the Web application which is using WeXR is rendering its content without using a depth buffer—or if the depth buffer's contents are invalid—you should disable the use of the depth buffer for WebXR rendering by setting `ignoreDepthValues` to true when creating the {{domxref("XRWebGLLayer")}}. This is demonstrated in the snippet of code below: ```js const glLayerOptions = { ignoreDepthValues: true, }; let glLayer = new XRWebGLLayer(xrSession, gl, glLayerOptions); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [WebXR Device API](/en-US/docs/Web/API/WebXR_Device_API) - WebGL depth buffer related methods: {{domxref("WebGLRenderingContext.depthFunc", "depthFunc()")}}, {{domxref("WebGLRenderingContext.clearDepth", "clearDepth()")}}
0
data/mdn-content/files/en-us/web/api/xrwebgllayer
data/mdn-content/files/en-us/web/api/xrwebgllayer/xrwebgllayer/index.md
--- title: "XRWebGLLayer: XRWebGLLayer() constructor" short-title: XRWebGLLayer() slug: Web/API/XRWebGLLayer/XRWebGLLayer page-type: web-api-constructor status: - experimental browser-compat: api.XRWebGLLayer.XRWebGLLayer --- {{APIRef("WebXR Device API")}}{{SeeCompatTable}}{{SecureContext_Header}} The [WebXR Device API](/en-US/docs/Web/API/WebXR_Device_API) **`XRWebGLLayer()`** constructor creates and returns a new {{domxref("XRWebGLLayer")}} object, providing the linkage between the WebXR device and the WebGL graphics layer used to render the 3D scene. ## Syntax ```js-nolint new XRWebGLLayer(session, context) new XRWebGLLayer(session, context, options) ``` ### Parameters - `session` - : An {{domxref("XRSession")}} object specifying the WebXR session which will be rendered using the WebGL context. - `context` - : A {{domxref("WebGLRenderingContext")}} or {{domxref("WebGL2RenderingContext")}} identifying the WebGL drawing context to use for rendering the scene for the specified WebXR session. - `options` {{optional_inline}} - : An object providing configuration options for the new `XRWebGLLayer`. The available options are: - `alpha` - : The frame buffer's color buffer will be established with an alpha channel if the `alpha` Boolean property is `true`. Otherwise, the color buffer will not have an alpha channel. The default value is `true`. - `antialias` - : A Boolean value which is `true` if anti-aliasing is to be used when rendering in the context; otherwise `false`. The browser selects the anti-aliasing method to use; there is no support for requesting a specific mode yet. The default value is `true`. - `depth` - : A Boolean value which, if `true`, requests that the new layer have a depth buffer; otherwise, no depth layer is allocated. The default is `true`. - `framebufferScaleFactor` - : A floating-point value which is used to scale the image during compositing, with a value of 1.0 represents the default pixel size for the frame buffer. The static {{domxref("XRWebGLLayer")}} function {{domxref("XRWebGLLayer.getNativeFramebufferScaleFactor_static", "XRWebGLLayer.getNativeFramebufferScaleFactor()")}} returns the scale that would result in a 1:1 pixel ratio, thereby ensuring that the rendering is occurring at the device's native resolution. The default is 1.0. - `ignoreDepthValues` - : A Boolean value which indicates whether or not to ignore the contents of the depth buffer while compositing the scene. The default is `false`. - `stencil` - : A Boolean value which, if `true`, requests that the new layer include a stencil buffer. Otherwise, no stencil buffer is allocated. The default is `false`. ### Return value A newly-created {{domxref("XRWebGLLayer")}} which links the specified {{domxref("XRSession")}} to the WebGL context given by `context`, which will be used as the renderer for the session. Any options specified in `layerInit` are used to tailor the rendering system's configuration. ### Exceptions - `InvalidStateError` {{domxref("DOMException")}} - : Thrown if the new `XRWebGLLayer` could not be created due to one of a number of possible state errors: - The {{domxref("XRSession")}} specified by `session` has already been stopped. - The specified WebGL context, `context`, [has been lost](/en-US/docs/Web/API/WebGLRenderingContext/isContextLost#usage_notes) for any reason, such as a GPU switch or reset. - The specified `session` is immersive but the `context` is not WebXR compatible. - `OperationError` {{domxref("DOMException")}} - : Thrown if the resources (including memory buffers) needed for the layer to operate could not be allocated. ## Examples In this example, a new {{domxref("XRWebGLLayer")}} is created for a WebXR session, `xrSession`. ```js xrSession.updateRenderState({ baseLayer: new XRWebGLLayer(xrSession, gl, { alpha: false, antialias: false, depth: false, framebufferScaleFactor: 0.5, ignoreDepthValues: true, stencil: false, }), }); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [WebXR Device API](/en-US/docs/Web/API/WebXR_Device_API) - [Getting started with WebGL](/en-US/docs/Web/API/WebGL_API/Tutorial/Getting_started_with_WebGL) - [Handling lost context in WebGL](https://www.khronos.org/webgl/wiki/HandlingContextLost): Khronos WebGL wiki
0
data/mdn-content/files/en-us/web/api/xrwebgllayer
data/mdn-content/files/en-us/web/api/xrwebgllayer/framebufferwidth/index.md
--- title: "XRWebGLLayer: framebufferWidth property" short-title: framebufferWidth slug: Web/API/XRWebGLLayer/framebufferWidth page-type: web-api-instance-property status: - experimental browser-compat: api.XRWebGLLayer.framebufferWidth --- {{APIRef("WebXR Device API")}}{{SeeCompatTable}}{{SecureContext_Header}} The read-only {{domxref("XRWebGLLayer")}} property **`framebufferWidth`** specifies the width of the framebuffer, in pixels. You can get the height of the framebuffer using the {{domxref("XRWebGLLayer.framebufferHeight", "framebufferHeight")}} property. ## Value The width in pixels of the XR device's framebuffer. Each of the framebuffer's attachments (pixel, depth, color, and/or stencil buffers, for example) are all this many pixels wide. ## Examples This snippet fetches the framebuffer's width and height for later use. ```js let glLayer = xrSession.renderState.baseLayer; gl.bindFramebuffer(gl.FRAMEBUFFER, glLayer.framebuffer); frameWidth = glLayer.framebufferWidth; frameHeight = glLayer.framebufferHeight; ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [WebXR Device API](/en-US/docs/Web/API/WebXR_Device_API)
0
data/mdn-content/files/en-us/web/api/xrwebgllayer
data/mdn-content/files/en-us/web/api/xrwebgllayer/getnativeframebufferscalefactor_static/index.md
--- title: "XRWebGLLayer: getNativeFramebufferScaleFactor() static method" short-title: getNativeFramebufferScaleFactor() slug: Web/API/XRWebGLLayer/getNativeFramebufferScaleFactor_static page-type: web-api-static-method status: - experimental browser-compat: api.XRWebGLLayer.getNativeFramebufferScaleFactor_static --- {{APIRef("WebXR Device API")}}{{SeeCompatTable}}{{SecureContext_Header}} The static method **`XRWebGLLayer.getNativeFramebufferScaleFactor()`** returns a floating-point scaling factor by which one can multiply the specified {{domxref("XRSession")}}'s resolution to get the native resolution of the WebXR device's frame buffer. This information can be used when creating a new `XRWebGLLayer` to configure the `framebufferScaleFactor` in the `layerInit` configuration object specified when calling the `XRWebGLLayer()` constructor. See the [Usage notes](#usage_notes) and [Examples](#examples) for details. If the scaling factor is 1.0, then the frame buffer pixels and the native display pixels are the same size. If the scaling factor is greater than zero, then the frame buffer is smaller than the display's native dimensions, resulting in the output being up-scaled for display to the screen after rendering into the frame buffer. If the scaling factor is less than zero, the frame buffer is _larger_ than the native resolution of the display, resulting in the frame buffer's contents being scaled down for display to the XR device. This can happen for display environments which use superscaling or anti-aliasing techniques to improve perceived image quality. ## Syntax ```js-nolint XRWebGLLayer.getNativeFramebufferScaleFactor(session) ``` ### Parameters - `session` - : The {{domxref("XRSession")}} for which to return the native framebuffer scaling factor. ### Return value A floating-point value which, when multiplied by the {{domxref("XRSession")}}'s recommended framebuffer dimensions, results in the XR device's native frame buffer resolution. If the session has ended, this function returns 0.0. ## Usage notes The scaling factor returned by this function will be 1.0 if the native resolution of the XR device and the resolution of the XR device match. In any case, multiplying the recommended resolution as identified by the `XRSession` by this value will result in the actual native resolution of the XR hardware. The recommended WebGL frame buffer resolution is the best possible estimate of the resolution necessary to contain all of the {{domxref("XRView")}}s needed by the device while at the same time providing typical applications an acceptable balance of image quality and performance. For example, consider a device which uses a 2560x1440 pixel frame buffer (which is used to render two views, for the left and right eyes, side by side each at a resolution of 1280x1440 pixels). Consider a frame buffer which at full size looks like this: ![Diagram showing how a framebuffer is divided between two eyes' viewpoints](twoviewsoneframebuffer.svg) If, on this device, it's determined that due to GPU limitations the browser needs to reduce image quality in order to improve performance to an acceptable level, it might choose to halve the resolution. In this case, the value returned by `XRWebGLLayer.getNativeFramebufferScaleFactor()` will be 2.0. This method of dividing the frame buffer between views is shown in the following diagram. ![Diagram showing frame buffer as scaled to half resolution](twoviewsoneframe-scaledby2.svg) Now the width and height of the frame buffer are 50% what they were before, resulting in a total frame buffer size of 1280 by 720 pixels, with each eye's half of the buffer being 640x720 pixels. Now we can see the coordinates of each of the viewports representing these two views: ![Framebuffer and viewports with coordinates](twoviewsviewportcoords-scaledby2.svg) Since each eye gets half of the frame buffer, the result is that the left eye gets a 640x720 portion of the buffer with the viewport's `x` and `y` at 0, the width at 640, and the height set to 720. The right eye gets the other half of the frame buffer, with its viewport's `x` set at 639. While [rendering a frame for this scene](/en-US/docs/Web/API/XRWebGLLayer#rendering_every_view_in_a_frame), we get the viewport for the view and apply it to WebGL, then render the scene. This ensures that the scene we render will not only match the viewpoint we need to express (which is defined by the position and orientation data in the pose), but that the rendered output will be constrained within the correct portion of the frame buffer for the eye we're drawing, regardless of any scaling that is being performed. ## Examples In this example, we request a frame buffer at the device's native resolution, regardless of any performance concerns: ```js function requestNativeScaleWebGLLayer(gl, xrSession) { return gl.makeXRCompatible().then(() => { let scaleFactor = XRWebGLLayer.getNativeFramebufferScaleFactor(xrSession); let glLayer = new XRWebGLLayer(xrSession, gl, { framebufferScaleFactor: scaleFactor, }); xrSession.updateRenderState({ baseLayer: glLayer }); }); } ``` This starts by calling the [WebGL rendering context](/en-US/docs/Web/API/WebGLRenderingContext) function {{domxref("WebGLRenderingContext.makeXRCompatible", "makeXRCompatible()")}}. When the returned {{jsxref("promise")}} resolves, we proceed by calling `XRWebGLLayer`'s `getNativeFramebufferScaleFactor()` static function to get the scale factor needed to reach the native resolution, and we then pass that into the {{domxref("XRWebGLLayer.XRWebGLLayer", "WebGLLayer()")}} constructor as the value of the `framebufferScaleFactor` property in its `layerInit` configuration object. That gets us a new {{domxref("XRWebGLLayer")}} object representing a rendering surface we can use for the {{domxref("XRSession")}}; we set it as the rendering surface for `xrSession` by calling its {{domxref("XRSession.updateRenderState", "updateRenderState()")}} method, passing the new `glLayer` in using the {{domxref("XRRenderState")}} dictionary's {{domxref("XRRenderState.baseLayer")}} property. The result is a rendering context that looks like the diagram below: ![Framebuffer and viewports with coordinates](twoviewsviewportcoords.svg) Each time the {{domxref("XRViewerPose")}}'s {{domxref("XRViewerPose.views", "views")}} are iterated over for rendering, the rendering loop obtains an {{domxref("XRView")}} for the left eye which has its top-left corner at (0, 0) with its width and height being 1280x1440 pixels. The right eye it obtains has its top-left corner at 1280, 0 with the same width and height: 1280x1440. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [WebXR Device API](/en-US/docs/Web/API/WebXR_Device_API) - [WebXR performance guide](/en-US/docs/Web/API/WebXR_Device_API/Performance)
0
data/mdn-content/files/en-us/web/api/xrwebgllayer
data/mdn-content/files/en-us/web/api/xrwebgllayer/getnativeframebufferscalefactor_static/twoviewsoneframe-scaledby2.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="969.4 104 750.6 504" width="750.6" height="504"><defs><marker orient="auto" overflow="visible" markerUnits="strokeWidth" id="a" stroke-linejoin="miter" stroke-miterlimit="10" viewBox="-1 -4 7 8" markerWidth="7" markerHeight="8" color="#000"><path d="M0 0h4.8m0 3v-6M0 1.2 4.2 0 0-1.2" fill="none" stroke="currentColor"/></marker><marker orient="auto" overflow="visible" markerUnits="strokeWidth" id="b" stroke-linejoin="miter" stroke-miterlimit="10" viewBox="-6 -4 7 8" markerWidth="7" markerHeight="8" color="#000"><path d="M0 0h-4.8m0-3v6M0-1.2-4.2 0 0 1.2" fill="none" stroke="currentColor"/></marker></defs><g fill="none"><path fill="#fff" d="M969.4 104H1720v504H969.4z"/><path fill="#666" d="M992 192h320v360H992z"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" d="M992 192h320v360H992z"/><text transform="translate(997 506)" fill="#ffffd1"> <tspan font-family="Verdana" font-size="28" font-weight="700" x="91.733" y="28">Left Eye</tspan> </text><path fill="#666" d="M1312 192h320v360h-320z"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" d="M1312 192h320v360h-320z"/><text transform="translate(1317 506)" fill="#ffffd1"> <tspan font-family="Verdana" font-size="28" font-weight="700" x="80.365" y="28">Right Eye</tspan> </text><path d="m1312 560-8 16h-304l-8-16" stroke="#000" stroke-linecap="round" stroke-width="2"/><path fill="#fff" d="M1127.805 560h48.391v32h-48.391z"/><text transform="translate(1132.805 565)" fill="#000"> <tspan font-family="Verdana" font-size="18" font-weight="700" x="0" y="18">640</tspan> </text><path d="m1632 560-8 16h-304l-8-16" stroke="#000" stroke-linecap="round" stroke-width="2"/><path fill="#fff" d="M1447.805 560h48.391v32h-48.391z"/><text transform="translate(1452.805 565)" fill="#000"> <tspan font-family="Verdana" font-size="18" font-weight="700" x="0" y="18">640</tspan> </text><path stroke="#ebebeb" stroke-linecap="round" stroke-width="3" d="M1312 192v360"/><path marker-end="url(#a)" marker-start="url(#b)" stroke="#000" stroke-linecap="round" stroke-width="2" d="M1001.6 160h620.8"/><path fill="#fff" d="M1275.711 143h66.875v34h-66.875z"/><text transform="translate(1280.711 148)" fill="#000"> <tspan font-family="Verdana" font-size="20" font-weight="700" x="0" y="20">1280</tspan> </text><text transform="translate(1235.2 125)" fill="#000"> <tspan font-family="Fira Mono for Powerline" font-size="16" font-weight="400" x="0" y="15">framebufferWidth</tspan> </text><path marker-end="url(#a)" marker-start="url(#b)" stroke="#000" stroke-linecap="round" stroke-width="2" d="M1664 201.6v332.8"/><path fill="#fff" d="M1647 341.672h34v52.656h-34z"/><text transform="rotate(90 664.664 1011.336)" fill="#000"> <tspan font-family="Verdana" font-size="20" font-weight="700" x="0" y="20">720</tspan> </text><text transform="rotate(90 706.3 992.7)" fill="#000"> <tspan font-family="Fira Mono for Powerline" font-size="16" font-weight="400" x="0" y="15">framebufferHeight</tspan> </text></g></svg>
0
data/mdn-content/files/en-us/web/api/xrwebgllayer
data/mdn-content/files/en-us/web/api/xrwebgllayer/getnativeframebufferscalefactor_static/twoviewsoneframebuffer.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="233.4 104 750.6 504" width="750.6" height="504"><defs><marker orient="auto" overflow="visible" markerUnits="strokeWidth" id="a" stroke-linejoin="miter" stroke-miterlimit="10" viewBox="-1 -4 7 8" markerWidth="7" markerHeight="8" color="#000"><path d="M0 0h4.8m0 3v-6M0 1.2 4.2 0 0-1.2" fill="none" stroke="currentColor"/></marker><marker orient="auto" overflow="visible" markerUnits="strokeWidth" id="b" stroke-linejoin="miter" stroke-miterlimit="10" viewBox="-6 -4 7 8" markerWidth="7" markerHeight="8" color="#000"><path d="M0 0h-4.8m0-3v6M0-1.2-4.2 0 0 1.2" fill="none" stroke="currentColor"/></marker></defs><g fill="none"><path fill="#fff" d="M233.4 104H984v504H233.4z"/><path fill="#666" d="M256 192h320v360H256z"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" d="M256 192h320v360H256z"/><text transform="translate(261 506)" fill="#ffffd1"> <tspan font-family="Verdana" font-size="28" font-weight="700" x="91.733" y="28">Left Eye</tspan> </text><path fill="#666" d="M576 192h320v360H576z"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" d="M576 192h320v360H576z"/><text transform="translate(581 506)" fill="#ffffd1"> <tspan font-family="Verdana" font-size="28" font-weight="700" x="80.365" y="28">Right Eye</tspan> </text><path d="m576 560-8 16H264l-8-16" stroke="#000" stroke-linecap="round" stroke-width="2"/><path fill="#fff" d="M385.406 560h61.188v32h-61.188z"/><text transform="translate(390.406 565)" fill="#000"> <tspan font-family="Verdana" font-size="18" font-weight="700" x="0" y="18">1280</tspan> </text><path d="m896 560-8 16H584l-8-16" stroke="#000" stroke-linecap="round" stroke-width="2"/><path fill="#fff" d="M705.406 560h61.188v32h-61.188z"/><text transform="translate(710.406 565)" fill="#000"> <tspan font-family="Verdana" font-size="18" font-weight="700" x="0" y="18">1280</tspan> </text><path stroke="#ebebeb" stroke-linecap="round" stroke-width="3" d="M576 192v360"/><path marker-end="url(#a)" marker-start="url(#b)" stroke="#000" stroke-linecap="round" stroke-width="2" d="M265.6 160h620.8"/><path fill="#fff" d="M539.711 143h66.875v34h-66.875z"/><text transform="translate(544.71 148)" fill="#000"> <tspan font-family="Verdana" font-size="20" font-weight="700" x="0" y="20">2560</tspan> </text><text transform="translate(499.2 125)" fill="#000"> <tspan font-family="Fira Mono for Powerline" font-size="16" font-weight="400" x="0" y="15">framebufferWidth</tspan> </text><path marker-end="url(#a)" marker-start="url(#b)" stroke="#000" stroke-linecap="round" stroke-width="2" d="M928 201.6v332.8"/><path fill="#fff" d="M911 334.563h34v66.875h-34z"/><text transform="rotate(90 300.219 639.781)" fill="#000"> <tspan font-family="Verdana" font-size="20" font-weight="700" x="0" y="20">1440</tspan> </text><text transform="rotate(90 338.3 624.7)" fill="#000"> <tspan font-family="Fira Mono for Powerline" font-size="16" font-weight="400" x="0" y="15">framebufferHeight</tspan> </text></g></svg>
0
data/mdn-content/files/en-us/web/api/xrwebgllayer
data/mdn-content/files/en-us/web/api/xrwebgllayer/getnativeframebufferscalefactor_static/twoviewsviewportcoords.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="233.4 648 750.6 504" width="750.6" height="504"><defs><marker orient="auto" overflow="visible" markerUnits="strokeWidth" id="a" stroke-linejoin="miter" stroke-miterlimit="10" viewBox="-1 -4 7 8" markerWidth="7" markerHeight="8" color="#000"><path d="M0 0h4.8m0 3v-6M0 1.2 4.2 0 0-1.2" fill="none" stroke="currentColor"/></marker><marker orient="auto" overflow="visible" markerUnits="strokeWidth" id="b" stroke-linejoin="miter" stroke-miterlimit="10" viewBox="-6 -4 7 8" markerWidth="7" markerHeight="8" color="#000"><path d="M0 0h-4.8m0-3v6M0-1.2-4.2 0 0 1.2" fill="none" stroke="currentColor"/></marker></defs><g fill="none"><path fill="#fff" d="M233.4 648H984v504H233.4z"/><path fill="#666" d="M256 736h320v360H256z"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" d="M256 736h320v360H256z"/><text transform="translate(261 899)" fill="#ffffd1"> <tspan font-family="Verdana" font-size="28" font-weight="700" x="91.733" y="28">Left Eye</tspan> </text><path fill="#666" d="M576 736h320v360H576z"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" d="M576 736h320v360H576z"/><text transform="translate(581 899)" fill="#ffffd1"> <tspan font-family="Verdana" font-size="28" font-weight="700" x="80.365" y="28">Right Eye</tspan> </text><path stroke="#ebebeb" stroke-linecap="round" stroke-width="3" d="M576 736v360"/><text transform="translate(264.212 741)" fill="#ebebeb"> <tspan font-family="Verdana" font-size="16" font-weight="700" x="0" y="16">(0, 0)</tspan> </text><text transform="translate(445 1069)" fill="#ebebeb"> <tspan font-family="Verdana" font-size="16" font-weight="700" x="0" y="16">(1279, 1440)</tspan> </text><text transform="translate(765 1069)" fill="#ebebeb"> <tspan font-family="Verdana" font-size="16" font-weight="700" x="0" y="16">(2560, 1440)</tspan> </text><text transform="translate(589 741)" fill="#ebebeb"> <tspan font-family="Verdana" font-size="16" font-weight="700" x="0" y="16">(1280, 0)</tspan> </text><path d="m576 1104-8 16H264l-8-16" stroke="#000" stroke-linecap="round" stroke-width="2"/><path fill="#fff" d="M385.406 1104h61.188v32h-61.188z"/><text transform="translate(390.406 1109)" fill="#000"> <tspan font-family="Verdana" font-size="18" font-weight="700" x="0" y="18">1280</tspan> </text><path d="m896 1104-8 16H584l-8-16" stroke="#000" stroke-linecap="round" stroke-width="2"/><path fill="#fff" d="M705.406 1104h61.188v32h-61.188z"/><text transform="translate(710.406 1109)" fill="#000"> <tspan font-family="Verdana" font-size="18" font-weight="700" x="0" y="18">1280</tspan> </text><path stroke="#ebebeb" stroke-linecap="round" stroke-width="3" d="M576 736v360"/><path marker-end="url(#a)" marker-start="url(#b)" stroke="#000" stroke-linecap="round" stroke-width="2" d="M265.6 704h620.8"/><path fill="#fff" d="M539.711 687h66.875v34h-66.875z"/><text transform="translate(544.71 692)" fill="#000"> <tspan font-family="Verdana" font-size="20" font-weight="700" x="0" y="20">2560</tspan> </text><text transform="translate(499.2 669)" fill="#000"> <tspan font-family="Fira Mono for Powerline" font-size="16" font-weight="400" x="0" y="15">framebufferWidth</tspan> </text><path marker-end="url(#a)" marker-start="url(#b)" stroke="#000" stroke-linecap="round" stroke-width="2" d="M928 745.6v332.8"/><path fill="#fff" d="M911 878.563h34v66.875h-34z"/><text transform="rotate(90 28.219 911.781)" fill="#000"> <tspan font-family="Verdana" font-size="20" font-weight="700" x="0" y="20">1440</tspan> </text><text transform="rotate(90 66.3 896.7)" fill="#000"> <tspan font-family="Fira Mono for Powerline" font-size="16" font-weight="400" x="0" y="15">framebufferHeight</tspan> </text></g></svg>
0
data/mdn-content/files/en-us/web/api/xrwebgllayer
data/mdn-content/files/en-us/web/api/xrwebgllayer/getnativeframebufferscalefactor_static/twoviewsviewportcoords-scaledby2.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="969.4 648 750.6 504" width="750.6" height="504"><defs><marker orient="auto" overflow="visible" markerUnits="strokeWidth" id="a" stroke-linejoin="miter" stroke-miterlimit="10" viewBox="-1 -4 7 8" markerWidth="7" markerHeight="8" color="#000"><path d="M0 0h4.8m0 3v-6M0 1.2 4.2 0 0-1.2" fill="none" stroke="currentColor"/></marker><marker orient="auto" overflow="visible" markerUnits="strokeWidth" id="b" stroke-linejoin="miter" stroke-miterlimit="10" viewBox="-6 -4 7 8" markerWidth="7" markerHeight="8" color="#000"><path d="M0 0h-4.8m0-3v6M0-1.2-4.2 0 0 1.2" fill="none" stroke="currentColor"/></marker></defs><g fill="none"><path fill="#fff" d="M969.4 648H1720v504H969.4z"/><path fill="#666" d="M992 736h320v360H992z"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" d="M992 736h320v360H992z"/><text transform="translate(997 899)" fill="#ffffd1"> <tspan font-family="Verdana" font-size="28" font-weight="700" x="91.733" y="28">Left Eye</tspan> </text><path fill="#666" d="M1312 736h320v360h-320z"/><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" d="M1312 736h320v360h-320z"/><text transform="translate(1317 899)" fill="#ffffd1"> <tspan font-family="Verdana" font-size="28" font-weight="700" x="80.365" y="28">Right Eye</tspan> </text><path stroke="#ebebeb" stroke-linecap="round" stroke-width="3" d="M1312 736v360"/><text transform="translate(1000.212 741)" fill="#ebebeb"> <tspan font-family="Verdana" font-size="16" font-weight="700" x="0" y="16">(0, 0)</tspan> </text><text transform="translate(1203.75 1069)" fill="#ebebeb"> <tspan font-family="Verdana" font-size="16" font-weight="700" x="0" y="16">(639, 719)</tspan> </text><text transform="translate(1512.375 1069)" fill="#ebebeb"> <tspan font-family="Verdana" font-size="16" font-weight="700" x="0" y="16">(1279, 719)</tspan> </text><text transform="translate(1325 741)" fill="#ebebeb"> <tspan font-family="Verdana" font-size="16" font-weight="700" x="0" y="16">(640, 0)</tspan> </text><path d="m1312 1104-8 16h-304l-8-16" stroke="#000" stroke-linecap="round" stroke-width="2"/><path fill="#fff" d="M1121.406 1104h61.188v32h-61.188z"/><text transform="translate(1126.406 1109)" fill="#000"> <tspan font-family="Verdana" font-size="18" font-weight="700" x="0" y="18">1280</tspan> </text><path d="m1632 1104-8 16h-304l-8-16" stroke="#000" stroke-linecap="round" stroke-width="2"/><path fill="#fff" d="M1441.406 1104h61.188v32h-61.188z"/><text transform="translate(1446.406 1109)" fill="#000"> <tspan font-family="Verdana" font-size="18" font-weight="700" x="0" y="18">1280</tspan> </text><path stroke="#ebebeb" stroke-linecap="round" stroke-width="3" d="M1312 736v360"/><path marker-end="url(#a)" marker-start="url(#b)" stroke="#000" stroke-linecap="round" stroke-width="2" d="M1001.6 704h620.8"/><path fill="#fff" d="M1275.711 687h66.875v34h-66.875z"/><text transform="translate(1280.711 692)" fill="#000"> <tspan font-family="Verdana" font-size="20" font-weight="700" x="0" y="20">1280</tspan> </text><text transform="translate(1235.2 669)" fill="#000"> <tspan font-family="Fira Mono for Powerline" font-size="16" font-weight="400" x="0" y="15">framebufferWidth</tspan> </text><path marker-end="url(#a)" marker-start="url(#b)" stroke="#000" stroke-linecap="round" stroke-width="2" d="M1664 745.6v332.8"/><path fill="#fff" d="M1647 885.672h34v52.656h-34z"/><text transform="rotate(90 392.664 1283.336)" fill="#000"> <tspan font-family="Verdana" font-size="20" font-weight="700" x="0" y="20">720</tspan> </text><text transform="rotate(90 434.3 1264.7)" fill="#000"> <tspan font-family="Fira Mono for Powerline" font-size="16" font-weight="400" x="0" y="15">framebufferHeight</tspan> </text></g></svg>
0
data/mdn-content/files/en-us/web/api/xrwebgllayer
data/mdn-content/files/en-us/web/api/xrwebgllayer/getviewport/index.md
--- title: "XRWebGLLayer: getViewport() method" short-title: getViewport() slug: Web/API/XRWebGLLayer/getViewport page-type: web-api-instance-method status: - experimental browser-compat: api.XRWebGLLayer.getViewport --- {{APIRef("WebXR Device API")}}{{SeeCompatTable}}{{SecureContext_Header}} The {{domxref("XRWebGLLayer")}} interface's **`getViewport()`** method returns the {{domxref("XRViewport")}} that should be used to render the specified {{domxref("XRView")}} into the WebGL layer. For WebXR devices which use a single framebuffer for both the left and right eyes, the returned viewport represents the region of the framebuffer into which the scene should be rendered for the eye represented by the view. ## Syntax ```js-nolint getViewport(view) ``` ### Parameters - `view` - : An {{domxref("XRView")}} object indicating the view for which the viewport is to be returned. ### Return value A {{domxref("XRViewport")}} object representing the viewport which will restrict drawing to the portion of the layer corresponding to the specified `view`. ### Exceptions - `InvalidStateError` {{domxref("DOMException")}} - : Thrown if either the specified `view` is not in an active {{domxref("XRFrame")}} or that `XRFrame` and the {{domxref("XRWebGLLayer")}} are not part of the same [WebXR session](/en-US/docs/Web/API/XRSession). ## Examples This example demonstrates in part what the callback for the {{domxref("XRSession.requestAnimationFrame", "requestAnimationFrame()")}} function might look like, using `getViewport()` to get the viewport so that drawing can be constrained to the area set aside for the eye whose viewpoint is currently being rendered. This works because the set of views returned by an {{domxref("XRViewerPose")}} each represent one eye's perspective on the scene. Since the framebuffer is split in half, one half for each eye, setting the WebGL viewport to match the WebXR layer's viewport will ensure that when rendering the scene for the current eye's pose, it is rendered into the correct half of the framebuffer. **<<<--- add link to appropriate section in the Cameras and views article --->>>** ```js function drawFrame(time, frame) { const session = frame.session; const pose = frame.getViewerPose(mainReferenceSpace); if (pose) { const glLayer = session.renderState.baseLayer; gl.bindFramebuffer(gl.FRAMEBUFFER, glLayer.framebuffer); gl.clearColor(0, 0, 0, 1.0); gl.clearDepth(1.0); gl.clear(gl.COLOR_BUFFER_BIT, gl.DEPTH_COLOR_BIT); for (const view of pose.views) { const viewport = glLayer.getViewport(view); gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); /* Render the scene now */ } } } ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [WebXR Device API](/en-US/docs/Web/API/WebXR_Device_API)
0
data/mdn-content/files/en-us/web/api/xrwebgllayer
data/mdn-content/files/en-us/web/api/xrwebgllayer/framebuffer/index.md
--- title: "XRWebGLLayer: framebuffer property" short-title: framebuffer slug: Web/API/XRWebGLLayer/framebuffer page-type: web-api-instance-property status: - experimental browser-compat: api.XRWebGLLayer.framebuffer --- {{APIRef("WebXR Device API")}}{{SeeCompatTable}}{{SecureContext_Header}} The read-only {{domxref("XRWebGLLayer")}} property **`framebuffer`** is an opaque {{domxref("WebGLFramebuffer")}} which is used to buffer the rendered image if the [XR compositor](/en-US/docs/Web/API/WebXR_Device_API/Fundamentals#the_webxr_compositor) is being used. Otherwise, this property's value is `null`. The opaque framebuffer is functionally nearly the same as a standard WebGL framebuffer, except for the differences covered in the section [How opaque framebuffers are special](#how_opaque_framebuffers_are_special) below. ## Value A {{domxref("WebGLFramebuffer")}} object representing the framebuffer into which the 3D scene is being rendered, or `null` if the [XR compositor](/en-US/docs/Web/API/WebXR_Device_API/Fundamentals#the_webxr_compositor) is disabled for the session. ## Usage notes ### How opaque framebuffers are special The framebuffer represented by the `framebuffer` property is opaque. As such, its behavior is different in several ways from a standard WebGL context. These differences cause the opaque framebuffer to behave more like the default WebGL framebuffer: - Opaque framebuffers _may_ support [anti-aliasing](/en-US/docs/Web/API/XRWebGLLayer/antialias), even under WebGL 1.0, which don't normally do so. - Opaque framebuffers' attachments (buffers and the like) can't be inspected or changed. Calling functions such as {{domxref("WebGLRenderingContext.framebufferTexture2D", "framebufferTexture2D()")}}, {{domxref("WebGLRenderingContext.framebufferRenderbuffer", "framebufferRenderbuffer()")}}, {{domxref("WebGLRenderingContext.deleteFramebuffer", "deleteFramebuffer()")}}, or {{domxref("WebGLRenderingContext.getFramebufferAttachmentParameter", "getFramebufferAttachmentParameter()")}} on an opaque framebuffer results in the WebGL error `INVALID_OPERATION` (0x0502). - Opaque framebuffers are considered incomplete and are not available for rendering other than while executing the {{domxref("XRSession.requestAnimationFrame", "requestAnimationFrame()")}} callback. Attempting to clear, draw to, or read from the framebuffer results in a WebGL `INVALID_FRAMEBUFFER_OPERATION` error (0x0506). Calling {{domxref("WebGLRenderingContext.checkFramebufferStatus", "checkFramebufferStatus()")}} on the WebGL context from outside the animation frame callback causes the WebGL `FRAMEBUFFER_UNSUPPORTED` error (0x8CDD) to be reported. - Opaque framebuffers initialized with the `depth` property set to `false` will not have a depth buffer and will rely on the coordinates alone to determine distance. - Opaque framebuffers initialized without specifying a `stencil`")}}` will not have a stencil buffer. - Opaque framebuffers will not have an alpha channel available unless the `alpha` property is `true` when creating the layer. - The XR compositor assumes that opaque framebuffers use colors with premultiplied alpha, regardless of whether or not the WebGL context's `premultipliedAlpha`")}}` context attribute is set. > **Note:** The `depth` and `stencil` properties are > not required to be supported in order for a browser to be construed as having full > WebGL support. ### The default configuration of a new framebuffer Upon creating a new {{domxref("XRWebGLLayer")}}, its new framebuffer is initialized just like the default framebuffer for any WebGL interface: - The color buffer is configured with its clear value set to the color (0, 0, 0, 0) (meaning transparent black). - The depth buffer's clear value is the number 1.0. - The stencil buffer is filled with 0. ## Examples This example gets the `XRWebGLLayer` for a session and then passes its framebuffer into the WebGL context's {{domxref("WebGLRenderingContext.bindFramebuffer", "bindFramebuffer()")}} function. ```js let glLayer = xrSession.renderState.baselayer; gl.bindFramebuffer(gl.FRAMEBUFFER, glLayer.framebuffer); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [WebXR Device API](/en-US/docs/Web/API/WebXR_Device_API)
0
data/mdn-content/files/en-us/web/api/xrwebgllayer
data/mdn-content/files/en-us/web/api/xrwebgllayer/antialias/index.md
--- title: "XRWebGLLayer: antialias property" short-title: antialias slug: Web/API/XRWebGLLayer/antialias page-type: web-api-instance-property status: - experimental browser-compat: api.XRWebGLLayer.antialias --- {{APIRef("WebXR Device API")}}{{SeeCompatTable}}{{SecureContext_Header}} The read-only {{domxref("XRWebGLLayer")}} property **`antialias`** is a Boolean value which is `true` if the rendering layer's frame buffer supports anti-aliasing. Otherwise, this property's value is `false`. The specific anti-aliasing technique used is left to the {{Glossary("user agent", "user agent's")}} discretion and cannot be specified by the website or web app. ## Syntax ```js-nolint xrWebGLLayer.antialias ``` ### Value A Boolean value which is `true` if the WebGL rendering layer's frame buffer is configured to support anti-aliasing. Otherwise, this property is `false`. When the [WebXR compositor](/en-US/docs/Web/API/WebXR_Device_API/Fundamentals#the_webxr_compositor) is enabled, this value corresponds to the value of the `antialias` property on the object returned by the WebGL context's {{domxref("WebGLRenderingContext.getContextAttributes", "getContentAttributes()")}} method. ## Usage notes Since this is a read-only property, you can set the anti-aliasing mode only when initially creating the `XRWebGLLayer`, by specifying the `antialias` property in the {{domxref("XRWebGLLayer.XRWebGLLayer", "XRWebGLLayer()")}} constructor's `options` configuration object. ## Examples This snippet checks the value of `antialias` to see if it should perform additional work to attempt to compensate for the lack of anti-aliasing on the WebGL layer. ```js let glLayer = xrSession.renderState.baseLayer; gl.bindFrameBuffer(gl.FRAMEBUFFER, glLayer.framebuffer); /* .. */ if (!glLayer.antialias) { /* compensate for lack of anti-aliasing */ } ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [WebXR Device API](/en-US/docs/Web/API/WebXR_Device_API)
0
data/mdn-content/files/en-us/web/api/xrwebgllayer
data/mdn-content/files/en-us/web/api/xrwebgllayer/fixedfoveation/index.md
--- title: "XRWebGLLayer: fixedFoveation property" short-title: fixedFoveation slug: Web/API/XRWebGLLayer/fixedFoveation page-type: web-api-instance-property status: - experimental browser-compat: api.XRWebGLLayer.fixedFoveation --- {{APIRef("WebXR Device API")}}{{SeeCompatTable}}{{SecureContext_Header}} The **`fixedFoveation`** property of the {{domxref("XRWebGLLayer")}} interface is a number indicating the amount of foveation used by the XR compositor. Fixed Foveated Rendering (FFR) renders the edges of the eye textures at a lower resolution than the center and reduces the GPU load. It is most useful for low contrast textures, such as background images but less for high contrast ones such as text or detailed images. Authors can adjust the level on a per frame basis to achieve the best tradeoff between performance and visual quality. ## Value A number between 0 and 1. - The minium amount of foveation is indicated by 0 (full resolution). - The maximum amount of foveation is indicated by 1 (the edges render at lower resolution). It's up to the user agent how to interpret the numbers in this range. When changing the foveation level, the effect will visible in the next {{domxref("XRFrame")}}. Note that some user agents might implement certain levels of foveation, so you might need to adjust the foveation level in large increments to see an effect. Example levels: - `0`: no foveation - `1/3`: low foveation - `2/3`: medium foveation - `1.0`: maximum foveation Some devices don't support foveated rendering. In that case `fixedFoveation` is [`null`](/en-US/docs/Web/JavaScript/Reference/Operators/null) and setting it will not do anything. ## Examples ### Dynamically setting the level of fixed foveation rendering The `fixedFoveation` property allows you to set the level of foveation at runtime and for each frame. To set the maximum foveation for a given {{domxref("XRWebGLLayer")}}, use a value of `1`. ```js let glLayer = xrSession.renderState.baseLayer; glLayer.fixedFoveation = 1; // maximum foveation ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [Foveated rendering](https://en.wikipedia.org/wiki/Foveated_rendering)
0
data/mdn-content/files/en-us/web/api
data/mdn-content/files/en-us/web/api/uievent/index.md
--- title: UIEvent slug: Web/API/UIEvent page-type: web-api-interface browser-compat: api.UIEvent --- {{APIRef("UI Events")}} The **`UIEvent`** interface represents simple user interface events. `UIEvent` derives from {{domxref("Event")}}. Although the {{domxref("UIEvent.initUIEvent()")}} method is kept for backward compatibility, you should create a `UIEvent` object using the {{domxref("UIEvent.UIEvent", "UIEvent()")}} constructor. Several interfaces are direct or indirect descendants of this one: {{domxref("MouseEvent")}}, {{domxref("TouchEvent")}}, {{domxref("FocusEvent")}}, {{domxref("KeyboardEvent")}}, {{domxref("WheelEvent")}}, {{domxref("InputEvent")}}, and {{domxref("CompositionEvent")}}. {{InheritanceDiagram}} ## Constructors - {{domxref("UIEvent.UIEvent()", "UIEvent()")}} - : Creates a `UIEvent` object. ## Instance properties _This interface also inherits properties of its parent, {{domxref("Event")}}._ - {{domxref("UIEvent.detail")}} {{ReadOnlyInline}} - : Returns a `long` with details about the event, depending on the event type. - {{domxref("UIEvent.sourceCapabilities")}} {{Experimental_Inline}} {{ReadOnlyInline}} - : Returns an instance of the `InputDeviceCapabilities` interface, which provides information about the physical device responsible for generating a touch event. - {{domxref("UIEvent.view")}} {{ReadOnlyInline}} - : Returns a {{glossary("WindowProxy")}} that contains the view that generated the event. - {{domxref("UIEvent.which")}} {{Deprecated_Inline}} {{ReadOnlyInline}} - : Returns the numeric `keyCode` of the key pressed, or the character code (`charCode`) for an alphanumeric key pressed. ## Instance methods _This interface also inherits methods of its parent, {{domxref("Event")}}._ - {{domxref("UIEvent.initUIEvent()")}} {{Deprecated_Inline}} - : Initializes a `UIEvent` object. If the event has already been dispatched, this method does nothing. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - [Introduction to events](/en-US/docs/Learn/JavaScript/Building_blocks/Events) - {{domxref("Event")}}
0
data/mdn-content/files/en-us/web/api/uievent
data/mdn-content/files/en-us/web/api/uievent/sourcecapabilities/index.md
--- title: "UIEvent: sourceCapabilities property" short-title: sourceCapabilities slug: Web/API/UIEvent/sourceCapabilities page-type: web-api-instance-property status: - experimental browser-compat: api.UIEvent.sourceCapabilities --- {{APIRef("Input Device Capabilities API")}}{{SeeCompatTable}} The **`sourceCapabilities`** read-only property of the {{domxref("UIEvent")}} interface returns an instance of the {{domxref('InputDeviceCapabilities')}} interface which provides information about the physical device responsible for generating a touch event. If no input device was responsible for the event, it returns `null`. When a single user interaction with an input device generates a series of different input events, the `sourceCapabilities` property for all of them will point to the same instance of `InputDeviceCapabilities`. For example, when a user lifts their finger off of a touchscreen, several UIEvents may be generated including `touchend`, `mousedown`, `click`, and `focus`. All of these events must have the same `sourceCapabilities` representing the touchscreen. A device is considered "responsible" for an event only when that interaction is part of the abstraction provided by the web platform. For example, many user agents allow a window to be resized with a mouse or a keyboard, but this detail is not exposed to the web platform in any way, and so the sourceCapabilities of a resize event will typically be null. ## Value An instance of {{domxref('InputDeviceCapabilities')}}. ## Specifications {{Specifications}} ## Browser compatibility {{Compat}}
0
data/mdn-content/files/en-us/web/api/uievent
data/mdn-content/files/en-us/web/api/uievent/inituievent/index.md
--- title: "UIEvent: initUIEvent() method" short-title: initUIEvent() slug: Web/API/UIEvent/initUIEvent page-type: web-api-instance-method status: - deprecated browser-compat: api.UIEvent.initUIEvent --- {{APIRef("UI Events")}} {{deprecated_header}} The **`UIEvent.initUIEvent()`** method initializes a UI event once it's been created. Events initialized in this way must have been created with the {{ domxref("Document.createEvent()") }} method. This method must be called to set the event before it is dispatched, using {{ domxref("EventTarget.dispatchEvent()") }}. Once dispatched, it doesn't do anything anymore. > **Warning:** Do not use this method anymore as it is deprecated. > > Instead use specific event constructors, like {{domxref("UIEvent.UIEvent", "UIEvent()")}}. The page on [Creating and triggering events](/en-US/docs/Web/Events/Creating_and_triggering_events) gives more information about the way to use these. ## Syntax ```js-nolint initUIEvent(type, canBubble, cancelable, view, detail) ``` ### Parameters - `type` - : A string defining the type of event. - `canBubble` - : A boolean value deciding whether the event should bubble up through the event chain or not. Once set, the read-only property {{ domxref("Event.bubbles") }} will give its value. - `cancelable` - : A boolean value defining whether the event can be canceled. Once set, the read-only property {{ domxref("Event.cancelable") }} will give its value. - `view` - : Is the {{glossary("WindowProxy")}} associated with the event. - `detail` - : An `unsigned long` specifying some detail information about the event, depending on the type of event. For mouse events, it indicates how many times the mouse has been clicked on a given screen location. ### Return value None ({{jsxref("undefined")}}). ## Examples ```js const e = document.createEvent("UIEvent"); // creates a click event that bubbles, can be cancelled, // and with its view and detail property initialized to window and 1, // respectively e.initUIEvent("click", true, true, window, 1); ``` ## Specifications {{Specifications}} ## Browser compatibility {{Compat}} ## See also - {{ domxref("UIEvent") }} - The constructor to use instead of this deprecated method: {{domxref("UIEvent.UIEvent", "UIEvent()")}}. More specific constructors can be used too.
0