anchor.diff:        _canvasKitScript?.remove();
         _canvasKitScript = html.ScriptElement();
         _canvasKitScript!.src = canvasKitBaseUrl + 'canvaskit.js';
  +
  +      // TODO(hterkelsen): Rather than this monkey-patch hack, we should
  +      // build CanvasKit ourselves. See:
  +      // https://github.com/flutter/flutter/issues/52588
  +
  +      // Monkey-patch the top-level `module`  and `exports` objects so that
  +      // CanvasKit doesn't attempt to register itself as an anonymous module.
  +      //
  +      // The idea behind making these fake `exports` and `module` objects is
  +      // that `canvaskit.js` contains the following lines of code:
  +      //
  +      //     if (typeof exports === 'object' && typeof module === 'object')
  +      //       module.exports = CanvasKitInit;
  +      //     else if (typeof define === 'function' && define['amd'])
  +      //       define([], function() { return CanvasKitInit; });
  +      //
  +      // We need to avoid hitting the case where CanvasKit defines an anonymous
  +      // module, since this breaks RequireJS, which DDC and some plugins use.
  +      // Temporarily removing the `define` function won't work because RequireJS
  +      // could load in between this code running and the CanvasKit code running.
  +      // Also, we cannot monkey-patch the `define` function because it is
  +      // non-configurable (it is a top-level 'var').
  +
  +      // First check if `exports` and `module` are already defined. If so, then
  +      // CommonJS is being used, and we shouldn't have any problems.
  +      js.JsFunction objectConstructor = js.context['Object'];
  +      if (js.context['exports'] == null) {
  +        js.JsObject exportsAccessor = js.JsObject.jsify({
  +          'get': js.allowInterop(() {
  +            if (html.document.currentScript == _canvasKitScript) {
  +              return js.JsObject(objectConstructor);
  +            } else {
  +              return js.context['_flutterWebCachedExports'];
  +            }
  +          }),
  +          'set': js.allowInterop((dynamic value) {
  +            js.context['_flutterWebCachedExports'] = value;
  +          }),
  +          'configurable': true,
  +        });
  +        objectConstructor.callMethod('defineProperty',
  +            <dynamic>[js.context, 'exports', exportsAccessor]);
  +      }
  +      if (js.context['module'] == null) {
  +        js.JsObject moduleAccessor = js.JsObject.jsify({
  +          'get': js.allowInterop(() {
  +            if (html.document.currentScript == _canvasKitScript) {
  +              return js.JsObject(objectConstructor);
  +            } else {
  +              return js.context['_flutterWebCachedModule'];
  +            }
  +          }),
  +          'set': js.allowInterop((dynamic value) {
  +            js.context['_flutterWebCachedModule'] = value;
  +          }),
  +          'configurable': true,
  +        });
  +        objectConstructor.callMethod(
  +            'defineProperty', <dynamic>[js.context, 'module', moduleAccessor]);
  +      }
         html.document.head!.append(_canvasKitScript!);
       }
   
  
positive.code:   Future<bool> setPreferredOrientation(List<dynamic>? orientations) {
      final html.Screen screen = html.window.screen!;
      if (!_unsafeIsNull(screen)) {
        final html.ScreenOrientation? screenOrientation =
            screen.orientation;
        if (!_unsafeIsNull(screenOrientation)) {
          if (orientations!.isEmpty) {
            screenOrientation!.unlock();
  
negative.code: }
  ''', sheet.cssRules.length);
      }
  
      final html.BodyElement bodyElement = html.document.body!;
      setElementStyle(bodyElement, 'position', 'fixed');
  